write256 method

BcsWriter write256(
  1. BigInt value
)

Write a U256 value into a buffer and shift cursor position by 32.

Implementation

BcsWriter write256(BigInt value) {
  final low = value & MAX_U128_BIG_INT;
  final high = value >> 128;

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

  return this;
}