nn::os::SetupHeapForMemoryBlock Function#include <nn/os.h>
void SetupHeapForMemoryBlock(
size_t heapSize
);
| Name | Description | |
|---|---|---|
| in | heapSize | Specifies the size of the heap. |
This function sets up the OS to emulate the same memory environment that was used in CTR-SDK 0.9 and prior versions.
Calling this function sets up a memory environment with the following characteristics:
MemoryBlock class.MemoryBlock class.MemoryBlock class is used to set AutoStackManager for allocating the stack.If you use this function, then you must not use the following functions. Doing so could produce inconsistencies that prevent normal operations.
In addition, you must not directly access heap regions. Be sure to access only those regions that have been allocated using the MemoryBlock class.
CONFIDENTIAL