write128 method

BcsWriter write128(
  1. BigInt value
)

Write a U128 value into a buffer and shift cursor position by 16.

Implementation

BcsWriter write128(BigInt value) {
  final low = value & MAX_U64_BIG_INT;
  final high = value >> 64;

  // write little endian number
  write64(low);
  write64(high);

  return this;
}