lstring16.cpp File Reference

const TUint KDefaultExpandSize

const TUintKDefaultExpandSize

AlignCapacity(TInt)

TInt AlignCapacity(TIntaNewCapacity)[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

The new, aligned capacity

Parameters

TInt aNewCapacityThe size to be aligned