public static int GetHashCode(byte[] bytes, int offset, int count) { if (UnsafeMemory.Is64BitProcess) { return(unchecked ((int)FarmHash.Hash64(bytes, offset, count))); } return(unchecked ((int)FarmHash.Hash32(bytes, offset, count))); }
public static int GetHashCode(ReadOnlySpan <byte> span) { if (UnsafeMemory.Is64BitProcess) { return(unchecked ((int)FarmHash.Hash64(span))); } return(unchecked ((int)FarmHash.Hash32(span))); }
public static int GetHashCode(ReadOnlySpan <byte> bytes) { if (Is32Bit) { return(unchecked ((int)FarmHash.Hash32(bytes))); } else { return(unchecked ((int)FarmHash.Hash64(bytes))); } }
public static int GetHashCode(byte[] bytes, int offset, int count) { if (Is32Bit) { return(unchecked ((int)FarmHash.Hash32(bytes, offset, count))); } else { return(unchecked ((int)FarmHash.Hash64(bytes, offset, count))); } }
public int GetHashCode(ReadOnlySpan <byte> key2) { unchecked { if (UnsafeMemory.Is64BitProcess) { return((int)FarmHash.Hash64(key2)); } return((int)FarmHash.Hash32(key2)); } }
public int GetHashCode(byte[] key1) { unchecked { if (UnsafeMemory.Is64BitProcess) { return((int)FarmHash.Hash64(key1, 0, key1.Length)); } return((int)FarmHash.Hash32(key1, 0, key1.Length)); } }
public int GetHashCode(ArraySegment <byte> key2) { unchecked { if (UnsafeMemory.Is64BitProcess) { return((int)FarmHash.Hash64(key2.Array, key2.Offset, key2.Count)); } return((int)FarmHash.Hash32(key2.Array, key2.Offset, key2.Count)); } }
public int GetHashCode(ArraySegment <byte> key2) { unchecked { if (Is32Bit) { return((int)FarmHash.Hash32(key2.Array, key2.Offset, key2.Count)); } else { return((int)FarmHash.Hash64(key2.Array, key2.Offset, key2.Count)); } } }