nn::ro::SizeInfo

nn::ro::SizeInfo Structure

Syntax

struct SizeInfo
{
uptr fix0End;
uptr fix1End;
uptr fix2End;
uptr fix3End;
size_t bufferSize;
};

Description

This structure stores memory size information required to load a cro.

This structure is used by GetSizeInfo.

One plus the end address of memory being managed by the ro library is stored if FIX_LEVEL_0, FIX_LEVEL_1, FIX_LEVEL_2, and FIX_LEVEL_3 have been specified in the fixLevel argument of LoadModule for each of fix0End, fix1End, fix2End, and Fix3End, respectively.

If FIX_LEVEL_[N] is specified in the fixLevel argument of LoadModule, the memory region from the address specified in the pRo argument of GetSizeInfo up to fix[N]End minus one is managed by the ro library. Because the memory region beyond fix[N]End is released once LoadModule succeeds, it can be used for other purposes.

Member Variables

fix0End uptr Stores a value of one plus the end address of the memory being managed by the ro library if FIX_LEVEL_NONE(FIX_LEVEL_0)is specified.
fix1End uptr Stores a value of one plus the end address of the memory being managed by the ro library if FIX_LEVEL_INTERNAL (FIX_LEVEL_1) is specified.
fix2End uptr Stores a value of one plus the end address of the memory being managed by the ro library if FIX_LEVEL_INTERNAL_IMPORT (FIX_LEVEL_2) is specified.
fix3End uptr Stores a value of one plus the end address of the memory being managed by the ro library if FIX_LEVEL_INTERNAL_IMPORT_EXPORT (FIX_LEVEL_3) is specified.
bufferSize size_t Stores the minimum size that can be assigned to the bufferSize argument of LoadModule. Although a size exceeding this value can be specified as an argument to LoadModule, the excess part is not used.

Revision History

2011/07/29
Initial version.

CONFIDENTIAL