akka.util

ByteString

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

Linear Supertypes
IndexedSeqOptimized[Byte, ByteString], IndexedSeq[Byte], IndexedSeq[Byte], IndexedSeqLike[Byte, ByteString], Seq[Byte], Seq[Byte], SeqLike[Byte, ByteString], GenSeq[Byte], GenSeqLike[Byte, ByteString], PartialFunction[Int, Byte], (Int) ⇒ Byte, Iterable[Byte], Iterable[Byte], IterableLike[Byte, ByteString], Equals, GenIterable[Byte], GenIterableLike[Byte, ByteString], Traversable[Byte], Immutable, Traversable[Byte], GenTraversable[Byte], GenericTraversableTemplate[Byte, IndexedSeq], TraversableLike[Byte, ByteString], GenTraversableLike[Byte, ByteString], Parallelizable[Byte, ParSeq[Byte]], TraversableOnce[Byte], GenTraversableOnce[Byte], FilterMonadic[Byte, ByteString], HasNewBuilder[Byte, ByteString], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ByteString
  2. IndexedSeqOptimized
  3. IndexedSeq
  4. IndexedSeq
  5. IndexedSeqLike
  6. Seq
  7. Seq
  8. SeqLike
  9. GenSeq
  10. GenSeqLike
  11. PartialFunction
  12. Function1
  13. Iterable
  14. Iterable
  15. IterableLike
  16. Equals
  17. GenIterable
  18. GenIterableLike
  19. Traversable
  20. Immutable
  21. Traversable
  22. GenTraversable
  23. GenericTraversableTemplate
  24. TraversableLike
  25. GenTraversableLike
  26. Parallelizable
  27. TraversableOnce
  28. GenTraversableOnce
  29. FilterMonadic
  30. HasNewBuilder
  31. AnyRef
  32. Any
Implicitly
  1. by MonadOps
  2. by traversable2ops
  3. by any2stringadd
  4. by any2stringfmt
  5. by any2ArrowAssoc
  6. by any2Ensuring
  7. by alternateImplicit
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ByteString()

Type Members

  1. class Elements extends AbstractIterator[A] with BufferedIterator[A] with Serializable

    Attributes
    protected
    Definition Classes
    IndexedSeqLike
    Annotations
    @SerialVersionUID( 1756321872811029277L )
  2. type Self = ByteString

    Attributes
    protected
    Definition Classes
    TraversableLike
  3. class WithFilter extends FilterMonadic[A, Repr]

    Definition Classes
    TraversableLike

