MemoLayout class
Represents the layout for a memo in a Solana transaction.
- Inheritance
-
- Object
- ProgramLayout
- MemoLayout
Constructors
- MemoLayout({required String memo})
-
Constructs a MemoLayout instance.
const
-
MemoLayout.fromBuffer(List<
int> data) -
Constructs a MemoLayout instance from a buffer.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- instruction → int
-
The instruction of the program.
no setteroverride
- layout → Structure
-
The layout representing the structure of the program.
no setteroverride
- memo → String
-
The memo string.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
) → Map< String, dynamic> -
Serializes the program.
override
-
toBytes(
) → List< int> -
Converts the program to bytes using Borsh serialization.
override
-
toHex(
) → String -
Converts the program to a hexadecimal string.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited