TOverlayArray Class Reference
For building an array on top of
TDes8
. This is like casting a
TDes8
data pointer to an array, but it provides protection against array boundary violations, and some small helpful utilities. The motivation of this class is to help in handling the information accessed by MNetworkInfo interface.
Constructor & Destructor Documentation
TOverlayArray(TDes8 &)
TOverlayArray
|
(
|
TDes8
&
|
aDes
|
)
|
[inline]
|
Member Functions Documentation
IndexPtr(TInt)
T *
|
IndexPtr
|
(
|
TInt
|
aIndex
|
)
|
[inline]
|
Returns pointer to the given element location in the array. If the index exceeds the maximum length of the array, NULL is returned.
Length()
Returns the current length of the array in the number of array elements. The length information is based on the current underlaying descriptor length, which may not always be the desired result.
MaxLength()
TInt
|
MaxLength
|
(
|
)
|
[inline]
|
Returns the maximum length of the array in the number of array elements.
SetLength(TInt)
void
|
SetLength
|
(
|
TInt
|
aLength
|
)
|
[inline]
|
Set the length of the underlaying descriptor. The parameter is given in the number of array elements, which is then multiplied by a length of one element to determine the needed descriptor length.
operator[](TInt)
T &
|
operator[]
|
(
|
TInt
|
aIndex
|
)
|
[inline]
|
Return the given element of the array. No boundary checking.
Member Data Documentation
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.