lstring16.cpp File Reference

const TUint KDefaultExpandSize

const TUint KDefaultExpandSize

AlignCapacity(TInt)

TInt AlignCapacity ( TInt aNewCapacity ) [static, inline]

Aligns the supplied capacity to the nearest growth factor

For performance reasons the growth factor, KDefaultExpandSizeShift, is expressed as an exponent of 2 so shifting can be used to achieve the alignment.

a KDefaultExpandSizeShift value of 4 is equivalent to 16; giving newCapacity = ((newCapacity / 16) + 1) * 16

Parameters

TInt aNewCapacity The size to be aligned