Type class for providing basic access to a Bytes
abstraction,
as well as construction of a respective Output.
- Companion:
- object
Value members
Abstract methods
Converts the given value
of type B into a Bytes instance.
Converts the given value
of type B into a Bytes instance.
Copies the given Bytes instance into the given byteArray
starting at the given index.
Returns a Bytes instance holding all bytes that could not be written to the byte array
due to capacity constraints or an empty Bytes instance, if the given byte array was
large enough to hold all bytes
.
Copies the given Bytes instance into the given byteArray
starting at the given index.
Returns a Bytes instance holding all bytes that could not be written to the byte array
due to capacity constraints or an empty Bytes instance, if the given byte array was
large enough to hold all bytes
.
Copies the given Bytes instance into the given byteBuffer
.
Returns a Bytes instance holding all bytes that could not be written to the byteBuffer
due to capacity constraints or an empty Bytes instance, if the given byteBuffer was
large enough to hold all bytes
.
Copies the given Bytes instance into the given byteBuffer
.
Returns a Bytes instance holding all bytes that could not be written to the byteBuffer
due to capacity constraints or an empty Bytes instance, if the given byteBuffer was
large enough to hold all bytes
.
Converts the given byte array into a Bytes instance.
Converts the given byte array into a Bytes instance.
Returns true iff the given Bytes instance is empty.
Returns true iff the given Bytes instance is empty.
Returns the number of bytes contained in the given Bytes instance.
Returns the number of bytes contained in the given Bytes instance.