Abstract Value Members

  1. abstract def ++(that: ByteString): ByteString

    Efficiently concatenate another ByteString.

  2. abstract def apply(idx: Int): Byte

    Definition Classes
    ByteString → SeqLike → GenSeqLike → Function1
  3. abstract def asByteBuffer: ByteBuffer

    Returns a read-only ByteBuffer that directly wraps this ByteString if it is not fragmented.

  4. 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.

  5. 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.

  6. abstract def decodeString(charset: String): String

    Decodes this ByteString using a charset to produce a String.

  7. 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.

  8. abstract def length: Int

    Definition Classes
    SeqLike → GenSeqLike

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from ByteString to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ++[B >: Byte, That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[ByteString, B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  6. def ++:[B >: Byte, That](that: Traversable[B])(implicit bf: CanBuildFrom[ByteString, B, That]): That

    Definition Classes
    TraversableLike
  7. def ++:[B >: Byte, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[ByteString, B, That]): That

    Definition Classes
    TraversableLike
  8. def +:[B >: Byte, That](elem: B)(implicit bf: CanBuildFrom[ByteString, B, That]): That

    Definition Classes
    SeqLike → GenSeqLike
  9. def ->[B](y: B): (ByteString, B)

    Implicit information
    This member is added by an implicit conversion from ByteString to ArrowAssoc[ByteString] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  10. def /:[B](z: B)(op: (B, Byte) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  11. def :+[B >: Byte, That](elem: B)(implicit bf: CanBuildFrom[ByteString, B, That]): That

    Definition Classes
    SeqLike → GenSeqLike
  12. def :\[B](z: B)(op: (Byte, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  13. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  15. def addString(b: StringBuilder): StringBuilder

    Definition Classes
    TraversableOnce
  16. def addString(b: StringBuilder, sep: String): StringBuilder

    Definition Classes
    TraversableOnce
  17. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Definition Classes
    TraversableOnce
  18. def aggregate[B](z: B)(seqop: (B, Byte) ⇒ B, combop: (B, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  19. def andThen[C](k: (Byte) ⇒ C): PartialFunction[Int, C]

    Definition Classes
    PartialFunction → Function1
  20. def applyOrElse[A1 <: Int, B1 >: Byte](x: A1, default: (A1) ⇒ B1): B1

    Definition Classes
    PartialFunction
  21. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  22. def asParIterable: ParIterable[Byte]

    Implicit information
    This member is added by an implicit conversion from ByteString to TraversableOps[Byte] performed by method traversable2ops in scala.collection.parallel.
    Definition Classes
    TraversableOps
  23. def asParSeq: ParSeq[Byte]

    Implicit information
    This member is added by an implicit conversion from ByteString to TraversableOps[Byte] performed by method traversable2ops in scala.collection.parallel.
    Definition Classes
    TraversableOps
  24. def canEqual(that: Any): Boolean

    Definition Classes
    IterableLike → Equals
  25. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. def collect[B, That](pf: PartialFunction[Byte, B])(implicit bf: CanBuildFrom[ByteString, B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  27. def collectFirst[B](pf: PartialFunction[Byte, B]): Option[B]

    Definition Classes
    TraversableOnce
  28. def combinations(n: Int): Iterator[ByteString]

    Definition Classes
    SeqLike
  29. def companion: GenericCompanion[IndexedSeq]

    Definition Classes
    IndexedSeq → IndexedSeq → Seq → Seq → GenSeq → Iterable → Iterable → GenIterable → Traversable → Traversable → GenTraversable → GenericTraversableTemplate
  30. def compose[A](g: (A) ⇒ Int): (A) ⇒ Byte

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  31. def concat(that: ByteString): ByteString

    Java API: efficiently concatenate another ByteString.

  32. def contains(elem: Any): Boolean

    Definition Classes
    SeqLike
  33. def containsSlice[B](that: GenSeq[B]): Boolean

    Definition Classes
    SeqLike
  34. def copyToArray[B >: Byte](xs: Array[B], start: Int, len: Int): Unit

    Definition Classes
    ByteString → IndexedSeqOptimized → IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  35. def copyToArray[B >: Byte](xs: Array[B]): Unit

    Definition Classes
    TraversableOnce → GenTraversableOnce
  36. def copyToArray[B >: Byte](xs: Array[B], start: Int): Unit

    Definition Classes
    TraversableOnce → GenTraversableOnce
  37. 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

  38. def copyToBuffer[B >: Byte](dest: Buffer[B]): Unit

    Definition Classes
    TraversableOnce
  39. def corresponds[B](that: GenSeq[B])(p: (Byte, B) ⇒ Boolean): Boolean

    Definition Classes
    SeqLike → GenSeqLike
  40. def count(p: (Byte) ⇒ Boolean): Int

    Definition Classes
    TraversableOnce → GenTraversableOnce
  41. def diff[B >: Byte](that: GenSeq[B]): ByteString

    Definition Classes
    SeqLike → GenSeqLike
  42. def distinct: ByteString

    Definition Classes
    SeqLike → GenSeqLike
  43. def drop(n: Int): ByteString

    Definition Classes
    ByteString → IndexedSeqOptimized → IterableLike → TraversableLike → GenTraversableLike
  44. def dropRight(n: Int): ByteString

    Definition Classes
    ByteString → IndexedSeqOptimized → IterableLike
  45. def dropWhile(p: (Byte) ⇒ Boolean): ByteString

    Definition Classes
    ByteString → IndexedSeqOptimized → TraversableLike → GenTraversableLike
  46. def endsWith[B](that: GenSeq[B]): Boolean

    Definition Classes
    IndexedSeqOptimized → SeqLike → GenSeqLike
  47. def ensuring(cond: (ByteString) ⇒ Boolean, msg: ⇒ Any): ByteString

    Implicit information
    This member is added by an implicit conversion from ByteString to Ensuring[ByteString] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  48. def ensuring(cond: (ByteString) ⇒ Boolean): ByteString

    Implicit information
    This member is added by an implicit conversion from ByteString to Ensuring[ByteString] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  49. def ensuring(cond: Boolean, msg: ⇒ Any): ByteString

    Implicit information
    This member is added by an implicit conversion from ByteString to Ensuring[ByteString] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  50. def ensuring(cond: Boolean): ByteString

    Implicit information
    This member is added by an implicit conversion from ByteString to Ensuring[ByteString] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  51. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  52. def equals(that: Any): Boolean

    Definition Classes
    GenSeqLike → Equals → Any
  53. def exists(p: (Byte) ⇒ Boolean): Boolean

    Definition Classes
    IndexedSeqOptimized → IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  54. def filter(p: (Byte) ⇒ Boolean): ByteString

    Definition Classes
    TraversableLike → GenTraversableLike
  55. def filterNot(p: (Byte) ⇒ Boolean): ByteString

    Definition Classes
    TraversableLike → GenTraversableLike
  56. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  57. def find(p: (Byte) ⇒ Boolean): Option[Byte]

    Definition Classes
    IndexedSeqOptimized → IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  58. def flatMap[B, That](f: (Byte) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[ByteString, B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  59. def flatten[B](implicit asTraversable: (Byte) ⇒ GenTraversableOnce[B]): IndexedSeq[B]

    Definition Classes
    GenericTraversableTemplate
  60. def fold[A1 >: Byte](z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
    TraversableOnce → GenTraversableOnce
  61. def foldLeft[B](z: B)(op: (B, Byte) ⇒ B): B

    Definition Classes
    IndexedSeqOptimized → TraversableOnce → GenTraversableOnce
  62. def foldRight[B](z: B)(op: (Byte, B) ⇒ B): B

    Definition Classes
    IndexedSeqOptimized → IterableLike → TraversableOnce → GenTraversableOnce
  63. def forall(p: (Byte) ⇒ Boolean): Boolean

    Definition Classes
    IndexedSeqOptimized → IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  64. def foreach[U](f: (Byte) ⇒ U): Unit

    Definition Classes
    ByteString → IndexedSeqOptimized → IterableLike → GenericTraversableTemplate → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
  65. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from ByteString to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  66. def genericBuilder[B]: Builder[B, IndexedSeq[B]]

    Definition Classes
    GenericTraversableTemplate
  67. 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.

  68. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  69. def groupBy[K](f: (Byte) ⇒ K): Map[K, ByteString]

    Definition Classes
    TraversableLike → GenTraversableLike
  70. def grouped(size: Int): Iterator[ByteString]

    Definition Classes
    IterableLike
  71. def hasDefiniteSize: Boolean

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  72. def hashCode(): Int

    Definition Classes
    IndexedSeqLike → GenSeqLike → Any
  73. def head: Byte

    Definition Classes
    ByteString → IndexedSeqOptimized → IterableLike → GenericTraversableTemplate → TraversableLike → GenTraversableLike
  74. def headOption: Option[Byte]

    Definition Classes
    TraversableLike → GenTraversableLike
  75. def ifParSeq[R](isbody: (ParSeq[Byte]) ⇒ R): (TraversableOps[Byte])#Otherwise[R]

    Implicit information
    This member is added by an implicit conversion from ByteString to TraversableOps[Byte] performed by method traversable2ops in scala.collection.parallel.
    Definition Classes
    TraversableOps
  76. def indexOf[B >: Byte](elem: B): Int

    Definition Classes
    ByteString → GenSeqLike
  77. def indexOf[B >: Byte](elem: B, from: Int): Int

    Definition Classes
    GenSeqLike
  78. def indexOfSlice[B >: Byte](that: GenSeq[B], from: Int): Int

    Definition Classes
    SeqLike
  79. def indexOfSlice[B >: Byte](that: GenSeq[B]): Int

    Definition Classes
    SeqLike
  80. def indexWhere(p: (Byte) ⇒ Boolean): Int

    Definition Classes
    ByteString → GenSeqLike
  81. def indexWhere(p: (Byte) ⇒ Boolean, from: Int): Int

    Definition Classes
    IndexedSeqOptimized → SeqLike → GenSeqLike
  82. def indices: Range

    Definition Classes
    SeqLike
  83. def init: ByteString

    Definition Classes
    ByteString → IndexedSeqOptimized → TraversableLike → GenTraversableLike
  84. def inits: Iterator[ByteString]

    Definition Classes
    TraversableLike
  85. def intersect[B >: Byte](that: GenSeq[B]): ByteString

    Definition Classes
    SeqLike → GenSeqLike
  86. def isDefinedAt(idx: Int): Boolean

    Definition Classes
    GenSeqLike
  87. def isEmpty: Boolean

    Definition Classes
    IndexedSeqOptimized → SeqLike → IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  88. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  89. def isParIterable: Boolean

    Implicit information
    This member is added by an implicit conversion from ByteString to TraversableOps[Byte] performed by method traversable2ops in scala.collection.parallel.
    Definition Classes
    TraversableOps
  90. def isParSeq: Boolean

    Implicit information
    This member is added by an implicit conversion from ByteString to TraversableOps[Byte] performed by method traversable2ops in scala.collection.parallel.
    Definition Classes
    TraversableOps
  91. def isParallel: Boolean

    Implicit information
    This member is added by an implicit conversion from ByteString to TraversableOps[Byte] performed by method traversable2ops in scala.collection.parallel.
    Definition Classes
    TraversableOps
  92. final def isTraversableAgain: Boolean

    Definition Classes
    TraversableLike → GenTraversableLike → GenTraversableOnce
  93. def iterator: ByteIterator

    Definition Classes
    ByteString → IndexedSeqLike → IterableLike → GenIterableLike
  94. def last: Byte

    Definition Classes
    ByteString → IndexedSeqOptimized → TraversableLike → GenTraversableLike
  95. def lastIndexOf[B >: Byte](elem: B, end: Int): Int

    Definition Classes
    GenSeqLike
  96. def lastIndexOf[B >: Byte](elem: B): Int

    Definition Classes
    GenSeqLike
  97. def lastIndexOfSlice[B >: Byte](that: GenSeq[B], end: Int): Int

    Definition Classes
    SeqLike
  98. def lastIndexOfSlice[B >: Byte](that: GenSeq[B]): Int

    Definition Classes
    SeqLike
  99. def lastIndexWhere(p: (Byte) ⇒ Boolean, end: Int): Int

    Definition Classes
    IndexedSeqOptimized → SeqLike → GenSeqLike
  100. def lastIndexWhere(p: (Byte) ⇒ Boolean): Int

    Definition Classes
    GenSeqLike
  101. def lastOption: Option[Byte]

    Definition Classes
    TraversableLike → GenTraversableLike
  102. def lengthCompare(len: Int): Int

    Definition Classes
    IndexedSeqOptimized → SeqLike
  103. def lift: (Int) ⇒ Option[Byte]

    Definition Classes
    PartialFunction
  104. def map[B, That](f: (Byte) ⇒ B)(implicit bf: CanBuildFrom[ByteString, B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  105. final def mapI(f: (Byte) ⇒ Int): ByteString

    map method that will automatically cast Int back into Byte.

  106. def max[B >: Byte](implicit cmp: Ordering[B]): Byte

    Definition Classes
    TraversableOnce → GenTraversableOnce
  107. def maxBy[B](f: (Byte) ⇒ B)(implicit cmp: Ordering[B]): Byte

    Definition Classes
    TraversableOnce → GenTraversableOnce
  108. def min[B >: Byte](implicit cmp: Ordering[B]): Byte

    Definition Classes
    TraversableOnce → GenTraversableOnce
  109. def minBy[B](f: (Byte) ⇒ B)(implicit cmp: Ordering[B]): Byte

    Definition Classes
    TraversableOnce → GenTraversableOnce
  110. def mkString: String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  111. def mkString(sep: String): String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  112. def mkString(start: String, sep: String, end: String): String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  113. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  114. def newBuilder: ByteStringBuilder

    Attributes
    protected[this]
    Definition Classes
    ByteString → GenericTraversableTemplate → TraversableLike → HasNewBuilder
  115. def nonEmpty: Boolean

    Definition Classes
    TraversableOnce → GenTraversableOnce
  116. final def notify(): Unit

    Definition Classes
    AnyRef
  117. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  118. def orElse[A1 <: Int, B1 >: Byte](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]

    Definition Classes
    PartialFunction
  119. def padTo[B >: Byte, That](len: Int, elem: B)(implicit bf: CanBuildFrom[ByteString, B, That]): That

    Definition Classes
    SeqLike → GenSeqLike
  120. def par: ParSeq[Byte]

    Definition Classes
    Parallelizable
  121. def parCombiner: Combiner[Byte, ParSeq[Byte]]

    Attributes
    protected[this]
    Definition Classes
    Seq → SeqLike → Iterable → TraversableLike → Parallelizable
  122. def partition(p: (Byte) ⇒ Boolean): (ByteString, ByteString)

    Definition Classes
    TraversableLike → GenTraversableLike
  123. def patch[B >: Byte, That](from: Int, patch: GenSeq[B], replaced: Int)(implicit bf: CanBuildFrom[ByteString, B, That]): That

    Definition Classes
    SeqLike → GenSeqLike
  124. def permutations: Iterator[ByteString]

    Definition Classes
    SeqLike
  125. def prefixLength(p: (Byte) ⇒ Boolean): Int

    Definition Classes
    GenSeqLike
  126. def product[B >: Byte](implicit num: Numeric[B]): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  127. def reduce[A1 >: Byte](op: (A1, A1) ⇒ A1): A1

    Definition Classes
    TraversableOnce → GenTraversableOnce
  128. def reduceLeft[B >: Byte](op: (B, Byte) ⇒ B): B

    Definition Classes
    IndexedSeqOptimized → TraversableOnce
  129. def reduceLeftOption[B >: Byte](op: (B, Byte) ⇒ B): Option[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  130. def reduceOption[A1 >: Byte](op: (A1, A1) ⇒ A1): Option[A1]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  131. def reduceRight[B >: Byte](op: (Byte, B) ⇒ B): B

    Definition Classes
    IndexedSeqOptimized → IterableLike → TraversableOnce → GenTraversableOnce
  132. def reduceRightOption[B >: Byte](op: (Byte, B) ⇒ B): Option[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  133. def repr: ByteString

    Definition Classes
    TraversableLike → GenTraversableLike
  134. def reverse: ByteString

    Definition Classes
    IndexedSeqOptimized → SeqLike → GenSeqLike
  135. def reverseIterator: Iterator[Byte]

    Definition Classes
    IndexedSeqOptimized → SeqLike
  136. def reverseMap[B, That](f: (Byte) ⇒ B)(implicit bf: CanBuildFrom[ByteString, B, That]): That

    Definition Classes
    SeqLike → GenSeqLike
  137. def reversed: List[Byte]

    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  138. def runWith[U](action: (Byte) ⇒ U): (Int) ⇒ Boolean

    Definition Classes
    PartialFunction
  139. def sameElements[B >: Byte](that: GenIterable[B]): Boolean

    Definition Classes
    IndexedSeqOptimized → IterableLike → GenIterableLike
  140. def scan[B >: Byte, That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[ByteString, B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  141. def scanLeft[B, That](z: B)(op: (B, Byte) ⇒ B)(implicit bf: CanBuildFrom[ByteString, B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  142. 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.

  143. def segmentLength(p: (Byte) ⇒ Boolean, from: Int): Int

    Definition Classes
    IndexedSeqOptimized → SeqLike → GenSeqLike
  144. def seq: IndexedSeq[Byte]

    Definition Classes
    IndexedSeq → IndexedSeq → IndexedSeqLike → Seq → Seq → GenSeq → GenSeqLike → Iterable → Iterable → GenIterable → Traversable → Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
  145. def size: Int

    Definition Classes
    SeqLike → GenTraversableLike → TraversableOnce → GenTraversableOnce
  146. def slice(from: Int, until: Int): ByteString

    Definition Classes
    ByteString → IndexedSeqOptimized → IterableLike → TraversableLike → GenTraversableLike
  147. def sliding(size: Int, step: Int): Iterator[ByteString]

    Definition Classes
    IterableLike
  148. def sliding(size: Int): Iterator[ByteString]

    Definition Classes
    IterableLike
  149. def sortBy[B](f: (Byte) ⇒ B)(implicit ord: Ordering[B]): ByteString

    Definition Classes
    SeqLike
  150. def sortWith(lt: (Byte, Byte) ⇒ Boolean): ByteString

    Definition Classes
    SeqLike
  151. def sorted[B >: Byte](implicit ord: Ordering[B]): ByteString

    Definition Classes
    SeqLike
  152. def span(p: (Byte) ⇒ Boolean): (ByteString, ByteString)

    Definition Classes
    ByteString → IndexedSeqOptimized → TraversableLike → GenTraversableLike
  153. def splitAt(n: Int): (ByteString, ByteString)

    Definition Classes
    ByteString → IndexedSeqOptimized → TraversableLike → GenTraversableLike
  154. def startsWith[B](that: GenSeq[B], offset: Int): Boolean

    Definition Classes
    IndexedSeqOptimized → SeqLike → GenSeqLike
  155. def startsWith[B](that: GenSeq[B]): Boolean

    Definition Classes
    GenSeqLike
  156. def stringPrefix: String

    Definition Classes
    TraversableLike → GenTraversableLike
  157. def sum[B >: Byte](implicit num: Numeric[B]): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  158. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  159. def tail: ByteString

    Definition Classes
    ByteString → IndexedSeqOptimized → TraversableLike → GenTraversableLike
  160. def tails: Iterator[ByteString]

    Definition Classes
    TraversableLike
  161. def take(n: Int): ByteString

    Definition Classes
    ByteString → IndexedSeqOptimized → IterableLike → TraversableLike → GenTraversableLike
  162. def takeRight(n: Int): ByteString

    Definition Classes
    ByteString → IndexedSeqOptimized → IterableLike
  163. def takeWhile(p: (Byte) ⇒ Boolean): ByteString

    Definition Classes
    ByteString → IndexedSeqOptimized → IterableLike → TraversableLike → GenTraversableLike
  164. def thisCollection: IndexedSeq[Byte]

    Attributes
    protected[this]
    Definition Classes
    IndexedSeqLike → SeqLike → IterableLike → TraversableLike
  165. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, Byte, Col[Byte]]): Col[Byte]

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  166. def toArray[B >: Byte](implicit arg0: ClassTag[B]): Array[B]

    Definition Classes
    ByteString → TraversableOnce → GenTraversableOnce
  167. 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
  168. def toBuffer[A1 >: Byte]: Buffer[A1]

    Definition Classes
    IndexedSeqLike → TraversableOnce → GenTraversableOnce
  169. def toByteBuffer: ByteBuffer

    Creates a new ByteBuffer with a copy of all bytes contained in this ByteString.

  170. def toCollection(repr: ByteString): IndexedSeq[Byte]

    Attributes
    protected[this]
    Definition Classes
    IndexedSeqLike → SeqLike → IterableLike → TraversableLike
  171. def toIndexedSeq: IndexedSeq[Byte]

    Definition Classes
    IndexedSeq → TraversableOnce → GenTraversableOnce
  172. def toIterable: Iterable[Byte]

    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  173. def toIterator: Iterator[Byte]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
  174. def toList: List[Byte]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  175. def toMap[T, U](implicit ev: <:<[Byte, (T, U)]): Map[T, U]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  176. def toParArray: ParArray[Byte]

    Implicit information
    This member is added by an implicit conversion from ByteString to TraversableOps[Byte] performed by method traversable2ops in scala.collection.parallel.
    Definition Classes
    TraversableOps
  177. def toSeq: Seq[Byte]

    Definition Classes
    Seq → SeqLike → GenSeqLike → TraversableOnce → GenTraversableOnce
  178. def toSet[B >: Byte]: Set[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  179. def toStream: Stream[Byte]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
  180. def toString(): String

    Definition Classes
    SeqLike → TraversableLike → Any
  181. def toTraversable: Traversable[Byte]

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  182. def toVector: Vector[Byte]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  183. 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 an IllegalArgumentException if collections are not uniformly sized.

  184. def union[B >: Byte, That](that: GenSeq[B])(implicit bf: CanBuildFrom[ByteString, B, That]): That

    Definition Classes
    SeqLike → GenSeqLike
  185. def unzip[A1, A2](implicit asPair: (Byte) ⇒ (A1, A2)): (IndexedSeq[A1], IndexedSeq[A2])

    Definition Classes
    GenericTraversableTemplate
  186. def unzip3[A1, A2, A3](implicit asTriple: (Byte) ⇒ (A1, A2, A3)): (IndexedSeq[A1], IndexedSeq[A2], IndexedSeq[A3])

    Definition Classes
    GenericTraversableTemplate
  187. def updated[B >: Byte, That](index: Int, elem: B)(implicit bf: CanBuildFrom[ByteString, B, That]): That

    Definition Classes
    SeqLike → GenSeqLike
  188. final def utf8String: String

    Decodes this ByteString as a UTF-8 encoded String.

  189. def view(from: Int, until: Int): SeqView[Byte, ByteString]

    Definition Classes
    SeqLike → IterableLike → TraversableLike
  190. def view: SeqView[Byte, ByteString]

    Definition Classes
    SeqLike → IterableLike → TraversableLike
  191. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  192. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  193. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  194. def withFilter(p: (Byte) ⇒ Boolean): FilterMonadic[Byte, ByteString]

    Definition Classes
    TraversableLike → FilterMonadic
  195. def zip[A1 >: Byte, B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[ByteString, (A1, B), That]): That

    Definition Classes
    IndexedSeqOptimized → IterableLike → GenIterableLike
  196. 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
  197. def zipWithIndex[A1 >: Byte, That](implicit bf: CanBuildFrom[ByteString, (A1, Int), That]): That

    Definition Classes
    IndexedSeqOptimized → IterableLike → GenIterableLike
  198. def [B](y: B): (ByteString, B)

    Implicit information
    This member is added by an implicit conversion from ByteString to ArrowAssoc[ByteString] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. def filter(p: (Byte) ⇒ Boolean): TraversableOnce[Byte]

    Implicit information
    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
  2. def flatMap[B](f: (Byte) ⇒ GenTraversableOnce[B]): TraversableOnce[B]

    Implicit information
    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
  3. def map[B](f: (Byte) ⇒ B): TraversableOnce[B]

    Implicit information
    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
  4. val self: Any

    Implicit information
    This member is added by an implicit conversion from ByteString to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (byteString: StringAdd).self
    Definition Classes
    StringAdd
  5. val self: Any

    Implicit information
    This member is added by an implicit conversion from ByteString to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (byteString: StringFormat).self
    Definition Classes
    StringFormat
  6. def withFilter(p: (Byte) ⇒ Boolean): Iterator[Byte]

    Implicit information
    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

Deprecated Value Members

  1. def /:\[A1 >: Byte](z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
    GenTraversableOnce
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) use fold instead

  2. def x: ByteString

    Implicit information
    This member is added by an implicit conversion from ByteString to ArrowAssoc[ByteString] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (byteString: ArrowAssoc[ByteString]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  3. def x: ByteString

    Implicit information
    This member is added by an implicit conversion from ByteString to Ensuring[ByteString] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (byteString: Ensuring[ByteString]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from IndexedSeqOptimized[Byte, ByteString]

Inherited from IndexedSeq[Byte]

Inherited from IndexedSeq[Byte]

Inherited from IndexedSeqLike[Byte, ByteString]

Inherited from Seq[Byte]

Inherited from Seq[Byte]

Inherited from SeqLike[Byte, ByteString]

Inherited from GenSeq[Byte]

Inherited from GenSeqLike[Byte, ByteString]

Inherited from PartialFunction[Int, Byte]

Inherited from (Int) ⇒ Byte

Inherited from Iterable[Byte]

Inherited from Iterable[Byte]

Inherited from IterableLike[Byte, ByteString]

Inherited from Equals

Inherited from GenIterable[Byte]

Inherited from GenIterableLike[Byte, ByteString]

Inherited from Traversable[Byte]

Inherited from Immutable

Inherited from Traversable[Byte]

Inherited from GenTraversable[Byte]

Inherited from GenericTraversableTemplate[Byte, IndexedSeq]

Inherited from TraversableLike[Byte, ByteString]

Inherited from GenTraversableLike[Byte, ByteString]

Inherited from Parallelizable[Byte, ParSeq[Byte]]

Inherited from TraversableOnce[Byte]

Inherited from GenTraversableOnce[Byte]

Inherited from FilterMonadic[Byte, ByteString]

Inherited from HasNewBuilder[Byte, ByteString]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion MonadOps from ByteString to MonadOps[Byte]

Inherited by implicit conversion traversable2ops from ByteString to TraversableOps[Byte]

Inherited by implicit conversion any2stringadd from ByteString to StringAdd

Inherited by implicit conversion any2stringfmt from ByteString to StringFormat

Inherited by implicit conversion any2ArrowAssoc from ByteString to ArrowAssoc[ByteString]

Inherited by implicit conversion any2Ensuring from ByteString to Ensuring[ByteString]

Inherited by implicit conversion alternateImplicit from ByteString to ForceImplicitAmbiguity

Ungrouped