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 putBytes(xs: Array[Byte], offset: Int, length: Int): Writer.this.type

    Encode a slice of array of bytes.

    Encode a slice of array of bytes.

    xs

    an array to take bytes from

    offset

    first byte of the slice

    length

    of the slice (number of bytes)

  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 putLong(x: Long): Writer.this.type

    Encode signed Long.

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

    x

    Long

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

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

  13. abstract def putShortString(s: String): Writer.this.type

    Encode String is shorter than 256 bytes

    Encode String is shorter than 256 bytes

    s

    String

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

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

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

  17. 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() @HotSpotIntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. 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

    Exceptions thrown

    AssertionError if x is outside of the unsigned byte range

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

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped