nextU256 method

BigInt nextU256()

Implementation

BigInt nextU256() {
  // final value = bytesToU256(_byteData.toBytes(), _offset);
  // _offset += 32;
  // return value;
  ByteBuffer buffer = _byteData.toBytes().buffer;
  final data = buffer.asUint8List(_offset, 32);
  final value = bytesToBigInt(data, endian: Endian.little);
  _offset += 32;
  return value;
}