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

◆ ToHashCode()

int System.HashCode.ToHashCode ( )
inline

Definition at line 264 of file HashCode.cs.

265 {
266 uint length = _length;
267 uint num = length % 4;
268 uint num2 = ((length < 4) ? MixEmptyState() : MixState(_v1, _v2, _v3, _v4));
269 num2 += length * 4;
270 if (num != 0)
271 {
273 if (num > 1)
274 {
276 if (num > 2)
277 {
279 }
280 }
281 }
282 return (int)MixFinal(num2);
283 }
static uint QueueRound(uint hash, uint queuedValue)
Definition HashCode.cs:186
static uint MixEmptyState()
Definition HashCode.cs:197
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._length, System.HashCode._queue1, System.HashCode._queue2, System.HashCode._queue3, System.HashCode._v1, System.HashCode._v2, System.HashCode._v3, System.HashCode._v4, System.length, System.HashCode.MixEmptyState(), System.HashCode.MixFinal(), System.HashCode.MixState(), and System.HashCode.QueueRound().

Referenced by System.Diagnostics.Metrics.ObjectSequenceMany.GetHashCode(), System.Diagnostics.Metrics.StringSequenceMany.GetHashCode(), System.Diagnostics.ActivityLink.GetHashCode(), System.Numerics.Matrix4x4.GetHashCode(), and System.Array.GetHashCode().