|
libcute 0.1
|


Go to the source code of this file.
Classes | |
| struct | cu_SlabAllocator |
| struct | cu_SlabAllocator_Config |
Macros | |
| #define | CU_SLAB_DEFAULT_SIZE 4096 |
Functions | |
| cu_Allocator | cu_Allocator_SlabAllocator (cu_SlabAllocator *alloc, cu_SlabAllocator_Config cfg) |
| void | cu_SlabAllocator_destroy (cu_SlabAllocator *alloc) |
Simple slab allocator.
| #define CU_SLAB_DEFAULT_SIZE 4096 |
default slab size
| cu_Allocator cu_Allocator_SlabAllocator | ( | cu_SlabAllocator * | alloc, |
| cu_SlabAllocator_Config | cfg | ||
| ) |
Create a slab allocator using the given configuration.


| void cu_SlabAllocator_destroy | ( | cu_SlabAllocator * | alloc | ) |
Release all memory owned by the allocator.

