JavaStreamBinaryOutput
Attributes
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Writes one byte
Writes one byte
Value parameters
- value
-
The value to write
Attributes
- Definition Classes
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)
Value parameters
- value
-
The bytes to write
Attributes
- Definition Classes
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)
Value parameters
- count
-
Number of bytes to write
- start
-
Index of the first byte to write
- value
-
The byte array
Attributes
- Definition Classes
Writes one 64-bit floating point value
Writes one 64-bit floating point value
Value parameters
- value
-
The value to write
Attributes
- Definition Classes
Writes one 32-bit floating point value
Writes one 32-bit floating point value
Value parameters
- value
-
The value to write
Attributes
- Definition Classes
Writes one 32-bit integer
Writes one 32-bit integer
Value parameters
- value
-
The value to write
Attributes
- Definition Classes
Writes one 64-bit integer
Writes one 64-bit integer
Value parameters
- value
-
The value to write
Attributes
- Definition Classes
Writes one 16-bit integer
Writes one 16-bit integer
Value parameters
- value
-
The value to write
Attributes
- Definition Classes
Inherited methods
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.
Value parameters
- level
-
Compression level. Use constants from the Deflater class
- uncompressedData
-
Uncompressed data
Attributes
- Inherited from:
- BinaryOutput
Writes a 32-bit integer with a variable-length encoding
Writes a 32-bit integer with a variable-length encoding
The number of encoded bytes is 1-5. Based on https://github.com/EsotericSoftware/kryo/blob/master/src/com/esotericsoftware/kryo/io/ByteBufferOutput.java#L290
Value parameters
- optimizeForPositive
-
If true the encoding is optimized for positive numbers
- value
-
The value to write
Attributes
- Inherited from:
- BinaryOutput