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

◆ CopyAddressSizeIntoBuffer()

void System.Net.Internals.SocketAddress.CopyAddressSizeIntoBuffer ( )
inlinepackage

Definition at line 111 of file SocketAddress.cs.

112 {
113 Buffer[Buffer.Length - IntPtr.Size] = (byte)InternalSize;
114 Buffer[Buffer.Length - IntPtr.Size + 1] = (byte)(InternalSize >> 8);
115 Buffer[Buffer.Length - IntPtr.Size + 2] = (byte)(InternalSize >> 16);
116 Buffer[Buffer.Length - IntPtr.Size + 3] = (byte)(InternalSize >> 24);
117 }

References System.Net.Internals.SocketAddress.InternalSize, and System.IntPtr.Size.