ASN1C C# Runtime Library  7.4
Public Member Functions | Properties | List of all members
Asn1MessageBuffer Class Referenceabstract
Inheritance diagram for Asn1MessageBuffer:
Asn1MessageBufferBase Asn1DecodeBuffer Asn1EncodeBuffer Asn1BerDecodeBuffer Asn1DecodeBitBuffer Asn1BerInputStream Asn1DerDecodeBuffer Asn1PerDecodeBuffer Asn1CerInputStream Asn1DerInputStream Asn1PerInputStream

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)
 
- Public Member Functions inherited from Asn1MessageBufferBase
void SetKey (byte[] rtkey)
 
void SetPermanentKey (byte[] rtkey)
 

Properties

virtual Asn1MessageBuffer EventHandlerList [set]
 
- Properties inherited from Asn1MessageBufferBase
Asn1Context Context [get]
 
virtual short TypeCode [set]
 

Additional Inherited Members

- Static Public Member Functions inherited from Asn1MessageBufferBase
static void HexDump (System.IO.Stream ins, System.IO.StreamWriter outs)
 
static void HexDump (System.IO.Stream ins)
 

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

◆ AddNamedEventHandler()

virtual void AddNamedEventHandler ( Asn1NamedEventHandler  handler)
virtual

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

Parameters
handlerAsn1NamedEventHandler object to be added

◆ GetInputStream()

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 Asn1DecodeBuffer, and Asn1EncodeBuffer.

◆ InvokeCharacters()

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
svalueStringified representation of a parsed value field

Referenced by Asn1OpenExt.SetOpenType().

◆ InvokeEndElement()

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
nameName of the element
indexIndex of element if SEQUENCE OF or SET OF element

◆ InvokeStartElement()

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
nameName of the element
indexIndex of element if SEQUENCE OF or SET OF element

Property Documentation

◆ EventHandlerList

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