#include <revolution/mem.h> MEMHeapHandle MEMCreateUnitHeap( void* startAddress, u32 heapSize, u32 memBlockSize );
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. |
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.
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.
03/01/2006 Initial version.