nn::fnd::FrameHeapTemplate::Adjust Member FunctionMemoryRange Adjust( int mode = NN_FND_FRAMEHEAP_ADJUST_TAIL );
| Name | Description | |
|---|---|---|
| in | mode | Specifies the direction in which to reduce memory blocks. |
Resizes the frame heap to the minimum size required to encompass the memory blocks that have been allocated.
Specifying NN_FND_FRAMEHEAP_ADJUST_TAIL (or any positive value) for the mode argument changes the endpoint of the frame heap region by discarding the empty region at the end of the frame heap. If the memory block at the end of the heap has been allocated, this function fails.
Specifying NN_FND_FRAMEHEAP_ADJUST_HEAD (or any negative value) for the mode argument changes the trailing endpoint of the frame heap region by discarding the empty region at the start of the frame heap. If the memory block at the start of the heap has been allocated, this function fails.
CONFIDENTIAL