MEMInitAllocatorForBlockHeap

Syntax

#include <cafe/mem.h>

void MEMInitAllocatorForBlockHeap(
                        MEMAllocator*    pAllocator,
                        MEMHeapHandle    heap,
                        int              alignment );

Parameters

pAllocator Address of the MemAllocator structure.
heap Block heap handle.
alignment Alignment value applied to each memory area to allocate.

Return Values

None.

Description

Initializes the allocator to allocate and free memory from the block heap. The alignment values of all memory areas allocated through this allocator are specified by alignment.

Do Not Call From

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

See Also

MEMInitAllocatorForExpHeap
MEMInitAllocatorForFrmHeap
MEMInitAllocatorForUnitHeap

Revision History

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


CONFIDENTIAL