ASN1C C# Runtime Library  7.8
Public Member Functions | List of all members
Asn1Writable Interface Reference
Inheritance diagram for Asn1Writable:
Asn1OutputStream Asn1BerOutputStream Asn1MderOutputStream Asn1PerOutputStream Asn1XerOutputStream Asn1XmlOutputStream Asn1CerOutputStream

Public Member Functions

void Write (byte[] b)
 
void Write (byte[] b, int off, int len)
 
void WriteByte (int b)
 

Detailed Description

This provides a interface that can be used for implementing some functions that can be shared across encoding rules. /p> ASN1C has encode buffers and output stream classes. This interface provides the ability to write code that can write to either of those cases. It can be implemented by any class that forward writes - i.e. NOT Asn1BerEncodeBuffer.

Member Function Documentation

◆ Write() [1/2]

void Write ( byte []  b)

Writes b.length bytes from the specified byte array to this writable. The general contract for write(b) is that it should have exactly the same effect as the call Write(b, 0, b.Length). /p>

Parameters
bthe data

Implemented in Asn1PerOutputStream, and Asn1OutputStream.

◆ Write() [2/2]

void Write ( byte []  b,
int  off,
int  len 
)

Writes len bytes from the specified byte array starting at offset off to this writable. /p>

Parameters
bthe data
offthe start offset in the data
lenthe number of bytes to write

◆ WriteByte()

void WriteByte ( int  b)

Writes the specified byte to this output stream. The general contract for write is that one byte is written to the writable. The byte to be written is the eight low-order bits of the argument tt>b. The 24 high-order bits of b are ignored. /p>

Parameters
bthe byte

Implemented in Asn1PerOutputStream, and Asn1OutputStream.

Referenced by Asn1StringOID.EncodeIdentifier().