sealed abstract class ByteString extends IndexedSeq[Byte] with IndexedSeqOptimized[Byte, ByteString]
A rope-like immutable data structure containing bytes. The goal of this structure is to reduce copying of arrays when concatenating and slicing sequences of bytes, and also providing a thread safe way of working with bytes.
TODO: Add performance characteristics
- Source
- ByteString.scala
- Alphabetic
- By Inheritance
- ByteString
- IndexedSeqOptimized
- IndexedSeq
- IndexedSeq
- IndexedSeqLike
- Seq
- Seq
- SeqLike
- GenSeq
- GenSeqLike
- PartialFunction
- Function1
- Iterable
- Iterable
- IterableLike
- Equals
- GenIterable
- GenIterableLike
- Traversable
- Immutable
- Traversable
- GenTraversable
- GenericTraversableTemplate
- TraversableLike
- GenTraversableLike
- Parallelizable
- TraversableOnce
- GenTraversableOnce
- FilterMonadic
- HasNewBuilder
- AnyRef
- Any
- by MonadOps
- by CollectionsHaveToParArray
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- by alternateImplicit
- Hide All
- Show All
- Public
- All
Type Members
-
class
Elements extends AbstractIterator[A] with BufferedIterator[A] with Serializable
- Attributes
- protected
- Definition Classes
- IndexedSeqLike
- Annotations
- @SerialVersionUID()
-
type
Self = ByteString
- Attributes
- protected[this]
- Definition Classes
- TraversableLike
-
class
WithFilter extends FilterMonadic[A, Repr]
- Definition Classes
- TraversableLike
Abstract Value Members
-
abstract
def
++(that: ByteString): ByteString
Efficiently concatenate another ByteString.
-
abstract
def
apply(idx: Int): Byte
- Definition Classes
- ByteString → SeqLike → GenSeqLike → Function1
-
abstract
def
asByteBuffer: ByteBuffer
Returns a read-only ByteBuffer that directly wraps this ByteString if it is not fragmented.
-
abstract
def
asByteBuffers: Iterable[ByteBuffer]
Scala API: Returns an immutable Iterable of read-only ByteBuffers that directly wraps this ByteStrings all fragments.
Scala API: Returns an immutable Iterable of read-only ByteBuffers that directly wraps this ByteStrings all fragments. Will always have at least one entry.
-
abstract
def
compact: CompactByteString
Create a new ByteString with all contents compacted into a single, full byte array.
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.
-
abstract
def
decodeString(charset: Charset): String
Decodes this ByteString using a charset to produce a 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)
. -
abstract
def
decodeString(charset: String): String
Decodes this ByteString using a charset to produce a String.
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. -
abstract
def
isCompact: Boolean
Check whether this ByteString is compact in memory.
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.
-
abstract
def
length: Int
- Definition Classes
- SeqLike → GenSeqLike
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from ByteString to any2stringadd[ByteString] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
++[B >: Byte, That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[ByteString, B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
++:[B >: Byte, That](that: Traversable[B])(implicit bf: CanBuildFrom[ByteString, B, That]): That
- Definition Classes
- TraversableLike
-
def
++:[B >: Byte, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[ByteString, B, That]): That
- Definition Classes
- TraversableLike
-
def
+:[B >: Byte, That](elem: B)(implicit bf: CanBuildFrom[ByteString, B, That]): That
- Definition Classes
- SeqLike → GenSeqLike
-
def
->[B](y: B): (ByteString, B)
- Implicit
- This member is added by an implicit conversion from ByteString to ArrowAssoc[ByteString] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
def
/:[B](z: B)(op: (B, Byte) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
:+[B >: Byte, That](elem: B)(implicit bf: CanBuildFrom[ByteString, B, That]): That
- Definition Classes
- SeqLike → GenSeqLike
-
def
:\[B](z: B)(op: (Byte, B) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addString(b: StringBuilder): StringBuilder
- Definition Classes
- TraversableOnce
-
def
addString(b: StringBuilder, sep: String): StringBuilder
- Definition Classes
- TraversableOnce
-
def
addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
- Definition Classes
- TraversableOnce
-
def
aggregate[B](z: ⇒ B)(seqop: (B, Byte) ⇒ B, combop: (B, B) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
andThen[C](k: (Byte) ⇒ C): PartialFunction[Int, C]
- Definition Classes
- PartialFunction → Function1
-
def
applyOrElse[A1 <: Int, B1 >: Byte](x: A1, default: (A1) ⇒ B1): B1
- Definition Classes
- PartialFunction
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
canEqual(that: Any): Boolean
- Definition Classes
- IterableLike → Equals
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
collect[B, That](pf: PartialFunction[Byte, B])(implicit bf: CanBuildFrom[ByteString, B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
collectFirst[B](pf: PartialFunction[Byte, B]): Option[B]
- Definition Classes
- TraversableOnce
-
def
combinations(n: Int): Iterator[ByteString]
- Definition Classes
- SeqLike
-
def
companion: GenericCompanion[IndexedSeq]
- Definition Classes
- IndexedSeq → IndexedSeq → Seq → Seq → GenSeq → Iterable → Iterable → GenIterable → Traversable → Traversable → GenTraversable → GenericTraversableTemplate
-
def
compose[A](g: (A) ⇒ Int): (A) ⇒ Byte
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
def
concat(that: ByteString): ByteString
Java API: efficiently concatenate another ByteString.
-
def
contains[A1 >: Byte](elem: A1): Boolean
- Definition Classes
- SeqLike
-
def
containsSlice[B](that: GenSeq[B]): Boolean
- Definition Classes
- SeqLike
-
def
copyToArray[B >: Byte](xs: Array[B], start: Int, len: Int): Unit
- Definition Classes
- ByteString → IndexedSeqOptimized → IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
def
copyToArray[B >: Byte](xs: Array[B]): Unit
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
copyToArray[B >: Byte](xs: Array[B], start: Int): Unit
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
copyToBuffer(buffer: ByteBuffer): Int
Copy as many bytes as possible to a ByteBuffer, starting from it's current position.
Copy as many bytes as possible to a ByteBuffer, starting from it's current position. This method will not overflow the buffer.
- buffer
a ByteBuffer to copy bytes to
- returns
the number of bytes actually copied
-
def
copyToBuffer[B >: Byte](dest: Buffer[B]): Unit
- Definition Classes
- TraversableOnce
-
def
corresponds[B](that: GenSeq[B])(p: (Byte, B) ⇒ Boolean): Boolean
- Definition Classes
- SeqLike → GenSeqLike
-
def
count(p: (Byte) ⇒ Boolean): Int
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
diff[B >: Byte](that: GenSeq[B]): ByteString
- Definition Classes
- SeqLike → GenSeqLike
-
def
distinct: ByteString
- Definition Classes
- SeqLike → GenSeqLike
-
def
drop(n: Int): ByteString
- Definition Classes
- ByteString → IndexedSeqOptimized → IterableLike → TraversableLike → GenTraversableLike
-
def
dropRight(n: Int): ByteString
- Definition Classes
- ByteString → IndexedSeqOptimized → IterableLike
-
def
dropWhile(p: (Byte) ⇒ Boolean): ByteString
- Definition Classes
- ByteString → IndexedSeqOptimized → TraversableLike → GenTraversableLike
-
def
endsWith[B](that: GenSeq[B]): Boolean
- Definition Classes
- IndexedSeqOptimized → SeqLike → GenSeqLike
-
def
ensuring(cond: (ByteString) ⇒ Boolean, msg: ⇒ Any): ByteString
- Implicit
- This member is added by an implicit conversion from ByteString to Ensuring[ByteString] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (ByteString) ⇒ Boolean): ByteString
- Implicit
- This member is added by an implicit conversion from ByteString to Ensuring[ByteString] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): ByteString
- Implicit
- This member is added by an implicit conversion from ByteString to Ensuring[ByteString] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): ByteString
- Implicit
- This member is added by an implicit conversion from ByteString to Ensuring[ByteString] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(that: Any): Boolean
- Definition Classes
- GenSeqLike → Equals → Any
-
def
exists(p: (Byte) ⇒ Boolean): Boolean
- Definition Classes
- IndexedSeqOptimized → IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
def
filter(p: (Byte) ⇒ Boolean): ByteString
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
filterNot(p: (Byte) ⇒ Boolean): ByteString
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
find(p: (Byte) ⇒ Boolean): Option[Byte]
- Definition Classes
- IndexedSeqOptimized → IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
def
flatMap[B, That](f: (Byte) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[ByteString, B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike → FilterMonadic
-
def
flatten[B](implicit asTraversable: (Byte) ⇒ GenTraversableOnce[B]): IndexedSeq[B]
- Definition Classes
- GenericTraversableTemplate
-
def
fold[A1 >: Byte](z: A1)(op: (A1, A1) ⇒ A1): A1
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
foldLeft[B](z: B)(op: (B, Byte) ⇒ B): B
- Definition Classes
- IndexedSeqOptimized → TraversableOnce → GenTraversableOnce
-
def
foldRight[B](z: B)(op: (Byte, B) ⇒ B): B
- Definition Classes
- IndexedSeqOptimized → IterableLike → TraversableOnce → GenTraversableOnce
-
def
forall(p: (Byte) ⇒ Boolean): Boolean
- Definition Classes
- IndexedSeqOptimized → IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
def
foreach[U](f: (Byte) ⇒ U): Unit
- Definition Classes
- ByteString → IndexedSeqOptimized → IterableLike → GenericTraversableTemplate → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from ByteString to StringFormat[ByteString] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
def
genericBuilder[B]: Builder[B, IndexedSeq[B]]
- Definition Classes
- GenericTraversableTemplate
-
def
getByteBuffers(): Iterable[ByteBuffer]
Java API: Returns an Iterable of read-only ByteBuffers that directly wraps this ByteStrings all fragments.
Java API: Returns an Iterable of read-only ByteBuffers that directly wraps this ByteStrings all fragments. Will always have at least one entry.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
groupBy[K](f: (Byte) ⇒ K): Map[K, ByteString]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
grouped(size: Int): Iterator[ByteString]
- Definition Classes
- IterableLike
-
def
hasDefiniteSize: Boolean
- Definition Classes
- TraversableLike → TraversableOnce → GenTraversableOnce
-
def
hashCode(): Int
- Definition Classes
- IndexedSeqLike → GenSeqLike → Any
-
def
head: Byte
- Definition Classes
- ByteString → IndexedSeqOptimized → IterableLike → GenericTraversableTemplate → TraversableLike → GenTraversableLike
-
def
headOption: Option[Byte]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
indexOf[B >: Byte](elem: B): Int
- Definition Classes
- ByteString → GenSeqLike
-
def
indexOf[B >: Byte](elem: B, from: Int): Int
- Definition Classes
- GenSeqLike
-
def
indexOfSlice[B >: Byte](that: GenSeq[B], from: Int): Int
- Definition Classes
- SeqLike
-
def
indexOfSlice[B >: Byte](that: GenSeq[B]): Int
- Definition Classes
- SeqLike
-
def
indexWhere(p: (Byte) ⇒ Boolean): Int
- Definition Classes
- ByteString → GenSeqLike
-
def
indexWhere(p: (Byte) ⇒ Boolean, from: Int): Int
- Definition Classes
- IndexedSeqOptimized → SeqLike → GenSeqLike
-
def
indices: Range
- Definition Classes
- SeqLike
-
def
init: ByteString
- Definition Classes
- ByteString → IndexedSeqOptimized → TraversableLike → GenTraversableLike
-
def
inits: Iterator[ByteString]
- Definition Classes
- TraversableLike
-
def
intersect[B >: Byte](that: GenSeq[B]): ByteString
- Definition Classes
- SeqLike → GenSeqLike
-
def
isDefinedAt(idx: Int): Boolean
- Definition Classes
- GenSeqLike
-
def
isEmpty: Boolean
- Definition Classes
- IndexedSeqOptimized → SeqLike → IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
isTraversableAgain: Boolean
- Definition Classes
- TraversableLike → GenTraversableLike → GenTraversableOnce
-
def
iterator: ByteIterator
- Definition Classes
- ByteString → IndexedSeqLike → IterableLike → GenIterableLike
-
def
last: Byte
- Definition Classes
- ByteString → IndexedSeqOptimized → TraversableLike → GenTraversableLike
-
def
lastIndexOf[B >: Byte](elem: B, end: Int): Int
- Definition Classes
- GenSeqLike
-
def
lastIndexOf[B >: Byte](elem: B): Int
- Definition Classes
- GenSeqLike
-
def
lastIndexOfSlice[B >: Byte](that: GenSeq[B], end: Int): Int
- Definition Classes
- SeqLike
-
def
lastIndexOfSlice[B >: Byte](that: GenSeq[B]): Int
- Definition Classes
- SeqLike
-
def
lastIndexWhere(p: (Byte) ⇒ Boolean, end: Int): Int
- Definition Classes
- IndexedSeqOptimized → SeqLike → GenSeqLike
-
def
lastIndexWhere(p: (Byte) ⇒ Boolean): Int
- Definition Classes
- GenSeqLike
-
def
lastOption: Option[Byte]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
lengthCompare(len: Int): Int
- Definition Classes
- IndexedSeqOptimized → SeqLike
-
def
lift: (Int) ⇒ Option[Byte]
- Definition Classes
- PartialFunction
-
def
map[B, That](f: (Byte) ⇒ B)(implicit bf: CanBuildFrom[ByteString, B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike → FilterMonadic
-
final
def
mapI(f: (Byte) ⇒ Int): ByteString
map method that will automatically cast Int back into Byte.
-
def
max[B >: Byte](implicit cmp: Ordering[B]): Byte
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
maxBy[B](f: (Byte) ⇒ B)(implicit cmp: Ordering[B]): Byte
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
min[B >: Byte](implicit cmp: Ordering[B]): Byte
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
minBy[B](f: (Byte) ⇒ B)(implicit cmp: Ordering[B]): Byte
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
mkString: String
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
mkString(sep: String): String
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
mkString(start: String, sep: String, end: String): String
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
newBuilder: ByteStringBuilder
- Attributes
- protected[this]
- Definition Classes
- ByteString → GenericTraversableTemplate → TraversableLike → HasNewBuilder
-
def
nonEmpty: Boolean
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
orElse[A1 <: Int, B1 >: Byte](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]
- Definition Classes
- PartialFunction
-
def
padTo[B >: Byte, That](len: Int, elem: B)(implicit bf: CanBuildFrom[ByteString, B, That]): That
- Definition Classes
- SeqLike → GenSeqLike
-
def
par: ParSeq[Byte]
- Definition Classes
- Parallelizable
-
def
parCombiner: Combiner[Byte, ParSeq[Byte]]
- Attributes
- protected[this]
- Definition Classes
- Seq → SeqLike → Iterable → TraversableLike → Parallelizable
-
def
partition(p: (Byte) ⇒ Boolean): (ByteString, ByteString)
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
patch[B >: Byte, That](from: Int, patch: GenSeq[B], replaced: Int)(implicit bf: CanBuildFrom[ByteString, B, That]): That
- Definition Classes
- SeqLike → GenSeqLike
-
def
permutations: Iterator[ByteString]
- Definition Classes
- SeqLike
-
def
prefixLength(p: (Byte) ⇒ Boolean): Int
- Definition Classes
- GenSeqLike
-
def
product[B >: Byte](implicit num: Numeric[B]): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduce[A1 >: Byte](op: (A1, A1) ⇒ A1): A1
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceLeft[B >: Byte](op: (B, Byte) ⇒ B): B
- Definition Classes
- IndexedSeqOptimized → TraversableOnce
-
def
reduceLeftOption[B >: Byte](op: (B, Byte) ⇒ B): Option[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceOption[A1 >: Byte](op: (A1, A1) ⇒ A1): Option[A1]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceRight[B >: Byte](op: (Byte, B) ⇒ B): B
- Definition Classes
- IndexedSeqOptimized → IterableLike → TraversableOnce → GenTraversableOnce
-
def
reduceRightOption[B >: Byte](op: (Byte, B) ⇒ B): Option[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
repr: ByteString
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
reverse: ByteString
- Definition Classes
- IndexedSeqOptimized → SeqLike → GenSeqLike
-
def
reverseIterator: Iterator[Byte]
- Definition Classes
- IndexedSeqOptimized → SeqLike
-
def
reverseMap[B, That](f: (Byte) ⇒ B)(implicit bf: CanBuildFrom[ByteString, B, That]): That
- Definition Classes
- SeqLike → GenSeqLike
-
def
reversed: List[Byte]
- Attributes
- protected[this]
- Definition Classes
- TraversableOnce
-
def
runWith[U](action: (Byte) ⇒ U): (Int) ⇒ Boolean
- Definition Classes
- PartialFunction
-
def
sameElements[B >: Byte](that: GenIterable[B]): Boolean
- Definition Classes
- IndexedSeqOptimized → IterableLike → GenIterableLike
-
def
scan[B >: Byte, That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[ByteString, B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
scanLeft[B, That](z: B)(op: (B, Byte) ⇒ B)(implicit bf: CanBuildFrom[ByteString, B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
scanRight[B, That](z: B)(op: (Byte, B) ⇒ B)(implicit bf: CanBuildFrom[ByteString, B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
- Annotations
- @migration
- Migration
(Changed in version 2.9.0) The behavior of
scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
-
def
segmentLength(p: (Byte) ⇒ Boolean, from: Int): Int
- Definition Classes
- IndexedSeqOptimized → SeqLike → GenSeqLike
-
def
seq: IndexedSeq[Byte]
- Definition Classes
- IndexedSeq → IndexedSeq → IndexedSeqLike → Seq → Seq → GenSeq → GenSeqLike → Iterable → Iterable → GenIterable → Traversable → Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
-
def
size: Int
- Definition Classes
- SeqLike → GenTraversableLike → TraversableOnce → GenTraversableOnce
-
def
sizeHintIfCheap: Int
- Attributes
- protected[scala.collection]
- Definition Classes
- IndexedSeqLike → GenTraversableOnce
-
def
slice(from: Int, until: Int): ByteString
- Definition Classes
- ByteString → IndexedSeqOptimized → IterableLike → TraversableLike → GenTraversableLike
-
def
sliding(size: Int, step: Int): Iterator[ByteString]
- Definition Classes
- IterableLike
-
def
sliding(size: Int): Iterator[ByteString]
- Definition Classes
- IterableLike
-
def
sortBy[B](f: (Byte) ⇒ B)(implicit ord: Ordering[B]): ByteString
- Definition Classes
- SeqLike
-
def
sortWith(lt: (Byte, Byte) ⇒ Boolean): ByteString
- Definition Classes
- SeqLike
-
def
sorted[B >: Byte](implicit ord: Ordering[B]): ByteString
- Definition Classes
- SeqLike
-
def
span(p: (Byte) ⇒ Boolean): (ByteString, ByteString)
- Definition Classes
- ByteString → IndexedSeqOptimized → TraversableLike → GenTraversableLike
-
def
splitAt(n: Int): (ByteString, ByteString)
- Definition Classes
- ByteString → IndexedSeqOptimized → TraversableLike → GenTraversableLike
-
def
startsWith[B](that: GenSeq[B], offset: Int): Boolean
- Definition Classes
- IndexedSeqOptimized → SeqLike → GenSeqLike
-
def
startsWith[B](that: GenSeq[B]): Boolean
- Definition Classes
- GenSeqLike
-
final
def
stringPrefix: String
- Definition Classes
- ByteString → TraversableLike → GenTraversableLike
-
def
sum[B >: Byte](implicit num: Numeric[B]): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tail: ByteString
- Definition Classes
- ByteString → IndexedSeqOptimized → TraversableLike → GenTraversableLike
-
def
tails: Iterator[ByteString]
- Definition Classes
- TraversableLike
-
def
take(n: Int): ByteString
- Definition Classes
- ByteString → IndexedSeqOptimized → IterableLike → TraversableLike → GenTraversableLike
-
def
takeRight(n: Int): ByteString
- Definition Classes
- ByteString → IndexedSeqOptimized → IterableLike
-
def
takeWhile(p: (Byte) ⇒ Boolean): ByteString
- Definition Classes
- ByteString → IndexedSeqOptimized → IterableLike → TraversableLike → GenTraversableLike
-
def
thisCollection: IndexedSeq[Byte]
- Attributes
- protected[this]
- Definition Classes
- IndexedSeqLike → SeqLike → IterableLike → TraversableLike
-
def
to[Col[_]](implicit cbf: CanBuildFrom[Nothing, Byte, Col[Byte]]): Col[Byte]
- Definition Classes
- TraversableLike → TraversableOnce → GenTraversableOnce
-
def
toArray[B >: Byte](implicit arg0: ClassTag[B]): Array[B]
- Definition Classes
- ByteString → TraversableOnce → GenTraversableOnce
-
def
toArray: Array[Byte]
Java API: copy this ByteString into a fresh byte array
Java API: copy this ByteString into a fresh byte array
- returns
this ByteString copied into a byte array
- Attributes
- protected
-
def
toBuffer[A1 >: Byte]: Buffer[A1]
- Definition Classes
- IndexedSeqLike → TraversableOnce → GenTraversableOnce
-
def
toByteBuffer: ByteBuffer
Creates a new ByteBuffer with a copy of all bytes contained in this ByteString.
-
def
toCollection(repr: ByteString): IndexedSeq[Byte]
- Attributes
- protected[this]
- Definition Classes
- IndexedSeqLike → SeqLike → IterableLike → TraversableLike
-
def
toIndexedSeq: IndexedSeq[Byte]
- Definition Classes
- IndexedSeq → TraversableOnce → GenTraversableOnce
- Annotations
- @deprecatedOverriding( ... , "2.11.0" )
-
def
toIterable: Iterable[Byte]
- Definition Classes
- IterableLike → TraversableOnce → GenTraversableOnce
-
def
toIterator: Iterator[Byte]
- Definition Classes
- IterableLike → TraversableLike → GenTraversableOnce
- Annotations
- @deprecatedOverriding( ... , "2.11.0" )
-
def
toList: List[Byte]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toMap[T, U](implicit ev: <:<[Byte, (T, U)]): Map[T, U]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toParArray: ParArray[T]
- Implicit
- This member is added by an implicit conversion from ByteString to CollectionsHaveToParArray[ByteString, T] performed by method CollectionsHaveToParArray in scala.collection.parallel. This conversion will take place only if an implicit value of type (ByteString) ⇒ GenTraversableOnce[T] is in scope.
- Definition Classes
- CollectionsHaveToParArray
-
def
toSeq: Seq[Byte]
- Definition Classes
- Seq → SeqLike → GenSeqLike → TraversableOnce → GenTraversableOnce
-
def
toSet[B >: Byte]: Set[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toStream: Stream[Byte]
- Definition Classes
- IterableLike → TraversableLike → GenTraversableOnce
-
def
toString(): String
- Definition Classes
- ByteString → SeqLike → Function1 → TraversableLike → AnyRef → Any
-
def
toTraversable: Traversable[Byte]
- Definition Classes
- TraversableLike → TraversableOnce → GenTraversableOnce
- Annotations
- @deprecatedOverriding( ... , "2.11.0" )
-
def
toVector: Vector[Byte]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
transpose[B](implicit asTraversable: (Byte) ⇒ GenTraversableOnce[B]): IndexedSeq[IndexedSeq[B]]
- Definition Classes
- GenericTraversableTemplate
- Annotations
- @migration
- Migration
(Changed in version 2.9.0)
transpose
throws anIllegalArgumentException
if collections are not uniformly sized.
-
def
union[B >: Byte, That](that: GenSeq[B])(implicit bf: CanBuildFrom[ByteString, B, That]): That
- Definition Classes
- SeqLike → GenSeqLike
-
def
unzip[A1, A2](implicit asPair: (Byte) ⇒ (A1, A2)): (IndexedSeq[A1], IndexedSeq[A2])
- Definition Classes
- GenericTraversableTemplate
-
def
unzip3[A1, A2, A3](implicit asTriple: (Byte) ⇒ (A1, A2, A3)): (IndexedSeq[A1], IndexedSeq[A2], IndexedSeq[A3])
- Definition Classes
- GenericTraversableTemplate
-
def
updated[B >: Byte, That](index: Int, elem: B)(implicit bf: CanBuildFrom[ByteString, B, That]): That
- Definition Classes
- SeqLike → GenSeqLike
-
final
def
utf8String: String
Decodes this ByteString as a UTF-8 encoded String.
-
def
view(from: Int, until: Int): SeqView[Byte, ByteString]
- Definition Classes
- SeqLike → IterableLike → TraversableLike
-
def
view: SeqView[Byte, ByteString]
- Definition Classes
- SeqLike → IterableLike → TraversableLike
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
withFilter(p: (Byte) ⇒ Boolean): FilterMonadic[Byte, ByteString]
- Definition Classes
- TraversableLike → FilterMonadic
-
def
zip[A1 >: Byte, B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[ByteString, (A1, B), That]): That
- Definition Classes
- IndexedSeqOptimized → IterableLike → GenIterableLike
-
def
zipAll[B, A1 >: Byte, That](that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[ByteString, (A1, B), That]): That
- Definition Classes
- IterableLike → GenIterableLike
-
def
zipWithIndex[A1 >: Byte, That](implicit bf: CanBuildFrom[ByteString, (A1, Int), That]): That
- Definition Classes
- IndexedSeqOptimized → IterableLike → GenIterableLike
-
def
→[B](y: B): (ByteString, B)
- Implicit
- This member is added by an implicit conversion from ByteString to ArrowAssoc[ByteString] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
Shadowed Implicit Value Members
-
def
filter(p: (Byte) ⇒ Boolean): TraversableOnce[Byte]
- Implicit
- This member is added by an implicit conversion from ByteString to MonadOps[Byte] performed by method MonadOps in scala.collection.TraversableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(byteString: MonadOps[Byte]).filter(p)
- Definition Classes
- MonadOps
-
def
flatMap[B](f: (Byte) ⇒ GenTraversableOnce[B]): TraversableOnce[B]
- Implicit
- This member is added by an implicit conversion from ByteString to MonadOps[Byte] performed by method MonadOps in scala.collection.TraversableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(byteString: MonadOps[Byte]).flatMap(f)
- Definition Classes
- MonadOps
-
def
map[B](f: (Byte) ⇒ B): TraversableOnce[B]
- Implicit
- This member is added by an implicit conversion from ByteString to MonadOps[Byte] performed by method MonadOps in scala.collection.TraversableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(byteString: MonadOps[Byte]).map(f)
- Definition Classes
- MonadOps
-
def
withFilter(p: (Byte) ⇒ Boolean): Iterator[Byte]
- Implicit
- This member is added by an implicit conversion from ByteString to MonadOps[Byte] performed by method MonadOps in scala.collection.TraversableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(byteString: MonadOps[Byte]).withFilter(p)
- Definition Classes
- MonadOps