wut  v1.7.0
Wii U Toolchain
Data Structures | Typedefs | Enumerations | Functions
memexpheap.h File Reference
#include <wut.h>
#include "memheap.h"
Include dependency graph for memexpheap.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
 
typedef enum MEMExpHeapCheckFlags MEMExpHeapCheckFlags
 

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
}
 
enum  MEMExpHeapCheckFlags {
  MEM_EXP_HEAP_CHECK_FLAGS_NONE = 0 ,
  MEM_EXP_HEAP_CHECK_FLAGS_LOG_ERRORS = 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)
 
BOOL MEMCheckExpHeap (MEMHeapHandle handle, MEMExpHeapCheckFlags mode)