27 #ifndef INCLUDED_ALLOCATORS_DYNARRAY 28 #define INCLUDED_ALLOCATORS_DYNARRAY 107 #endif // #ifndef INCLUDED_ALLOCATORS_DYNARRAY LIB_API Status da_alloc(DynArray *da, size_t max_size)
ready the DynArray object for use.
Definition: dynarray.cpp:61
LIB_API Status da_reserve(DynArray *da, size_t size)
Make sure at least <size> bytes starting at da->pos are committed and ready for use.
Definition: dynarray.cpp:130
provides a memory range that can be expanded but doesn't waste physical memory or relocate itself...
Definition: dynarray.h:39
LIB_API Status da_append(DynArray *da, const void *data_src, size_t size)
"write" to array, i.e.
Definition: dynarray.cpp:139
uint8_t u8
Definition: types.h:37
u8 * base
Definition: dynarray.h:41
i64 Status
Error handling system.
Definition: status.h:171
size_t pos
Definition: dynarray.h:46
size_t cur_size_pa
committed
Definition: dynarray.h:44
LIB_API Status da_free(DynArray *da)
free all memory (address space + physical) that constitutes the given array.
Definition: dynarray.cpp:80
LIB_API Status da_set_size(DynArray *da, size_t new_size)
expand or shrink the array: changes the amount of currently committed (i.e.
Definition: dynarray.cpp:93
size_t max_size_pa
Definition: dynarray.h:42
size_t cur_size
reserved
Definition: dynarray.h:43