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;
}