serializeU256 method

void serializeU256(
  1. BigInt value
)

Implementation

void serializeU256(BigInt value) {
  checkNumberRange(value, BigInt.zero, MAX_U256_BIG_INT);

  final low = value & MAX_U128_BIG_INT;
  final high = value >> 128;

  // write little endian number
  serializeU128(low);
  serializeU128(high);
}