MEMInitAllocatorForFrmHeap

Syntax

#include <revolution/mem.h>

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

Arguments

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

Return Values

None.

Description

Initializes the allocator to allocate and deallocate memory from the frame heap. The alignment values of all memory blocks allocated through this allocator are specified by alignment.

Memory blocks cannot be deallocated in block units for the frame heap, so the MEMFreeToAllocator function does nothing for allocators set to use the frame heap.

See Also

MEMInitAllocatorForExpHeap, MEMInitAllocatorForUnitHeap, MEMInitAllocatorForOSHeap

Revision History

2006/03/01 Initial version.


CONFIDENTIAL