Searched refs:array_t (Results 1 – 3 of 3) sorted by relevance
25 typedef struct array_t array_t; typedef30 array_t *array_new(size_t element_size);33 void array_free(array_t *array);36 void *array_ptr(const array_t *array);40 void *array_at(const array_t *array, size_t index);43 size_t array_length(const array_t *array);51 bool array_append_value(array_t *array, uint32_t value);57 bool array_append_ptr(array_t *array, void *data);
30 struct array_t { struct38 static bool grow(array_t *array); argument42 array_t *array_new(size_t element_size) { in array_new()45 array_t *array = osi_calloc(sizeof(array_t) + element_size * INTERNAL_ELEMENTS); in array_new()53 void array_free(array_t *array) { in array_free()63 void *array_ptr(const array_t *array) { in array_ptr()67 void *array_at(const array_t *array, size_t index) { in array_at()73 size_t array_length(const array_t *array) { in array_length()78 bool array_append_value(array_t *array, uint32_t value) { in array_append_value()82 bool array_append_ptr(array_t *array, void *data) { in array_append_ptr()[all …]
12 array_t *array = array_new(4); in TEST_F()22 array_t *array = array_new(4); in TEST_F()28 array_t *array = array_new(4); in TEST_F()34 array_t *array = array_new(sizeof(int)); in TEST_F()46 array_t *array = array_new(sizeof(int)); in TEST_F()69 array_t *array = array_new(128); in TEST_F()