MEMAllocFromBlockHeapEx

Syntax

#include <cafe/mem.h>

void* MEMAllocFromBlockHeapEx(
    		MEMHeapHandle    heap,
    		u32              size,
    		int              alignment
    		);

Parameters

heap Block heap handle.
size Size in bytes of the allocation.
alignment Alignment to use on allocation address. Use a negative value to allocate top-down.

Return Values

When the memory area is allocated, the start address of this memory area is returned. When memory cannot be allocated, NULL is returned. The specified alignment is used. The allocated block is not modified in size to take up extra unused space in the heap.

Description

Allocates a memory area from the block heap using a specific alignment.

Do Not Call From

Callbacks Do not call this function from any callback function.

See Also

MEMAddBlockHeapTracking
MEMAllocFromBlockHeap
MEMAllocFromBlockHeapAt
MEMDestroyBlockHeap
MEMFreeToBlockHeap
MEMGetTrackingLeftInBlockHeap
MEMInitBlockHeap

Revision History

2013-05-08 Automated cleanup pass.
2010-11-01 Initial version.


CONFIDENTIAL