NameServiceReallocLayout.fromBuffer constructor
Creates a NameServiceReallocLayout instance from buffer data.
Implementation
factory NameServiceReallocLayout.fromBuffer(List<int> data) {
final decode = ProgramLayout.decodeAndValidateStruct(
layout: _layout,
bytes: data,
instruction: NameServiceProgramInstruction.realloc.insturction,
);
return NameServiceReallocLayout(space: decode["space"]);
}