Class

sigmastate.utils

SigmaByteReader

Related Doc: package utils

Permalink

class SigmaByteReader extends Reader

Reader used in the concrete implementations of SigmaSerializer. It decorates the given reader, delegates most of the methods to it, but also adds new methods.

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

Instance Constructors

  1. new SigmaByteReader(r: Reader, constantStore: ConstantStore, resolvePlaceholdersToConstants: Boolean, maxTreeDepth: Int = SigmaSerializer.MaxTreeDepth)

    Permalink

    r

    the underlying reader this reader reads from

    constantStore

    the store of constants which is used to resolve sigmastate.Values.ConstantPlaceholder

    resolvePlaceholdersToConstants

    if true then resolved constants will be substituted in the tree instead of the placeholder.

    maxTreeDepth

    limit on the tree depth (recursive invocations) of the deserializer

Type Members

  1. type CH = scorex.util.serialization.Reader.CH

    Permalink
    Definition Classes
    SigmaByteReader → Reader

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 addComplexity(delta: Int): Unit

    Permalink
    Annotations
    @inline()
  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 complexity: Int

    Permalink

    Helper property which is used to accumulate complexity during parsing.

    Helper property which is used to accumulate complexity during parsing.

    Annotations
    @inline()
  8. final def complexity_=(v: Int): Unit

    Permalink
    Annotations
    @inline()
  9. var constantStore: ConstantStore

    Permalink

    the store of constants which is used to resolve sigmastate.Values.ConstantPlaceholder

  10. def consumed: Int

    Permalink
    Definition Classes
    SigmaByteReader → Reader
    Annotations
    @inline()
  11. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def getBits(size: Int): Array[Boolean]

    Permalink
    Definition Classes
    SigmaByteReader → Reader
    Annotations
    @inline()
  15. def getByte(): Byte

    Permalink
    Definition Classes
    SigmaByteReader → Reader
    Annotations
    @inline()
  16. def getBytes(size: Int): Array[Byte]

    Permalink
    Definition Classes
    SigmaByteReader → Reader
    Annotations
    @inline()
  17. final def getBytesUnsafe(numRequestedBytes: Int): Array[Byte]

    Permalink

    Reads either the given of remaining number of bytes from this reader.

    Reads either the given of remaining number of bytes from this reader. This method is unsafe because it may return less than requested number of bytes.

    Annotations
    @inline()
  18. def getChunk(size: Int): CH

    Permalink
    Definition Classes
    SigmaByteReader → Reader
    Annotations
    @inline()
  19. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    SigmaByteReader → Reader
    Annotations
    @inline()
  21. def getLong(): Long

    Permalink
    Definition Classes
    SigmaByteReader → Reader
    Annotations
    @inline()
  22. def getOption[T](getValue: ⇒ T): Option[T]

    Permalink
    Definition Classes
    SigmaByteReader → Reader
    Annotations
    @inline()
  23. def getShort(): Short

    Permalink
    Definition Classes
    SigmaByteReader → Reader
    Annotations
    @inline()
  24. def getShortString(): String

    Permalink
    Definition Classes
    SigmaByteReader → Reader
    Annotations
    @inline()
  25. def getType(): SType

    Permalink
    Annotations
    @inline()
  26. def getUByte(): Int

    Permalink
    Definition Classes
    SigmaByteReader → Reader
    Annotations
    @inline()
  27. def getUInt(): Long

    Permalink
    Definition Classes
    SigmaByteReader → Reader
    Annotations
    @inline()
  28. def getUIntExact: Int

    Permalink
    Annotations
    @inline()
  29. def getULong(): Long

    Permalink
    Definition Classes
    SigmaByteReader → Reader
    Annotations
    @inline()
  30. def getUShort(): Int

    Permalink
    Definition Classes
    SigmaByteReader → Reader
    Annotations
    @inline()
  31. def getValue(): SValue

    Permalink
    Annotations
    @inline()
  32. def getValues(): IndexedSeq[SValue]

    Permalink

    Read sequence of values from this reader.

    Read sequence of values from this reader. It first reads the number of values and then reads each value using getValue method.

    returns

    a sequence of zero of more values read

    Annotations
    @inline()
  33. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  35. def level: Int

    Permalink
    Annotations
    @inline()
  36. def level_=(v: Int): Unit

    Permalink
    Annotations
    @inline()
  37. def mark(): SigmaByteReader.this.type

    Permalink
    Definition Classes
    SigmaByteReader → Reader
    Annotations
    @inline()
  38. val maxTreeDepth: Int

    Permalink

    limit on the tree depth (recursive invocations) of the deserializer

  39. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  40. def newReader(chunk: CH): Aux[CH]

    Permalink
    Definition Classes
    SigmaByteReader → Reader
    Annotations
    @inline()
  41. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  43. def peekByte(): Byte

    Permalink
    Definition Classes
    SigmaByteReader → Reader
    Annotations
    @inline()
  44. def position: Int

    Permalink
    Definition Classes
    SigmaByteReader → Reader
    Annotations
    @inline()
  45. final def positionLimit: Int

    Permalink
    Annotations
    @inline()
  46. final def positionLimit_=(v: Int): Unit

    Permalink
    Annotations
    @inline()
  47. def position_=(p: Int): Unit

    Permalink
    Definition Classes
    SigmaByteReader → Reader
    Annotations
    @inline()
  48. val r: Reader

    Permalink

    the underlying reader this reader reads from

  49. def remaining: Int

    Permalink
    Definition Classes
    SigmaByteReader → Reader
    Annotations
    @inline()
  50. var resolvePlaceholdersToConstants: Boolean

    Permalink

    if true then resolved constants will be substituted in the tree instead of the placeholder.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  53. lazy val valDefTypeStore: ValDefTypeStore

    Permalink

    The reader should be lightweight to create.

    The reader should be lightweight to create. In most cases ErgoTrees don't have ValDef nodes hence the store is not necessary and it's initialization dominates the reader instantiation time. Hence it's lazy. HOTSPOT:

  54. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. final def wasDeserialize: Boolean

    Permalink

    Helper property which is used to track deserialization operations during parsing.

    Helper property which is used to track deserialization operations during parsing.

    Annotations
    @inline()
  58. final def wasDeserialize_=(v: Boolean): Unit

    Permalink
    Annotations
    @inline()

Inherited from Reader

Inherited from AnyRef

Inherited from Any

Ungrouped