MEMInitAllocatorForFrmHeap

C Specification

#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

This function initializes the allocator to allocate and free memory from the frame heap. The alignment values of all memory blocks allocated through this allocator are specified by alignment.

Memory blocks can't be freed 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

03/01/2006 Initial version.