ASN1C C# Runtime Library
7.6
|
Public Member Functions | |
void | Decode (Asn1BerDecodeBuffer buffer, bool explicitTagging, int implicitLength) |
void | Decode (Asn1PerDecodeBuffer buffer) |
void | Decode (System.Object reader, System.String xmlURI) |
void | Decode (System.Object reader, System.IO.Stream byteStream) |
void | Decode (Asn1MderDecodeBuffer buffer) |
int | Encode (Asn1BerEncodeBuffer buffer, bool explicitTagging) |
void | Encode (Asn1PerEncodeBuffer buffer) |
void | Encode (Asn1XerEncoder buffer) |
void | Encode (Asn1XerEncoder buffer, System.String elemName) |
void | Encode (Asn1XmlEncoder buffer) |
void | Encode (Asn1XmlEncoder buffer, System.String elemName, System.String nsPrefix) |
void | Encode (Asn1MderOutputStream buffer) |
void | Encode (Asn1BerOutputStream outs, bool explicitTagging) |
void | Encode (Asn1PerOutputStream outs) |
bool | IsOpenType () |
void | Print (System.IO.TextWriter outs, System.String varName, int level) |
void | SetOpenType () |
This is the base interface for all ASN.1 built-in types.
void Decode | ( | Asn1BerDecodeBuffer | buffer, |
bool | explicitTagging, | ||
int | implicitLength | ||
) |
This method declaration is the signature of the standard Basic Encoding Rules (BER) or Distinguished Encoding Rules (DER) Decode method.
buffer | Decode message buffer object |
explicitTagging | Flag indicating explicit tag should be parsed from the encoded type. |
implicitLength | Length of the contents field (only required if explicit is false). |
Implemented in Asn1BitString, Asn1OpenType, Asn1Real, Asn1BigInteger, Asn1UniversalString, Asn1Type, Asn1OctetString, Asn1OpenExt, Asn1UTCTime, Asn1GeneralizedTime, Asn1ObjectIdentifier, Asn1UTF8String, Asn1Time, Asn1BMPString, Asn1OID_IRI, Asn1Boolean, Asn1ChoiceExt, Asn1X694OrderElement, Asn1Integer, Asn1RelativeOID, Asn1PrintableString, Asn1T61String, Asn1GeneralString, Asn1NumericString, Asn1VideotexString, Asn1VisibleString, Asn1Date, Asn1GraphicString, Asn1IA5String, Asn1ObjectDescriptor, Asn1TimeOfDay, Asn1DateTime, Asn1Null, Asn1Real10, Asn1Duration, and Asn1RealBase2.
void Decode | ( | Asn1PerDecodeBuffer | buffer | ) |
This method declaration is the signature of the standard Packed Encoding Rules (PER) Decode method.
buffer | PER Encode message buffer object |
Implemented in Asn1AbstractTime, Asn1Real, Asn1BitString, Asn1OpenType, Asn1Type, Asn1UniversalString, Asn1BigInteger, Asn1OctetString, Asn1UTF8String, Asn1OpenExt, Asn1BMPString, Asn1DateTime, Asn1ObjectIdentifier, Asn1TimeOfDay, Asn1Duration, Asn1Real10, Asn1Date, Asn1Boolean, Asn1OID_IRI, Asn1RelativeOID, Asn1Integer, Asn1ChoiceExt, Asn1Null, Asn1NumericString, Asn1RealBase2, Asn1VarWidthCharString, and Asn18BitCharString.
void Decode | ( | System.Object | reader, |
System.String | xmlURI | ||
) |
This method declaration is the signature of the standard XML Encoding Rules (XER) Decode method.
Throws an IO exception from the parser, possibly from a byte stream or character stream supplied by the application.
reader | XML reader object |
xmlURI | URI of a source |
Asn1Exception | Thrown, if operation is failed. |
Implemented in Asn1Type.
void Decode | ( | System.Object | reader, |
System.IO.Stream | byteStream | ||
) |
This method declaration is the signature of the standard XML Encoding Rules (XER) Decode method.
Throws an IO exception from the parser, possibly from a byte stream or character stream supplied by the application.
reader | XML reader object |
byteStream | Input byte stream object |
Asn1Exception | Thrown, if operation is failed. |
Implemented in Asn1Type.
void Decode | ( | Asn1MderDecodeBuffer | buffer | ) |
This method decodes this object's data from an MDER encoding. When MDER code has not been generated, classes implementing this interface may simply throw an exception.
Implemented in Asn1Type, and Asn1OctetString.
int Encode | ( | Asn1BerEncodeBuffer | buffer, |
bool | explicitTagging | ||
) |
This method declaration is the signature of the standard Basic Encoding Rules (BER) or Distinguished Encoding Rules (DER) encode method.
buffer | Encode message buffer object |
explicitTagging | Flag indicating explicit tag should be added to the encoded type. |
Implemented in Asn1BitString, Asn1OpenType, Asn1Real, Asn1UniversalString, Asn1BigInteger, Asn1Type, Asn1OctetString, Asn1OpenExt, Asn1UTCTime, Asn1BMPString, Asn1UTF8String, Asn1GeneralizedTime, Asn1ObjectIdentifier, Asn1Boolean, Asn1DateTime, Asn1Time, Asn1OID_IRI, Asn1Integer, Asn1Date, Asn1TimeOfDay, Asn1X694OrderElement, Asn1Duration, Asn1RelativeOID, Asn1ChoiceExt, Asn1Real10, Asn1Enumerated, Asn1PrintableString, Asn1T61String, Asn1Null, Asn1GeneralString, Asn1IA5String, Asn1NumericString, Asn1VideotexString, Asn1VisibleString, Asn1GraphicString, and Asn1ObjectDescriptor.
void Encode | ( | Asn1PerEncodeBuffer | buffer | ) |
This method declaration is the signature of the standard Packed Encoding Rules (PER) encode method.
buffer | PER Encode message buffer object |
Implemented in Asn1AbstractTime, Asn1BitString, Asn1Real, Asn1UniversalString, Asn1BigInteger, Asn1OpenType, Asn1Type, Asn1OctetString, Asn1UTF8String, Asn1Integer, Asn1OpenExt, Asn1BMPString, Asn1ObjectIdentifier, Asn1Real10, Asn1DateTime, Asn1TimeOfDay, Asn1Duration, Asn1Date, Asn1Boolean, Asn1OID_IRI, Asn1RelativeOID, Asn1ChoiceExt, Asn1NumericString, Asn18BitCharString, Asn1Null, and Asn1VarWidthCharString.
void Encode | ( | Asn1XerEncoder | buffer | ) |
This method declaration is the signature of the standard XML Encoding Rules (XER) encode method. This method invokes the generated method with element name set to null. This will cause the ASN.1 type name to be used as the top-level element name.
Also throws any exception thrown by the underlying stream.
buffer | XER Encode message buffer object |
Asn1Exception | Thrown, if operation is failed. |
Implemented in Asn1OpenType, Asn1Type, and Asn1OpenExt.
void Encode | ( | Asn1XerEncoder | buffer, |
System.String | elemName | ||
) |
This method declaration is the signature of the standard XML Encoding Rules (XER) encode method.
Also throws any exception thrown by the underlying stream.
buffer | XER Encode message buffer object |
elemName | XML element name of item |
Asn1Exception | Thrown, if operation is failed. |
Implemented in Asn1BitString, Asn1Real, Asn1UniversalString, Asn1BigInteger, Asn1Integer, Asn1OctetString, Asn1CharString, Asn1Type, Asn1ObjectIdentifier, Asn1Real10, Asn1RelativeOID, Asn1Boolean, Asn1Enumerated, and Asn1Null.
void Encode | ( | Asn1XmlEncoder | buffer | ) |
This method declaration is the signature of the standard XML Encoding as specified in the XML schema standard(asn2xsd). This method invokes the generated method with element name and attribute name set to null. This will cause the ASN.1 type name to be used as the top-level element name.
Also throws any exception thrown by the underlying stream.
buffer | XML Encode message buffer object |
Asn1Exception | Thrown, if operation is failed. |
Implemented in Asn1OpenType, Asn1Type, and Asn1OpenExt.
void Encode | ( | Asn1XmlEncoder | buffer, |
System.String | elemName, | ||
System.String | nsPrefix | ||
) |
This method declaration is the signature of the standard XML Encoding as specified in the XML schema standard(asn2xsd).
Also throws any exception thrown by the underlying stream.
buffer | XML Encode message buffer object |
elemName | XML element name of item |
nsPrefix | Element namespace value |
Asn1Exception | Thrown, if operation is failed. |
Implemented in Asn1BitString, Asn1AbstractTime, Asn1Real, Asn1UniversalString, Asn1BigInteger, Asn1Integer, Asn1OctetString, Asn1CharString, Asn1Type, Asn1ObjectIdentifier, Asn1Real10, Asn1RelativeOID, Asn1Boolean, Asn1Enumerated, Asn1Null, and Asn1Base64BinaryString.
void Encode | ( | Asn1MderOutputStream | buffer | ) |
This method encodes this object's data to an MDER encoding. When MDER code has not been generated, classes implementing this interface may simply throw an exception.
Implemented in Asn1Type, and Asn1OctetString.
void Encode | ( | Asn1BerOutputStream | outs, |
bool | explicitTagging | ||
) |
This method declaration is the signature of the streaming oriented BER encode method.
Throws, Exception thrown by C# System.IO.Stream for I/O error
outs | BER Output Stream object |
explicitTagging | Flag indicating explicit tagging should be done |
Asn1Exception | Thrown, if operation is failed. |
Implemented in Asn1BitString, Asn1Real, Asn1UniversalString, Asn1Type, Asn1BigInteger, Asn1OctetString, Asn1Integer, Asn1OpenType, Asn1Real10, Asn1ObjectIdentifier, Asn1OpenExt, Asn1UTF8String, Asn1Boolean, Asn1BMPString, Asn1UTCTime, Asn1GeneralizedTime, Asn1RelativeOID, Asn1Enumerated, Asn1OID_IRI, Asn1Null, Asn1X694OrderElement, Asn1NumericString, Asn1ChoiceExt, Asn1Time, Asn1DateTime, Asn1TimeOfDay, Asn1Date, Asn1Duration, Asn1PrintableString, Asn1T61String, Asn1GeneralString, Asn1IA5String, Asn1VisibleString, Asn1GraphicString, Asn1ObjectDescriptor, and Asn1VideotexString.
void Encode | ( | Asn1PerOutputStream | outs | ) |
This method declaration is the signature of the streaming oriented PER encode method.
Also throws any exception thrown by the Asn1PerOutputStream.
outs | PER Output Stream object |
Asn1Exception | Thrown, if operation is failed. |
Implemented in Asn1BitString, Asn1Real, Asn1UniversalString, Asn1Type, Asn1BigInteger, Asn1OctetString, Asn1Integer, Asn1AbstractTime, Asn1OpenType, Asn1Real10, Asn1ObjectIdentifier, Asn1OpenExt, Asn1UTF8String, Asn1Boolean, Asn1BMPString, Asn1RelativeOID, Asn1OID_IRI, Asn1Null, Asn1X694OrderElement, Asn1DateTime, Asn1TimeOfDay, Asn1Duration, Asn1Date, Asn18BitCharString, Asn1VarWidthCharString, and Asn1ChoiceExt.
bool IsOpenType | ( | ) |
Returns open type mode for XML encoding/decoding.
true
if open type mode is on. Implemented in Asn1Type.
void Print | ( | System.IO.TextWriter | outs, |
System.String | varName, | ||
int | level | ||
) |
This method declaration is the signature of the standard print method used to print the contents of the object representing the ASN.1 type.
outs | Output print stream |
varName | Name of the variable being printed |
level | Indentation level |
Implemented in Asn1Type, Asn1X694OrderElement, and Asn1ArrayType.
void SetOpenType | ( | ) |
Sets open type mode for XML encoding/decoding.
Implemented in Asn1Type.