case class MethodCallSerializer(cons: (Value[SType], SMethod, IndexedSeq[Value[SType]], STypeSubst) ⇒ Value[SType]) extends ValueSerializer[MethodCall] with Product with Serializable
- Alphabetic
- By Inheritance
- MethodCallSerializer
- Serializable
- Serializable
- Product
- Equals
- ValueSerializer
- SigmaSerializer
- Serializer
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val argsInfo: DataInfo[Seq[SValue]]
- val argsItemInfo: DataInfo[SValue]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
val
companion: ValueSerializer.type
- Definition Classes
- ValueSerializer
-
lazy val
complexity: Int
- Definition Classes
- ValueSerializer
- val cons: (Value[SType], SMethod, IndexedSeq[Value[SType]], STypeSubst) ⇒ Value[SType]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
error(msg: String): Nothing
- Definition Classes
- SigmaSerializer
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
fromBytes(bytes: Array[Byte]): Value[SType]
- Definition Classes
- SigmaSerializer
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getComplexity: Int
- Definition Classes
- MethodCallSerializer → ValueSerializer
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val methodCodeInfo: DataInfo[Byte]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val objInfo: DataInfo[SValue]
-
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()
-
def
opDesc: ValueCompanion
- Definition Classes
- MethodCallSerializer → ValueSerializer
-
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
andargs
usingspecializeFor
.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
andargs
usingspecializeFor
. 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 typeT
However it can be implemented using separate node type (new type code) and can be added via soft-fork.- Definition Classes
- MethodCallSerializer → Serializer
-
def
parseTry(r: SigmaByteReader): Try[Value[SType]]
- Definition Classes
- Serializer
-
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
-
def
serialize(mc: MethodCall, w: SigmaByteWriter): Unit
- Definition Classes
- MethodCallSerializer → Serializer
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
toBytes(obj: MethodCall): Array[Byte]
- Definition Classes
- SigmaSerializer
- val typeCodeInfo: DataInfo[Byte]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()