Skip to content

cf_make_memory_pool

Category: allocator
GitHub: cute_alloc.h


Creates a memory pool.

CF_MemoryPool* cf_make_memory_pool(int element_size, int element_count, int alignment);
Parameters Description
element_size The size of each allocation.
element_count The number of elements in the internal pool.
alignment An alignment boundary, must be a power of two.

Return Value

Returns a memory pool pointer.

cf_destroy_memory_pool
cf_memory_pool_alloc
cf_memory_pool_free