CASN1EncBase Class Reference
class CASN1EncBase : public CBase |
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 )
Parameter | Description | aType | Tag type of the new object |
aClass | Tag class of the new object. |
Member Function Documentation
CalculateLengthLengthDER ( )
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.
ConstructL ( )
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.
ContentsLengthChanged ( )
void | ContentsLengthChanged | ( | ) | [protected] |
Derived classes must call this if the length of their contents changes after construction.
LengthDER ( )
IMPORT_C TUint | LengthDER | ( | ) | 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 * )
Sets parent for the object
Parameter | Description | aParent | Pointer to an ASN.1 object that becomes this object's parent. |
SetTag ( const TTagType, const TASN1Class )
Sets tag type/class of the encoding object
Parameter | Description | aType | Tag type to set |
aClass | Tag class to set. |
WriteDERL ( TDes8 &, TUint & )
IMPORT_C void | WriteDERL | ( | TDes8 & | aBuf, |
| TUint & | aPos |
| ) | const |
Writes entire DER encoding of this object into the given buffer.
Parameter | Description | aBuf | Buffer receiving the encoding. |
aPos | Position to start writing at. |