86 references to UnsafeAddrOfPinnedArrayElement
mscorlib (1)
system\runtime\interopservices\windowsruntime\clripropertyvalueimpl.cs (1)
549
byte *pConverted = (byte *)Marshal.
UnsafeAddrOfPinnedArrayElement
(converted, 0);
System (62)
net\System\Net\_ListenerRequestStream.cs (1)
386
m_pPinnedBuffer = (void*)(Marshal.
UnsafeAddrOfPinnedArrayElement
(buffer, offset));
net\System\Net\_ListenerResponseStream.cs (5)
503
return (UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK*)(Marshal.
UnsafeAddrOfPinnedArrayElement
(m_DataChunks, 0));
567
m_DataChunks[0].pBuffer = (byte*)(Marshal.
UnsafeAddrOfPinnedArrayElement
(chunkHeaderBuffer, chunkHeaderOffset));
568
m_DataChunks[1].pBuffer = (byte*)(Marshal.
UnsafeAddrOfPinnedArrayElement
(buffer, offset));
569
m_DataChunks[2].pBuffer = (byte*)(Marshal.
UnsafeAddrOfPinnedArrayElement
(NclConstants.CRLF, 0));
573
m_DataChunks[0].pBuffer = (byte*)(Marshal.
UnsafeAddrOfPinnedArrayElement
(buffer, offset));
net\System\Net\_SafeNetHandles.cs (6)
1539
inUnmanagedBuffer[index].token = Marshal.
UnsafeAddrOfPinnedArrayElement
(securityBuffer.token, securityBuffer.offset);
1558
outUnmanagedBuffer[0].token = Marshal.
UnsafeAddrOfPinnedArrayElement
(outSecBuffer.token, outSecBuffer.offset);
1864
inUnmanagedBuffer[index].token = Marshal.
UnsafeAddrOfPinnedArrayElement
(securityBuffer.token, securityBuffer.offset);
1884
outUnmanagedBuffer[0].token = Marshal.
UnsafeAddrOfPinnedArrayElement
(outSecBuffer.token, outSecBuffer.offset);
2121
inUnmanagedBuffer[index].token = Marshal.
UnsafeAddrOfPinnedArrayElement
(securityBuffer.token, securityBuffer.offset);
2237
inUnmanagedBuffer[index].token = Marshal.
UnsafeAddrOfPinnedArrayElement
(securityBuffer.token, securityBuffer.offset);
net\System\Net\_SSPIWrapper.cs (2)
403
unmanagedBuffer[i].token = Marshal.
UnsafeAddrOfPinnedArrayElement
(iBuffer.token, iBuffer.offset);
454
byte* bufferAddress = (byte*) Marshal.
UnsafeAddrOfPinnedArrayElement
(buffers[j], 0);
net\System\Net\HttpListener.cs (5)
184
return (UnsafeNclNativeMethods.HttpApi.HTTP_REQUEST*) Marshal.
UnsafeAddrOfPinnedArrayElement
(RequestBuffer, 0);
252
return (UnsafeNclNativeMethods.HttpApi.HTTP_REQUEST*) Marshal.
UnsafeAddrOfPinnedArrayElement
(RequestBuffer, 0);
2362
httpResponse.Headers.pUnknownHeaders = (UnsafeNclNativeMethods.HttpApi.HTTP_UNKNOWN_HEADER*) Marshal.
UnsafeAddrOfPinnedArrayElement
(headersArray, 0);
2364
sbyte* wwwAuthenticate = (sbyte*) Marshal.
UnsafeAddrOfPinnedArrayElement
(s_WwwAuthenticateBytes, 0);
2372
headersArray[i].pRawValue = (sbyte*) Marshal.
UnsafeAddrOfPinnedArrayElement
(byteChallenge, 0);
net\System\Net\HttpListenerRequest.cs (1)
87
m_MemoryBlob = (UnsafeNclNativeMethods.HttpApi.HTTP_SSL_CLIENT_CERT_INFO*) Marshal.
UnsafeAddrOfPinnedArrayElement
(m_BackingBuffer, 0);
net\System\Net\Sockets\_AcceptOverlappedAsyncResult.cs (2)
69
Marshal.
UnsafeAddrOfPinnedArrayElement
(m_Buffer, 0),
140
IntPtr pinnedBuffer = Marshal.
UnsafeAddrOfPinnedArrayElement
(m_Buffer, 0);
net\System\Net\Sockets\_OverlappedAsyncResult.cs (5)
48
return Marshal.
UnsafeAddrOfPinnedArrayElement
(m_SocketAddress.m_Buffer, 0);
53
return Marshal.
UnsafeAddrOfPinnedArrayElement
(m_SocketAddress.m_Buffer, m_SocketAddress.GetAddressSizeOffset());
100
m_SingleBuffer.Pointer = Marshal.
UnsafeAddrOfPinnedArrayElement
(buffer, offset);
127
m_WSABuffers[i].Pointer = Marshal.
UnsafeAddrOfPinnedArrayElement
(buffers[i].Buffer, buffers[i].Offset);
164
m_WSABuffers[i].Pointer = Marshal.
UnsafeAddrOfPinnedArrayElement
(buffersCopy[i].Array, buffersCopy[i].Offset);
net\System\Net\Sockets\_ReceiveMessageOverlappedAsyncResult.cs (7)
55
return Marshal.
UnsafeAddrOfPinnedArrayElement
(m_SocketAddress.m_Buffer, m_SocketAddress.GetAddressSizeOffset());
111
m_WSABuffer = (WSABuffer*) Marshal.
UnsafeAddrOfPinnedArrayElement
(m_WSABufferArray, 0);
113
m_WSABuffer->Pointer = Marshal.
UnsafeAddrOfPinnedArrayElement
(buffer, offset);
117
m_Message = (UnsafeNclNativeMethods.OSSOCK.WSAMsg*) Marshal.
UnsafeAddrOfPinnedArrayElement
(m_MessageBuffer, 0);
118
m_Message->socketAddress = Marshal.
UnsafeAddrOfPinnedArrayElement
(m_SocketAddress.m_Buffer,0);
120
m_Message->buffers = Marshal.
UnsafeAddrOfPinnedArrayElement
(m_WSABufferArray,0);
124
m_Message->controlBuffer.Pointer = Marshal.
UnsafeAddrOfPinnedArrayElement
(m_ControlBuffer, 0);
net\System\Net\Sockets\_TransmitFileOverlappedAsyncResult.cs (2)
99
m_buffers.preBuffer = Marshal.
UnsafeAddrOfPinnedArrayElement
(preBuffer, 0);
104
m_buffers.postBuffer = Marshal.
UnsafeAddrOfPinnedArrayElement
(postBuffer, 0);
net\System\Net\Sockets\Socket.cs (20)
1339
WSABuffers[i].Pointer = Marshal.
UnsafeAddrOfPinnedArrayElement
(buffer.Array, buffer.Offset);
1875
WSABuffers[i].Pointer = Marshal.
UnsafeAddrOfPinnedArrayElement
(buffer.Array, buffer.Offset);
2006
Marshal.
UnsafeAddrOfPinnedArrayElement
(asyncResult.m_MessageBuffer,0),
4592
Marshal.
UnsafeAddrOfPinnedArrayElement
(asyncResult.m_MessageBuffer,0),
5421
Marshal.
UnsafeAddrOfPinnedArrayElement
(asyncResult.Buffer, 0),
6924
Marshal.
UnsafeAddrOfPinnedArrayElement
(socketAddress.m_Buffer, 0),
7001
WSABuffers[i].Pointer = Marshal.
UnsafeAddrOfPinnedArrayElement
(buffers[i].Buffer, buffers[i].Offset);
9185
m_PtrWSAMessageBuffer = Marshal.
UnsafeAddrOfPinnedArrayElement
(m_WSAMessageBuffer, 0);
9208
m_PtrControlBuffer = Marshal.
UnsafeAddrOfPinnedArrayElement
(m_ControlBuffer, 0);
9219
m_PtrWSARecvMsgWSABufferArray = Marshal.
UnsafeAddrOfPinnedArrayElement
(m_WSARecvMsgWSABufferArray, 0);
9223
m_PtrWSARecvMsgWSABufferArray = Marshal.
UnsafeAddrOfPinnedArrayElement
(m_WSABufferArray, 0);
9388
m_PtrSingleBuffer = Marshal.
UnsafeAddrOfPinnedArrayElement
(m_Buffer, m_Offset);
9465
m_PtrSocketAddressBuffer = Marshal.
UnsafeAddrOfPinnedArrayElement
(m_SocketAddress.m_Buffer, 0);
9466
m_PtrSocketAddressBufferSize = Marshal.
UnsafeAddrOfPinnedArrayElement
(m_SocketAddress.m_Buffer, m_SocketAddress.GetAddressSizeOffset());
9523
m_PtrSingleBuffer = Marshal.
UnsafeAddrOfPinnedArrayElement
(m_Buffer, m_Offset);
9552
m_PtrAcceptBuffer = Marshal.
UnsafeAddrOfPinnedArrayElement
(m_AcceptBuffer, 0);
9603
m_WSABufferArray[i].Pointer = Marshal.
UnsafeAddrOfPinnedArrayElement
(localCopy.Array, localCopy.Offset);
9646
m_PtrSendPacketsDescriptor = Marshal.
UnsafeAddrOfPinnedArrayElement
(m_SendPacketsDescriptor, 0);
9655
m_SendPacketsDescriptor[descriptorIndex].buffer = Marshal.
UnsafeAddrOfPinnedArrayElement
(spe.m_Buffer, spe.m_Offset);
9948
UnsafeNclNativeMethods.OSSOCK.WSAMsg* PtrMessage = (UnsafeNclNativeMethods.OSSOCK.WSAMsg*)Marshal.
UnsafeAddrOfPinnedArrayElement
(m_WSAMessageBuffer, 0);
net\System\Net\WebSockets\WebSocketBuffer.cs (5)
76
m_StartAddress = Marshal.
UnsafeAddrOfPinnedArrayElement
(internalBuffer.Array, internalBuffer.Offset).ToInt64();
212
Marshal.
UnsafeAddrOfPinnedArrayElement
(m_PinnedSendBuffer.Array, m_PinnedSendBuffer.Offset).ToInt64();
232
Contract.Assert(Marshal.
UnsafeAddrOfPinnedArrayElement
(m_PinnedSendBuffer.Array,
250
Contract.Assert(Marshal.
UnsafeAddrOfPinnedArrayElement
(m_PinnedSendBuffer.Array,
633
Contract.Assert(Marshal.
UnsafeAddrOfPinnedArrayElement
(m_InternalBuffer.Array, m_InternalBuffer.Offset).ToInt64() == m_StartAddress,
net\System\Net\WebSockets\WebSocketHttpListenerDuplexStream.cs (1)
960
return Marshal.
UnsafeAddrOfPinnedArrayElement
(m_DataChunks, 0);
System.IdentityModel (6)
System\IdentityModel\SspiSafeHandles.cs (4)
246
inUnmanagedBuffer[index].token = Marshal.
UnsafeAddrOfPinnedArrayElement
(securityBuffer.token, securityBuffer.offset);
264
outUnmanagedBuffer[0].token = Marshal.
UnsafeAddrOfPinnedArrayElement
(outSecBuffer.token, outSecBuffer.offset);
526
inUnmanagedBuffer[index].token = Marshal.
UnsafeAddrOfPinnedArrayElement
(securityBuffer.token, securityBuffer.offset);
545
outUnmanagedBuffer[0].token = Marshal.
UnsafeAddrOfPinnedArrayElement
(outSecBuffer.token, outSecBuffer.offset);
System\IdentityModel\SspiWrapper.cs (2)
721
unmanagedBuffer[i].token = Marshal.
UnsafeAddrOfPinnedArrayElement
(iBuffer.token, iBuffer.offset);
761
byte* bufferAddress = (byte*)Marshal.
UnsafeAddrOfPinnedArrayElement
(buffers[j], 0);
System.IO.Log (4)
System\IO\Log\AppendHelper.cs (2)
39
this.blobs[0].pBlobData = Marshal.
UnsafeAddrOfPinnedArrayElement
(header.Bits, 0);
45
blobs[i + 1].pBlobData = Marshal.
UnsafeAddrOfPinnedArrayElement
(data[i].Array, data[i].Offset);
System\IO\Log\LogReserveAndAppendState.cs (2)
479
this.writeEntries[entryIndex].Buffer = Marshal.
UnsafeAddrOfPinnedArrayElement
(this.headerBits, 0);
491
this.writeEntries[entryIndex].Buffer = Marshal.
UnsafeAddrOfPinnedArrayElement
(segment.Array, segment.Offset);
System.Runtime.Remoting (1)
channels\ipc\ipcport.cs (1)
88
attr.lpSecurityDescriptor = Marshal.
UnsafeAddrOfPinnedArrayElement
(sd, 0);
System.Security (1)
system\security\cryptography\pkcs\pkcsmisc.cs (1)
525
m_pContent = Marshal.
UnsafeAddrOfPinnedArrayElement
(m_content, 0);
System.ServiceModel (6)
System\ServiceModel\Channels\OverlappedContext.cs (6)
189
this.bufferPtr = (byte*)Marshal.
UnsafeAddrOfPinnedArrayElement
(buffer, 0);
262
this.bufferPtr = (byte*)Marshal.
UnsafeAddrOfPinnedArrayElement
(buffer, 0);
294
Fx.Assert(this.bufferPtr == null || this.bufferPtr == (byte*)Marshal.
UnsafeAddrOfPinnedArrayElement
((byte[])holder, 0),
382
Fx.Assert(pThis.bufferPtr == null || pThis.bufferPtr == (byte*)Marshal.
UnsafeAddrOfPinnedArrayElement
((byte[])pThis.bufferHolder[0], 0),
418
Fx.Assert(pThis.bufferPtr == null || pThis.bufferPtr == (byte*)Marshal.
UnsafeAddrOfPinnedArrayElement
((byte[])pThis.bufferHolder[0], 0),
446
Fx.Assert(pThis.bufferPtr == null || pThis.bufferPtr == (byte*)Marshal.
UnsafeAddrOfPinnedArrayElement
((byte[])pThis.bufferHolder[0], 0),
System.Web (3)
Hosting\ISAPIWorkerRequest.cs (2)
500
return Marshal.
UnsafeAddrOfPinnedArrayElement
(_arrayData, 0);
563
_pinnedAddr = Marshal.
UnsafeAddrOfPinnedArrayElement
(_charBuffer, 0);
Util\PinnedArraySegment.cs (1)
35
_pointer = Marshal.
UnsafeAddrOfPinnedArrayElement
(segment.Array, segment.Offset);
System.Windows.Forms (2)
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
1241
dp.rgdispidNamedArgs = Marshal.
UnsafeAddrOfPinnedArrayElement
(namedArgs, 0);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyPageUITypeConverter.cs (1)
88
IntPtr guidsAddr = Marshal.
UnsafeAddrOfPinnedArrayElement
(guids, 0);