saveState method

  1. @override
HashBytesState saveState()
override

Saves the current hash state.

Implementation

@override
HashBytesState saveState() {
  if (_finished) {
    throw const MessageException(
        "XXHash64: can't update because hash was finished.");
  }
  return HashBytesState(data: _buffer, pos: _buffer.length);
}