MEMAdjustExpHeap

Syntax

#include <cafe/mem.h>

u32 MEMAdjustExpHeap( MEMHeapHandle heap );

Parameters

heap Expanded heap handle.

Return Values

Returns the total size of the expanded heap (including the header) after size reduction if this function is successful. Otherwise, zero is returned.

Description

This function reduces the memory that the expanded heap uses by freeing the free region in the heap. The function fails if a memory block is allocated from the top of the heap region.

Do Not Call From

Callbacks Do not call this function from any callback function.

See Also

MEMAllocFromExpHeap
MEMAllocFromExpHeapEx
MEMFreeToExpHeap

Revision History

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


CONFIDENTIAL