Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Combine< T1, T2, T3, T4 >()

static int System.HashCode.Combine< T1, T2, T3, T4 > ( T1 value1,
T2 value2,
T3 value3,
T4 value4 )
inlinestatic

Definition at line 70 of file HashCode.cs.

71 {
72 uint input = (uint)(value1?.GetHashCode() ?? 0);
73 uint input2 = (uint)(value2?.GetHashCode() ?? 0);
74 uint input3 = (uint)(value3?.GetHashCode() ?? 0);
75 uint input4 = (uint)(value4?.GetHashCode() ?? 0);
77 v = Round(v, input);
78 v2 = Round(v2, input2);
79 v3 = Round(v3, input3);
80 v4 = Round(v4, input4);
81 uint num = MixState(v, v2, v3, v4);
82 num += 16;
83 return (int)MixFinal(num);
84 }
static void Initialize(out uint v1, out uint v2, out uint v3, out uint v4)
Definition HashCode.cs:171
static uint Round(uint hash, uint input)
Definition HashCode.cs:180
override int GetHashCode()
Definition HashCode.cs:287
static uint MixState(uint v1, uint v2, uint v3, uint v4)
Definition HashCode.cs:192
static uint MixFinal(uint hash)
Definition HashCode.cs:203

References System.HashCode.GetHashCode(), System.HashCode.Initialize(), System.input, System.HashCode.MixFinal(), System.HashCode.MixState(), and System.HashCode.Round().