Attributes
- Companion:
- class
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- ByteString.type
Members list
Type members
Classlikes
An unfragmented ByteString.
An unfragmented ByteString.
Attributes
- Graph
- Supertypes
- trait Serializableclass ByteStringtrait IndexedSeq[Byte]trait IndexedSeq[Byte]trait Seq[Byte]trait Seq[Byte]trait Equalstrait PartialFunction[Int, Byte]trait Int => Bytetrait Iterable[Byte]trait Iterable[Byte]trait IterableFactoryDefaults[Byte, IndexedSeq]trait IterableOnce[Byte]class Objecttrait Matchableclass Any
A compact (unsliced) and unfragmented ByteString, implementation of ByteString1C.
A compact (unsliced) and unfragmented ByteString, implementation of ByteString1C.
Attributes
- Graph
- Supertypes
- class CompactByteStringtrait Serializableclass ByteStringtrait IndexedSeq[Byte]trait IndexedSeq[Byte]trait Seq[Byte]trait Seq[Byte]trait Equalstrait PartialFunction[Int, Byte]trait Int => Bytetrait Iterable[Byte]trait Iterable[Byte]trait IterableFactoryDefaults[Byte, IndexedSeq]trait IterableOnce[Byte]class Objecttrait Matchableclass Any
A ByteString with 2 or more fragments.
A ByteString with 2 or more fragments.
Attributes
- Graph
- Supertypes
- trait Serializableclass ByteStringtrait IndexedSeq[Byte]trait IndexedSeq[Byte]trait Seq[Byte]trait Seq[Byte]trait Equalstrait PartialFunction[Int, Byte]trait Int => Bytetrait Iterable[Byte]trait Iterable[Byte]trait IterableFactoryDefaults[Byte, IndexedSeq]trait IterableOnce[Byte]class Objecttrait Matchableclass Any
Value members
Concrete methods
Creates a new ByteString by copying a byte array.
Creates a new ByteString by copying a byte array.
Attributes
Creates a new ByteString by copying bytes.
Creates a new ByteString by copying bytes.
Attributes
Creates a new ByteString by iterating over bytes.
Creates a new ByteString by iterating over bytes.
Attributes
Creates a new ByteString by converting from integral numbers to bytes.
Creates a new ByteString by converting from integral numbers to bytes.
Attributes
Creates a new ByteString by copying bytes from a ByteBuffer.
Creates a new ByteString by copying bytes from a ByteBuffer.
Attributes
Creates a new ByteString by encoding a String as UTF-8.
Creates a new ByteString by encoding a String as UTF-8.
Attributes
Creates a new ByteString by encoding a String with a charset.
Creates a new ByteString by encoding a String with a charset.
Attributes
Creates a new ByteString by encoding a String with a charset.
Creates a new ByteString by encoding a String with a charset.
Attributes
Java API
Java API
Attributes
Java API
Java API
Attributes
Creates a new ByteString by copying a byte array.
Creates a new ByteString by copying a byte array.
Attributes
Creates a new ByteString by copying length bytes starting at offset from an Array.
Creates a new ByteString by copying length bytes starting at offset from an Array.
Attributes
Unsafe API: Use only in situations you are completely confident that this is what you need, and that you understand the implications documented below.
Unsafe API: Use only in situations you are completely confident that this is what you need, and that you understand the implications documented below.
Creates a ByteString without copying the passed in byte array, unlike other factory methods defined on ByteString. This method of creating a ByteString saves one array copy and allocation and therefore can lead to better performance, however it also means that one MUST NOT modify the passed in array, or unexpected immutable data structure contract-breaking behavior will manifest itself.
This API is intended for users who have obtained an byte array from some other API, and want wrap it into an ByteArray, and from there on only use that reference (the ByteString) to operate on the wrapped data. For all other intents and purposes, please use the usual apply and create methods - which provide the immutability guarantees by copying the array.
Attributes
Unsafe API: Use only in situations you are completely confident that this is what you need, and that you understand the implications documented below.
Unsafe API: Use only in situations you are completely confident that this is what you need, and that you understand the implications documented below.
Creates a ByteString without copying the passed in byte array, unlike other factory methods defined on ByteString. This method of creating a ByteString saves one array copy and allocation and therefore can lead to better performance, however it also means that one MUST NOT modify the passed in array, or unexpected immutable data structure contract-breaking behavior will manifest itself.
This API is intended for users who have obtained an byte array from some other API, and want wrap it into an ByteArray, and from there on only use that reference (the ByteString) to operate on the wrapped data. For all other intents and purposes, please use the usual apply and create methods - which provide the immutability guarantees by copying the array.
Attributes
Creates a new ByteString by copying bytes out of a ByteBuffer.
Creates a new ByteString by copying bytes out of a ByteBuffer.
Attributes
JAVA API Creates a new ByteString by copying an int array by converting from integral numbers to bytes.
JAVA API Creates a new ByteString by copying an int array by converting from integral numbers to bytes.
Attributes
Creates a new ByteString which will contain the UTF-8 representation of the given String
Creates a new ByteString which will contain the UTF-8 representation of the given String
Attributes
Creates a new ByteString which will contain the representation of the given String in the given charset
Creates a new ByteString which will contain the representation of the given String in the given charset
Attributes
Creates a new ByteString which will contain the representation of the given String in the given charset
Creates a new ByteString which will contain the representation of the given String in the given charset
Attributes
Concrete fields
Standard "UTF-8" charset
Standard "UTF-8" charset