MEMGetTotalFreeSizeForExpHeap

Syntax

#include <cafe/mem.h>

u32 MEMGetTotalFreeSizeForExpHeap( MEMHeapHandle heap );

Parameters

heap Expanded heap handle.

Return Values

Returns the sum in bytes of all free blocks in the extended heap. 

Description

This function calculates the sum of free space in the heap, accounting for all currently free blocks at the time of the call.  To retrieve the size of the largest allocatable block in the heap, use the MEMGetAllocatableSizeForExpHeap or MEMGetAllocatableSizeForExpHeapEx functions.

Do Not Call From

Callbacks Do not call this function from any callback function.

See Also

MEMGetAllocatableSizeForExpHeap
MEMGetAllocatableSizeForExpHeapEx
MEMAllocFromExpHeap
MEMAllocFromExpHeapEx

Revision History

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


CONFIDENTIAL