ByteStringBuilder

izumi.sick.thirdparty.akka.util.ByteStringBuilder
final class ByteStringBuilder extends Builder[Byte, ByteString]

A mutable builder for efficiently creating a ByteString.

The created ByteString is not automatically compacted.

Attributes

Graph
Supertypes
trait Builder[Byte, ByteString]
trait Growable[Byte]
trait Clearable
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def ++=(bytes: ByteString): ByteStringBuilder.this.type
def addAll(bytes: ByteString): ByteStringBuilder.this.type
override def addAll(xs: IterableOnce[Byte]): ByteStringBuilder.this.type

Attributes

Definition Classes
Growable
override def addOne(elem: Byte): ByteStringBuilder.this.type

Attributes

Definition Classes
Growable
def append(bs: ByteString): ByteStringBuilder.this.type

Java API: append a ByteString to this builder.

Java API: append a ByteString to this builder.

Attributes

def asOutputStream: OutputStream

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

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

Attributes

def clear(): Unit
def isEmpty: Boolean

Tests whether this ByteStringBuilder is empty.

Tests whether this ByteStringBuilder is empty.

Attributes

def length: Int
def nonEmpty: Boolean

Tests whether this ByteStringBuilder is not empty.

Tests whether this ByteStringBuilder is not empty.

Attributes

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

Add a single Byte to this builder.

Add a single Byte to this builder.

Attributes

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

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

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

Attributes

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

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

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

Attributes

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

Add a single Double to this builder.

Add a single Double to this builder.

Attributes

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

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

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

Attributes

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.

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

Attributes

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

Add a single Float to this builder.

Add a single Float to this builder.

Attributes

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

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

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

Attributes

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.

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

Attributes

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

Add a single Int to this builder.

Add a single Int to this builder.

Attributes

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

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

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

Attributes

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.

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

Attributes

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

Add a single Long to this builder.

Add a single Long to this builder.

Attributes

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.

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

Attributes

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

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

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

Attributes

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.

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

Attributes

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

Add a single Short to this builder.

Add a single Short to this builder.

Attributes

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

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

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

Attributes

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.

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

Attributes

override def sizeHint(len: Int): Unit

Attributes

Definition Classes
Builder

Inherited methods

final def ++=(xs: IterableOnce[Byte]): Growable.this.type

Attributes

Inherited from:
Growable
final def +=(elem: Byte): Growable.this.type

Attributes

Inherited from:
Growable
def knownSize: Int

Attributes

Inherited from:
Growable
def mapResult[NewTo](f: ByteString => NewTo): Builder[A, NewTo]

Attributes

Inherited from:
Builder
final def sizeHint(coll: IterableOnce[_], delta: Int): Unit

Attributes

Inherited from:
Builder
final def sizeHintBounded(size: Int, boundingColl: Iterable[_]): Unit

Attributes

Inherited from:
Builder

Deprecated and Inherited methods

final def +=(elem1: Byte, elem2: Byte, elems: Byte*): Growable.this.type

Attributes

Deprecated
[Since version 2.13.0] Use `++=` aka `addAll` instead of varargs `+=`; infix operations with an operand of multiple args will be deprecated
Inherited from:
Growable