IByteWriter
Description
- Derived from
- Extended by
Base interface for classes that sequentially write data to a binary stream.
The methods of this interface write single-byte values which are not affected by byte order.
Public / Methods
WriteBools
Writes 8-bit boolean values to the data stream.
Calling this method is equivalent to calling IByteWriter.WriteBool sequentially for each element in the given array in segment but may be implemented in a more efficient way.
- IOException
-
If an I/O error has occurred.
WriteInt8
Writes a signed 8-bit integer value to the stream.
- IOException
-
If an I/O error has occurred.
WriteInt8s
Writes signed 8-bit integer values to the data stream.
Calling this method is equivalent to calling WriteInt8 sequentially for each element in the given array in segment but may be implemented in a more efficient way.
- IOException
-
If an I/O error has occurred.
Extensions
WriteInt16_BE
Writes a big-endian 16-bit signed integer to the stream.
- IOException
-
If an I/O error has occurred.
WriteInt16_LE
Writes a little-endian 16-bit signed integer to the stream.
- IOException
-
If an I/O error has occurred.
WriteInt32_BE
Writes a big-endian 32-bit signed integer to the stream.
- IOException
-
If an I/O error has occurred.
WriteInt32_LE
Writes a little-endian 32-bit signed integer to the stream.
- IOException
-
If an I/O error has occurred.
WriteInt64_BE
Writes a big-endian 64-bit signed integer to the stream.
- IOException
-
If an I/O error has occurred.
WriteInt64_LE
Writes a little-endian 64-bit signed integer to the stream.
- IOException
-
If an I/O error has occurred.
WriteVarInt32
Writes a 32-bit value to the stream, using variable coding from one to five bytes.
The encoding is independent on byte endianness.
- IOException
-
If an I/O error has occurred.
- See also
WriteVarInt64
Writes a 64-bit value to the stream, using variable coding from one to nine (with shortcut opt coding) or ten (without shortcut opt coding) bytes.
The encoding is independent on byte endianness.
- IOException
-
If an I/O error has occurred.
- See also
WriteVarUInt32
Writes a 32-bit value to the stream, using variable coding from one to five bytes.
The encoding is independent on byte endianness.
- IOException
-
If an I/O error has occurred.
- See also
WriteVarUInt64
Writes a 64-bit value to the stream, using variable coding from one to nine (with shortcut opt coding) or ten (without shortcut opt coding) bytes.
The encoding is independent on byte endianness.
- IOException
-
If an I/O error has occurred.
- See also