Blender
V3.3
|
A (mainly) macro array library. More...
Go to the source code of this file.
Functions | |
void | _bli_array_grow_func (void **arr_p, const void *arr_static, const int sizeof_arr_p, const int arr_len, const int num, const char *alloc_str) |
A (mainly) macro array library.
This is an array library, used to manage array (re)allocation.
Example usage:
Arrays are over allocated, so each reallocation the array size is doubled. In situations where contiguous array access isn't needed, other solutions for allocation are available. Consider using on of: BLI_memarena.c, BLI_mempool.c, BLi_stack.c
Definition in file BLI_array.c.
void _bli_array_grow_func | ( | void ** | arr_p, |
const void * | arr_static, | ||
int | sizeof_arr_p, | ||
int | arr_len, | ||
int | num, | ||
const char * | alloc_str | ||
) |
Doing the reallocation in a macro isn't so simple, so use a function the macros can use.
This function is only to be called via macros.
Definition at line 41 of file BLI_array.c.
References MEM_freeN, and MEM_mallocN.