class ByteBuilder extends ByteAppendC
A fast buffer that can be used to store Bytes (Bytes or Chars).
Generally faster than the equivalent StringBuilder or java.io.ByteArrayOutputStream, since:
- It is specialized and without the overhead of polymorphism or synchronization.
- It allows the user to call ensureLength
and appendUnsafe
separately, e.g.
callign ensureLength
once before appendUnsafe
-ing multiple Bytes
- It provides fast methods like makeString or writeOutToIfLongerThan, that
let you push the data elsewhere with minimal unnecessary copying
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ByteBuilder
- ByteAppendC
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new ByteBuilder(startSize: Int = 32)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def append(x: Byte): Unit
- Definition Classes
- ByteBuilder → ByteAppendC
- def append(x: Int): Unit
- def appendAll(elems: Array[Byte], elemsStart: Int, elemsLength: Int): Unit
- def appendAll(elems: Array[Byte], elemsLength: Int): Unit
- def appendAllUnsafe(other: ByteBuilder): Unit
- def appendC(x: Char): Unit
- Definition Classes
- ByteAppendC
- def appendUnsafe(x: Byte): Unit
- def appendUnsafeC(x: Char): Unit
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def convertSurrogate(firstPart: Int, secondPart: Int): Int
- Definition Classes
- ByteAppendC
- def ensureLength(increment: Int): Unit
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getLength: Int
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def makeString(): String
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def reset(): Unit
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def writeOutToIfLongerThan(writer: Output, threshold: Int): Unit