public static string FastHashFNV1a64ToString(this byte[] data, int offset = 0, int count = 0, bool lowercaseHex = false) { FNV1a64Hash fff = new FNV1a64Hash(); byte[] hash = offset > 0 || count > 0 ? fff.ComputeHash(data, offset, count) : fff.ComputeHash(data); return(hash.ToHexString(lowercaseHex)); }
public static ulong FastHashFNV1a64(this byte[] data, int offset = 0, int count = 0) { FNV1a64Hash fff = new FNV1a64Hash(); byte[] hash = offset > 0 || count > 0 ? fff.ComputeHash(data, offset, count) : fff.ComputeHash(data); return(fff.Hash64); }