MEMAdjustFrmHeap

Syntax

#include <cafe/mem.h>

u32 MEMAdjustFrmHeap( MEMHeapHandle heap );

Parameters

heap Frame heap handle.

Return Values

If successful, this function returns the total size of the frame heap (including the header) after the size is reduced. Otherwise, zero is returned.

Description

This function frees the free region in the frame heap from the heap region, and then compresses this part of 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

MEMAllocFromFrmHeap
MEMAllocFromFrmHeapEx
MEMFreeToFrmHeap

Revision History

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


CONFIDENTIAL