NNS_FndAllocFromExpHeap

Syntax

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

Arguments

heap Extended heap handle
size Memory block size (in bytes)

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 a memory block from the extended heap. The memory block has an alignment of 4.

The size of the memory block may be larger than desired if the memory block was able to be allocated. In order to determine the actual allocated size (in bytes), use the NNS_FndGetSizeForMBlockExpHeap() function.

See Also

NNS_FndAllocFromExpHeapEx, NNS_FndFreeToExpHeap, NNS_FndCreateExpHeap, NNS_FndCreateExpHeapEx

Revision History

2004/04/01 Initial version.


CONFIDENTIAL