MEMCreateUnitHeap

C Specification

#include <revolution/mem.h>

MEMHeapHandle MEMCreateUnitHeap(
                             void*  startAddress,
                             u32    heapSize,
                             u32    memBlockSize );

Arguments

startAddress Start address of the allocated memory region in the heap.
heapSize Size in bytes of the memory region allocated to the heap.
memBlockSize Size of memory block in bytes.

Return Values

Returns the heap handle when a heap can be created. Returns MEM_HEAP_INVALID_HANDLE (a NULL value) if a heap can't be created.

Description

Creates the unit heap. The heap region is a memory region with size heapSize and a start address specified by startAddress.

Each memory block has a fixed size specified by memBlockSize. The memory block alignment is 4.

See Also

MEMCreateUnitHeapEx

Revision History

2006/03/01 Initial version.


CONFIDENTIAL