wut  v1.7.0
Wii U Toolchain
Data Structures | Typedefs | Functions
Unit Heap
Collaboration diagram for Unit Heap:

Data Structures

struct  MEMUnitHeapFreeBlock
 
struct  MEMUnitHeap
 

Typedefs

typedef struct MEMUnitHeap MEMUnitHeap
 
typedef struct MEMUnitHeapFreeBlock MEMUnitHeapFreeBlock
 

Functions

MEMHeapHandle MEMCreateUnitHeapEx (void *heap, uint32_t size, uint32_t blockSize, int32_t alignment, uint16_t flags)
 
void * MEMDestroyUnitHeap (MEMHeapHandle heap)
 
void * MEMAllocFromUnitHeap (MEMHeapHandle heap)
 
void MEMFreeToUnitHeap (MEMHeapHandle heap, void *block)
 
void MEMiDumpUnitHeap (MEMHeapHandle heap)
 
uint32_t MEMCountFreeBlockForUnitHeap (MEMHeapHandle heap)
 
uint32_t MEMCalcHeapSizeForUnitHeap (uint32_t blockSize, uint32_t count, int32_t alignment)
 

Detailed Description


Data Structure Documentation

◆ MEMUnitHeapFreeBlock

struct MEMUnitHeapFreeBlock

Definition at line 18 of file memunitheap.h.

Data Fields
MEMUnitHeapFreeBlock * next

◆ MEMUnitHeap

struct MEMUnitHeap

Definition at line 25 of file memunitheap.h.

Data Fields
MEMHeapHeader header
MEMUnitHeapFreeBlock * freeBlocks
uint32_t blockSize

Typedef Documentation

◆ MEMUnitHeap

typedef struct MEMUnitHeap MEMUnitHeap

Definition at line 1 of file memunitheap.h.

◆ MEMUnitHeapFreeBlock

Definition at line 1 of file memunitheap.h.

Function Documentation

◆ MEMCreateUnitHeapEx()

MEMHeapHandle MEMCreateUnitHeapEx ( void *  heap,
uint32_t  size,
uint32_t  blockSize,
int32_t  alignment,
uint16_t  flags 
)

◆ MEMDestroyUnitHeap()

void* MEMDestroyUnitHeap ( MEMHeapHandle  heap)

◆ MEMAllocFromUnitHeap()

void* MEMAllocFromUnitHeap ( MEMHeapHandle  heap)

◆ MEMFreeToUnitHeap()

void MEMFreeToUnitHeap ( MEMHeapHandle  heap,
void *  block 
)

◆ MEMiDumpUnitHeap()

void MEMiDumpUnitHeap ( MEMHeapHandle  heap)

◆ MEMCountFreeBlockForUnitHeap()

uint32_t MEMCountFreeBlockForUnitHeap ( MEMHeapHandle  heap)

◆ MEMCalcHeapSizeForUnitHeap()

uint32_t MEMCalcHeapSizeForUnitHeap ( uint32_t  blockSize,
uint32_t  count,
int32_t  alignment 
)