#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.
This function initializes the allocator to allocate and free memory from the frame heap. The alignment values of all memory blocks allocated through this allocator are specified by alignment.
Memory blocks can't be freed in block units for the frame heap, so the MEMFreeToAllocator function does nothing for allocators set to use the frame heap.
MEMInitAllocatorForExpHeap, MEMInitAllocatorForUnitHeap, MEMInitAllocatorForOSHeap
03/01/2006 Initial version.