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

◆ GetHashCode()

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

Definition at line 126 of file SocketAddress.cs.

127 {
128 if (_changed)
129 {
130 _changed = false;
131 _hash = 0;
132 int num = Size & -4;
133 int i;
134 for (i = 0; i < num; i += 4)
135 {
137 }
138 if (((uint)Size & 3u) != 0)
139 {
140 int num2 = 0;
141 int num3 = 0;
142 for (; i < Size; i++)
143 {
144 num2 |= Buffer[i] << num3;
145 num3 += 8;
146 }
147 _hash ^= num2;
148 }
149 }
150 return _hash;
151 }
static int ReadInt32LittleEndian(ReadOnlySpan< byte > source)

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