protected override void HashCore(byte[] array, int ibStart, int cbSize)
        {
            XXHash.ErrorCode errorCode = XXHash.InternalUpdateState32(_state, array, ibStart, cbSize);

            if (errorCode != XXHash.ErrorCode.XXH_OK)
            {
                throw new InvalidOperationException();
            }
        }
 public override void Initialize()
 {
     XXHash.InternalResetState32(_state, _state.seed);
 }
        protected override byte[] HashFinal()
        {
            uint value = XXHash.InternalDigestState32(_state);

            return(BitConverter.GetBytes(value));
        }