NameServiceReallocLayout class
Realloc the data of a name record.
- Inheritance
-
- Object
- ProgramLayout
- NameServiceProgramLayout
- NameServiceReallocLayout
Constructors
- NameServiceReallocLayout({required int space})
-
Constructs a NameServiceReallocLayout instance with the specified space.
const
-
NameServiceReallocLayout.fromBuffer(List<
int> data) -
Creates a NameServiceReallocLayout instance from buffer data.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- instruction → int
-
The instruction associated with the layout.
no setteroverride
- layout → Structure
-
The layout structure.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- space → int
-
New total number of bytes in addition to the
NameRecordHeader
. There are no checks on the existing data; it will be truncated if the new space is less than the current space.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
) → Map< String, dynamic> -
Serializes the layout data.
override
-
toBytes(
) → List< int> -
Converts the program to bytes using Borsh serialization.
inherited
-
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