MEMCreateFrmHeap

Syntax

#include <cafe/mem.h>

static inline MEMHeapHandle
MEMCreateFrmHeap(
    void*   startAddress,
    u32     size
)

Parameters

startAddress Start address of the memory region to allocate to the heap.
size Size in bytes of the memory region allocated to the heap.

Return Values

Returns the heap handle when a heap was successfully created. Returns MEM_HEAP_INVALID_HANDLE (a null value) if a heap could not be created.

Description

Creates the frame heap. The heap region is a memory region with a size specified by size and a start address specified by startAddress.

Do Not Call From

Multiple threads This function is not thread-safe.
Callbacks Do not call this function from any callback function.

See Also

MEMCreateFrmHeapEx

Revision History

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


CONFIDENTIAL