Skip to content

cf_arena_init

Category: allocator
GitHub: cute_alloc.h


Initializes an arena for later allocations.

CF_Arena cf_make_arena(int alignment, int block_size);
Parameters Description
arena The arena to initialize.
alignment An alignment boundary, must be a power of two.
block_size The default size of each internal call to malloc to form pages to further allocate from.

cf_arena_free
cf_arena_alloc
cf_arena_reset