protected override void HashCore(byte[] array, int ibStart, int cbSize) { XXHash.ErrorCode errorCode = XXHash.InternalUpdateState64(_state, array, ibStart, cbSize); if (errorCode != XXHash.ErrorCode.XXH_OK) { throw new InvalidOperationException(); } }
public override void Initialize() { XXHash.InternalResetState64(_state, _state.seed); }
protected override byte[] HashFinal() { ulong value = XXHash.InternalDigestState64(_state); return(BitConverter.GetBytes(value)); }