Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <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:


Construction and destruction


TASN1DecTeletexString()

IMPORT_C TASN1DecTeletexString();

Description

[Top]


Member functions


DecodeDERL(const TDesC8 &,TInt &)

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

HBufC16 *

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


DecodeDERL(const TASN1DecGeneric &)

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

HBufC16 *

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


CheckValid(const TDesC8 &)

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

Description

Parameters

const TDesC8 &aSource

Return value

TInt