serializeU128 method

void serializeU128(
  1. BigInt value
)

Implementation

void serializeU128(BigInt value) {
  checkNumberRange(value, BigInt.zero, MAX_U128_BIG_INT);

  final low = value & MAX_U64_BIG_INT;
  final high = value >> 64;

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