io.github.vigoo.desert.BinaryOutput
Interface for writing binary data
The low level write operations for primitive types must be implemented.
Also contains some higher level functions such as variable integer encoding and compression support, which have a
default implementation based on the primitives.
Attributes Graph Reset zoom Hide graph Show graph
Supertypes class Object
trait Matchable
class Any
Known subtypes Members list Concise view
Value members
Attributes value The value to write
Writes an array of bytes (without writing any information about the number of bytes)
Writes an array of bytes (without writing any information about the number of bytes)
Attributes value The bytes to write
Writes a slice of an array of bytes (without writing any infomation about the number of bytes)
Writes a slice of an array of bytes (without writing any infomation about the number of bytes)
Attributes count Number of bytes to write
start Index of the first byte to write
value The byte array
Writes one 64-bit floating point value
Writes one 64-bit floating point value
Attributes value The value to write
Writes one 32-bit floating point value
Writes one 32-bit floating point value
Attributes value The value to write
Writes one 32-bit integer
Writes one 32-bit integer
Attributes value The value to write
Writes one 64-bit integer
Writes one 64-bit integer
Attributes value The value to write
Writes one 16-bit integer
Writes one 16-bit integer
Attributes value The value to write
Compress the given byte array with ZIP and write write the compressed data to the output
Compress the given byte array with ZIP and write write the compressed data to the output
The compressed data is prepended with the uncompressed and the compressed data sizes, encoded with variable-length
integer encoding.
Use the BinaryInput.readCompressedByteArray function to read it back.
Attributes level Compression level. Use constants from the Deflater class
uncompressedData Uncompressed data
Writes a 32-bit integer with a variable-length encoding
Attributes optimizeForPositive If true the encoding is optimized for positive numbers
value The value to write