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

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

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

Definition at line 104 of file HashCode.cs.

105 {
106 uint input = (uint)(value1?.GetHashCode() ?? 0);
107 uint input2 = (uint)(value2?.GetHashCode() ?? 0);
108 uint input3 = (uint)(value3?.GetHashCode() ?? 0);
109 uint input4 = (uint)(value4?.GetHashCode() ?? 0);
110 uint queuedValue = (uint)(value5?.GetHashCode() ?? 0);
111 uint queuedValue2 = (uint)(value6?.GetHashCode() ?? 0);
113 v = Round(v, input);
114 v2 = Round(v2, input2);
115 v3 = Round(v3, input3);
116 v4 = Round(v4, input4);
117 uint num = MixState(v, v2, v3, v4);
118 num += 24;
119 num = QueueRound(num, queuedValue);
120 num = QueueRound(num, queuedValue2);
121 return (int)MixFinal(num);
122 }
static uint QueueRound(uint hash, uint queuedValue)
Definition HashCode.cs:186
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(), System.HashCode.QueueRound(), and System.HashCode.Round().