34typedef struct as_vector_s {
70#define as_vector_inita(__vector, __item_size, __capacity)\
71(__vector)->list = alloca((__capacity) * (__item_size));\
72(__vector)->capacity = __capacity;\
73(__vector)->item_size = __item_size;\
114 return (
void *) ((uint8_t *)vector->
list + (vector->
item_size * index));
123 return *(
void**) ((uint8_t *)vector->
list + (vector->
item_size * index));
AS_EXTERN void as_vector_init(as_vector *vector, uint32_t item_size, uint32_t capacity)
static void * as_vector_get(as_vector *vector, uint32_t index)
AS_EXTERN void * as_vector_to_array(as_vector *vector, uint32_t *size)
AS_EXTERN bool as_vector_append_unique(as_vector *vector, void *value)
AS_EXTERN void as_vector_increase_capacity(as_vector *vector)
AS_EXTERN bool as_vector_remove(as_vector *vector, uint32_t index)
AS_EXTERN void as_vector_destroy(as_vector *vector)
static void as_vector_set(as_vector *vector, uint32_t index, void *value)
static void as_vector_append(as_vector *vector, void *value)
static void as_vector_clear(as_vector *vector)
static void * as_vector_get_ptr(as_vector *vector, uint32_t index)
AS_EXTERN as_vector * as_vector_create(uint32_t item_size, uint32_t capacity)
static void * as_vector_reserve(as_vector *vector)