#include <revolution/mem.h> void* MEMAllocFromExpHeap( MEMHeapHandle heap, u32 size );
heap |
Expanded heap handle. |
size |
Size of memory block in bytes. |
When the memory block is allocated, the start address of this memory block is returned. When the memory cannot be allocated, NULL is returned.
Allocates a memory block from the expanded heap. The memory block has an alignment of 4.
If the memory block is allocatable, the actual size of the memory block may be greater than the specified size. To determine the actual allocated size in bytes, use the MEMGetSizeForMBlockExpHeap function.
MEMAllocFromExpHeapEx, MEMFreeToExpHeap, MEMCreateExpHeap, MEMCreateExpHeapEx
03/01/2006 Initial version.