ProcUICalcMemorySize

Syntax

#include <cafe/procui.h>

u32 ProcUICalcMemorySize(u32 numCallbacks);

Parameters

numCallbacks The total number of callbacks to be registered in ProcUI.

Return Values

Non-negative value (>= 0) The size required by ProcUI.

Description

Returns the amount of memory required by ProcUI to handle the specified number of callbacks.

NOTE:
ProcUISetCallbackStackSize must not be called after ProcUICalcMemorySize.
NOTE:
The amount of memory required is equal to stackSize × 4 + numCallbacks × 132 + 20.

Do Not Call From

Multiple threads This function, while thread-safe, is designed to be called from only a single thread.

See Also

ProcUIInit
ProcUISetMemoryPool

Revision History

2013/05/08 Automated cleanup pass.
2012/05/04 Initial version.


CONFIDENTIAL