#include <revolution/mem.h>
void MEMInitAllocatorForFrmHeap(
MEMAllocator* pAllocator,
MEMHeapHandle heap,
int alignment );
pAllocator |
Address of the MemAllocator structure |
|---|---|
heap |
Frame heap handle. |
alignment |
Alignment value applied to each memory block to allocate. |
None.
Initializes the allocator to allocate and deallocate memory from the frame heap. The alignment values of all memory blocks allocated through this allocator are specified by alignment.
Memory blocks cannot be deallocated in block units for the frame heap, so the MEMFreeToAllocator function does nothing for allocators set to use the frame heap.
MEMInitAllocatorForExpHeap, MEMInitAllocatorForUnitHeap, MEMInitAllocatorForOSHeap
2006/03/01 Initial version.
CONFIDENTIAL