|
||
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.
TDesC8
-
Abstract base class for 8-bit non-modifiable descriptors.
TPtrC8
-
8-bit non-modifiable pointer descriptor.
Defined in TPtrC8
:
Set(const TDesC8 &)
Sets the 8-bit non-modifiable pointer descriptor from the specified descriptor.Set(const TPtrC8 &)
Sets the 8-bit non-modifiable pointer descriptor from the specified non-modifiab...Set(const TUint8 *,TInt)
Sets the 8-bit non-modifiable pointer descriptor to point to the specified locat...TPtrC8()
Default constructor.TPtrC8(const TDesC8 &)
Constructs the 8-bit non-modifiable pointer descriptor from any existing descrip...TPtrC8(const TUint8 *)
Constructs the 8-bit non-modifiable pointer descriptor to point to a zero termin...TPtrC8(const TUint8 *,TInt)
Constructs the 8-bit non-modifiable pointer descriptor to point to the specified...iPtr
Inherited from TDesC8
:
Alloc()const
Creates a new 8-bit heap descriptor and initialises it with a copy of this descr...AllocL()const
Creates a new 8-bit heap descriptor and initialises it with a copy of this descr...AllocLC()const
Creates a new 8-bit heap descriptor, initialises it with a copy of this descript...AtC(TInt)const
Compare(const TDesC8 &)const
Compares this descriptor's data with the specified descriptor's data.CompareC(const TDesC8 &)const
Compares this descriptor's data with the specified descriptor's data using the s...CompareF(const TDesC8 &)const
Compares this descriptor's folded data with the specified descriptor's folded da...DoSetLength(TInt)
Find(const TDesC8 &)const
Searches for the first occurrence of the specified data sequence within this des...Find(const TUint8 *,TInt)const
Searches for the first occurrence of the specified data sequence within this des...FindC(const TDesC8 &)const
Searches for the first occurrence of the specified collated data sequence within...FindC(const TUint8 *,TInt)const
Searches for the first occurrence of the specified collated data sequence within...FindF(const TDesC8 &)const
Searches for the first occurrence of the specified folded data sequence within t...FindF(const TUint8 *,TInt)const
Searches for the first occurrence of the specified folded data sequence within t...Left(TInt)const
Extracts the leftmost part of the data.Length()const
Gets the length of the data.Locate(TChar)const
Searches for the first occurrence of a character within this descriptor's data.LocateF(TChar)const
Searches for the first occurrence of a folded character within this descriptor's...LocateReverse(TChar)const
Searches for the first occurrence of a character within this descriptor's data, ...LocateReverseF(TChar)const
Searches for the first occurrence of a folded character within this descriptor's...Match(const TDesC8 &)const
Searches this descriptor's data for a match with the match pattern supplied in t...MatchC(const TDesC8 &)const
Searches this descriptor's collated data for a match with the collated match pat...MatchF(const TDesC8 &)const
Searches this descriptor's folded data for a match with the folded match pattern...Mid(TInt)const
Extracts a portion of the data.Mid(TInt,TInt)const
Extracts a portion of the data.Ptr()const
Gets a pointer to the data represented by the descriptor.Right(TInt)const
Extracts the rightmost part of the data.Size()const
Gets the size of the data.TDesC8(TInt,TInt)
Type()const
operator!=(const TDesC8 &)const
Determines whether this descriptor's data is not equal to the specified descript...operator>(const TDesC8 &)const
Determines whether this descriptor's data is greater than the specified descript...operator>=(const TDesC8 &)const
Determines whether this descriptor's data is greater than or equal to the specif...operator<(const TDesC8 &)const
Determines whether this descriptor's data is less than the specified descriptor'...operator<=(const TDesC8 &)const
Determines whether this descriptor's data is less than or equal to the specified...operator==(const TDesC8 &)const
Determines whether this descriptor's data is equal to the specified descriptor's...operator[](TInt)const
Gets a reference to a single data item within this descriptor's data.TBuf8
A descriptor class which provides a buffer of fixed length for containing, acces...IMPORT_C 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::Set(const TUint8 *,TInt)
Sets the 8-bit non-modifiable pointer descriptor to point to the specified locat...IMPORT_C 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 as the source descriptor.
|
IMPORT_C 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.
|
IMPORT_C TPtrC8(const TUint8 *aBuf, TInt aLength);
Constructs 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.
|
|
inline 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.
|
|
inline 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.
|
inline void Set(const TPtrC8 &aPtr);
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.
|
protected: const TUint8 * iPtr;