5internal static class Hash
11 internal static int Combine(
int newKey,
int currentKey)
13 return currentKey * -1521134295 + newKey;
16 internal static int Combine(uint newKey,
int currentKey)
18 return currentKey * -1521134295 + (int)newKey;
21 internal static int Combine(
bool newKeyPart,
int currentKey)
23 return Combine(currentKey, newKeyPart ? 1 : 0);
28 int num = -2128831035;
29 for (
int i = 0; i < data.Length; i++)
31 num = (num ^ data[i]) * 16777619;
38 int num = -2128831035;
39 for (
int i = 0; i < data.
Length; i++)
41 num = (num ^ data[i]) * 16777619;
static int GetFNVHashCode(ImmutableArray< byte > data)
static int GetFNVHashCode(byte[] data)
static int Combine(uint newKey, int currentKey)
static int Combine(bool newKeyPart, int currentKey)
static int Combine(int newKey, int currentKey)