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
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
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.
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.
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.
if the string is not valid hexadecimal
Create a ByteVector
from a function from Int => Byte
and a size.
Create a ByteVector
from a ByteBuffer
.
Create 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.
Create a ByteVector
from an Array[Byte]
.
Create 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.
Companion for ByteVector.