wut  v1.7.0
Wii U Toolchain
Typedefs | Functions | Variables
Default Heap
Collaboration diagram for Default Heap:

Typedefs

typedef void *(* MEMAllocFromDefaultHeapFn) (uint32_t size)
 
typedef void *(* MEMAllocFromDefaultHeapExFn) (uint32_t size, int32_t alignment)
 
typedef void(* MEMFreeToDefaultHeapFn) (void *ptr)
 

Functions

void CoreInitDefaultHeap (MEMHeapHandle *outMem1, MEMHeapHandle *outFG, MEMHeapHandle *outMem2)
 Default implementation of __preinit_user. More...
 
void __preinit_user (MEMHeapHandle *outMem1, MEMHeapHandle *outFG, MEMHeapHandle *outMem2)
 Allows the user to completely customise the default heaps, this runs after the rpx code section has loaded but before the data section as the data sections are allocated from the default heap. More...
 

Variables

MEMAllocFromDefaultHeapFn MEMAllocFromDefaultHeap
 
MEMAllocFromDefaultHeapExFn MEMAllocFromDefaultHeapEx
 
MEMFreeToDefaultHeapFn MEMFreeToDefaultHeap
 

Detailed Description

Typedef Documentation

◆ MEMAllocFromDefaultHeapFn

typedef void*(* MEMAllocFromDefaultHeapFn) (uint32_t size)

Definition at line 15 of file memdefaultheap.h.

◆ MEMAllocFromDefaultHeapExFn

typedef void*(* MEMAllocFromDefaultHeapExFn) (uint32_t size, int32_t alignment)

Definition at line 16 of file memdefaultheap.h.

◆ MEMFreeToDefaultHeapFn

typedef void(* MEMFreeToDefaultHeapFn) (void *ptr)

Definition at line 17 of file memdefaultheap.h.

Function Documentation

◆ CoreInitDefaultHeap()

void CoreInitDefaultHeap ( MEMHeapHandle outMem1,
MEMHeapHandle outFG,
MEMHeapHandle outMem2 
)

Default implementation of __preinit_user.

◆ __preinit_user()

void __preinit_user ( MEMHeapHandle outMem1,
MEMHeapHandle outFG,
MEMHeapHandle outMem2 
)

Allows the user to completely customise the default heaps, this runs after the rpx code section has loaded but before the data section as the data sections are allocated from the default heap.

This is for a user to export from their .rpx file, it is not exported from coreinit.rpl

Variable Documentation

◆ MEMAllocFromDefaultHeap

MEMAllocFromDefaultHeapFn MEMAllocFromDefaultHeap
extern

◆ MEMAllocFromDefaultHeapEx

MEMAllocFromDefaultHeapExFn MEMAllocFromDefaultHeapEx
extern

◆ MEMFreeToDefaultHeap

MEMFreeToDefaultHeapFn MEMFreeToDefaultHeap
extern