wut v1.8.0
Wii U Toolchain
Loading...
Searching...
No Matches
Data Structures | Typedefs | Functions
memallocator.h File Reference
#include <wut.h>
#include "memheap.h"
Include dependency graph for memallocator.h:

Go to the source code of this file.

Data Structures

struct  MEMAllocator
 Holds context information that will be used to allocate and free memory. More...
 
struct  MEMAllocatorFunctions
 The alloc/free functions. More...
 

Typedefs

typedef struct MEMAllocatorFunctions MEMAllocatorFunctions
 
typedef struct MEMAllocator MEMAllocator
 
typedef void *(* MEMAllocatorAllocFn) (MEMAllocator *allocator, uint32_t size)
 
typedef void(* MEMAllocatorFreeFn) (MEMAllocator *allocator, void *ptr)
 

Functions

void * MEMAllocFromAllocator (MEMAllocator *allocator, uint32_t size)
 Allocates memory from the allocator.
 
void MEMFreeToAllocator (MEMAllocator *allocator, void *ptr)
 Frees memory back to the allocator.
 
void MEMInitAllocatorForExpHeap (MEMAllocator *allocator, MEMHeapHandle heap, uint32_t alignment)
 Initializes an allocator from an Expanded Heap.
 
void MEMInitAllocatorForFrmHeap (MEMAllocator *allocator, MEMHeapHandle heap, uint32_t alignment)
 Initializes an allocator from a Frame Heap.
 
void MEMInitAllocatorForUnitHeap (MEMAllocator *allocator, MEMHeapHandle heap)
 Initializes an allocator from a Unit Heap.
 
void MEMInitAllocatorForDefaultHeap (MEMAllocator *allocator)
 Initializes an allocator from the Default Heap.
 
void MEMInitAllocatorForBlockHeap (MEMAllocator *allocator, MEMHeapHandle heap, uint32_t alignment)
 Initializes an allocator from a Block Heap.