Searched refs:array_t (Results 1 – 5 of 5) sorted by relevance
31 struct array_t { struct39 static bool grow(array_t* array); argument43 array_t* array_new(size_t element_size) { in array_new()46 array_t* array = static_cast<array_t*>( in array_new()47 osi_calloc(sizeof(array_t) + element_size * INTERNAL_ELEMENTS)); in array_new()55 void array_free(array_t* array) { in array_free()63 void* array_ptr(const array_t* array) { return array_at(array, 0); } in array_ptr()65 void* array_at(const array_t* array, size_t index) { in array_at()71 size_t array_length(const array_t* array) { in array_length()76 bool array_append_value(array_t* array, uint32_t value) { in array_append_value()[all …]
25 typedef struct array_t array_t; typedef30 array_t* array_new(size_t element_size);33 void array_free(array_t* array);37 void* array_ptr(const array_t* array);41 void* array_at(const array_t* array, size_t index);44 size_t array_length(const array_t* array);52 bool array_append_value(array_t* array, uint32_t value);58 bool array_append_ptr(array_t* array, void* data);
13 array_t* array = array_new(4); in TEST_F()22 array_t* array = array_new(4); in TEST_F()34 array_t* array = array_new(4); in TEST_F()45 array_t* array = array_new(sizeof(int)); in TEST_F()57 array_t* array = array_new(sizeof(int)); in TEST_F()74 array_t* array = array_new(128); in TEST_F()
166 bool array_append_ptr(array_t* array, void* data) { in array_append_ptr()170 bool array_append_value(array_t* array, uint32_t value) { in array_append_value()174 size_t array_length(const array_t* array) { in array_length()178 void array_free(array_t* array) { mock_function_count_map[__func__]++; } in array_free()179 void* array_at(const array_t* array, size_t index) { in array_at()183 void* array_ptr(const array_t* array) { in array_ptr()
32 array_t* arr = array_new(element_size); in LLVMFuzzerTestOneInput()