MEMAllocFromBlockHeap

Syntax

#include <cafe/mem.h>

static inline void *
MEMAllocFromBlockHeap(
    MEMHeapHandle    heap,
    u32              size
)

Parameters

heap Block heap handle.
size Size of the memory area to allocate in bytes.

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.

Description

Allocates a memory area from the block heap. The memory area has an alignment of 4.

Do Not Call From

Callbacks Do not call this function from any callback function.

See Also

MEMAddBlockHeapTracking
MEMAllocFromBlockHeapAt
MEMAllocFromBlockHeapEx
MEMDestroyBlockHeap
MEMFreeToBlockHeap
MEMGetTrackingLeftInBlockHeap
MEMInitBlockHeap

Revision History

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


CONFIDENTIAL