nn::fnd::FrameHeapTemplate::Adjust Member Function

Syntax

MemoryRange Adjust(
     int mode = NN_FND_FRAMEHEAP_ADJUST_TAIL
);

Arguments

Name Description
in mode Specifies the direction in which to reduce memory blocks.

Return Values

Returns the range of the memory region that has become available as a result of the reduction in heap size.

Description

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.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL