class TPtrC8 : public TDesC8 |
8-bit non-modifiable pointer descriptor.
This is a descriptor class intended for instantiation and encapsulates a pointer to the 8-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 | |
---|---|
TPtrC8() | |
TPtrC8(const TDesC8 &) | |
TPtrC8(const TUint8 *) | |
TPtrC8(const TUint8 *, TInt) | |
void | Set(const TUint8 *, TInt) |
void | Set(const TDesC8 &) |
void | Set(const TPtrC8 &) |
Private Member Functions | |
---|---|
TPtrC8 & | operator=(const TPtrC8 &) |
Protected Attributes | |
---|---|
const TUint8 * | iPtr |
Private Attributes | |
---|---|
__DECLARE_TEST |
void | Set | ( | const TUint8 * | aBuf, |
TInt | aLength | |||
) | [inline] |
Sets the 8-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.
panic
USER 29, if aLength is negative.
void | Set | ( | const TDesC8 & | aDes | ) | [inline] |
Sets the 8-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 TDesC8 & aDes | A reference to an 8-bit non-modifiable descriptor. |
void | Set | ( | const TPtrC8 & | aPtr | ) | [inline] |
Sets the 8-bit non-modifiable pointer descriptor from the specified non-modifiable pointer descriptor.
It is set to point to the same data and is given the same length.
const TPtrC8 & aPtr | A reference to an 8-bit non-modifiable pointer descriptor. |
TPtrC8 & | operator= | ( | const TPtrC8 & | aDes | ) | [private] |
const TPtrC8 & aDes |