SystemAllocateLayout.fromBuffer constructor

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

Implementation

factory SystemAllocateLayout.fromBuffer(List<int> data) {
  final decode = ProgramLayout.decodeAndValidateStruct(
      layout: _layout,
      bytes: data,
      instruction: SystemProgramInstruction.allocate.insturction);
  return SystemAllocateLayout(space: decode["space"]);
}