WPADGetWorkMemorySize

Syntax

#include <revolution/wpad.h>

u32 WPADGetWorkMemorySize( void );

Arguments

None.

Return Values

Returns the size of the work memory obtained when the library was initialized.

Description

Gets the size of the work memory obtained when the library was initialized. The total memory size is allocated through the allocator registered with the WPADRegisterAllocator function. Make sure the registered allocator gets the memory of a size that is larger than that returned by this function.When allocating memory from the heap, remember that the heap header size is not included.

See Also

WPADRegisterAllocator

Revision History

2006/09/18 Added notes regarding allocation from the heap.
2006/09/12 Added an explanation of the total memory size.
2006/08/15 Initial version.


CONFIDENTIAL