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

Go to the source code of this file.

Data Structures

struct  MEMExpHeapBlock
 
struct  MEMExpHeapBlockList
 
struct  MEMExpHeap
 

Typedefs

typedef struct MEMExpHeap MEMExpHeap
 
typedef struct MEMExpHeapBlock MEMExpHeapBlock
 
typedef struct MEMExpHeapBlockList MEMExpHeapBlockList
 
typedef void(* MEMExpHeapBlockVisitor) (void *block, MEMHeapHandle heap, void *context)
 
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

MEMHeapHandle MEMCreateExpHeapEx (void *heap, uint32_t size, uint16_t flags)
 
void * MEMDestroyExpHeap (MEMHeapHandle heap)
 
void * MEMAllocFromExpHeapEx (MEMHeapHandle heap, uint32_t size, int alignment)
 
void MEMFreeToExpHeap (MEMHeapHandle heap, void *block)
 
MEMExpHeapMode MEMSetAllocModeForExpHeap (MEMHeapHandle heap, MEMExpHeapMode mode)
 
MEMExpHeapMode MEMGetAllocModeForExpHeap (MEMHeapHandle heap)
 
uint32_t MEMAdjustExpHeap (MEMHeapHandle heap)
 
uint32_t MEMResizeForMBlockExpHeap (MEMHeapHandle heap, void *block, uint32_t size)
 
uint32_t MEMGetTotalFreeSizeForExpHeap (MEMHeapHandle heap)
 
uint32_t MEMGetAllocatableSizeForExpHeapEx (MEMHeapHandle heap, int alignment)
 
uint16_t MEMSetGroupIDForExpHeap (MEMHeapHandle heap, uint16_t id)
 
uint16_t MEMGetGroupIDForExpHeap (MEMHeapHandle heap)
 
uint32_t MEMGetSizeForMBlockExpHeap (void *block)
 
uint16_t MEMGetGroupIDForMBlockExpHeap (void *block)
 
MEMExpHeapDirection MEMGetAllocDirForMBlockExpHeap (void *block)
 
void MEMVisitAllocatedForExpHeap (MEMHeapHandle heap, MEMExpHeapBlockVisitor callback, void *context)