Home
last modified time | relevance | path

Searched refs:item_size (Results 1 – 2 of 2) sorted by last modified time

/unit/src/
H A Dnxt_vector.h26 uint16_t item_size; member
31 NXT_EXPORT nxt_vector_t *nxt_vector_create(nxt_uint_t items, size_t item_size,
34 size_t item_size, const nxt_mem_proto_t *proto, void *pool);
46 (vector)->item_size * ((vector)->items - 1))
61 return nxt_pointer_to(vector->start, vector->item_size * vector->items); in nxt_vector_remove_last()
H A Dnxt_vector.c11 nxt_vector_create(nxt_uint_t items, size_t item_size, in nxt_vector_create() argument
16 vector = proto->alloc(pool, sizeof(nxt_vector_t) + items * item_size); in nxt_vector_create()
21 vector->item_size = item_size; in nxt_vector_create()
34 vector->start = proto->alloc(pool, items * item_size); in nxt_vector_init()
38 vector->item_size = item_size; in nxt_vector_init()
94 size = n * vector->item_size; in nxt_vector_add()
132 nxt_memzero(item, vector->item_size); in nxt_vector_zero_add()
143 uint32_t item_size; in nxt_vector_remove() local
145 item_size = vector->item_size; in nxt_vector_remove()
147 last = end - item_size; in nxt_vector_remove()
[all …]