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

Data Structures

struct  MEMExpandedHeapBlock
 
struct  MEMExpandedHeapBlockList
 
struct  MEMExpandedHeap
 

Typedefs

typedef struct MEMExpandedHeap MEMExpandedHeap
 
typedef struct MEMExpandedHeapBlock MEMExpandedHeapBlock
 
typedef struct MEMExpandedHeapBlockList MEMExpandedHeapBlockList
 
typedef enum MEMExpandedHeapMode MEMExpandedHeapMode
 
typedef enum MEMExpandedHeapDirection MEMExpandedHeapDirection
 

Enumerations

enum  MEMExpandedHeapMode
 
enum  MEMExpandedHeapDirection
 

Functions

MEMExpandedHeapMEMCreateExpHeapEx (MEMExpandedHeap *heap, uint32_t size, uint16_t flags)
 
MEMExpandedHeapMEMDestroyExpHeap (MEMExpandedHeap *heap)
 
void * MEMAllocFromExpHeapEx (MEMExpandedHeap *heap, uint32_t size, int alignment)
 
void MEMFreeToExpHeap (MEMExpandedHeap *heap, uint8_t *block)
 
MEMExpandedHeapMode MEMSetAllocModeForExpHeap (MEMExpandedHeap *heap, MEMExpandedHeapMode mode)
 
MEMExpandedHeapMode 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 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)
 
MEMExpandedHeapDirection MEMGetAllocDirForMBlockExpHeap (uint8_t *addr)
 

Detailed Description

Typedef Documentation

Definition at line 14 of file expandedheap.h.

Definition at line 15 of file expandedheap.h.

Definition at line 16 of file expandedheap.h.

Enumeration Type Documentation

Enumerator
MEM_EXP_HEAP_MODE_FIRST_FREE 
MEM_EXP_HEAP_MODE_NEAREST_SIZE 

Definition at line 18 of file expandedheap.h.

Enumerator
MEM_EXP_HEAP_DIR_FROM_TOP 
MEM_EXP_HEAP_DIR_FROM_BOTTOM 

Definition at line 24 of file expandedheap.h.

Function Documentation

MEMExpandedHeap* MEMCreateExpHeapEx ( MEMExpandedHeap heap,
uint32_t  size,
uint16_t  flags 
)
MEMExpandedHeap* MEMDestroyExpHeap ( MEMExpandedHeap heap)
void* MEMAllocFromExpHeapEx ( MEMExpandedHeap heap,
uint32_t  size,
int  alignment 
)
void MEMFreeToExpHeap ( MEMExpandedHeap heap,
uint8_t *  block 
)
MEMExpandedHeapMode MEMSetAllocModeForExpHeap ( MEMExpandedHeap heap,
MEMExpandedHeapMode  mode 
)
MEMExpandedHeapMode 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 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)
MEMExpandedHeapDirection MEMGetAllocDirForMBlockExpHeap ( uint8_t *  addr)