wut  v1.5.0
Wii U Toolchain
Functions
ProcUI Memory Operations
Collaboration diagram for ProcUI Memory Operations:

Functions

uint32_t ProcUICalcMemorySize (uint32_t numCallbacks)
 Calculate the required size for the memory pool. More...
 
int32_t ProcUISetMemoryPool (void *pool, uint32_t size)
 Set a custom memory pool. More...
 
void ProcUISetCallbackStackSize (uint32_t size)
 Set the stack size for the callback threads. More...
 
void ProcUISetBucketStorage (void *buf, uint32_t size)
 Set a buffer to store the foreground bucket data after losing foreground. More...
 
void ProcUISetMEM1Storage (void *buf, uint32_t size)
 Set a buffer to store the MEM1 data after losing foreground. More...
 

Detailed Description

Function Documentation

◆ ProcUICalcMemorySize()

uint32_t ProcUICalcMemorySize ( uint32_t  numCallbacks)

Calculate the required size for the memory pool.

See also
Parameters
numCallbacksThe amount of callbacks which can be registered for each type.
Returns
The amount of memory required for the memory pool.

◆ ProcUISetMemoryPool()

int32_t ProcUISetMemoryPool ( void *  pool,
uint32_t  size 
)

Set a custom memory pool.

By default all allocations are done from the default heap.

See also
Parameters
poolThe allocated memory pool.
sizeThe size of the pool.
Returns
0 on success, negative value on error.

◆ ProcUISetCallbackStackSize()

void ProcUISetCallbackStackSize ( uint32_t  size)

Set the stack size for the callback threads.

Default: 0x2000

Parameters
sizeThe stack size.

◆ ProcUISetBucketStorage()

void ProcUISetBucketStorage ( void *  buf,
uint32_t  size 
)

Set a buffer to store the foreground bucket data after losing foreground.

Will be automatically restored after re-entering foreground.

Parameters
bufAllocated buffer in MEM2 to store the data.
sizeThe size of the buffer. Use OSGetForegroundBucketFreeArea to determine the size.

◆ ProcUISetMEM1Storage()

void ProcUISetMEM1Storage ( void *  buf,
uint32_t  size 
)

Set a buffer to store the MEM1 data after losing foreground.

Will be automatically restored after re-entering foreground.

Parameters
bufAllocated buffer in MEM2 to store the data.
sizeThe size of the buffer. Use OSGetMemBound for OS_MEM1 to determine the size.