MEMGetTrackingLeftInBlockHeap

Syntax

#include <cafe/mem.h>

u32 MEMGetTrackingLeftInBlockHeap( MEMHeapHandle  heap );

Parameters

heap Block heap handle.

Return Values

Returns the number of free tracking blocks left in the block heap. When there are no blocks left an allocation will fail since there is no way to track the allocation. An allocation may also fail when only one block is left, since if an allocation is performed in the middle of a free area three pieces result, and two blocks are needed to track the allocation.

Description

Determines the number of free tracking blocks left in the block heap.

Do Not Call From

Callbacks Do not call this function from any callback function.

See Also

MEMAddBlockHeapTracking
MEMAllocFromBlockHeap
MEMAllocFromBlockHeapAt
MEMAllocFromBlockHeapEx
MEMDestroyBlockHeap
MEMFreeToBlockHeap
MEMInitBlockHeap

Revision History

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


CONFIDENTIAL