#include <asn1enc.h>
class CASN1EncBase : public CBase |
Protected Attributes | |
---|---|
TUint | iContentsLengthDER |
TUint | iLengthLengthDER |
TUint | iTagLengthDER |
Public Member Functions | |
---|---|
~CASN1EncBase() | |
IMPORT_C TUint | LengthDER() |
void | SetParent(CASN1EncBase *) |
IMPORT_C void | SetTag(const TTagType, const TASN1Class) |
IMPORT_C void | WriteDERL(TDes8 &, TUint &) |
Protected Member Functions | |
---|---|
CASN1EncBase(const TTagType, const TASN1Class) | |
void | CalculateLengthLengthDER() |
virtual IMPORT_C void | ConstructL() |
void | ContentsLengthChanged() |
Base class for all ASN.1 types that we can encode.
TUint | iContentsLengthDER | [protected] |
Length of DER encoded content.
TUint | iLengthLengthDER | [protected] |
Length of DER encoded length.
TUint | iTagLengthDER | [protected] |
Length of DER encoded tag.
IMPORT_C | CASN1EncBase | ( | const TTagType | aType, |
const TASN1Class | aClass | |||
) | [protected] |
Protected constructor
Parameters | |
---|---|
aType | Tag type of the new object |
aClass | Tag class of the new object. |
IMPORT_C | ~CASN1EncBase | ( | ) |
void | CalculateLengthLengthDER | ( | ) | [protected] |
Calculates number of octets in DER length encoding. Must set value of the appropriate data member. Made protected because it is needed by CASN1EncEncoding class.
IMPORT_C void | ConstructL | ( | ) | [protected, virtual] |
Must call this version from derived classes in their ConstructL, but only once they're ready to have CalculateContentsLengthDER called on them.
void | ContentsLengthChanged | ( | ) | [protected] |
Derived classes must call this if the length of their contents changes after construction.
IMPORT_C TUint | LengthDER | ( | ) | const |
Gives total number of octets in the DER encoding of this object.
void | SetParent | ( | CASN1EncBase * | aParent | ) |
Sets parent for the object
Parameters | |
---|---|
aParent | Pointer to an ASN.1 object that becomes this object's parent. |
IMPORT_C void | SetTag | ( | const TTagType | aType, |
const TASN1Class | aClass = EContextSpecific | |||
) |
Sets tag type/class of the encoding object
Parameters | |
---|---|
aType | Tag type to set |
aClass | Tag class to set. |