MEMAdjustFrmHeap

C Specification

#include <revolution/mem.h>

u32 MEMAdjustFrmHeap( MEMHeapHandle heap );

Arguments

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.

See Also

MEMAllocFromFrmHeap, MEMAllocFromFrmHeapEx, MEMFreeToFrmHeap

Revision History

03/01/2006 Initial version.