Class

upickle.core

CharBuilder

Related Doc: package core

Permalink

class CharBuilder extends CharAppendC

A fast buffer that can be used to store Chars (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 Chars - It provides fast methods like makeString or writeOutToIfLongerThan, that let you push the data elsewhere with minimal unnecessary copying

Linear Supertypes
CharAppendC, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CharBuilder
  2. CharAppendC
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CharBuilder(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: Char): Unit

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

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

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

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

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

    Permalink
    Definition Classes
    CharAppendC
  10. def appendUnsafe(x: Char): 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 ensureLength(increment: Int): Unit

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

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

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

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

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

    Permalink
  20. def hashCode(): Int

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink

Inherited from CharAppendC

Inherited from AnyRef

Inherited from Any

Ungrouped