Constructs a ByteVector from a scala.collection source of bytes.
Constructs a ByteVector from a ByteBuffer.
Constructs a ByteVector from a ByteBuffer. The given ByteBuffer is
is copied to ensure the resulting ByteVector is immutable.
If this is not desired, use ByteVector.view.
Constructs a ByteVector from an Array[Byte], an offset, and a length.
Constructs a ByteVector from an Array[Byte], an offset, and a length.
The given Array[Byte] is copied to ensure the resulting ByteVector is immutable.
If this is not desired, use ByteVector.view.
Constructs a ByteVector from an Array[Byte].
Constructs a ByteVector from an Array[Byte]. The given Array[Byte]
is copied to ensure the resulting ByteVector is immutable.
If this is not desired, use ByteVector.view.
Constructs a ByteVector from a collection of bytes.
Constructs a ByteVector from a list of literal bytes.
Constructs a ByteVector from a list of literal bytes. Only the least significant
byte is used of each integral value.
Concatenates all the given ByteVectors into a single instance.
Empty byte vector.
Encodes the specified string to a ByteVector using the US-ASCII charset.
Encodes the specified string to a ByteVector using the implicitly available Charset.
Encodes the specified string to a ByteVector using the UTF-8 charset.
Constructs a ByteVector of the given size, where all bytes have the value b.
Constructs a ByteVector from a base 64 string or returns None if the string is not valid base 64.
Constructs a ByteVector from a base 64 string or returns None if the string is not valid base 64.
The string may contain whitespace characters.
Constructs a ByteVector from a base 64 string or returns an error message if the string is not valid base 64.
Constructs a ByteVector from a base 64 string or returns an error message if the string is not valid base 64.
The string may contain whitespace characters.
Constructs a ByteVector from a binary string or returns None if the string is not valid binary.
Constructs a ByteVector from a binary string or returns None if the string is not valid binary.
The string may start with a 0b and it may contain whitespace or underscore characters.
Constructs a ByteVector from a binary string or returns an error message if the string is not valid binary.
Constructs a ByteVector from a binary string or returns an error message if the string is not valid binary.
The string may start with a 0b and it may contain whitespace or underscore characters.
Constructs a ByteVector vector with the 2's complement encoding of the specified byte.
Constructs a ByteVector vector with the 2's complement encoding of the specified byte.
value to encode
Constructs a ByteVector from a hexadecimal string or returns None if the string is not valid hexadecimal.
Constructs a ByteVector from a hexadecimal string or returns None if the string is not valid hexadecimal.
The string may start with a 0x and it may contain whitespace or underscore characters.
Constructs a ByteVector from a hexadecimal string or returns an error message if the string is not valid hexadecimal.
Constructs a ByteVector from a hexadecimal string or returns an error message if the string is not valid hexadecimal.
The string may start with a 0x and it may contain whitespace or underscore characters.
Constructs a ByteVector with the 2's complement encoding of the specified value.
Constructs a ByteVector with the 2's complement encoding of the specified value.
value to encode
size of vector (<= 4)
byte ordering of vector
Constructs a ByteVector with the 2's complement encoding of the specified value.
Constructs a ByteVector with the 2's complement encoding of the specified value.
value to encode
size of vector (<= 8)
byte ordering of vector
Constructs a ByteVector vector with the 2's complement encoding of the specified value.
Constructs a ByteVector vector with the 2's complement encoding of the specified value.
value to encode
size of vector (<= 2)
byte ordering of vector
Constructs a ByteVector containing the binary representation of the specified UUID.
Constructs a ByteVector containing the binary representation of the specified UUID.
The bytes are in MSB-to-LSB order.
value to encode
Constructs a ByteVector from a base 64 string or throws an IllegalArgumentException if the string is not valid base 64.
Constructs a ByteVector from a base 64 string or throws an IllegalArgumentException if the string is not valid base 64.
The string may contain whitespace characters.
IllegalArgumentException if the string is not valid base 64
Constructs a ByteVector from a binary string or throws an IllegalArgumentException if the string is not valid binary.
Constructs a ByteVector from a binary string or throws an IllegalArgumentException if the string is not valid binary.
The string may start with a 0b and it may contain whitespace or underscore characters.
IllegalArgumentException if the string is not valid binary
Constructs a ByteVector from a hexadecimal string or throws an IllegalArgumentException if the string is not valid hexadecimal.
Constructs a ByteVector from a hexadecimal string or throws an IllegalArgumentException if the string is not valid hexadecimal.
The string may start with a 0x and it may contain whitespace or underscore characters.
IllegalArgumentException if the string is not valid hexadecimal
Constructs a ByteVector of the given size, where all bytes have the value 0xff.
Constructs a ByteVector of the given size, where all bytes have the value 0.
Extractor used in support of pattern matching on the bytes of a vector.
Constructs a ByteVector from a ByteBuffer.
Constructs a ByteVector from a ByteBuffer. Unlike apply, this
does not make a copy of the input buffer, so callers should take care
not to modify the contents of the buffer passed to this function.
Constructs a ByteVector from a slice of an Array[Byte].
Constructs a ByteVector from a slice of an Array[Byte].
Unlike apply, this does not make a copy of the input array, so
callers should take care not to modify the contents of the array
passed to this function.
Constructs a ByteVector from an Array[Byte].
Constructs a ByteVector from an Array[Byte]. Unlike apply, this
does not make a copy of the input array, so callers should take care
not to modify the contents of the array passed to this function.
Constructs a ByteVector from a function from Int => Byte and a size.
Constructs a ByteVector from a function from Long => Int and a size,
where the Int returned by at must fit in a Byte.
Companion for ByteVector.