Exemple #1
0
        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();
            }
        }
Exemple #2
0
 public override void Initialize()
 {
     XXHash.InternalResetState64(_state, _state.seed);
 }
Exemple #3
0
        protected override byte[] HashFinal()
        {
            ulong value = XXHash.InternalDigestState64(_state);

            return(BitConverter.GetBytes(value));
        }