74 WUT_UNKNOWN_BYTES(0x0C);
uint32_t flags
Flags set during heap creation.
MEMMemoryList list
List of all child heaps in this heap.
MEMHeapTag tag
Tag indicating which type of heap this is.
MEMMemoryLink link
Link for list this heap is in.
void * dataStart
Pointer to start of allocatable memory.
OSSpinLock lock
Lock used when MEM_HEAP_FLAG_USE_LOCK is set.
void * dataEnd
Pointer to end of allocatable memory.
MEMHeapHandle MEMSetBaseHeapHandle(MEMBaseHeapType type, MEMHeapHandle handle)
Set base heap for memory area.
MEMHeapHeader * MEMFindContainHeap(void *block)
Find heap which contains a memory block.
void MEMDumpHeap(MEMHeapHandle heap)
Print details about heap to COSWarn.
void MEMSetFillValForHeap(MEMHeapFillType type, uint32_t value)
Set the data fill value used when MEM_HEAP_FLAG_DEBUG_MODE is set.
MEMHeapHeader * MEMHeapHandle
MEMBaseHeapType MEMGetArena(MEMHeapHandle handle)
Get which memory area a heap belongs to.
MEMHeapHandle MEMFindParentHeap(MEMHeapHandle handle)
Find the parent heap of a given heap.
BOOL MEMCheckHeap(MEMHeapHandle handle)
Checks the heap for corruption.
MEMHeapHandle MEMGetBaseHeapHandle(MEMBaseHeapType type)
Get base heap for memory area.
uint32_t MEMGetFillValForHeap(MEMHeapFillType type)
Get the data fill value used when MEM_HEAP_FLAG_DEBUG_MODE is set.
MEMHeapHandle MEMCreateUserHeapHandle(void *heap, uint32_t size)
Create a heap handle for a user defined heap.
@ MEM_HEAP_FILL_TYPE_FREED
@ MEM_HEAP_FILL_TYPE_UNUSED
@ MEM_HEAP_FILL_TYPE_ALLOCATED
@ MEM_HEAP_FLAG_DEBUG_MODE
@ MEM_HEAP_FLAG_ZERO_ALLOCATED