CASN1EncBase Class Reference

#include <asn1enc.h>

class CASN1EncBase : public CBase

Inherits from

  • CASN1EncBase

    Detailed Description

    Base class for all ASN.1 types that we can encode.

    Member Attribute Documentation

    iContentsLengthDER

    TUint iContentsLengthDER[protected]

    Length of DER encoded content.

    iLengthLengthDER

    TUint iLengthLengthDER[protected]

    Length of DER encoded length.

    iTagLengthDER

    TUint iTagLengthDER[protected]

    Length of DER encoded tag.

    Constructor & Destructor Documentation

    CASN1EncBase ( const TTagType, const TASN1Class )

    IMPORT_CCASN1EncBase(const TTagTypeaType,
    const TASN1ClassaClass
    )[protected]

    Protected constructor

    ParameterDescription
    aTypeTag type of the new object
    aClassTag class of the new object.

    ~CASN1EncBase ( )

    IMPORT_C~CASN1EncBase()

    Member Function Documentation

    CalculateLengthLengthDER ( )

    voidCalculateLengthLengthDER()[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.

    ConstructL ( )

    IMPORT_C voidConstructL()[protected, virtual]

    Must call this version from derived classes in their ConstructL, but only once they're ready to have CalculateContentsLengthDER called on them.

    ContentsLengthChanged ( )

    voidContentsLengthChanged()[protected]

    Derived classes must call this if the length of their contents changes after construction.

    LengthDER ( )

    IMPORT_C TUintLengthDER()const

    Gives total number of octets in the DER encoding of this object.

    Returns: Number of octets in DER encoding of this object.

    SetParent ( CASN1EncBase * )

    voidSetParent(CASN1EncBase *aParent)

    Sets parent for the object

    ParameterDescription
    aParentPointer to an ASN.1 object that becomes this object's parent.

    SetTag ( const TTagType, const TASN1Class )

    IMPORT_C voidSetTag(const TTagTypeaType,
    const TASN1ClassaClass = EContextSpecific
    )

    Sets tag type/class of the encoding object

    ParameterDescription
    aTypeTag type to set
    aClassTag class to set.

    WriteDERL ( TDes8 &, TUint & )

    IMPORT_C voidWriteDERL(TDes8 &aBuf,
    TUint &aPos
    )const

    Writes entire DER encoding of this object into the given buffer.

    ParameterDescription
    aBufBuffer receiving the encoding.
    aPosPosition to start writing at.