20typedef void * (*MEMAllocatorAllocFn)(
MEMAllocator *allocator, uint32_t size);
MEMAllocatorAllocFn alloc
MEMAllocatorFunctions * funcs
Points to the alloc/free functions.
uint32_t align
The alignment the allocator will use.
MEMHeapHandle heap
The heap handle.
void * MEMAllocFromAllocator(MEMAllocator *allocator, uint32_t size)
Allocates memory from the allocator.
void MEMInitAllocatorForUnitHeap(MEMAllocator *allocator, MEMHeapHandle heap)
Initializes an allocator from a Unit Heap.
void MEMInitAllocatorForBlockHeap(MEMAllocator *allocator, MEMHeapHandle heap, uint32_t alignment)
Initializes an allocator from a Block Heap.
void MEMInitAllocatorForExpHeap(MEMAllocator *allocator, MEMHeapHandle heap, uint32_t alignment)
Initializes an allocator from an Expanded Heap.
void *(* MEMAllocatorAllocFn)(MEMAllocator *allocator, uint32_t size)
void(* MEMAllocatorFreeFn)(MEMAllocator *allocator, void *ptr)
void MEMFreeToAllocator(MEMAllocator *allocator, void *ptr)
Frees memory back to the allocator.
void MEMInitAllocatorForFrmHeap(MEMAllocator *allocator, MEMHeapHandle heap, uint32_t alignment)
Initializes an allocator from a Frame Heap.
void MEMInitAllocatorForDefaultHeap(MEMAllocator *allocator)
Initializes an allocator from the Default Heap.
Holds context information that will be used to allocate and free memory.
The alloc/free functions.