Lines Matching defs:array_t
30 struct array_t {
38 static bool grow(array_t* array);
42 array_t* array_new(size_t element_size) {
45 array_t* array = static_cast<array_t*>(
46 osi_calloc(sizeof(array_t) + element_size * INTERNAL_ELEMENTS));
54 void array_free(array_t* array) {
62 void* array_ptr(const array_t* array) { return array_at(array, 0); }
64 void* array_at(const array_t* array, size_t index) {
70 size_t array_length(const array_t* array) {
75 bool array_append_value(array_t* array, uint32_t value) {
79 bool array_append_ptr(array_t* array, void* data) {
96 static bool grow(array_t* array) {