Location:
e32des8.h
Link against: euser.lib
TPtrC8
Supported from 5.0
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.
|
Defined in TPtrC8
:
Set()
, TPtrC8()
Inherited from TDesC8
:
Alloc()
,
AllocL()
,
AllocLC()
,
Compare()
,
CompareC()
,
CompareF()
,
Find()
,
FindC()
,
FindF()
,
Left()
,
Length()
,
Locate()
,
LocateF()
,
LocateReverse()
,
LocateReverseF()
,
Match()
,
MatchC()
,
MatchF()
,
Mid()
,
Ptr()
,
Right()
,
Size()
,
operator!=()
,
operator<()
,
operator<=()
,
operator==()
,
operator>()
,
operator>=()
,
operator[]()
TPtrC8();
Default constructor.
Constructs an empty 8 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.
TPtrC8(const TPtrC8& aDes);
Copy constructor.
Constructs the 8 bit non-modifiable pointer descriptor from an existing non-modifiable pointer descriptor.
It is set to point to the same data and is given the same length as the source non-modifiable pointer descriptor.
|
TPtrC8(const TDesC8& aDes);
Constructs the 8 bit non-modifiable pointer descriptor from any existing descriptor.
It is set to point to the same data and is given the same length.
|
TPtrC8(const TUint8* aString);
Constructs the 8 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.
|
TPtrC8(const TUint8* aBuf,TInt aLength);
Constructs the 8 bit non-modifiable pointer descriptor to point to the the specified location in memory, whether in RAM or ROM. The length of the descriptor is set to the specified length.
|
void Set(const TDesC8& aDes);
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.
|
void Set(const TUint8* aBuf,TInt aLength);
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.
|