nn::os::SetupHeapForMemoryBlock Function

Syntax

#include <nn/os.h>

void SetupHeapForMemoryBlock(
     size_t heapSize
);

Arguments

Name Description
heapSize

Return Values

None.

Description

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: The MemoryBlock class can be used. The entire memory area remaining for use by the program will be configured as the heap.A MemoryBlock 8 MB in size is created from the heap. The malloc function in C and the new keyword in C++ then allocate memory from the MemoryBlock.

Revision History

2010/06/14
Initial version.

CONFIDENTIAL