Class/Object

scorex.util.serialization

Writer

Related Docs: object Writer | package serialization

Permalink

abstract class Writer extends AnyRef

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

Instance Constructors

  1. new Writer()

    Permalink

Type Members

  1. abstract type CH

    Permalink

    Type of encoded data

Abstract Value Members

  1. abstract def length(): Int

    Permalink

    Length of encoded data

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

    Permalink

    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

    Permalink

    Encode signed byte

    Encode signed byte

    x

    byte value to encode

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

    Permalink

    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

    Permalink

    Encode boolean

    Encode boolean

    x

    boolean value to encode

  6. abstract def putBytes(xs: Array[Byte], offset: Int, length: Int): Writer.this.type

    Permalink

    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

    Permalink

    Encode an array of bytes

    Encode an array of bytes

    xs

    value to encode

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

    Permalink

    Encode chunk

    Encode chunk

    chunk

    to put into this Writer

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

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    Returns encoded result

    Returns encoded result

    returns

    encoded result

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

    Permalink

    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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  16. def putUByte(x: Int): Writer.this.type

    Permalink

    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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped