Trait/Object

scorex.util.serialization

Reader

Related Docs: object Reader | package serialization

Permalink

trait Reader extends AnyRef

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

Type Members

  1. abstract type CH

    Permalink

    Type of encoded data

Abstract Value Members

  1. abstract def consumed: Int

    Permalink

    Returns the number of decoded elements

    Returns the number of decoded elements

    returns

    The number of decoded elements

  2. abstract def getBits(size: Int): Array[Boolean]

    Permalink

    Decode array of boolean values

    Decode array of boolean values

    size

    expected size of decoded array

    returns

    decoded array of boolean values

  3. abstract def getByte(): Byte

    Permalink

    Decode signed byte

    Decode signed byte

    returns

    Byte

  4. abstract def getBytes(size: Int): Array[Byte]

    Permalink

    Decode array of byte values

    Decode array of byte values

    size

    expected size of decoded array

  5. abstract def getChunk(size: Int): CH

    Permalink

    Returns encoded data at current position

  6. abstract def getInt(): Int

    Permalink

    Decode signed Int.

    Decode signed Int.

    returns

    signed Int

  7. abstract def getLong(): Long

    Permalink

    Decode signed Long.

    Decode signed Long.

    returns

    signed Long

  8. abstract def getOption[T](getValue: ⇒ T): Option[T]

    Permalink

    Decode optional value

    Decode optional value

    getValue

    function to decode value, if optional value is nonempty

    returns

    optional value

  9. abstract def getShort(): Short

    Permalink

    Decode signed short

    Decode signed short

    returns

    Short

  10. abstract def getShortString(): String

    Permalink

    Decode String is shorter than 256 bytes

  11. abstract def getUByte(): Int

    Permalink

    Decode positive Byte

    Decode positive Byte

    returns

    signed Int

  12. abstract def getUInt(): Long

    Permalink

    Decode positive Int.

    Decode positive Int.

    returns

    signed Long

  13. abstract def getULong(): Long

    Permalink

    Decode positive Long.

    Decode positive Long.

    returns

    signed Long

  14. abstract def getUShort(): Int

    Permalink

    Decode positive Short.

    Decode positive Short.

    returns

    signed Int

  15. abstract def mark(): Reader.this.type

    Permalink

    Sets the mark to current position

  16. abstract def newReader(chunk: CH): Aux[CH]

    Permalink

    Creates new instance of this Reader

    Creates new instance of this Reader

    chunk

    encoded data

  17. abstract def peekByte(): Byte

    Permalink

    Get a byte at current position without advancing the position.

    Get a byte at current position without advancing the position.

    returns

    byte at current position

  18. abstract def position: Int

    Permalink

    Returns current position

    Returns current position

    returns

    position

  19. abstract def position_=(p: Int): Unit

    Permalink

    Sets position

    Sets position

    p

    position

  20. abstract def remaining: Int

    Permalink

    Returns the number of elements between the current position and the end of Reader

    Returns the number of elements between the current position and the end of Reader

    returns

    The number of elements remaining in th Reader

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. final def asInstanceOf[T0]: T0

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  15. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped