ASN1C C# Runtime Library
7.8
|
Public Member Functions | |
Asn1TraceHandler () | |
Asn1TraceHandler (System.IO.StreamWriter ps) | |
virtual void | Characters (System.String svalue, short typeCode) |
virtual void | EndElement (System.String name, int index) |
virtual void | StartElement (System.String name, int index) |
This class is a standard named event handler for printing the data in an encoded message in a human-readable format. Note that this handler will work with data encoded using any of the encoding rules (BER, DER, or PER).
Asn1TraceHandler | ( | ) |
This constructor sets the output stream to standard output.
Asn1TraceHandler | ( | System.IO.StreamWriter | ps | ) |
This constructor sets the output stream to the given StreamWriter.
ps | StreamWriter object |
|
virtual |
The characters callback method is invoked when content (primitive data) is encountered. A stringified representation of the parsed value is returned.
svalue | Stringified representation of the parsed value. The representation will be in ASN.1 value format. |
typeCode | Identifier specifying the type of the parsed data variable. The enumerated list of values that might appear here is provided in the the Asn1Type class (see the documentation on this class for a full list of the names). |
Implements Asn1NamedEventHandler.
|
virtual |
The endElement callback method is invoked when the end of an element within a constructed type (SEQUENCE, SET, SEQUENCE OF, SET OF, or CHOICE) is detected.
name | Name of the parsed element. |
index | Index of element in array. Only used for SEQUENCE OF or SET OF elements. Set to -1 for all others. |
Implements Asn1NamedEventHandler.
|
virtual |
The StartElement callback method is invoked when the start of an element within a constructed type (SEQUENCE, SET, SEQUENCE OF, SET OF, or CHOICE) is encountered.
name | Name of the parsed element. |
index | Index of element in array. Only used for SEQUENCE OF or SET OF elements. Set to -1 for all others. |
Implements Asn1NamedEventHandler.