wut
1.0.0-beta9
Wii U Toolchain
|
int MEMAddBlockHeapTracking(MEMHeapHandle heap, MEMBlockHeapTracking *tracking, uint32_t size)
MEMHeapHandle MEMInitBlockHeap(MEMBlockHeap *heap, void *start, void *end, MEMBlockHeapTracking *blocks, uint32_t size, uint32_t flags)
MEMBlockHeapBlock * prev
Link to previous block, note that this is only set for allocated blocks.
MEMBlockHeapBlock defaultBlock
Default block, used so we don't have an empty block list.
void * MEMAllocFromBlockHeapAt(MEMHeapHandle heap, void *addr, uint32_t size)
uint32_t blockCount
Number of blocks in this tracking heap.
MEMBlockHeapBlock * lastBlock
Last block in this heap.
void * MEMDestroyBlockHeap(MEMHeapHandle heap)
void * end
End address of the data region this block has allocated.
MEMBlockHeapBlock * next
Link to next block, always set.
void * MEMAllocFromBlockHeapEx(MEMHeapHandle heap, uint32_t size, int32_t align)
MEMBlockHeapTracking defaultTrack
Default tracking heap, tracks only defaultBlock.
uint32_t MEMGetTrackingLeftInBlockHeap(MEMHeapHandle heap)
void * start
First address of the data region this block has allocated.
BOOL isFree
TRUE if the block is free, FALSE if allocated.
uint32_t numFreeBlocks
Free block count.
void MEMFreeToBlockHeap(MEMHeapHandle heap, void *data)
uint32_t MEMGetTotalFreeSizeForBlockHeap(MEMHeapHandle heap)
MEMBlockHeapBlock * blocks
Pointer to first memory block.
MEMBlockHeapBlock * firstFreeBlock
First free block.
MEMBlockHeapBlock * firstBlock
First block in this heap.
uint32_t MEMGetAllocatableSizeForBlockHeapEx(MEMHeapHandle heap, int32_t align)