|
|
||
Location:
asn1enc.h
Link against: asn1.lib
class CASN1EncBase : public CBase;
Base class for all ASN.1 types that we can encode.
CBase - Base class for all classes to be instantiated on the heapCASN1EncBase - Base class for all ASN.1 types that we can encodeDefined in CASN1EncBase:
CASN1EncBase(), ConstructL(), LengthDER(), SetTag(), WriteDERL(), iContentsLengthDER, iLengthLengthDER, iTagLengthDER, ~CASN1EncBase()
Inherited from CBase:
Delete(),
Extension_(),
operator new()
protected: IMPORT_C CASN1EncBase(const TTagType aType, const TASN1Class aClass);
Protected constructor
|
protected: virtual IMPORT_C void ConstructL();
Must call this version from derived classes in their ConstructL, but only once they're ready to have CalculateContentsLengthDER called on them.
IMPORT_C TUint LengthDER() const;
Gives total number of octets in the DER encoding of this object.
|
IMPORT_C void WriteDERL(TDes8 &aBuf, TUint &aPos) const;
Writes entire DER encoding of this object into the given buffer.
|
IMPORT_C void SetTag(const TTagType aType, const TASN1Class aClass=EContextSpecific);
Sets tag type/class of the encoding object
|
protected: TUint iContentsLengthDER;
Length of DER encoded content.