Location:
asn1dec.h
Link against: asn1.lib
class TASN1DecTeletexString;
Description
Class used for decoding Teletex strings. The TeletexString type is not fully supported by this library. Instead the decode
methods perform a direct conversion from 8 to 16bits by adding null characters in the second byte of each character. This
will work as expected for cases where the string contains ASCII data. As this is non-destructive, the original data can be
retrieved by performing a Copy to an 8-bit descriptor.
Members
Defined in TASN1DecTeletexString
:
CheckValid()
, DecodeDERL()
, DecodeDERL()
, TASN1DecTeletexString()
IMPORT_C TASN1DecTeletexString();
Description
IMPORT_C HBufC *DecodeDERL(const TDesC8 &aSource, TInt &aPos);
Description
Decodes an ASN.1 format Teletex string.
Parameters
const TDesC8 &aSource |
ASN.1 Teletex string to be decoded.
|
TInt &aPos |
Offset in aSource from where decoding starts.
|
|
Return value
HBufC *
|
On return, a pointer to a buffer containing the raw data converted to 16bits.
|
|
IMPORT_C HBufC *DecodeDERL(const TASN1DecGeneric &Source);
Description
Decodes an ASN.1 format Teletex string.
Parameters
Return value
HBufC *
|
On return, a pointer to a buffer containing the raw data converted to 16bits.
|
|
protected: IMPORT_C TInt CheckValid(const TDesC8 &aSource);
Description
Parameters
Return value