NNS_FndInitAllocatorForFrmHeap

Syntax

#include <nnsys/fnd.h>
void NNS_FndInitAllocatorForFrmHeap(
         NNSFndAllocator*    pAllocator,
         NNSFndHeapHandle    heap,
         int                 alignment);

Arguments

pAllocator NNSFndAllocator Structure Address.
heap Frame Heap Handle.
alignment Alignment value that is applied to each memory block allocated.

Return Values

None.

Description

Initializes the allocator to allocate and free the memory from the frame heap. The alignment values of all memory blocks allocated through the allocator are specified with the argument alignment.

With the frame heap, memory blocks cannot be freed in block units, so with allocators set to use the frame heap, NNS_FndFreeToAllocator() doesn't do anything.

See Also

NNS_FndInitAllocatorForExpHeap, NNS_FndInitAllocatorForUnitHeap, NNS_FndInitAllocatorForSDKHeap

Revision History

2004/08/02 Initial version.


CONFIDENTIAL