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
    @HotSpotIntrinsicCandidate() @throws( ... )
  7. final def complexity: Int

    Permalink
    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 getBits(size: Int): Array[Boolean]

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

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

    Permalink
    Definition Classes
    SigmaByteReader → Reader
    Annotations
    @inline()
  16. def getChunk(size: Int): CH

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

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  18. def getInt(): Int

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    SigmaByteReader → Reader
    Annotations
    @inline()
  26. def getULong(): Long

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

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

    Permalink
    Annotations
    @inline()
  29. 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()
  30. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  31. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  32. def level: Int

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

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

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

    Permalink

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  39. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  40. def peekByte(): Byte

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

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

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

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

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

    Permalink

    the underlying reader this reader reads from

  46. def remaining: Int

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

    Permalink

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  50. 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.

  51. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. final def wait(): Unit

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

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Reader

Inherited from AnyRef

Inherited from Any

Ungrouped