nn::fnd::ExpHeapTemplate::Adjust Member Function

Syntax

u32 Adjust();

Arguments

None.

Return Values

On success, returns the overall size of the extended heap after reducing its size. On failure, returns 0.

Description

Use of this function is NOT recommended. This function frees unused areas at the tail of the expanded heap to reduce the amount of memory the expanded heap uses.

This function's return value cannot be used to determine the result of the operation. A value of zero can indicate two different situations: (1) that adjustment failed, or (2) that adjustment reduced the heap size to zero because no part of the heap was allocated.

This function is retained for compatibility. Use the Adjust(mode) function instead. That version of the function allows you to specify the direction of adjustment, and returns the range of memory that was freed up as an nn::fnd::MemoryRange object.

Revision History

2010/01/14
Added Adjust(mode) as the new interface. The function on this page is no longer recommended.
2010/01/07
Initial version.

CONFIDENTIAL