MEMInitAllocatorForUnitHeap

C Specification

#include <revolution/mem.h>

void MEMInitAllocatorForUnitHeap(
MEMAllocator*    pAllocator,
MEMHeapHandle    heap );

Arguments

pAllocator Address of the MemAllocator structure.
heap Unit heap handle.

Return Values

None.

Description

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 size of the memory block specified in the specified unit heap. In this case, the MEMAllocFromAllocator function returns NULL.

See Also

MEMInitAllocatorForFrmHeap, MEMInitAllocatorForExpHeap, MEMInitAllocatorForOSHeap

Revision History

03/01/2006 Initial version.