MEMGetAllocatableSizeForExpHeapEx

Syntax

#include <cafe/mem.h>

u32 MEMGetAllocatableSizeForExpHeapEx( 
                                 MEMHeapHandle     heap, 
                                 int               alignment );

Parameters

heap Expanded heap handle.
alignment Memory block alignment. Can take any of the following values: 4, 8, 16, 32, 64, 128, ..., 128 KB.

Return Values

Returns the maximum size (in bytes) of memory blocks allocatable from the available region in the expanded heap.

Description

Gets the maximum size (in bytes) of memory blocks allocatable from the available region in the expanded heap.

Memory block alignment is specified by alignment. The size of the allocatable memory block changes depending on the alignment value.

Do Not Call From

Callbacks Do not call this function from any callback function.

See Also

MEMGetAllocatableSizeForExpHeap
MEMGetTotalFreeSizeForExpHeap
MEMAllocFromExpHeap
MEMAllocFromExpHeapEx

Revision History

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


CONFIDENTIAL