wut  v1.5.0
Wii U Toolchain
Data Structures | Typedefs | Enumerations | Functions
Frame Heap
Collaboration diagram for Frame Heap:

Data Structures

struct  MEMFrmHeapState
 
struct  MEMFrmHeap
 

Typedefs

typedef enum MEMFrmHeapFreeMode MEMFrmHeapFreeMode
 
typedef struct MEMFrmHeap MEMFrmHeap
 
typedef struct MEMFrmHeapState MEMFrmHeapState
 

Enumerations

enum  MEMFrmHeapFreeMode {
  MEM_FRM_HEAP_FREE_HEAD = 1 << 0 ,
  MEM_FRM_HEAP_FREE_TAIL = 1 << 1 ,
  MEM_FRM_HEAP_FREE_ALL = MEM_FRM_HEAP_FREE_HEAD | MEM_FRM_HEAP_FREE_TAIL
}
 

Functions

MEMHeapHandle MEMCreateFrmHeapEx (void *heap, uint32_t size, uint32_t flags)
 
void * MEMDestroyFrmHeap (MEMHeapHandle heap)
 
void * MEMAllocFromFrmHeapEx (MEMHeapHandle heap, uint32_t size, int alignment)
 
void MEMFreeToFrmHeap (MEMHeapHandle heap, MEMFrmHeapFreeMode mode)
 
BOOL MEMRecordStateForFrmHeap (MEMHeapHandle heap, uint32_t tag)
 
BOOL MEMFreeByStateToFrmHeap (MEMHeapHandle heap, uint32_t tag)
 
uint32_t MEMAdjustFrmHeap (MEMHeapHandle heap)
 
uint32_t MEMResizeForMBlockFrmHeap (MEMHeapHandle heap, uint32_t addr, uint32_t size)
 
uint32_t MEMGetAllocatableSizeForFrmHeapEx (MEMHeapHandle heap, int alignment)
 

Detailed Description


Data Structure Documentation

◆ MEMFrmHeapState

struct MEMFrmHeapState

Definition at line 25 of file memfrmheap.h.

Data Fields
uint32_t tag
void * head
void * tail
MEMFrmHeapState * previous

◆ MEMFrmHeap

struct MEMFrmHeap

Definition at line 38 of file memfrmheap.h.

Data Fields
MEMHeapHeader header
void * head
void * tail
MEMFrmHeapState * previousState

Typedef Documentation

◆ MEMFrmHeapFreeMode

◆ MEMFrmHeap

typedef struct MEMFrmHeap MEMFrmHeap

Definition at line 1 of file memfrmheap.h.

◆ MEMFrmHeapState

Definition at line 1 of file memfrmheap.h.

Enumeration Type Documentation

◆ MEMFrmHeapFreeMode

Enumerator
MEM_FRM_HEAP_FREE_HEAD 
MEM_FRM_HEAP_FREE_TAIL 
MEM_FRM_HEAP_FREE_ALL 

Definition at line 15 of file memfrmheap.h.

Function Documentation

◆ MEMCreateFrmHeapEx()

MEMHeapHandle MEMCreateFrmHeapEx ( void *  heap,
uint32_t  size,
uint32_t  flags 
)

◆ MEMDestroyFrmHeap()

void* MEMDestroyFrmHeap ( MEMHeapHandle  heap)

◆ MEMAllocFromFrmHeapEx()

void* MEMAllocFromFrmHeapEx ( MEMHeapHandle  heap,
uint32_t  size,
int  alignment 
)

◆ MEMFreeToFrmHeap()

void MEMFreeToFrmHeap ( MEMHeapHandle  heap,
MEMFrmHeapFreeMode  mode 
)

◆ MEMRecordStateForFrmHeap()

BOOL MEMRecordStateForFrmHeap ( MEMHeapHandle  heap,
uint32_t  tag 
)

◆ MEMFreeByStateToFrmHeap()

BOOL MEMFreeByStateToFrmHeap ( MEMHeapHandle  heap,
uint32_t  tag 
)

◆ MEMAdjustFrmHeap()

uint32_t MEMAdjustFrmHeap ( MEMHeapHandle  heap)

◆ MEMResizeForMBlockFrmHeap()

uint32_t MEMResizeForMBlockFrmHeap ( MEMHeapHandle  heap,
uint32_t  addr,
uint32_t  size 
)

◆ MEMGetAllocatableSizeForFrmHeapEx()

uint32_t MEMGetAllocatableSizeForFrmHeapEx ( MEMHeapHandle  heap,
int  alignment 
)