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. An 8MB MemoryBlock is created from the heap and initiliazed so malloc (in C) and new (in C++) can allocate memory.

Revision History

2010/06/14
Initial version.

CONFIDENTIAL