System.Net.Internals.SocketAddress.CopyAddressSizeIntoBuffer C# (CSharp) Method

CopyAddressSizeIntoBuffer() private method

private CopyAddressSizeIntoBuffer ( ) : void
return void
        internal void CopyAddressSizeIntoBuffer()
        {
            Buffer[Buffer.Length - IntPtr.Size] = unchecked((byte)(InternalSize));
            Buffer[Buffer.Length - IntPtr.Size + 1] = unchecked((byte)(InternalSize >> 8));
            Buffer[Buffer.Length - IntPtr.Size + 2] = unchecked((byte)(InternalSize >> 16));
            Buffer[Buffer.Length - IntPtr.Size + 3] = unchecked((byte)(InternalSize >> 24));
        }