class TPtrC16 : public TDesC16 |
16-bit non-modifiable pointer descriptor.
This is a descriptor class intended for instantiation and encapsulates a pointer to the 16-bit data that it represents. The data can live in ROM or RAM and this location is separate from the descriptor object itself.
The data is intended to be accessed, but not changed, through this descriptor. The base class provides the functions through which data is accessed.
Public Member Functions | |
---|---|
TPtrC16 () | |
TPtrC16 (const TDesC16 &) | |
TPtrC16 (const TUint16 *) | |
TPtrC16 (const TUint16 *, TInt ) | |
void | Set (const TUint16 *, TInt ) |
void | Set (const TDesC16 &) |
void | Set (const TPtrC16 &) |
Private Member Functions | |
---|---|
TPtrC16 & | operator= (const TPtrC16 &) |
Inherited Enumerations | |
---|---|
TDesC16:TPrefix |
Protected Attributes | |
---|---|
const TUint16 * | iPtr |
Private Attributes | |
---|---|
__DECLARE_TEST |
IMPORT_C | TPtrC16 | ( | ) |
Constructs an empty 16-bit non-modifiable pointer descriptor.
It represents no data and its length is zero.
The non-modifiable pointer descriptor can, subsequently, be set to represent data.
IMPORT_C | TPtrC16 | ( | const TDesC16 & | aDes | ) |
Constructs the 16-bit non-modifiable pointer descriptor from any existing descriptor.
It is set to point to the same data and is given the same length as the source descriptor.
const TDesC16 & aDes | A reference to a 16-bit non-modifiable descriptor. |
IMPORT_C | TPtrC16 | ( | const TUint16 * | aString | ) |
Constructs the 16-bit non-modifiable pointer descriptor to point to a zero terminated string, whether in RAM or ROM.
The length of the descriptor is set to the length of the zero terminated string, excluding the zero terminator.
const TUint16 * aString | A pointer to a zero terminated string. |
IMPORT_C | TPtrC16 | ( | const TUint16 * | aBuf, |
TInt | aLength | |||
) |
Constructs the 16-bit non-modifiable pointer descriptor to point to the specified location in memory, whether in RAM or ROM.
The length of the descriptor is set to the specified length.
void | Set | ( | const TUint16 * | aBuf, |
TInt | aLength | |||
) | [inline] |
Sets the 16-bit non-modifiable pointer descriptor to point to the specified location in memory, whether in RAM or ROM.
The length of the descriptor is set to the specified length.
void | Set | ( | const TDesC16 & | aDes | ) | [inline] |
Sets the 16-bit non-modifiable pointer descriptor from the specified descriptor.
It is set to point to the same data and is given the same length.
const TDesC16 & aDes | A reference to a 16-bit non-modifiable descriptor |
TPtrC16 & | operator= | ( | const TPtrC16 & | aDes | ) | [private] |
const TPtrC16 & aDes |
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.