wut  1.0.0-beta8
Wii U Toolchain
Data Structures | Typedefs | Enumerations | Functions
memfrmheap.h File Reference
#include <wut.h>
#include "memheap.h"

Go to the source code of this file.

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)