NameServiceUpdateLayout.fromBuffer constructor
Creates a NameServiceUpdateLayout instance from buffer data.
Implementation
factory NameServiceUpdateLayout.fromBuffer(List<int> data) {
Map<String, dynamic> decode = ProgramLayout.decodeAndValidateStruct(
layout: _layout,
bytes: data,
instruction: NameServiceProgramInstruction.update.insturction,
);
return NameServiceUpdateLayout(
inputData: decode["inputData"],
offset: decode["offset"],
);
}