MoveStructArgument class
Represents a BCS-serializable struct argument. Encodes struct fields in declaration order.
- Inheritance
-
- Object
- Serializable
- MoveStructArgument
- Implemented types
Constructors
- MoveStructArgument(Uint8List bcsBytes)
- Creates a new struct argument from pre-encoded BCS bytes.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
bcsToBytes(
) → Uint8List -
Returns the raw struct bytes without additional wrapping.
override
-
bcsToHex(
) → Hex -
Converts the BCS-serialized bytes of a value into a Hex instance.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
Serializer serializer) → void -
override
-
serializeForEntryFunction(
Serializer serializer) → void -
Serialize an argument as a type-agnostic, fixed byte sequence. The byte
sequence contains the number of the following bytes followed by the
BCS-serialized bytes for a typed argument.
override
-
toString(
) → String -
Returns the hex string representation of the value with the 0x prefix.
inherited
-
toStringWithoutPrefix(
) → String -
Returns the hex string representation of the value without the 0x prefix.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited