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

◆ GetHashCode() [3/3]

override int System.Net.Internals.SocketAddress.GetHashCode ( )
inline

Definition at line 140 of file SocketAddress.cs.

141 {
142 if (_changed)
143 {
144 _changed = false;
145 _hash = 0;
146 int num = Size & -4;
147 int i;
148 for (i = 0; i < num; i += 4)
149 {
151 }
152 if (((uint)Size & 3u) != 0)
153 {
154 int num2 = 0;
155 int num3 = 0;
156 for (; i < Size; i++)
157 {
158 num2 |= Buffer[i] << num3;
159 num3 += 8;
160 }
161 _hash ^= num2;
162 }
163 }
164 return _hash;
165 }
static int ReadInt32LittleEndian(ReadOnlySpan< byte > source)

References System.Net.Internals.SocketAddress._changed, System.Net.Internals.SocketAddress._hash, System.Buffers.Binary.BinaryPrimitives.ReadInt32LittleEndian(), and System.Net.Internals.SocketAddress.Size.