|
|
 |
 |
|
Asn1EncodeBuffer Class ReferenceInheritance diagram for Asn1EncodeBuffer:
List of all members.
Detailed Description
This is the base class to specific encode buffer classes for the different types of encoding rules (BER, DER and PER).
|
Public Member Functions |
| abstract void | BinDump (System.IO.StreamWriter outs, System.String varName) |
| virtual void | BinDump (System.String varName) |
| abstract void | Copy (byte[] value) |
| abstract void | Copy (byte value) |
| virtual void | HexDump (System.IO.StreamWriter outs) |
| virtual void | HexDump () |
| abstract void | Reset () |
| abstract void | Write (System.IO.Stream outs) |
Public Attributes |
| const int | SIZE_INCREMENT = 1024 |
Protected Member Functions |
| virtual internal void | CheckSize (int bytesRequired) |
| virtual internal void | InitBuffer (int sizeIncrement) |
Protected Attributes |
| internal int | mByteIndex |
| internal byte[] | mData |
| internal int | mSizeIncrement |
Properties |
| abstract byte[] | MsgCopy |
| abstract int | MsgLength |
Member Function Documentation
| abstract void BinDump |
( |
System.IO.StreamWriter |
outs, |
|
|
System.String |
varName |
|
) |
[pure virtual] |
|
|
|
This method dumps the encoded message in a human-readable format showing a bit trace of all fields to the given print output stream. - Parameters:
-
| outs | Output will be written to this stream |
| varName | Name of the Decoded ASN1 Type |
Implemented in Asn1BerEncodeBuffer, Asn1PerEncodeBuffer, and Asn1XerEncodeBuffer. |
| virtual void BinDump |
( |
System.String |
varName |
) |
[virtual] |
|
|
|
This method invokes an overloaded version of BinDump to dump the encoded message to standard output. - Parameters:
-
| varName | Name of the Decoded ASN1 Type |
|
| virtual internal void CheckSize |
( |
int |
bytesRequired |
) |
[protected, virtual] |
|
| abstract void Copy |
( |
byte[] |
value |
) |
[pure virtual] |
|
| abstract void Copy |
( |
byte |
value |
) |
[pure virtual] |
|
| virtual void HexDump |
( |
System.IO.StreamWriter |
outs |
) |
[virtual] |
|
|
|
This method dumps the encoded message in hex/ascii format to the given print output stream.
- Parameters:
-
| outs | Output stream object reference |
|
| virtual void HexDump |
( |
|
) |
[virtual] |
|
|
|
This method dumps the encoded message in hex/ascii format to the standard output stream.
Reimplemented in Asn1PerEncodeBuffer. |
| virtual internal void InitBuffer |
( |
int |
sizeIncrement |
) |
[protected, virtual] |
|
|
|
This method will intializes this class member variables.
- Parameters:
-
| sizeIncrement | Buffer size increment in bytes |
|
| abstract void Reset |
( |
|
) |
[pure virtual] |
|
| abstract void Write |
( |
System.IO.Stream |
outs |
) |
[pure virtual] |
|
Member Data Documentation
|
|
This variable holds the position of the byte array for encode buffer. |
internal byte [] mData [protected] |
|
|
|
This variable holds the encoded data as byte array. |
|
|
This variable holds the user defined buffer increament size. It defines intial size and size it will be incremented by each time the buffer expands. |
|
|
This constant specifies the default size of the encode buffer and size it will be incremented by each time the buffer expands. It is currently set to 1024 bytes. |
Property Documentation
abstract byte [] MsgCopy [get] |
|
|
|
Gets the encoded message in a byte array. This is less efficient than the GetInputStream method because the message contents must be copied to a newly created byte array.
Value: byte array containing encoded message
Reimplemented in Asn1BerEncodeBuffer, Asn1PerEncodeBuffer, and Asn1XerEncodeBuffer. |
abstract int MsgLength [get] |
|
|
This document may be distributed in any form, electronic
or otherwise, provided that it is distributed in its entirety
and that the copyright and this notice are included.
|
This file was last modified on
18 Nov 2005. ASN1C C# Runtime Library, 5.8 |
|