ASN1C C# Runtime Library  7.6
Public Member Functions | Properties | List of all members
Asn1XerEncoder Interface Reference
Inheritance diagram for Asn1XerEncoder:
Asn1XmlXerEncoder Asn1XerEncodeBuffer Asn1XerOutputStream

Public Member Functions

void EncodeEmptyElement (System.String elemName)
 
void EncodeEndElement (System.String elemName)
 
void EncodeNamedValue (System.String valueName, System.String elemName)
 
void EncodeRealValue (double valueName, System.String elemName)
 
void EncodeStartElement (System.String elemName)
 
- Public Member Functions inherited from Asn1XmlXerEncoder
void Copy (byte data)
 
void Copy (byte[] data)
 
void Copy (byte[] data, int off, int len)
 
void Copy (System.String data)
 
void DecrLevel ()
 
void EncodeBinStrValue (byte[] bits, int nbits)
 
void EncodeByte (byte data)
 
void EncodeData (System.String data)
 
void EncodeEndDocument ()
 
void EncodeHexStrValue (byte[] data)
 
void EncodeNamedValueElement (System.String elemName)
 
void EncodeStartDocument ()
 
void IncrLevel ()
 
void Indent ()
 
bool IsCanonical ()
 

Properties

int State [get, set]
 
- Properties inherited from Asn1XmlXerEncoder
Asn1Context Context [get]
 

Detailed Description

This is a base interface for encoding of ASN.1 messages as specified in the XML Encoding Rules (XER) as specified in the ITU-T X.693 standard. It is implemented by both the Asn1XerEncodeBuffer and Asn1XerOutputStream.

Member Function Documentation

◆ EncodeEmptyElement()

void EncodeEmptyElement ( System.String  elemName)

This method encodes an XML empty element tag.

Throws C# Exception, If I/O error occurs.

Parameters
elemNameThe name of element.
Exceptions
Asn1ExceptionThrown, if operation is failed.

Implemented in Asn1XerOutputStream, and Asn1XerEncodeBuffer.

Referenced by Asn1Null.Encode(), Asn1OctetString.Encode(), Asn1BitString.Encode(), and Asn1BitString.GetOerEffectiveMin().

◆ EncodeEndElement()

void EncodeEndElement ( System.String  elemName)

This method encodes an XML start element and attribute tag. start tag will contain the attribute name and value

Throws C# Exception, If I/O error occurs.

Parameters
elemNameThe name of element.
Exceptions
Asn1ExceptionThrown, if operation is failed.

Implemented in Asn1XerOutputStream, and Asn1XerEncodeBuffer.

Referenced by Asn1Integer.Decode32Bit(), Asn1ObjectIdentifier.Encode(), Asn1Real10.Encode(), Asn1RelativeOID.Encode(), Asn1OpenType.Encode(), Asn1OctetString.Encode(), Asn1UniversalString.Encode(), Asn1BitString.Encode(), Asn1XerUtil.EncodeReal(), Asn1BigInteger.EncodeUnsigned(), Asn1BitString.GetOerEffectiveMin(), and Asn1CharString.validate().

◆ EncodeNamedValue()

void EncodeNamedValue ( System.String  valueName,
System.String  elemName 
)

This method encodes an XML named value (with start and end tags).

Throws C# Exception, If I/O error occurs.

Parameters
valueNameThe name of value.
elemNameThe name of element.
Exceptions
Asn1ExceptionThrown, if operation is failed.

Implemented in Asn1XerOutputStream, and Asn1XerEncodeBuffer.

Referenced by Asn1Enumerated.Encode(), and Asn1Boolean.Encode().

◆ EncodeRealValue()

void EncodeRealValue ( double  valueName,
System.String  elemName 
)

This method encodes an XML REAL (double) value (with start and end tags).

Throws C# Exception, If I/O error occurs.

Parameters
valueNameThe name of value.
elemNameThe name of element. If null, then start and end tags won't be encoded.
Exceptions
Asn1ExceptionThrown, if operation is failed.

Implemented in Asn1XerOutputStream, and Asn1XerEncodeBuffer.

Referenced by Asn1Real.EncodeDouble().

◆ EncodeStartElement()

void EncodeStartElement ( System.String  elemName)

Property Documentation

◆ State

int State
getset

This method gets and sets the state of the buffer.

Value: Buffer Stat

Referenced by Asn1OpenType.Encode(), and Asn1OpenType.EncodeAsExtension().