nn::fnd::ExpHeapTemplate::Adjust Member Functionu32 Adjust(); MemoryRange Adjust( HeapAdjustMode mode );
Adjust()
|
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. |
Adjust(HeapAdjustMode)
|
Frees unused areas of the expanded heap to reduce the amount of memory the expanded heap uses. |
Adjust()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 theAdjust(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.Adjust(HeapAdjustMode)Adjust function that takes no arguments. This function returns an nn::fnd::MemoryRange object as its return value. This nn::fnd::MemoryRange object can be used to create a new heap in the freed memory region.
We do not recommend using the version of the Adjust function that takes no arguments. When using the Adjust function, use the version documented on this page.CONFIDENTIAL