WUT  0.1
Wii U Toolchain
Data Structures | Typedefs | Enumerations | Functions
Expanded Heap

Data Structures

struct  MEMExpandedHeap
 

Typedefs

typedef struct MEMExpandedHeap MEMExpandedHeap
 
typedef enum MEMExpHeapMode MEMExpHeapMode
 
typedef enum MEMExpHeapDirection MEMExpHeapDirection
 

Enumerations

enum  MEMExpHeapMode { MEM_EXP_HEAP_MODE_FIRST_FREE = 0, MEM_EXP_HEAP_MODE_NEAREST_SIZE = 1 }
 
enum  MEMExpHeapDirection { MEM_EXP_HEAP_DIR_FROM_TOP = 0, MEM_EXP_HEAP_DIR_FROM_BOTTOM = 1 }
 

Functions

MEMExpandedHeapMEMCreateExpHeap (MEMExpandedHeap *heap, uint32_t size)
 
MEMExpandedHeapMEMCreateExpHeapEx (MEMExpandedHeap *heap, uint32_t size, uint16_t flags)
 
MEMExpandedHeapMEMDestroyExpHeap (MEMExpandedHeap *heap)
 
void MEMiDumpExpHeap (MEMExpandedHeap *heap)
 
void * MEMAllocFromExpHeap (MEMExpandedHeap *heap, uint32_t size)
 
void * MEMAllocFromExpHeapEx (MEMExpandedHeap *heap, uint32_t size, int alignment)
 
void MEMFreeToExpHeap (MEMExpandedHeap *heap, uint8_t *block)
 
MEMExpHeapMode MEMSetAllocModeForExpHeap (MEMExpandedHeap *heap, MEMExpHeapMode mode)
 
MEMExpHeapMode MEMGetAllocModeForExpHeap (MEMExpandedHeap *heap)
 
uint32_t MEMAdjustExpHeap (MEMExpandedHeap *heap)
 
uint32_t MEMResizeForMBlockExpHeap (MEMExpandedHeap *heap, uint8_t *address, uint32_t size)
 
uint32_t MEMGetTotalFreeSizeForExpHeap (MEMExpandedHeap *heap)
 
uint32_t MEMGetAllocatableSizeForExpHeap (MEMExpandedHeap *heap)
 
uint32_t MEMGetAllocatableSizeForExpHeapEx (MEMExpandedHeap *heap, int alignment)
 
uint16_t MEMSetGroupIDForExpHeap (MEMExpandedHeap *heap, uint16_t id)
 
uint16_t MEMGetGroupIDForExpHeap (MEMExpandedHeap *heap)
 
uint32_t MEMGetSizeForMBlockExpHeap (uint8_t *addr)
 
uint16_t MEMGetGroupIDForMBlockExpHeap (uint8_t *addr)
 
MEMExpHeapDirection MEMGetAllocDirForMBlockExpHeap (uint8_t *addr)
 

Detailed Description

Typedef Documentation

Definition at line 14 of file expandedheap.h.

Enumeration Type Documentation

Enumerator
MEM_EXP_HEAP_DIR_FROM_TOP 
MEM_EXP_HEAP_DIR_FROM_BOTTOM 

Definition at line 27 of file expandedheap.h.

Enumerator
MEM_EXP_HEAP_MODE_FIRST_FREE 
MEM_EXP_HEAP_MODE_NEAREST_SIZE 

Definition at line 21 of file expandedheap.h.

Function Documentation

uint32_t MEMAdjustExpHeap ( MEMExpandedHeap heap)
void* MEMAllocFromExpHeap ( MEMExpandedHeap heap,
uint32_t  size 
)
void* MEMAllocFromExpHeapEx ( MEMExpandedHeap heap,
uint32_t  size,
int  alignment 
)
MEMExpandedHeap* MEMCreateExpHeap ( MEMExpandedHeap heap,
uint32_t  size 
)
MEMExpandedHeap* MEMCreateExpHeapEx ( MEMExpandedHeap heap,
uint32_t  size,
uint16_t  flags 
)
MEMExpandedHeap* MEMDestroyExpHeap ( MEMExpandedHeap heap)
void MEMFreeToExpHeap ( MEMExpandedHeap heap,
uint8_t *  block 
)
uint32_t MEMGetAllocatableSizeForExpHeap ( MEMExpandedHeap heap)
uint32_t MEMGetAllocatableSizeForExpHeapEx ( MEMExpandedHeap heap,
int  alignment 
)
MEMExpHeapDirection MEMGetAllocDirForMBlockExpHeap ( uint8_t *  addr)
MEMExpHeapMode MEMGetAllocModeForExpHeap ( MEMExpandedHeap heap)
uint16_t MEMGetGroupIDForExpHeap ( MEMExpandedHeap heap)
uint16_t MEMGetGroupIDForMBlockExpHeap ( uint8_t *  addr)
uint32_t MEMGetSizeForMBlockExpHeap ( uint8_t *  addr)
uint32_t MEMGetTotalFreeSizeForExpHeap ( MEMExpandedHeap heap)
void MEMiDumpExpHeap ( MEMExpandedHeap heap)
uint32_t MEMResizeForMBlockExpHeap ( MEMExpandedHeap heap,
uint8_t *  address,
uint32_t  size 
)
MEMExpHeapMode MEMSetAllocModeForExpHeap ( MEMExpandedHeap heap,
MEMExpHeapMode  mode 
)
uint16_t MEMSetGroupIDForExpHeap ( MEMExpandedHeap heap,
uint16_t  id 
)