Class

sigmastate.serialization

MethodCallSerializer

Related Doc: package serialization

Permalink

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])

    Permalink

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. val argsInfo: DataInfo[Seq[SValue]]

    Permalink
  5. val argsItemInfo: DataInfo[SValue]

    Permalink
  6. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val companion: ValueSerializer.type

    Permalink
    Definition Classes
    ValueSerializer
  9. lazy val complexity: Int

    Permalink
    Definition Classes
    ValueSerializer
  10. val cons: (Value[SType], SMethod, IndexedSeq[Value[SType]], STypeSubst) ⇒ Value[SType]

    Permalink
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def error(msg: String): Nothing

    Permalink
    Definition Classes
    SigmaSerializer
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def fromBytes(bytes: Array[Byte]): Value[SType]

    Permalink
    Definition Classes
    SigmaSerializer
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def getComplexity: Int

    Permalink
    Definition Classes
    MethodCallSerializerValueSerializer
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. val methodCodeInfo: DataInfo[Byte]

    Permalink
  19. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  22. val objInfo: DataInfo[SValue]

    Permalink
  23. final def opCode: OpCode

    Permalink

    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

    Permalink
    Definition Classes
    MethodCallSerializerValueSerializer
  25. def parse(r: SigmaByteReader): Value[SType]

    Permalink

    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]]

    Permalink
    Definition Classes
    Serializer
  27. def parseWithGenericReader(r: Reader)(implicit vs: SigmaValidationSettings): Value[SType]

    Permalink

    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

    Permalink
    Definition Classes
    MethodCallSerializer → Serializer
  29. def serializeWithGenericWriter(obj: MethodCall, w: Writer): Unit

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  31. final def toBytes(obj: MethodCall): Array[Byte]

    Permalink
    Definition Classes
    SigmaSerializer
  32. val typeCodeInfo: DataInfo[Byte]

    Permalink
  33. final def wait(): Unit

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

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

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

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