MEMInitAllocatorForUnitHeap

Syntax

#include <cafe/mem.h>

void MEMInitAllocatorForUnitHeap(
                        MEMAllocator*    pAllocator,
                        MEMHeapHandle    heap );

Parameters

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

Do Not Call From

Multiple threads This function is not thread-safe.
Callbacks Do not call this function from any callback function.

See Also

MEMInitAllocatorForBlockHeap
MEMInitAllocatorForFrmHeap
MEMInitAllocatorForExpHeap

Revision History

2013-05-08 Automated cleanup pass.
2010-11-01 Initial version.


CONFIDENTIAL