ASN1C C# Runtime Library
7.6
|
Public Member Functions | |
virtual bool | IsEnabled () |
virtual bool | IsEnabled (int traceLevel) |
virtual void | Println (System.String s) |
virtual void | Println (System.String s, int traceLevel) |
virtual bool | SetEnabled (bool data) |
virtual int | SetTraceLevel2 (int level) |
Static Public Member Functions | |
static void | HexDump (byte[] bytes) |
static void | HexDump (byte[] bytes, int traceLevel) |
static void | HexDump (System.IO.Stream istrm, System.IO.StreamWriter ostrm) |
static Diag | Instance () |
static void | Prtln (System.String s) |
static void | Prtln (System.String s, int traceLevel) |
static void | Prtln (byte[] b, int offset, int nbytes, int tl) |
static void | Prtln (byte[] b, int offset, int nbytes) |
static int | SetTraceLevel (int level) |
Properties | |
virtual System.IO.StreamWriter | PrintStream [set] |
This class is used for printing diagnostic messages for debugging the run-time components. It allows messages to be easily switched on and off.
|
static |
This method prints a formatted hex dump for the contents of the given byte array to the standard output stream.
bytes | Byte array containg data to be dumped |
References Diag.HexDump().
Referenced by Diag.HexDump(), and Asn1MessageBufferBase.SetPermanentKey().
|
static |
This method prints a formatted hex dump for the contents of the given byte array to the standard output stream, if the given trace level is enabled.
bytes | Byte array containg data to be dumped |
traceLevel | Trace level |
References Diag.HexDump(), and Diag.IsEnabled().
|
static |
This method prints a formatted hex dump for the contents of the given input stream to the given output stream.
istrm | Input Stream containg data to be dumped |
ostrm | Output Stream to which formatted data is to be written |
References Diag.IsEnabled().
|
static |
This method provides the current instance of the Diag Class
Referenced by Asn1Type.Indent(), Diag.Prtln(), Asn1MessageBufferBase.SetPermanentKey(), and Diag.SetTraceLevel().
|
virtual |
This method will enable the diagnostic message printing.
true
if enabled, else false
Referenced by Diag.HexDump(), and Diag.Prtln().
|
virtual |
This method checks that given trace level message will be printed.
traceLevel | Trace Level |
true
if enabled, else false
|
virtual |
This method prints a the diagnsotic message
s | diagnsotic message |
Referenced by Asn1Type.Indent(), and Diag.Prtln().
|
virtual |
This method prints a the diagnsotic message, if given trace level is enabled
s | diagnsotic message |
traceLevel | Trace Level |
|
static |
This method prints a the diagnsotic message to current Diag class instance.
s | diagnsotic message |
References Diag.Instance(), and Diag.Println().
Referenced by Asn1BerDecodeContext.Asn1BerDecodeContext(), Asn1BitString.BaseDecode(), Asn1XmlAnyElem.XsdAnySaxHandler.Characters(), Asn1OpenType.SaxHandler.Characters(), Asn1OctetString.CompareTo(), Asn1Real.Decode(), Asn1X694OrderElement.Decode(), Asn1Integer.Decode(), Asn1UniversalString.Decode(), Asn1DecodeBitBuffer.DecodeBitsToLong(), Asn1DecodeBitBuffer.DecodeBitsToOctetArray(), Asn1PerDecodeBuffer.DecodeConsWholeNumber(), Asn1BerDecodeBuffer.DecodeLength(), Asn1PerDecodeBuffer.DecodeSmallLength(), Asn1PerDecodeBuffer.DecodeSmallNonNegWholeNumber(), Asn1BerDecodeBuffer.DecodeTag(), Asn1PerDecodeBuffer.DecodeUnconsLength(), Asn1BigInteger.DecodeValue(), Asn1Integer.DecodeValue(), Asn1RelativeOID.DecodeXML(), Asn1RelativeOID.Encode(), Asn1Enumerated.Encode(), Asn1ObjectIdentifier.Encode(), Asn1UTF8String.Encode(), Asn1X694OrderElement.Encode(), Asn1Real.Encode(), Asn1UniversalString.Encode(), Asn1PerEncodeBuffer.EncodeCharString(), Asn1PerEncodeBuffer.EncodeConsWholeNumber(), Asn1PerEncodeBuffer.EncodeInt(), Asn1BerEncodeBuffer.EncodeIntValue(), Asn1BerOutputStream.EncodeIntValue(), Asn1PerEncodeBuffer.EncodeOIDLengthAndValue(), Asn1PerEncodeBuffer.EncodeRelOIDLengthAndValue(), Asn1PerEncodeBuffer.EncodeSmallLength(), Asn1PerEncodeBuffer.EncodeSmallNonNegWholeNumber(), Asn1BerEncodeBuffer.EncodeUnsignedBinaryNumber(), Asn1BerOutputStream.EncodeUnsignedBinaryNumber(), Asn1Integer.EncodeValue(), Asn1XmlAnyElem.XsdAnySaxHandler.EndElement(), Asn1OpenType.SaxHandler.EndElement(), Asn1DiscreteCharSet.GetCharAtIndex(), Asn1PerTraceHandler.NewBitField(), Asn1Real.NormalizedRealValueToString(), Asn1Value.ParseString(), Asn1PerBitFieldPrinter.Print(), Asn1DecodeBuffer.Read(), Asn1XmlAnyElem.XsdAnySaxHandler.StartElement(), Asn1OpenType.SaxHandler.StartElement(), Asn1ObjectIdentifier.ToString(), Asn1BitString.ToString(), and Asn1CharString.validate().
|
static |
This method prints a the diagnsotic message to current Diag class instance, if given trace level is enabled
s | diagnsotic message |
traceLevel | Trace Level |
References Diag.Instance(), and Diag.Println().
|
static |
This method prints a the hex dump of the given byte array to current Diag class instance, if given trace level is enabled
b | byte array containing data |
offset | start offset in the byte array |
nbytes | no of bytes to be printed |
tl | trace level |
References Diag.Instance(), and Diag.IsEnabled().
|
static |
This method prints a the hex dump of the given byte array to current Diag class instance
b | byte array containing data |
offset | start offset in the byte array |
nbytes | no of bytes to be printed |
References Diag.Instance(), Diag.IsEnabled(), and Asn1Util.ToHexString().
|
virtual |
This method enables or disables the diagnostic message priting.
data | true for enabling printing; otherwise false |
Referenced by Asn1MessageBufferBase.SetPermanentKey().
|
static |
This method sets the trace level for the current instance of the Diag Class
level | Trace Level |
References Diag.Instance(), and Diag.SetTraceLevel2().
|
virtual |
This method sets the trace level for this class
level | Trace Level |
Referenced by Diag.SetTraceLevel().
|
set |
Sets the System.IO.StreamWriter object to which the diagnostic messages should be written.
Value:
Output stream for diagnostic messages