NNS_FndAllocFromFrmHeapEx

Syntax

#include <nnsys/fnd.h>
void*   NNS_FndAllocFromFrmHeapEx(
            NNSFndHeapHandle    heap,
            u32                 size,
            int                 alignment);

Arguments

heap Frame heap handle.
size Memory block size (in bytes)
alignment Memory block alignment. Can take any of the following values: 4, 8, 16 , 32, -4, -8, -16, -32.

Return Values

When the memory block has been allocated, it returns the starting address of that memory block. When the memory cannot be allocated, NULL is returned.

Description

Allocates the memory block from a frame heap.

The alignment of the memory block is determined by alignment. If the alignment value is negative, the memory block will be allocated from the back of the heap's empty region.

See Also

NNS_FndAllocFromFrmHeap, NNS_FndFreeToFrmHeap, NNS_FndCreateFrmHeap, NNS_FndCreateFrmHeapEx

Revision History

2004/04/01 Initial version.


CONFIDENTIAL