Asn1MessageBuffer Class Reference

Inheritance diagram for Asn1MessageBuffer:
Asn1DecodeBuffer Asn1EncodeBuffer Asn1BerDecodeBuffer Asn1MderDecodeBuffer Asn1PerDecodeBuffer Asn1BerEncodeBuffer Asn1PerEncodeBuffer Asn1XerEncodeBuffer Asn1XmlEncodeBuffer Asn1BerInputStream Asn1DerDecodeBuffer Asn1PerInputStream Asn1DerEncodeBuffer Asn1CerInputStream Asn1DerInputStream

List of all members.

Public Member Functions

virtual void AddNamedEventHandler (Asn1NamedEventHandler handler)
abstract System.IO.Stream GetInputStream ()
virtual void InvokeCharacters (System.String svalue)
virtual void InvokeEndElement (System.String name, int index)
virtual void InvokeStartElement (System.String name, int index)
void SetKey (byte[] rtkey)
void SetPermanentKey (byte[] rtkey)

Static Public Member Functions

static void HexDump (System.IO.Stream ins)
static void HexDump (System.IO.Stream ins, System.IO.StreamWriter outs)

Properties

Asn1Context Context [get]
virtual Asn1MessageBuffer EventHandlerList [set]
virtual short TypeCode [set]

Detailed Description

This is the base class for all of the different message buffer types. This includes the BER and PER encode and decode message buffer classes.


Member Function Documentation

virtual void AddNamedEventHandler ( Asn1NamedEventHandler  handler  )  [virtual]

This method adds a named event handler to the named event handler list for this buffer.

Parameters:
handler Asn1NamedEventHandler object to be added
abstract System.IO.Stream GetInputStream (  )  [pure virtual]

This abstract method must be implemented by all of the derived classes. It returns an input stream object reference to the message buffer contents (i.e. the encoded data).

Returns:
Input stream object reference

Implemented in Asn1BerEncodeBuffer, Asn1DecodeBuffer, Asn1PerEncodeBuffer, Asn1XerEncodeBuffer, and Asn1XmlEncodeBuffer.

static void HexDump ( System.IO.Stream  ins  )  [static]

This method prints a formatted hex dump of the contents of the given input stream to the standard output stream.

Parameters:
ins System.IO.Stream containg data to be dumped
static void HexDump ( System.IO.Stream  ins,
System.IO.StreamWriter  outs 
) [static]

This method prints a formatted hex dump of the contents of the given input stream to the given output stream.

Parameters:
ins System.IO.Stream containg data to be dumped
outs StreamWriter to which formatted data is to be written
virtual void InvokeCharacters ( System.String  svalue  )  [virtual]

This method is used by the event handling logic to invoke the 'characters' event handling method when message contents are parsed. The TypeCode property is used for the event's type code.

Parameters:
svalue Stringified representation of a parsed value field
virtual void InvokeEndElement ( System.String  name,
int  index 
) [virtual]

This method is used by the event handling logic to invoke the 'endElement' event handling method when parsing of an element within a message is completed.

Parameters:
name Name of the element
index Index of element if SEQUENCE OF or SET OF element
virtual void InvokeStartElement ( System.String  name,
int  index 
) [virtual]

This method is used by the event handling logic to invoke the 'StartElement' event handling method when parsing of an element within a message is started.

Parameters:
name Name of the element
index Index of element if SEQUENCE OF or SET OF element
void SetKey ( byte[]  rtkey  ) 

This method is used with the limited run-time to set a run-time key value generated by the compiler to allow the run-time to operate on the licensed hosts. This is not used in the unlimited redistribution versions.

Parameters:
rtkey Run-time key generated by ASN1C
void SetPermanentKey ( byte[]  rtkey  ) 

This method is used to set a run-time key value such that subsequent calls to SetKey won't overwrite it.

Parameters:
rtkey The run-time key to set.

Property Documentation

Asn1Context Context [get]

The event dispatcher for this buffer.

virtual Asn1MessageBuffer EventHandlerList [set]

Sets the event dispatcher in this object to be equal to that in the given message buffer object. The two buffers will share the event dispatcher.

Value: Message buffer object

virtual short TypeCode [set]

Sets the internal type code to the given value. This is a code describing the last type parsed by the decoder.

Value: Type code (codes are defined in Asn1Type.cs). The codes correspond to the UNIVERSAL tag ID values for the built-in types.