Location:
e32des16.h
Link against: euser.lib
class TPtrC16 : public TDesC16;
16-bit non-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, but not changed, through this descriptor. The base class provides the functions through which data is accessed.
TDesC16
- Abstract base class for 16-bit descriptors
TPtrC16
- 16-bit non-modifiable pointer descriptor
Defined in TPtrC16
:
Set()
, Set()
, Set()
, TPtrC16()
, TPtrC16()
, TPtrC16()
, TPtrC16()
, iPtr
Inherited from TDesC16
:
Alloc()
,
AllocL()
,
AllocLC()
,
AtC()
,
Compare()
,
CompareC()
,
CompareF()
,
DoSetLength()
,
EIsNotPrefix
,
EIsPrefix
,
EMightBePrefix
,
Find()
,
FindC()
,
FindF()
,
HasPrefixC()
,
Left()
,
Length()
,
Locate()
,
LocateF()
,
LocateReverse()
,
LocateReverseF()
,
Match()
,
MatchC()
,
MatchF()
,
Mid()
,
Ptr()
,
Right()
,
Size()
,
TPrefix
,
Type()
,
operator!=()
,
operator>()
,
operator>=()
,
operator<()
,
operator<=()
,
operator==()
,
operator[]()
IMPORT_C TPtrC16();
Constructs an empty 16-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.
IMPORT_C TPtrC16(const TDesC16 &aDes);
Constructs the 16-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 TPtrC16(const TUint16 *aString);
Constructs the 16-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 TPtrC16(const TUint16 *aBuf, TInt aLength);
Constructs the 16-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 TUint16 *aBuf, TInt aLength);
Sets the 16-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 TDesC16 &aDes);
Sets the 16-bit non-modifiable pointer descriptor from the specified descriptor.
It is set to point to the same data and is given the same length.
|
protected: const TUint16 * iPtr;