GetRequiredHeapSize

nn::fnd::UnitHeapTemplate::GetRequiredHeapSize Member Function

Syntax

static size_t GetRequiredHeapSize(
     size_t unit,
     size_t numUnit,
     s32 alignment = DEFAULT_ALIGNMENT
);

Parameters

Name Description
in unit The size of the unit
in numUnit Number of blocks to allocate.
in alignment Alignment of the unit.

Return Values

Description

Gets the minimum size of heap memory required to manage the specified number of blocks of the specified unit size and alignment.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL