c

upickle.core

ByteBuilder

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
ByteAppendC, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ByteBuilder
  2. ByteAppendC
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ByteBuilder(startSize: Int = 32)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def append(x: Byte): Unit
    Definition Classes
    ByteBuilderByteAppendC
  5. def append(x: Int): Unit
  6. def appendAll(elems: Array[Byte], elemsStart: Int, elemsLength: Int): Unit
  7. def appendAll(elems: Array[Byte], elemsLength: Int): Unit
  8. def appendAllUnsafe(other: ByteBuilder): Unit
  9. def appendC(x: Char): Unit
    Definition Classes
    ByteAppendC
  10. def appendUnsafe(x: Byte): Unit
  11. def appendUnsafeC(x: Char): Unit
  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  14. def convertSurrogate(firstPart: Int, secondPart: Int): Int
    Definition Classes
    ByteAppendC
  15. def ensureLength(increment: Int): Unit
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. def getLength: Int
  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. def makeString(): String
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. def reset(): Unit
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  33. def writeOutToIfLongerThan(writer: Output, threshold: Int): Unit

Inherited from ByteAppendC

Inherited from AnyRef

Inherited from Any

Ungrouped