finish method

  1. @override
Hash finish(
  1. List<int> out
)
override

Finalizes the hash computation and stores the result in the provided out buffer.

Implementation

@override
Hash finish(List<int> out) {
  final rounds = getDigestLength ~/ getBlockSize;
  for (int seed = 0; seed < rounds; seed++) {
    final hash = _XXHash64Const.xxhash64(_buffer, seed).reversed.toList();
    out.setAll(seed * 8, hash);
  }
  _finished = true;
  return this;
}