MEMCreateUserHeapHandle

Syntax

#include <cafe/mem.h>

MEMHeapHandle MEMCreateUserHeapHandle(void* startAddress, u32 size);

Parameters

startAddress Starting address to use for the range of memory encompassing the user-defined heap.
size Number of bytes in the user-defined heap.

Return Values

If successful, this function returns a handle to the newly created user-defined heap. Zero is returned otherwise.

Description

This function allows you to mark a region of memory as a user-defined heap.

Do Not Call From

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

See Also

MEMAllocFromDefaultHeap
MEMAllocFromDefaultHeapEx
MEMFreeToDefaultHeap

Revision History

2014-02-28 Remove unused MEMInitDefaultHeap.
2013-05-08 Automated cleanup pass.
2010-11-01 Initial version.


CONFIDENTIAL