#include <revolution/mem.h> void MEMVisitAllocatedForExpHeap( MEMHeapHandle heap, MEMHeapVisitor visitor, u32 userParam );
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). |
None.
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.
MEMAllocFromExpHeap, MEMAllocFromExpHeapEx, MEMCreateExpHeap, MEMCreateExpHeapEx
03/01/2006 Initial version.