c

sigmastate.serialization

MethodCallSerializer

case class MethodCallSerializer(cons: (Value[SType], SMethod, IndexedSeq[Value[SType]], STypeSubst) ⇒ Value[SType]) extends ValueSerializer[MethodCall] with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, ValueSerializer[MethodCall], SigmaSerializer[Value[SType], MethodCall], Serializer[Value[SType], MethodCall, SigmaByteReader, SigmaByteWriter], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MethodCallSerializer
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. ValueSerializer
  7. SigmaSerializer
  8. Serializer
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MethodCallSerializer(cons: (Value[SType], SMethod, IndexedSeq[Value[SType]], STypeSubst) ⇒ Value[SType])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val argsInfo: DataInfo[Seq[SValue]]
  5. val argsItemInfo: DataInfo[SValue]
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. val companion: ValueSerializer.type
    Definition Classes
    ValueSerializer
  9. lazy val complexity: Int
    Definition Classes
    ValueSerializer
  10. val cons: (Value[SType], SMethod, IndexedSeq[Value[SType]], STypeSubst) ⇒ Value[SType]
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def error(msg: String): Nothing
    Definition Classes
    SigmaSerializer
  13. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def fromBytes(bytes: Array[Byte]): Value[SType]
    Definition Classes
    SigmaSerializer
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def getComplexity: Int
    Definition Classes
    MethodCallSerializerValueSerializer
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. val methodCodeInfo: DataInfo[Byte]
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. val objInfo: DataInfo[SValue]
  23. final def opCode: OpCode

    Code of the corresponding tree node (Value.opCode) which is used to lookup this serizalizer during deserialization.

    Code of the corresponding tree node (Value.opCode) which is used to lookup this serizalizer during deserialization. It is emitted immediately before the body of this node in serialized byte array.

    Definition Classes
    ValueSerializer
    Annotations
    @inline()
  24. def opDesc: ValueCompanion
    Definition Classes
    MethodCallSerializerValueSerializer
  25. def parse(r: SigmaByteReader): Value[SType]

    The SMethod instances in STypeCompanions may have type STypeIdent in methods types, but a valid ErgoTree should have SMethod instances specialized for specific types of obj and args using specializeFor.

    The SMethod instances in STypeCompanions may have type STypeIdent in methods types, but a valid ErgoTree should have SMethod instances specialized for specific types of obj and args using specializeFor. This means, if we save typeId, methodId, and we save all the arguments, we can restore the specialized SMethod instance. This work by induction, if we assume all arguments are monomorphic, then we can make MethodCall monomorphic. Thus, all ErgoTree is monomorphic by construction. This is limitation of MethodCall, because we cannot use it to represent for example def Box.getReg[T](id: Int): Option[T], which require serialization of expected type T However it can be implemented using separate node type (new type code) and can be added via soft-fork.

    Definition Classes
    MethodCallSerializer → Serializer
  26. def parseTry(r: SigmaByteReader): Try[Value[SType]]
    Definition Classes
    Serializer
  27. def parseWithGenericReader(r: Reader)(implicit vs: SigmaValidationSettings): Value[SType]

    Wraps the given reader in SigmaByteReader and delegates to parse.

    Wraps the given reader in SigmaByteReader and delegates to parse. NOTE: it is used in spam tests.

    Definition Classes
    SigmaSerializer
  28. def serialize(mc: MethodCall, w: SigmaByteWriter): Unit
    Definition Classes
    MethodCallSerializer → Serializer
  29. def serializeWithGenericWriter(obj: MethodCall, w: Writer): Unit

    Wraps the given writer in SigmaByteWriter and delegates to serialize.

    Wraps the given writer in SigmaByteWriter and delegates to serialize. NOTE: it is used in spam tests.

    Definition Classes
    SigmaSerializer
  30. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  31. final def toBytes(obj: MethodCall): Array[Byte]
    Definition Classes
    SigmaSerializer
  32. val typeCodeInfo: DataInfo[Byte]
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ValueSerializer[MethodCall]

Inherited from Serializer[Value[SType], MethodCall, SigmaByteReader, SigmaByteWriter]

Inherited from AnyRef

Inherited from Any

Ungrouped