SlabAllocatorInitAligned
Description
Initialize a SlabAllocator with a custom alignment floor.
Usage example (Cross-references)
Usage examples (Cross-references)
static bool test_pool_alignment(void) {
SlabAllocator slab = SlabAllocatorInitAligned(sizeof(int), 64);
Allocator *alloc_base = ALLOCATOR_OF(&slab);
int *p = (int *)AllocatorAlloc(alloc_base, sizeof(int), true);
Last updated on