Class

upickle.core

ByteBuilder

Related Doc: package core

Permalink

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

Instance Constructors

  1. new ByteBuilder(startSize: Int = 32)

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def append(x: Byte): Unit

    Permalink
    Definition Classes
    ByteBuilderByteAppendC
  5. def append(x: Int): Unit

    Permalink
  6. def appendAll(elems: Array[Byte], elemsStart: Int, elemsLength: Int): Unit

    Permalink
  7. def appendAll(elems: Array[Byte], elemsLength: Int): Unit

    Permalink
  8. def appendAllUnsafe(other: ByteBuilder): Unit

    Permalink
  9. def appendC(x: Char): Unit

    Permalink
    Definition Classes
    ByteAppendC
  10. def appendUnsafe(x: Byte): Unit

    Permalink
  11. def appendUnsafeC(x: Char): Unit

    Permalink
  12. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def convertSurrogate(firstPart: Int, secondPart: Int): Int

    Permalink
    Definition Classes
    ByteAppendC
  15. def ensureLength(increment: Int): Unit

    Permalink
  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. def getLength: Int

    Permalink
  21. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. def makeString(): String

    Permalink
  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. def reset(): Unit

    Permalink
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  30. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. def writeOutToIfLongerThan(writer: Output, threshold: Int): Unit

    Permalink

Inherited from ByteAppendC

Inherited from AnyRef

Inherited from Any

Ungrouped