Packages

trait Writer extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Writer
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. abstract type CH

    Type of encoded data

Abstract Value Members

  1. abstract def length(): Int

    Length of encoded data

  2. abstract def newWriter(): Aux[CH]

    Creates new instance of this Writer

    Creates new instance of this Writer

    returns

    new instance of Writer

  3. abstract def put(x: Byte): Writer.this.type

    Encode signed byte

    Encode signed byte

    x

    byte value to encode

  4. abstract def putBits(xs: Array[Boolean]): Writer.this.type

    Encode an array of boolean values as a bit array

    Encode an array of boolean values as a bit array

    xs

    array of boolean values

  5. abstract def putBoolean(x: Boolean): Writer.this.type

    Encode boolean

    Encode boolean

    x

    boolean value to encode

  6. abstract def putByteString(s: String): Writer.this.type

    Encode String is shorter than 256 bytes

    Encode String is shorter than 256 bytes

    s

    String

  7. abstract def putBytes(xs: Array[Byte]): Writer.this.type

    Encode an array of bytes

    Encode an array of bytes

    xs

    value to encode

  8. abstract def putChunk(chunk: CH): Writer.this.type

    Encode chunk

    Encode chunk

    chunk

    to put into this Writer

  9. abstract def putInt(x: Int): Writer.this.type

    Encode signed Int.

    Encode signed Int. Use putUInt to encode values that are positive.

    x

    Int

  10. abstract def putInt128(x: Int128): Writer.this.type

    Encode an Int128 value

    Encode an Int128 value

    x

    - Int128

  11. abstract def putIntString(s: String): Writer.this.type

    Encode String is shorter than 256 bytes

    Encode String is shorter than 256 bytes

    s

    String

  12. abstract def putLong(x: Long): Writer.this.type

    Encode signed Long.

    Encode signed Long. Use putULong to encode values that are positive.

    x

    Long

  13. abstract def putOption[T](x: Option[T])(putValue: (Writer.this.type, T) => Unit): Writer.this.type

    Encode optional value

    Encode optional value

    x

    optional value to encode

    putValue

    procedure to encode value, if x is nonempty

  14. abstract def putShort(x: Short): Writer.this.type

    Encode signed Short

    Encode signed Short

    Use putUShort to encode values that are positive.

    x

    short value to encode

  15. abstract def putUInt(x: Long): Writer.this.type

    Encode Int that are positive.

    Encode Int that are positive. Use putInt to encode values that might be negative.

    x

    Int

  16. abstract def putULong(x: Long): Writer.this.type

    Encode Long that are positive.

    Encode Long that are positive. Use putLong to encode values that might be negative.

    x

    Long

  17. abstract def putUShort(x: Int): Writer.this.type

    Encode Short that are positive

    Encode Short that are positive

    Use putShort to encode values that might be negative.

    x

    Short

  18. abstract def result(): CH

    Returns encoded result

    Returns encoded result

    returns

    encoded result

Concrete 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(writer: Aux[CH]): Writer.this.type

    Append result of writer to this Writer

    Append result of writer to this Writer

    writer

    is used as source of bytes

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. def putUByte(x: Int): Writer.this.type

    Encode integer as an unsigned byte asserting the range check

    Encode integer as an unsigned byte asserting the range check

    x

    integer value to encode

    returns

    throws AssertionError if x is outside of the unsigned byte range

  17. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped