MEMGetAllocDirForMBlockExpHeap

Syntax

#include <cafe/mem.h>

u16 MEMGetAllocDirForMBlockExpHeap( const void* memBlock );

Parameters

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.

Do Not Call From

Callbacks Do not call this function from any callback function.

See Also

MEMGetSizeForMBlockExpHeap
MEMGetGroupIDForMBlockExpHeap

Revision History

2013-05-08 Automated cleanup pass.
2010-11-01 Initial version.


CONFIDENTIAL