ByteUtils
Types
Link copied to clipboard
interface ByteConsumer
Used to consume bytes.
Link copied to clipboard
interface ByteSupplier
Used to supply bytes.
Link copied to clipboard
ByteSupplier based on InputStream.
Link copied to clipboard
ByteConsumer based on OutputStream.
Functions
Link copied to clipboard
Reads the given byte array as a little endian long.
Reads the given number of bytes from the given input as little endian long.
Reads the given number of bytes from the given stream as a little endian long.
Reads the given number of bytes from the given supplier as a little endian long.
Link copied to clipboard
Writes the given value to the given stream as a little endian array of the given length.
Provides the given value to the given consumer as a little endian sequence of the given length.
Inserts the given value into the array as a little endian sequence of the given length starting at the given offset.