class TDesC8 |
Abstract base class for 8-bit non-modifiable descriptors.
The class encapsulates the data member containing the length of data represented by an 8-bit descriptor. It also provides member functions through which the data can be accessed, but not modified.
Data represented by this class is treated as a contiguous set of 8-bit (i.e. single byte) values or data items.
This class cannot be instantiated as it is intended to form part of a class hierarchy; it provides a well defined part of descriptor behaviour. It can, however, be passed as an argument type for functions which want access to descriptor data but do not need to modify that data.
Protected Member Functions | |
---|---|
TDesC8(TInt, TInt) | |
TDesC8() | |
IMPORT_C const TUint8 & | AtC(TInt) |
void | DoSetLength(TInt) |
TInt | Type() |
Private Attributes | |
---|---|
__DECLARE_TEST | |
TUint | iLength |
IMPORT_C TInt | CompareC | ( | const TDesC8 & | aDes | ) | const |
const TDesC8 & aDes |
IMPORT_C TInt | CompareF | ( | const TDesC8 & | aDes | ) | const |
const TDesC8 & aDes |
TInt | Length | ( | ) | const [inline] |
Gets the length of the data.
This is the number of 8-bit values or data items represented by the descriptor.
The length of the data represented by the descriptor.
TInt | Size | ( | ) | const [inline] |
Gets the size of the data.
This is the number of bytes occupied by the data represented by the descriptor.
The size of the data represented by the descriptor.
TBool | operator!= | ( | const TDesC8 & | aDes | ) | const [inline] |
Determines whether this descriptor's data is not equal to the specified descriptor's data.
The comparison is implemented using the Compare() member function.
True if not equal, false otherwise.
const TDesC8 & aDes | The 8-bit non-modifable descriptor whose data is to be compared with this descriptor's data. |
TBool | operator< | ( | const TDesC8 & | aDes | ) | const [inline] |
Determines whether this descriptor's data is less than the specified descriptor's data.
The comparison is implemented using the Compare() member function.
True if greater than or equal, false otherwise.
const TDesC8 & aDes | The 8-bit non-modifable descriptor whose data is to be compared with this descriptor's data. |
TBool | operator<= | ( | const TDesC8 & | aDes | ) | const [inline] |
Determines whether this descriptor's data is less than or equal to the specified descriptor's data.
The comparison is implemented using the Compare() member function.
True if less than or equal, false otherwise.
const TDesC8 & aDes | The 8-bit non-modifable descriptor whose data is to be compared with this descriptor's data. |
TBool | operator== | ( | const TDesC8 & | aDes | ) | const [inline] |
Determines whether this descriptor's data is equal to the specified descriptor's data.
The comparison is implemented using the Compare() member function.
True if equal, false otherwise.
const TDesC8 & aDes | The 8-bit non-modifable descriptor whose data is to be compared with this descriptor's data. |
TBool | operator> | ( | const TDesC8 & | aDes | ) | const [inline] |
Determines whether this descriptor's data is greater than the specified descriptor's data.
The comparison is implemented using the Compare() member function.
True if greater than, false otherwise.
const TDesC8 & aDes | The 8-bit non-modifable descriptor whose data is to be compared with this descriptor's data. |
TBool | operator>= | ( | const TDesC8 & | aDes | ) | const [inline] |
Determines whether this descriptor's data is greater than or equal to the specified descriptor's data.
The comparison is implemented using the Compare() member function.
True if greater than, false otherwise.
const TDesC8 & aDes | The 8-bit non-modifable descriptor whose data is to be compared with this descriptor's data. |
const TUint8 & | operator[] | ( | TInt | anIndex | ) | const [inline] |
Gets a reference to a single data item within this descriptor's data.
A reference to the data item.
panic
USER 21, if anIndex is negative or greater than or equal to the current length of the descriptor.
TInt anIndex | The position of the individual data item within the descriptor's data. This is an offset value; a zero value refers to the leftmost data position. |