CSPspEmu.Core.Hashing.FastHash C# (CSharp) Method

FastHash() private method

private FastHash ( byte Pointer, int Count, ulong StartHash ) : ulong
Pointer byte
Count int
StartHash ulong
return ulong
        public static ulong FastHash(byte* Pointer, int Count, ulong StartHash = 0)
        {
            if (Pointer == null)
            {
                return StartHash;
            }

            if (Count > 4 * 2048 * 2048)
            {
                Logger.Error("FastHash too big count!");
                return StartHash;
            }

            try
            {
                return FastHash_64(Pointer, Count, StartHash);
            }
            catch (NullReferenceException NullReferenceException)
            {
                Logger.Error(NullReferenceException);
            }
            catch (AccessViolationException AccessViolationException)
            {
                Logger.Error(AccessViolationException);
            }

            return StartHash;
        }