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
TInt aNewCapacity | The size to be aligned |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.