Packages

c

akka.util

ByteStringBuilder

final class ByteStringBuilder extends Builder[Byte, ByteString]

A mutable builder for efficiently creating a akka.util.ByteString.

The created ByteString is not automatically compacted.

Self Type
ByteStringBuilder
Source
ByteString.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ByteStringBuilder
  2. Builder
  3. Growable
  4. Clearable
  5. AnyRef
  6. Any
Implicitly
  1. by CollectionsHaveToParArray
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ByteStringBuilder()

Value Members

  1. def ++=(xs: TraversableOnce[Byte]): ByteStringBuilder.this.type
    Definition Classes
    ByteStringBuilder → Growable
  2. def +=(elem: Byte): ByteStringBuilder.this.type
    Definition Classes
    ByteStringBuilder → Builder → Growable
  3. def +=(elem1: Byte, elem2: Byte, elems: Byte*): ByteStringBuilder.this.type
    Definition Classes
    Growable
  4. def append(bs: ByteString): ByteStringBuilder.this.type

    Java API: append a ByteString to this builder.

  5. def asOutputStream: OutputStream

    Directly wraps this ByteStringBuilder in an OutputStream.

    Directly wraps this ByteStringBuilder in an OutputStream. Write operations on the stream are forwarded to the builder.

  6. def clear(): Unit
    Definition Classes
    ByteStringBuilder → Builder → Growable → Clearable
  7. def isEmpty: Boolean

    Tests whether this ByteStringBuilder is empty.

  8. def length: Int
  9. def mapResult[NewTo](f: (ByteString) ⇒ NewTo): Builder[Byte, NewTo]
    Definition Classes
    Builder
  10. def nonEmpty: Boolean

    Tests whether this ByteStringBuilder is not empty.

  11. def putByte(x: Byte): ByteStringBuilder.this.type

    Add a single Byte to this builder.

  12. def putBytes(array: Array[Byte], start: Int, len: Int): ByteStringBuilder.this.type

    Add a number of Bytes from an array to this builder.

  13. def putBytes(array: Array[Byte]): ByteStringBuilder.this.type

    Add a number of Bytes from an array to this builder.

  14. def putDouble(x: Double)(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add a single Double to this builder.

  15. def putDoubles(array: Array[Double], start: Int, len: Int)(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add a number of Doubles from an array to this builder.

  16. def putDoubles(array: Array[Double])(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add a number of Doubles from an array to this builder.

  17. def putFloat(x: Float)(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add a single Float to this builder.

  18. def putFloats(array: Array[Float], start: Int, len: Int)(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add a number of Floats from an array to this builder.

  19. def putFloats(array: Array[Float])(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add a number of Floats from an array to this builder.

  20. def putInt(x: Int)(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add a single Int to this builder.

  21. def putInts(array: Array[Int], start: Int, len: Int)(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add a number of Ints from an array to this builder.

  22. def putInts(array: Array[Int])(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add a number of Ints from an array to this builder.

  23. def putLong(x: Long)(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add a single Long to this builder.

  24. def putLongPart(x: Long, n: Int)(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add the n least significant bytes of the given Long to this builder.

  25. def putLongs(array: Array[Long], start: Int, len: Int)(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add a number of Longs from an array to this builder.

  26. def putLongs(array: Array[Long])(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add a number of Longs from an array to this builder.

  27. def putShort(x: Int)(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add a single Short to this builder.

  28. def putShorts(array: Array[Short], start: Int, len: Int)(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add a number of Shorts from an array to this builder.

  29. def putShorts(array: Array[Short])(implicit byteOrder: ByteOrder): ByteStringBuilder.this.type

    Add a number of Shorts from an array to this builder.

  30. def result(): ByteString
    Definition Classes
    ByteStringBuilder → Builder
  31. def sizeHint(len: Int): Unit
    Definition Classes
    ByteStringBuilder → Builder
  32. def sizeHint(coll: TraversableLike[_, _], delta: Int): Unit
    Definition Classes
    Builder
  33. def sizeHint(coll: TraversableLike[_, _]): Unit
    Definition Classes
    Builder
  34. def sizeHintBounded(size: Int, boundingColl: TraversableLike[_, _]): Unit
    Definition Classes
    Builder
  35. def toParArray: ParArray[T]
    Implicit
    This member is added by an implicit conversion from ByteStringBuilder to CollectionsHaveToParArray[ByteStringBuilder, T] performed by method CollectionsHaveToParArray in scala.collection.parallel. This conversion will take place only if an implicit value of type (ByteStringBuilder) ⇒ GenTraversableOnce[T] is in scope.
    Definition Classes
    CollectionsHaveToParArray