NameServiceReallocLayout.fromBuffer constructor

NameServiceReallocLayout.fromBuffer(
  1. List<int> data
)

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"]);
}