MEMGetAllocModeForExpHeap

C Specification

#include <revolution/mem.h>

u16 MEMGetAllocModeForExpHeap( MEMHeapHandle heap );

Arguments

heap Expanded heap handle.

Return Values

Returns the memory allocation mode of the current expanded heap.

Description

This function obtains the memory allocation mode of the expanded heap.

You can specify the following values for the memory allocation mode:

MEM_EXPHEAP_ALLOC_MODE_FIRST Allocates a memory block from the first free region that is at least the size of the memory block to allocate.
MEM_EXPHEAP_ALLOC_MODE_NEAR Searches for a free region nearest in size to the memory block to allocate, then allocates the memory block from this free region.

Immediately after the heap is created, the MEM_EXPHEAP_ALLOC_MODE_FIRST state is entered.

See Also

MEMSetAllocModeForExpHeap

Revision History

2006/03/01 Initial version.


CONFIDENTIAL