IOUtil
Description
Helper class for this namespace.
This class provides some helper methods, dealing with the following:
-
Base-85 coding of binary data, see FromBase85 and ToBase85.
-
Asynchronous flushing, see TaskFlush
-
Read and write 64-bit integer values using minimal byte count (between 1 and 9), see
VarInt*
.
Public / Methods
FromBase85
Decodes binary data from the given base-85 encoded string.
- IOException
-
If data in is malformed.
- See also
VarIntLength
Returns the number of bytes that are required to encode the given value using variable coding from one to nine bytes.
VarIntRead
2 overloads
Reads a signed 64-bit value from the IDataStream using variable coding from one to nine bytes.
The encoding is independent on byte endianness.
- IOException
-
If an I/O error has occurred.
- See also
Reads a signed 64-bit value from the ByteBuffer using variable coding from one to nine bytes.
The encoding is independent on byte endianness.
- See also
VarIntWrite
2 overloads
Writes a signed 64-bit value to the IDataStream using variable coding from one to nine bytes.
The encoding is independent on byte endianness.
- IOException
-
If an I/O error has occurred.
- See also
Writes a signed 64-bit value to the ByteBuffer using variable coding from one to nine bytes.
The encoding is independent on byte endianness.
- See also