Go to the source code of this file.
Functions | |
static TInt | AlignCapacity (TInt aNewCapacity) |
static TInt AlignCapacity | ( | TInt | aNewCapacity | ) | [inline, static] |
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
aNewCapacity | The size to be aligned |
Definition at line 64 of file epoc_rs_buf8.cpp.
Referenced by RRsBuf8::ReserveL().
ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:49:58 2011 by Doxygen 1.6.1