#include <revolution/mem.h>
void MEMInitAllocatorForUnitHeap(
MEMAllocator* pAllocator,
MEMHeapHandle heap );
pAllocator |
Address of the MemAllocator structure |
|---|---|
heap |
Unit heap handle. |
None.
Initializes the allocator to allocate and deallocate memory from the unit heap.
It is not possible to allocate a memory block that is larger than the memory block size set in the specified unit heap. In such a case, the MEMAllocFromAllocator function returns NULL.
MEMInitAllocatorForFrmHeap, MEMInitAllocatorForExpHeap, MEMInitAllocatorForOSHeap
2006/03/01 Initial version.
CONFIDENTIAL