class TPtr16 : public TDes16 |
16-bit 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 and modified through this descriptor. The base classes provide the functions through which the data can be manipulated.
Public Member Functions | |
---|---|
TPtr16(TUint16 *, TInt) | |
TPtr16(TUint16 *, TInt, TInt) | |
void | Set(TUint16 *, TInt, TInt) |
void | Set(const TPtr16 &) |
TPtr16 & | operator=(const TUint16 *) |
TPtr16 & | operator=(const TDesC16 &) |
TPtr16 & | operator=(const TPtr16 &) |
Private Member Functions | |
---|---|
TPtr16(TBufCBase16 &, TInt) |
Inherited Enumerations | |
---|---|
TDesC16:TPrefix |
Protected Attributes | |
---|---|
TUint16 * | iPtr |
Private Attributes | |
---|---|
__DECLARE_TEST |
Inherited Attributes | |
---|---|
TDes16::iMaxLength |
IMPORT_C | TPtr16 | ( | TBufCBase16 & | aLcb, |
TInt | aMaxLength | |||
) | [private] |
TBufCBase16 & aLcb | |
TInt aMaxLength |
void | Set | ( | TUint16 * | aBuf, |
TInt | aLength, | |||
TInt | aMaxLength | |||
) | [inline] |
Sets the 16-bit modifiable pointer descriptor to point to the specified location in memory, whether in RAM or ROM.
The length of the descriptor and its maximum length are set to the specified values.
panic
USER 8, if aLength is negative or is greater than the maximum length of this descriptor.
panic
USER 18, if aMaxLength is negative.
void | Set | ( | const TPtr16 & | aPtr | ) | [inline] |
Sets the 16-bit modifiable pointer descriptor from an existing 16-bit modifiable pointer descriptor.
It is set to point to the same data, is given the same length and the same maximum length as the source pointer descriptor.
const TPtr16 & aPtr | The source 16-bit modifiable pointer descriptor. |
TPtr16 & | operator= | ( | const TUint16 * | aString | ) | [inline] |
Copies data into this 16-bit modifiable pointer descriptor replacing any existing data.
The length of this descriptor is set to reflect the new data.
A reference to this 16-bit modifiable pointer descriptor.
panic
USER 11, if the length of the string, excluding the zero terminator, is greater than the maximum length of this descriptor.
const TUint16 * aString | A pointer to a zero-terminated string. |
TPtr16 & | operator= | ( | const TDesC16 & | aDes | ) | [inline] |
Copies data into this 16-bit modifiable pointer descriptor replacing any existing data.
The length of this descriptor is set to reflect the new data.
A reference to this 16-bit modifiable pointer descriptor.
panic
USER 11, if the length of aDes is greater than the maximum length of this descriptor.
const TDesC16 & aDes | A 16-bit non-modifiable descriptor whose data is to be copied into this descriptor. |
TPtr16 & | operator= | ( | const TPtr16 & | aDes | ) | [inline] |
Copies data into this 16-bit modifiable pointer descriptor replacing any existing data.
The length of this descriptor is set to reflect the new data.
A reference to this 16-bit modifiable pointer descriptor.
panic
USER 11, if the length of aDes is greater than the maximum length of this descriptor.
const TPtr16 & aDes | A 16-bit modifiable pointer descriptor whose data is to be copied into this descriptor. |