MEMVisitAllocatedForExpHeap

C Specification

#include <revolution/mem.h>

void MEMVisitAllocatedForExpHeap(
	MEMHeapHandle    heap,
	MEMHeapVisitor   visitor,
	u32              userParam );

Arguments

heap Expanded heap handle.
visitor Function called for each memory block (explained below).
userParam Parameters of the user settings to pass to the visitor function (explained below).

Return Values

None.

Description

This function causes the visitor function that the user set to be called for all memory blocks allocated from the expanded heap.

The visitor type MEMHeapVisitor is defined as follows.

typedef void (*MEMHeapVisitor)(
void*               memBlock,
MEMHeapHandle    	heap,
u32                 userParam);

The first argument (memBlock) is a pointer to the memory block. The second argument (heap) is the heap handle that allocated the memory block. The value specified by userParam is passed to the third argument without any changes; any value can be passed.

The memory blocks are called by the visitor function in allocation order.

See Also

MEMAllocFromExpHeap, MEMAllocFromExpHeapEx, MEMCreateExpHeap, MEMCreateExpHeapEx

Revision History

03/01/2006 Initial version.