Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: asn1dec.h
Link against: asn1.lib

Class TASN1DecTeletexString

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()


Construction and destruction


TASN1DecTeletexString()

IMPORT_C TASN1DecTeletexString();

Description

[Top]


Member functions


DecodeDERL()

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.


DecodeDERL()

IMPORT_C HBufC *DecodeDERL(const TASN1DecGeneric &Source);

Description

Decodes an ASN.1 format Teletex string.

Parameters

const TASN1DecGeneric &Source

ASN.1 Teletex string to be decoded.

Return value

HBufC *

On return, a pointer to a buffer containing the raw data converted to 16bits.


CheckValid()

protected: IMPORT_C TInt CheckValid(const TDesC8 &aSource);

Description

Parameters

const TDesC8 &aSource

Return value

TInt