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

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

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

Definition at line 124 of file HashCode.cs.

125 {
126 uint input = (uint)(value1?.GetHashCode() ?? 0);
127 uint input2 = (uint)(value2?.GetHashCode() ?? 0);
128 uint input3 = (uint)(value3?.GetHashCode() ?? 0);
129 uint input4 = (uint)(value4?.GetHashCode() ?? 0);
130 uint queuedValue = (uint)(value5?.GetHashCode() ?? 0);
131 uint queuedValue2 = (uint)(value6?.GetHashCode() ?? 0);
132 uint queuedValue3 = (uint)(value7?.GetHashCode() ?? 0);
134 v = Round(v, input);
135 v2 = Round(v2, input2);
136 v3 = Round(v3, input3);
137 v4 = Round(v4, input4);
138 uint num = MixState(v, v2, v3, v4);
139 num += 28;
140 num = QueueRound(num, queuedValue);
141 num = QueueRound(num, queuedValue2);
142 num = QueueRound(num, queuedValue3);
143 return (int)MixFinal(num);
144 }
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().