Pointer.fromBytes constructor

Pointer.fromBytes(
  1. List<int> data
)

Implementation

factory Pointer.fromBytes(List<int> data) {
  final slot = BigintUtils.variableNatDecode(data);
  final txIndex = BigintUtils.variableNatDecode(data.sublist(slot.item2));
  final certIndex =
      BigintUtils.variableNatDecode(data.sublist(slot.item2 + txIndex.item2));
  return Pointer(
      slot: slot.item1, txIndex: txIndex.item1, certIndex: certIndex.item1);
}