ByteStrings
A ByteString with 2 or more fragments.
Attributes
- Source
- ByteString.scala
- Graph
-
- Supertypes
-
trait Serializableclass ByteStringtrait IndexedSeq[Byte]trait IndexedSeq[Byte]trait Equalstrait IterableOnce[Byte]class Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Efficiently concatenate another ByteString.
Attributes
- Source
- ByteString.scala
Returns a read-only ByteBuffer that directly wraps this ByteString if it is not fragmented.
Returns a read-only ByteBuffer that directly wraps this ByteString if it is not fragmented.
Attributes
- Source
- ByteString.scala
Scala API: Returns an immutable Iterable of read-only ByteBuffers that directly wraps this ByteStrings all fragments. Will always have at least one entry.
Scala API: Returns an immutable Iterable of read-only ByteBuffers that directly wraps this ByteStrings all fragments. Will always have at least one entry.
Attributes
- Source
- ByteString.scala
Return the bytes in this ByteString as an InputStream.
Return the bytes in this ByteString as an InputStream.
Attributes
- Returns
-
the bytes in this ByteString accessible as an InputStream
- See also
- Since
-
1.1.0
- Definition Classes
- Source
- ByteString.scala
Create a new ByteString with all contents compacted into a single, full byte array. If isCompact returns true, compact is an O(1) operation, but might return a different object with an optimized implementation.
Create a new ByteString with all contents compacted into a single, full byte array. If isCompact returns true, compact is an O(1) operation, but might return a different object with an optimized implementation.
Attributes
- Source
- ByteString.scala
Attributes
- Definition Classes
- Source
- ByteString.scala
Copy as many bytes as possible to a ByteBuffer, starting from it's current position. This method will not overflow the buffer.
Copy as many bytes as possible to a ByteBuffer, starting from it's current position. This method will not overflow the buffer.
Value parameters
- buffer
-
a ByteBuffer to copy bytes to
Attributes
- Returns
-
the number of bytes actually copied
- Definition Classes
- Source
- ByteString.scala
Copy as many bytes as possible to a ByteBuffer, starting from a given offset within this ByteString and the buffer's current position. This method will not overflow the buffer.
Copy as many bytes as possible to a ByteBuffer, starting from a given offset within this ByteString and the buffer's current position. This method will not overflow the buffer.
Value parameters
- buffer
-
a ByteBuffer to copy bytes to
- offset
-
the offset within this ByteString to start copying from
Attributes
- Returns
-
the number of bytes actually copied
- Since
-
2.0.0
- Definition Classes
- Source
- ByteString.scala
Returns a ByteString which is the binary representation of this ByteString if this ByteString is Base64-encoded.
Returns a ByteString which is the binary representation of this ByteString if this ByteString is Base64-encoded.
Attributes
- Definition Classes
- Source
- ByteString.scala
Decodes this ByteString using a charset to produce a String. If you have a Charset instance available, use decodeString(charset: java.nio.charset.Charset instead.
Decodes this ByteString using a charset to produce a String. If you have a Charset instance available, use decodeString(charset: java.nio.charset.Charset instead.
Attributes
- Source
- ByteString.scala
Decodes this ByteString using a charset to produce a String. Avoids Charset.forName lookup in String internals, thus is preferable to decodeString(charset: String).
Decodes this ByteString using a charset to produce a String. Avoids Charset.forName lookup in String internals, thus is preferable to decodeString(charset: String).
Attributes
- Source
- ByteString.scala
Attributes
- Definition Classes
- Source
- ByteString.scala
Attributes
- Definition Classes
- Source
- ByteString.scala
Returns a ByteString which is the Base64 representation of this ByteString
Returns a ByteString which is the Base64 representation of this ByteString
Attributes
- Definition Classes
- Source
- ByteString.scala
Tests whether this ByteString ends with the given bytes.
Tests whether this ByteString ends with the given bytes.
Value parameters
- bytes
-
the slice to test
Attributes
- Returns
-
true if this ByteString ends with the given bytes
- Since
-
2.0.0
- Definition Classes
- Source
- ByteString.scala
Attributes
- Definition Classes
- Source
- ByteString.scala
Attributes
- Definition Classes
-
ByteString -> SeqOps
- Source
- ByteString.scala
Finds index of first occurrence of some byte in this ByteString after or at some start index.
Finds index of first occurrence of some byte in this ByteString after or at some start index.
Similar to Seq's indexOf, but it avoids boxing if the value is already a byte.
Value parameters
- elem
-
the element value to search for.
- from
-
the start index
Attributes
- Returns
-
the index
>= fromof the first element of this ByteString that is equal (as determined by==) toelem, or-1, if none exists. - Since
-
1.1.0
- Definition Classes
- Source
- ByteString.scala
Finds index of first occurrence of some byte in this ByteString after or at some start index. This overload allows you to specify an end index (exclusive).
Finds index of first occurrence of some byte in this ByteString after or at some start index. This overload allows you to specify an end index (exclusive).
Value parameters
- elem
-
the element value to search for.
- from
-
the start index
- to
-
the end index (exclusive)
Attributes
- Returns
-
the index
>= fromand< toof the first element of this ByteString that is equal (as determined by==) toelem, or-1, if none exists. - Since
-
1.3.0
- Definition Classes
- Source
- ByteString.scala
Check whether this ByteString is compact in memory. If the ByteString is compact, it might, however, not be represented by an object that takes full advantage of that fact. Use compact to get such an object.
Check whether this ByteString is compact in memory. If the ByteString is compact, it might, however, not be represented by an object that takes full advantage of that fact. Use compact to get such an object.
Attributes
- Source
- ByteString.scala
Avoid iterator in performance sensitive code, call ops directly on ByteString instead
Avoid iterator in performance sensitive code, call ops directly on ByteString instead
Attributes
- Definition Classes
- Source
- ByteString.scala
Attributes
- Definition Classes
- Source
- ByteString.scala
Finds index of last occurrence of some byte in this ByteString before or at some end index.
Finds index of last occurrence of some byte in this ByteString before or at some end index.
Similar to lastIndexOf, but it avoids boxing if the value is already a byte.
Value parameters
- elem
-
the element value to search for.
- end
-
the end index (inclusive)
Attributes
- Returns
-
the index
<= endof the last element of this ByteString that is equal (as determined by==) toelem, or-1, if none exists. - Since
-
2.0.0
- Definition Classes
- Source
- ByteString.scala
Attributes
- Definition Classes
- Source
- ByteString.scala
Attributes
- Definition Classes
- Source
- ByteString.scala
Tests whether this ByteString starts with the given slice.
Tests whether this ByteString starts with the given slice.
Value parameters
- bytes
-
the slice to test
- offset
-
the offset to start testing from
Attributes
- Returns
-
true if this ByteString starts with the given slice
- Since
-
2.0.0
- Definition Classes
- Source
- ByteString.scala
Attributes
- Definition Classes
- Source
- ByteString.scala
Inherited methods
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Definition Classes
- Inherited from:
- PartialFunction
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedSeqOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedSeqOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Definition Classes
- Inherited from:
- IndexedSeq
Attributes
- Definition Classes
- Inherited from:
- ByteString
- Source
- ByteString.scala
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- PartialFunction
Java API: efficiently concatenate another ByteString.
Java API: efficiently concatenate another ByteString.
Attributes
- Inherited from:
- ByteString
- Source
- ByteString.scala
Attributes
- Definition Classes
- Inherited from:
- SeqOps
Checks if this ByteString contains a specific byte. Similar to Seq's contains function, but it avoids boxing if the value is already a byte.
Checks if this ByteString contains a specific byte. Similar to Seq's contains function, but it avoids boxing if the value is already a byte.
Attributes
- Since
-
2.0.0
- Inherited from:
- ByteString
- Source
- ByteString.scala
Attributes
- Definition Classes
-
ByteString -> SeqOps
- Inherited from:
- ByteString
- Source
- ByteString.scala
Attributes
- Definition Classes
- Inherited from:
- ByteString
- Source
- ByteString.scala
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedSeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedSeqOps
Attributes
- Definition Classes
- Inherited from:
- ByteString
- Source
- ByteString.scala
Attributes
- Inherited from:
- PartialFunction
Attributes
- Definition Classes
- Inherited from:
- ByteString
- Source
- ByteString.scala
Attributes
- Definition Classes
-
ByteString -> SeqOps
- Inherited from:
- ByteString
- Source
- ByteString.scala
Compares the receiver object (this) with the argument object (that) for equivalence.
Compares the receiver object (this) with the argument object (that) for equivalence.
Any implementation of this method should be an equivalence relation:
- It is reflexive: for any instance
xof typeAny,x.equals(x)should returntrue. - It is symmetric: for any instances
xandyof typeAny,x.equals(y)should returntrueif and only ify.equals(x)returnstrue. - It is transitive: for any instances
x,y, andzof typeAnyifx.equals(y)returnstrueandy.equals(z)returnstrue, thenx.equals(z)should returntrue.
If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is usually necessary to override hashCode to ensure that objects which are "equal" (o1.equals(o2) returns true) hash to the same scala.Int. (o1.hashCode.equals(o2.hashCode)).
Value parameters
- that
-
the object to compare against this object for equality.
Attributes
- Returns
-
trueif the receiver object is equivalent to the argument;falseotherwise. - Definition Classes
- Inherited from:
- Seq
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Definition Classes
- Inherited from:
- IndexedSeqOps
Java API: Returns an Iterable of read-only ByteBuffers that directly wraps this ByteStrings all fragments. Will always have at least one entry.
Java API: Returns an Iterable of read-only ByteBuffers that directly wraps this ByteStrings all fragments. Will always have at least one entry.
Attributes
- Inherited from:
- ByteString
- Source
- ByteString.scala
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- ByteString
- Source
- ByteString.scala
Attributes
- Definition Classes
- Inherited from:
- ByteString
- Source
- ByteString.scala
Attributes
- Definition Classes
- Inherited from:
- IndexedSeqOps
Finds index of first occurrence of some byte in this ByteString.
Finds index of first occurrence of some byte in this ByteString.
Similar to Seq's indexOf, but it avoids boxing if the value is already a byte.
Value parameters
- elem
-
the element value to search for.
Attributes
- Returns
-
the index
>= fromof the first element of this ByteString that is equal (as determined by==) toelem, or-1, if none exists. - Since
-
1.1.0
- Inherited from:
- ByteString
- Source
- ByteString.scala
Finds index of first occurrence of some slice in this ByteString.
Finds index of first occurrence of some slice in this ByteString.
Value parameters
- slice
-
the slice to search for.
Attributes
- Returns
-
the index of the first element of this ByteString that starts a slice equal (as determined by
==) toslice, or-1, if none exists. - Since
-
2.0.0
- Inherited from:
- ByteString
- Source
- ByteString.scala
Finds index of first occurrence of some slice in this ByteString.
Finds index of first occurrence of some slice in this ByteString.
Value parameters
- from
-
the start index
- slice
-
the slice to search for.
Attributes
- Returns
-
the index greater than or equal to
fromof the first element of this ByteString that starts a slice equal (as determined by==) toslice, or-1, if none exists. - Since
-
2.0.0
- Inherited from:
- ByteString
- Source
- ByteString.scala
Attributes
- Definition Classes
-
ByteString -> SeqOps
- Inherited from:
- ByteString
- Source
- ByteString.scala
Attributes
- Definition Classes
-
ByteString -> SeqOps
- Inherited from:
- ByteString
- Source
- ByteString.scala
Attributes
- Definition Classes
- Inherited from:
- ByteString
- Source
- ByteString.scala
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedSeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Definition Classes
- Inherited from:
- ByteString
- Source
- ByteString.scala
Attributes
- Definition Classes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- IndexedSeq
Attributes
- Definition Classes
- Inherited from:
- IndexedSeqOps
Attributes
- Definition Classes
- Inherited from:
- ByteString
- Source
- ByteString.scala
Finds index of last occurrence of some byte in this ByteString.
Finds index of last occurrence of some byte in this ByteString.
Similar to lastIndexOf, but it avoids boxing if the value is already a byte.
Value parameters
- elem
-
the element value to search for.
Attributes
- Returns
-
the index of the last element of this ByteString that is equal (as determined by
==) toelem, or-1, if none exists. - Since
-
2.0.0
- Inherited from:
- ByteString
- Source
- ByteString.scala
Finds index of last occurrence of some slice in this ByteString.
Finds index of last occurrence of some slice in this ByteString.
Uses lastIndexOf on the last byte of the slice to efficiently find candidate positions, then verifies the full slice match.
Value parameters
- slice
-
the slice to search for.
Attributes
- Returns
-
the index of the last element of this ByteString that starts a slice equal (as determined by
==) toslice, or-1, if none exists. - Since
-
2.0.0
- Inherited from:
- ByteString
- Source
- ByteString.scala
Finds index of last occurrence of some slice in this ByteString before or at some end index.
Finds index of last occurrence of some slice in this ByteString before or at some end index.
Uses lastIndexOf on the last byte of the slice to efficiently find candidate positions, then verifies the full slice match.
Value parameters
- end
-
the end index — the largest index at which the slice may start
- slice
-
the slice to search for.
Attributes
- Returns
-
the largest index
<= endof the first element of this ByteString that starts a slice equal (as determined by==) toslice, or-1, if none exists. - Since
-
2.0.0
- Inherited from:
- ByteString
- Source
- ByteString.scala
Attributes
- Definition Classes
-
ByteString -> SeqOps
- Inherited from:
- ByteString
- Source
- ByteString.scala
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- Iterable
Attributes
- Definition Classes
- Inherited from:
- IndexedSeqOps
Attributes
- Definition Classes
- Inherited from:
- IndexedSeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
map method that will automatically cast Int back into Byte.
map method that will automatically cast Int back into Byte.
Attributes
- Inherited from:
- ByteString
- Source
- ByteString.scala
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedSeqOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedSeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedSeqOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedSeqOps
Read an int from this ByteString at the given offset in big-endian byte order.
Read an int from this ByteString at the given offset in big-endian byte order.
Value parameters
- offset
-
the offset to read from
Attributes
- Returns
-
the int value
- Throws
-
IndexOutOfBoundsException
if the offset is negative or there are fewer than 4 bytes available from offset
- Since
-
2.0.0
- Inherited from:
- ByteString
- Source
- ByteString.scala
Read an int from this ByteString at the given offset in little-endian byte order.
Read an int from this ByteString at the given offset in little-endian byte order.
Value parameters
- offset
-
the offset to read from
Attributes
- Returns
-
the int value
- Throws
-
IndexOutOfBoundsException
if the offset is negative or there are fewer than 4 bytes available from offset
- Since
-
2.0.0
- Inherited from:
- ByteString
- Source
- ByteString.scala
Read a long from this ByteString at the given offset in big-endian byte order.
Read a long from this ByteString at the given offset in big-endian byte order.
Value parameters
- offset
-
the offset to read from
Attributes
- Returns
-
the long value
- Throws
-
IndexOutOfBoundsException
if the offset is negative or there are fewer than 8 bytes available from offset
- Since
-
2.0.0
- Inherited from:
- ByteString
- Source
- ByteString.scala
Read a long from this ByteString at the given offset in little-endian byte order.
Read a long from this ByteString at the given offset in little-endian byte order.
Value parameters
- offset
-
the offset to read from
Attributes
- Returns
-
the long value
- Throws
-
IndexOutOfBoundsException
if the offset is negative or there are fewer than 8 bytes available from offset
- Since
-
2.0.0
- Inherited from:
- ByteString
- Source
- ByteString.scala
Read a short from this ByteString at the given offset in big-endian byte order.
Read a short from this ByteString at the given offset in big-endian byte order.
Value parameters
- offset
-
the offset to read from
Attributes
- Returns
-
the short value
- Throws
-
IndexOutOfBoundsException
if the offset is negative or there are fewer than 2 bytes available from offset
- Since
-
2.0.0
- Inherited from:
- ByteString
- Source
- ByteString.scala
Read a short from this ByteString at the given offset in little-endian byte order.
Read a short from this ByteString at the given offset in little-endian byte order.
Value parameters
- offset
-
the offset to read from
Attributes
- Returns
-
the short value
- Throws
-
IndexOutOfBoundsException
if the offset is negative or there are fewer than 2 bytes available from offset
- Since
-
2.0.0
- Inherited from:
- ByteString
- Source
- ByteString.scala
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Definition Classes
- Inherited from:
- IndexedSeqOps
Attributes
- Definition Classes
- Inherited from:
- IndexedSeqOps
Attributes
- Definition Classes
- Inherited from:
- IndexedSeqOps
Attributes
- Definition Classes
-
IndexedSeq -> SeqOps
- Inherited from:
- IndexedSeq
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- IndexedSeq
Attributes
- Inherited from:
- IndexedSeq
Attributes
- Inherited from:
- IndexedSeqOps
Attributes
- Inherited from:
- StrictOptimizedSeqOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- IndexedSeqOps
Attributes
- Definition Classes
- Inherited from:
- IndexedSeqOps
Attributes
- Definition Classes
- Inherited from:
- SeqOps
Attributes
- Definition Classes
- Inherited from:
- SeqOps
Attributes
- Definition Classes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedSeqOps
Attributes
- Definition Classes
- Inherited from:
- ByteString
- Source
- ByteString.scala
Attributes
- Definition Classes
- Inherited from:
- ByteString
- Source
- ByteString.scala
Tests whether this ByteString starts with the given slice.
Tests whether this ByteString starts with the given slice.
Value parameters
- bytes
-
the slice to test
Attributes
- Returns
-
true if this ByteString starts with the given slice
- Since
-
2.0.0
- Inherited from:
- ByteString
- Source
- ByteString.scala
Attributes
- Definition Classes
-
ByteString -> SeqOps
- Inherited from:
- ByteString
- Source
- ByteString.scala
Attributes
- Definition Classes
- Inherited from:
- IndexedSeqOps
Attributes
- Definition Classes
- Inherited from:
- ByteString
- Source
- ByteString.scala
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- ByteString
- Source
- ByteString.scala
Attributes
- Definition Classes
- Inherited from:
- ByteString
- Source
- ByteString.scala
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Definition Classes
- Inherited from:
- ByteString
- Source
- ByteString.scala
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.
If the ByteString is backed by a single array it is returned without any copy. If it is backed by a rope of multiple ByteString instances a new array will be allocated and the contents will be copied into it before returning it.
This method of exposing the bytes of a ByteString can save one array copy and allocation in the happy path scenario which can lead to better performance, however it also means that one MUST NOT modify the returned array, or unexpected immutable data structure contract-breaking behavior will manifest itself.
This API is intended for users who need to pass the byte array to some other API, which will only read the bytes and never mutate then. For all other intents and purposes, please use the usual toArray method - which provide the immutability guarantees by copying the backing array.
Attributes
- Inherited from:
- ByteString
- Source
- ByteString.scala
Creates a new ByteBuffer with a copy of all bytes contained in this ByteString.
Creates a new ByteBuffer with a copy of all bytes contained in this ByteString.
Attributes
- Inherited from:
- ByteString
- Source
- ByteString.scala
Attributes
- Definition Classes
- Inherited from:
- IndexedSeq
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Definition Classes
- Inherited from:
- Seq
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
- Inherited from:
- ByteString
- Source
- ByteString.scala
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedSeqOps
Decodes this ByteString as a UTF-8 encoded String.
Decodes this ByteString as a UTF-8 encoded String.
Attributes
- Inherited from:
- ByteString
- Source
- ByteString.scala
Attributes
- Definition Classes
- Inherited from:
- IndexedSeqOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
- Inherited from:
- StrictOptimizedIterableOps
Deprecated and Inherited methods
Attributes
- Deprecated
-
[Since version 2.13.0]Use foldLeft instead of /: - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]Use foldRight instead of :\\ - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]For sequential collections, prefer `foldLeft(z)(seqop)`. For parallel collections, use `ParIterableLike#aggregate`. - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]Use iterableFactory instead - Inherited from:
- IterableOps
Attributes
- Deprecated
-
[Since version 2.13.0]Use `dest ++= coll` instead - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details) - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]Use segmentLength instead of prefixLength - Inherited from:
- SeqOps
Attributes
- Deprecated
-
[Since version 2.13.0]Use coll instead of repr in a collection implementation, use the collection value itself from the outside - Inherited from:
- IterableOps
Attributes
- Deprecated
-
[Since version 2.13.0]Use .reverseIterator.map(f).to(...) instead of .reverseMap(f) - Inherited from:
- SeqOps
Attributes
- Deprecated
-
[Since version 2.13.0]Iterable.seq always returns the iterable itself - Inherited from:
- Iterable
Attributes
- Deprecated
-
[Since version 2.13.7]toIterable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections - Inherited from:
- Iterable
Attributes
- Deprecated
-
[Since version 2.13.0]Use .iterator instead of .toIterator - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]Use .to(LazyList) instead of .toStream - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]toTraversable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections - Inherited from:
- IterableOps
Attributes
- Deprecated
-
[Since version 2.13.0]Use `concat` instead - Inherited from:
- SeqOps
Attributes
- Deprecated
-
[Since version 2.13.0]Use .view.slice(from, until) instead of .view(from, until) - Definition Classes
- Inherited from:
- IndexedSeqOps
Concrete fields
Attributes
- Source
- ByteString.scala
Inherited fields
Calculates a hash code value for the object.
Calculates a hash code value for the object.
The default hashing algorithm is platform dependent.
Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.
Attributes
- Returns
-
the hash code value for this object.
- Inherited from:
- ByteString
- Source
- ByteString.scala