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);
29 struct array_t { struct37 static bool grow(array_t *array); argument41 array_t *array_new(size_t element_size) { in array_new()44 array_t *array = osi_calloc(sizeof(array_t) + element_size * INTERNAL_ELEMENTS); in array_new()56 void array_free(array_t *array) { in array_free()66 void *array_ptr(const array_t *array) { in array_ptr()70 void *array_at(const array_t *array, size_t index) { in array_at()76 size_t array_length(const array_t *array) { in array_length()81 bool array_append_value(array_t *array, uint32_t value) { in array_append_value()85 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()