ASN1C C# Runtime Library
7.8
|
Public Member Functions | |
void | Write (byte[] b) |
void | Write (byte[] b, int off, int len) |
void | WriteByte (int b) |
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.
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>
b | the data |
Implemented in Asn1PerOutputStream, and Asn1OutputStream.
void Write | ( | byte [] | b, |
int | off, | ||
int | len | ||
) |
Writes len
bytes from the specified byte array starting at offset off
to this writable. /p>
b | the data |
off | the start offset in the data |
len | the number of bytes to write |
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>
b | the byte |
Implemented in Asn1PerOutputStream, and Asn1OutputStream.
Referenced by Asn1StringOID.EncodeIdentifier().