Home
last modified time | relevance | path

Searched refs:nxt_vector_t (Results 1 – 2 of 2) sorted by relevance

/unit/src/
H A Dnxt_vector.h28 } nxt_vector_t; typedef
31 NXT_EXPORT nxt_vector_t *nxt_vector_create(nxt_uint_t items, size_t item_size,
33 NXT_EXPORT void *nxt_vector_init(nxt_vector_t *vector, nxt_uint_t items,
35 NXT_EXPORT void nxt_vector_destroy(nxt_vector_t *vector,
37 NXT_EXPORT void *nxt_vector_add(nxt_vector_t *vector,
39 NXT_EXPORT void *nxt_vector_zero_add(nxt_vector_t *vector,
41 NXT_EXPORT void nxt_vector_remove(nxt_vector_t *vector, void *item);
58 nxt_vector_remove_last(nxt_vector_t *vector) in nxt_vector_remove_last()
H A Dnxt_vector.c10 nxt_vector_t *
14 nxt_vector_t *vector; in nxt_vector_create()
16 vector = proto->alloc(pool, sizeof(nxt_vector_t) + items * item_size); in nxt_vector_create()
19 vector->start = nxt_pointer_to(vector, sizeof(nxt_vector_t)); in nxt_vector_create()
31 nxt_vector_init(nxt_vector_t *vector, nxt_uint_t items, size_t item_size, in nxt_vector_init()
48 nxt_vector_destroy(nxt_vector_t *vector, const nxt_mem_proto_t *proto, in nxt_vector_destroy()
75 nxt_vector_add(nxt_vector_t *vector, const nxt_mem_proto_t *proto, void *pool) in nxt_vector_add()
124 nxt_vector_zero_add(nxt_vector_t *vector, const nxt_mem_proto_t *proto, in nxt_vector_zero_add()
140 nxt_vector_remove(nxt_vector_t *vector, void *item) in nxt_vector_remove()