MEMAllocFromBlockHeapAt

Syntax

#include <cafe/mem.h>

void* MEMAllocFromBlockHeapAt(
    		MEMHeapHandle    heap,
    		void *           place,
    		u32              size );

Parameters

heap Block heap handle.
place Address within the memory range tracked where the block is to be allocated.
size Size in bytes of the allocation.

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. If the allocate specified cannot be made precisely as is, NULL is returned. No alignment checks or adjustments are ever performed for this function.

Description

Allocates a memory area from the block heap at a specific position and size.

Do Not Call From

Callbacks Do not call this function from any callback function.

See Also

MEMAddBlockHeapTracking
MEMAllocFromBlockHeap
MEMAllocFromBlockHeapEx
MEMDestroyBlockHeap
MEMFreeToBlockHeap
MEMGetTrackingLeftInBlockHeap
MEMInitBlockHeap

Revision History

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


CONFIDENTIAL