MEMGetAllocDirForMBlockExpHeap

Syntax

#include <revolution/mem.h>

u16 MEMGetAllocDirForMBlockExpHeap( const void* memBlock );

Arguments

memBlock Pointer to the memory block that gets the allocation direction. Information about allocation direction is explained below.

Return Values

Returns the designated memory block allocation direction.

Description

This function obtains the allocation direction of the allocated memory block from the expanded heap.

The allocation direction can be one of the following values:

MEM_EXPHEAP_ALLOC_DIR_FRONT Allocates from the bottom of the free region in the expanded heap when the memory block is allocated.
MEM_EXPHEAP_ALLOC_DIR_REAR Allocates from the top of the free region in the expanded heap when the memory block is allocated.

See Also

MEMGetSizeForMBlockExpHeap, MEMGetGroupIDForMBlockExpHeap

Revision History

2006/03/01 Initial version.


CONFIDENTIAL