1 write to m_Buffer
System (1)
net\System\Net\SocketAddress.cs (1)
123
m_Buffer
= new byte[(size/IntPtr.Size+2)*IntPtr.Size];//sizeof DWORD
88 references to m_Buffer
System (88)
net\System\Net\_AutoWebProxyScriptHelper.cs (3)
593
saddrv6.
m_Buffer
,
605
saddrv4.
m_Buffer
,
649
GCHandles[i] = GCHandle.Alloc(SockAddrIn6List[i].
m_Buffer
, GCHandleType.Pinned);
net\System\Net\DNS.cs (2)
1150
sockaddr.
m_Buffer
[d] = *(pAddressInfo->ai_addr + d);
1206
address.
m_Buffer
,
net\System\Net\IPAddress.cs (2)
197
saddr.
m_Buffer
,
451
saddr.
m_Buffer
,
net\System\Net\NetworkInformation\ping.cs (2)
686
error = (int)UnsafeNetInfoNativeMethods.Icmp6SendEcho2 (handlePingV6, pingEvent.SafeWaitHandle, IntPtr.Zero, IntPtr.Zero, sourceAddr, remoteAddr.
m_Buffer
, requestBuffer, (ushort)buffer.Length, ref ipOptions, replyBuffer, MaxUdpPacket, (uint)timeout);
689
error = (int)UnsafeNetInfoNativeMethods.Icmp6SendEcho2 (handlePingV6, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, sourceAddr, remoteAddr.
m_Buffer
, requestBuffer, (ushort)buffer.Length, ref ipOptions, replyBuffer, MaxUdpPacket, (uint)timeout);
net\System\Net\NetworkInformation\SystemNetworkInterface.cs (1)
47
int error = (int)UnsafeNetInfoNativeMethods.GetBestInterfaceEx(address.
m_Buffer
, out index);
net\System\Net\NetworkInformation\UnSafeNetInfoNativemethods.cs (1)
120
Marshal.Copy(address, sockAddress.
m_Buffer
, 0, addressLength);
net\System\Net\SocketAddress.cs (49)
53
family =
m_Buffer
[0] | ((int)
m_Buffer
[1]<<8);
92
return
m_Buffer
[offset];
98
if (
m_Buffer
[offset] != value) {
101
m_Buffer
[offset] = value;
129
m_Buffer
[0] = unchecked((byte)((int)family ));
130
m_Buffer
[1] = unchecked((byte)((int)family>>8));
139
m_Buffer
[2] = (byte)0;
140
m_Buffer
[3] = (byte)0;
144
m_Buffer
[4] = (byte)0;
145
m_Buffer
[5] = (byte)0;
146
m_Buffer
[6] = (byte)0;
147
m_Buffer
[7] = (byte)0;
151
m_Buffer
[24] = (byte)scope;
152
m_Buffer
[25] = (byte)(scope >> 8);
153
m_Buffer
[26] = (byte)(scope >> 16);
154
m_Buffer
[27] = (byte)(scope >> 24);
159
m_Buffer
[8 + i] = addressBytes[i];
163
m_Buffer
[4] = unchecked((byte)(ipAddress.m_Address));
164
m_Buffer
[5] = unchecked((byte)(ipAddress.m_Address >> 8));
165
m_Buffer
[6] = unchecked((byte)(ipAddress.m_Address >> 16));
166
m_Buffer
[7] = unchecked((byte)(ipAddress.m_Address >> 24));
172
m_Buffer
[2] = (byte)(port >> 8);
173
m_Buffer
[3] = (byte)port;
182
address[i] =
m_Buffer
[i + 8];
185
long scope = (long)((
m_Buffer
[27] << 24) +
186
(
m_Buffer
[26] << 16) +
187
(
m_Buffer
[25] << 8) +
188
(
m_Buffer
[24]));
196
(
m_Buffer
[4] & 0x000000FF) |
197
(
m_Buffer
[5] << 8 & 0x0000FF00) |
198
(
m_Buffer
[6] << 16 & 0x00FF0000) |
199
(
m_Buffer
[7] << 24)
211
int port = (int)((
m_Buffer
[2] << 8 & 0xFF00) | (
m_Buffer
[3]));
220
m_Buffer
[
m_Buffer
.Length-IntPtr.Size] = unchecked((byte)(m_Size));
221
m_Buffer
[
m_Buffer
.Length-IntPtr.Size+1] = unchecked((byte)(m_Size >> 8));
222
m_Buffer
[
m_Buffer
.Length-IntPtr.Size+2] = unchecked((byte)(m_Size >> 16));
223
m_Buffer
[
m_Buffer
.Length-IntPtr.Size+3] = unchecked((byte)(m_Size >> 24));
230
return
m_Buffer
.Length-IntPtr.Size;
263
m_hash ^= (int)
m_Buffer
[i]
264
| ((int)
m_Buffer
[i+1] << 8)
265
| ((int)
m_Buffer
[i+2] << 16)
266
| ((int)
m_Buffer
[i+3] << 24);
274
remnant |= ((int)
m_Buffer
[i]) << shift;
net\System\Net\Sockets\_AcceptOverlappedAsyncResult.cs (1)
78
Marshal.Copy(remoteAddr, remoteSocketAddress.
m_Buffer
, 0, remoteSocketAddress.m_Size);
net\System\Net\Sockets\_OverlappedAsyncResult.cs (3)
48
return Marshal.UnsafeAddrOfPinnedArrayElement(m_SocketAddress.
m_Buffer
, 0);
53
return Marshal.UnsafeAddrOfPinnedArrayElement(m_SocketAddress.
m_Buffer
, m_SocketAddress.GetAddressSizeOffset());
92
objectsToPin[1] = m_SocketAddress.
m_Buffer
;
net\System\Net\Sockets\_ReceiveMessageOverlappedAsyncResult.cs (3)
55
return Marshal.UnsafeAddrOfPinnedArrayElement(m_SocketAddress.
m_Buffer
, m_SocketAddress.GetAddressSizeOffset());
102
objectsToPin[3] = m_SocketAddress.
m_Buffer
;
118
m_Message->socketAddress = Marshal.UnsafeAddrOfPinnedArrayElement(m_SocketAddress.
m_Buffer
,0);
net\System\Net\Sockets\Socket.cs (19)
234
socketAddress.
m_Buffer
,
410
socketAddress.
m_Buffer
,
457
socketAddress.
m_Buffer
,
952
socketAddress.
m_Buffer
,
1240
socketAddress.
m_Buffer
,
1637
socketAddress.
m_Buffer
,
1649
socketAddress.
m_Buffer
,
2102
bytesTransferred = UnsafeNclNativeMethods.OSSOCK.recvfrom(m_Handle.DangerousGetHandle(), null, 0, socketFlags, socketAddress.
m_Buffer
, ref socketAddress.m_Size );
2104
bytesTransferred = UnsafeNclNativeMethods.OSSOCK.recvfrom(m_Handle.DangerousGetHandle(), pinnedBuffer+offset, size, socketFlags, socketAddress.
m_Buffer
, ref socketAddress.m_Size );
2886
socketAddress.
m_Buffer
,
5093
socketAddress.
m_Buffer
,
5247
socketAddress.
m_Buffer
,
6186
socketAddress.
m_Buffer
,
6908
asyncResult.SetUnmanagedStructures(socketAddress.
m_Buffer
);
6924
Marshal.UnsafeAddrOfPinnedArrayElement(socketAddress.
m_Buffer
, 0),
9463
m_SocketAddressGCHandle = GCHandle.Alloc(m_SocketAddress.
m_Buffer
, GCHandleType.Pinned);
9465
m_PtrSocketAddressBuffer = Marshal.UnsafeAddrOfPinnedArrayElement(m_SocketAddress.
m_Buffer
, 0);
9466
m_PtrSocketAddressBufferSize = Marshal.UnsafeAddrOfPinnedArrayElement(m_SocketAddress.
m_Buffer
, m_SocketAddress.GetAddressSizeOffset());
9825
Marshal.Copy(remoteAddr, remoteSocketAddress.
m_Buffer
, 0, remoteSocketAddress.m_Size);
net\System\Net\UnsafeNativeMethods.cs (2)
3285
fixed (byte* pBuffer = v4address.
m_Buffer
)
3297
fixed (byte* pBuffer = v6address.
m_Buffer
)