Class

scorex.util.serialization

VLQByteBufferReader

Related Doc: package serialization

Permalink

class VLQByteBufferReader extends VLQReader

Not thread safe

Linear Supertypes
VLQReader, Reader, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. VLQByteBufferReader
  2. VLQReader
  3. Reader
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new VLQByteBufferReader(buf: ByteBuffer)

    Permalink

Type Members

  1. type CH = ByteBuffer

    Permalink

    Type of encoded data

    Type of encoded data

    Definition Classes
    VLQByteBufferReaderReader

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. def consumed: Int

    Permalink

    Returns the number of decoded elements

    Returns the number of decoded elements

    returns

    The number of decoded elements

    Definition Classes
    VLQByteBufferReaderReader
    Annotations
    @inline()
  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. 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

    Definition Classes
    VLQReaderReader
    Annotations
    @inline()
  11. def getByte(): Byte

    Permalink

    Decode signed byte

    Decode signed byte

    returns

    Byte

    Definition Classes
    VLQByteBufferReaderReader
    Annotations
    @inline()
  12. def getBytes(size: Int): Array[Byte]

    Permalink

    Decode array of byte values

    Decode array of byte values

    size

    expected size of decoded array

    Definition Classes
    VLQByteBufferReaderReader
    Annotations
    @inline()
  13. def getChunk(size: Int): ByteBuffer

    Permalink

    Returns encoded data at current position

    Returns encoded data at current position

    Definition Classes
    VLQByteBufferReaderReader
    Annotations
    @inline()
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def getInt(): Int

    Permalink

    Decode signed Int previously encoded with VLQWriter.putInt using VLQ with ZigZag.

    Decode signed Int previously encoded with VLQWriter.putInt using VLQ with ZigZag.

    returns

    signed Int

    Definition Classes
    VLQReaderReader
    Annotations
    @inline()
    Note

    Uses ZigZag encoding. Should be used to decode only a value that was previously encoded with VLQByteBufferWriter.putInt.

    See also

    https://en.wikipedia.org/wiki/Variable-length_quantity

  16. def getLong(): Long

    Permalink

    Decode signed Long previously encoded with VLQWriter.putLong using VLQ with ZigZag.

    Decode signed Long previously encoded with VLQWriter.putLong using VLQ with ZigZag.

    returns

    signed Long

    Definition Classes
    VLQReaderReader
    Annotations
    @inline()
    Note

    Uses ZigZag encoding. Should be used to decode only a value that was previously encoded with VLQWriter.putLong.

    See also

    https://en.wikipedia.org/wiki/Variable-length_quantity

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

    Definition Classes
    VLQReaderReader
    Annotations
    @inline()
  18. def getShort(): Short

    Permalink

    Decode signed Short previously encoded with VLQWriter.putShort using VLQ and then ZigZag.

    Decode signed Short previously encoded with VLQWriter.putShort using VLQ and then ZigZag.

    returns

    signed Short

    Definition Classes
    VLQReaderReader
    Annotations
    @inline()
    Note

    Uses VLQ and then ZigZag encoding. Should be used to decode only a value that was previously encoded with VLQByteBufferWriter.putShort.

    See also

    https://en.wikipedia.org/wiki/Variable-length_quantity

  19. def getShortString(): String

    Permalink

    Decode String is shorter than 256 bytes

    Decode String is shorter than 256 bytes

    Definition Classes
    VLQReaderReader
    Annotations
    @inline()
  20. def getUByte(): Int

    Permalink

    Decode positive Byte

    Decode positive Byte

    returns

    signed Int

    Definition Classes
    VLQReaderReader
    Annotations
    @inline()
  21. def getUInt(): Long

    Permalink

    Decode Int previously encoded with VLQWriter.putUInt using VLQ.

    Decode Int previously encoded with VLQWriter.putUInt using VLQ.

    returns

    Long

    Definition Classes
    VLQReaderReader
    Annotations
    @inline()
    See also

    https://en.wikipedia.org/wiki/Variable-length_quantity

  22. def getULong(): Long

    Permalink

    Decode Long previously encoded with VLQWriter.putULong using VLQ.

    Decode Long previously encoded with VLQWriter.putULong using VLQ.

    returns

    Long

    Definition Classes
    VLQReaderReader
    Annotations
    @inline()
    See also

    https://en.wikipedia.org/wiki/Variable-length_quantity

  23. def getUShort(): Int

    Permalink

    Decode Short previously encoded with VLQWriter.putUShort using VLQ.

    Decode Short previously encoded with VLQWriter.putUShort using VLQ.

    returns

    Int

    Definition Classes
    VLQReaderReader
    Annotations
    @inline()
    Exceptions thrown

    AssertionError for deserialized values not in unsigned Short range

    See also

    https://en.wikipedia.org/wiki/Variable-length_quantity

  24. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  26. def mark(): VLQByteBufferReader.this.type

    Permalink

    Sets the mark to current position

    Sets the mark to current position

    Definition Classes
    VLQByteBufferReaderReader
    Annotations
    @inline()
  27. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. def newReader(chunk: ByteBuffer): Aux[ByteBuffer]

    Permalink

    Creates new instance of this Reader

    Creates new instance of this Reader

    chunk

    encoded data

    Definition Classes
    VLQByteBufferReaderReader
    Annotations
    @inline()
  29. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  31. 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

    Definition Classes
    VLQByteBufferReaderReader
    Annotations
    @inline()
  32. def position: Int

    Permalink

    Returns current position

    Returns current position

    returns

    position

    Definition Classes
    VLQByteBufferReaderReader
    Annotations
    @inline()
  33. def position_=(p: Int): Unit

    Permalink

    Sets position

    Sets position

    p

    position

    Definition Classes
    VLQByteBufferReaderReader
    Annotations
    @inline()
  34. 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

    Definition Classes
    VLQByteBufferReaderReader
    Annotations
    @inline()
  35. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from VLQReader

Inherited from Reader

Inherited from AnyRef

Inherited from Any

Ungrouped