Asn1DerEncodeBuffer Class Reference

Inheritance diagram for Asn1DerEncodeBuffer:
Asn1BerEncodeBuffer Asn1EncodeBuffer Asn1MessageBuffer

List of all members.

Public Member Functions

 Asn1DerEncodeBuffer (int sizeIncrement)
 Asn1DerEncodeBuffer ()
override int TrimBitString (Asn1BitString bitstr)

Detailed Description

This class handles the encoding of ASN.1 messages as specified in the Distinguished Encoding Rules (DER) as specified in the ITU-T X.690 standard.


Constructor & Destructor Documentation

This constructor creates a DER encode buffer object with the default size increment. Whenever the buffer becomes full, the buffer will be expanded by the sizeIncrement size.

Asn1DerEncodeBuffer ( int  sizeIncrement  ) 

This constructor creates a DER encode buffer object with the given size increment. Whenever the buffer becomes full, the buffer will be expanded by the sizeIncrement size. This size should be large enough to prevent resizing in normal operation.

Parameters:
sizeIncrement The initial size in bytes of an encode buffer. If the buffer becomes full, it will be expanded by this amount.

Member Function Documentation

override int TrimBitString ( Asn1BitString  bitstr  )  [virtual]

This method will trim a BIT STRING for DER encoding by removing all zero trailing bits.

<param name="bitstr> ASN.1 BIT STRING object <return> Adjusted bit count </return>

Reimplemented from Asn1BerEncodeBuffer.