147 references to Copy
mscorlib (6)
system\deployment\isolationinterop.cs (1)
2154
Marshal.
Copy
(b.BlobData, retval, 0, (int)b.Size);
system\diagnostics\eventing\eventprovider.cs (1)
559
Marshal.
Copy
((IntPtr)filterData->Ptr, data, 0, data.Length);
System\Diagnostics\Eventing\TraceLogging\DataCollector.cs (1)
136
Marshal.
Copy
((IntPtr)p, this.buffer, oldPos, size);
system\security\accesscontrol\securitydescriptor.cs (1)
689
Marshal.
Copy
( byteArray, binaryForm, 0, ( int )byteArraySize );
system\security\accesscontrol\win32.cs (1)
212
Marshal.
Copy
( ByteArray, BinaryForm, 0, ( int )Length );
system\security\principal\win32.cs (1)
196
Marshal.
Copy
( binaryForm, ResultSid, 0, BinaryLength );
PresentationCore (10)
Core\CSharp\MS\Internal\FontCache\FontCacheUtil.cs (1)
126
Marshal.
Copy
((IntPtr)_pointer, b, 0, Size);
Core\CSharp\MS\Internal\FontFace\FontDriver.cs (1)
288
Marshal.
Copy
((IntPtr)fontData, fontCopy, 0, fileSize);
Core\CSharp\System\Windows\DataObject.cs (2)
3390
Marshal.
Copy
(ptr, bytes, 0, size);
3610
Marshal.
Copy
(pointerUtf8, bytes, 0, utf8ByteCount);
Core\CSharp\System\Windows\Media\GlyphTypeface.cs (1)
1634
Marshal.
Copy
(new IntPtr(pMilPathGeometry), data, 0, checked((int)size));
Core\CSharp\System\Windows\Media\Imaging\PropVariant.cs (4)
569
Marshal.
Copy
(ca.pElems, array, 0, (int)ca.cElems);
646
Marshal.
Copy
(ca.pElems, guid, i*16, 16);
736
Marshal.
Copy
(pclsidVal, guid, 0, 16);
748
Marshal.
Copy
(ca.pElems, blob, 0, (int)ca.cElems);
Core\CSharp\System\Windows\Media\RenderData.cs (1)
125
Marshal.
Copy
((IntPtr)(&header), this._buffer, _curOffset, sizeof(RecordHeader));
PresentationFramework (1)
src\Framework\MS\Internal\Printing\PrintDlgExMarshaler.cs (1)
444
Marshal.
Copy
(pDevMode, devModeData, 0, devModeData.Length);
System (39)
net\System\Net\_DigestClient.cs (3)
1187
Marshal.
Copy
(IntPtrHelper.Add(binding.DangerousGetHandle(), initiatorOffset), formattedData, offset, initiatorLength);
1198
Marshal.
Copy
(IntPtrHelper.Add(binding.DangerousGetHandle(), acceptorOffset), formattedData, offset, acceptorLength);
1208
Marshal.
Copy
(IntPtrHelper.Add(binding.DangerousGetHandle(), applicationDataOffset), formattedData, offset, applicationDataLength);
net\System\Net\_SafeNetHandles.cs (2)
1610
Marshal.
Copy
(outUnmanagedBuffer[0].token, outSecBuffer.token, 0, outSecBuffer.size);
1928
Marshal.
Copy
(outUnmanagedBuffer[0].token, outSecBuffer.token, 0, outSecBuffer.size);
net\System\Net\_SSPIWrapper.cs (1)
339
Marshal.
Copy
(p, buffer, 0, alertTokenByteSize);
net\System\Net\HttpListenerRequest.cs (4)
143
Marshal.
Copy
((IntPtr)pClientCertInfo->pCertEncoded, certEncoded, 0, certEncoded.Length);
958
Marshal.
Copy
((IntPtr)pClientCertInfo->pCertEncoded, certEncoded, 0, certEncoded.Length);
1154
Marshal.
Copy
((IntPtr)(pThisResultData->identifierData), retVal, 0, retVal.Length);
1187
Marshal.
Copy
((IntPtr)(&pThisResultData->identifierData->hashAlgorithm), retVal, 0, retVal.Length);
net\System\Net\Logging.cs (1)
572
Marshal.
Copy
(bufferPtr, buffer, 0, length);
net\System\Net\NetworkInformation\PingReply.cs (2)
50
Marshal.
Copy
(reply.data, buffer, 0, reply.dataSize);
68
Marshal.
Copy
(IntPtrHelper.Add(dataPtr, 36), buffer, 0, sendSize);
net\System\Net\NetworkInformation\UnSafeNetInfoNativemethods.cs (1)
120
Marshal.
Copy
(address, sockAddress.m_Buffer, 0, addressLength);
net\System\Net\Sockets\_AcceptOverlappedAsyncResult.cs (1)
78
Marshal.
Copy
(remoteAddr, remoteSocketAddress.m_Buffer, 0, remoteSocketAddress.m_Size);
net\System\Net\Sockets\Socket.cs (1)
9825
Marshal.
Copy
(remoteAddr, remoteSocketAddress.m_Buffer, 0, remoteSocketAddress.m_Size);
security\system\security\Authentication\ExtendedProtection\ExtendedProtectionPolicy.cs (1)
186
Marshal.
Copy
(customChannelBinding.DangerousGetHandle(), channelBindingData, 0, customChannelBinding.Size);
security\system\security\cryptography\cryptoapi.cs (3)
2780
Marshal.
Copy
(blob.pbData, data, 0, data.Length);
2895
Marshal.
Copy
(pbEncoded.DangerousGetHandle(), encodedData, 0, (int) cbEncoded);
2932
Marshal.
Copy
(pbEncoded.DangerousGetHandle(), encodedData, 0, (int) cbEncoded);
security\system\security\cryptography\x509\x509certificate2.cs (6)
173
Marshal.
Copy
(decodedKeyValue.DangerousGetHandle(), decodedData, 0, decodedData.Length);
232
Marshal.
Copy
(pDssParameters.p.pbData, p, 0, p.Length);
241
Marshal.
Copy
(pDssParameters.q.pbData, q, 0, q.Length);
252
Marshal.
Copy
(pDssParameters.g.pbData, g, 0, g.Length);
263
Marshal.
Copy
(pDssPubKey.pbData, y, 0, y.Length);
980
Marshal.
Copy
(extension.Value.pbData, rawData, 0, rawData.Length);
security\system\security\cryptography\x509\x509certificate2collection.cs (9)
310
Marshal.
Copy
(pCertContext.pbCertEncoded, pbBlob, 0, pbBlob.Length);
331
Marshal.
Copy
(pbEncoded.DangerousGetHandle(), pbBlob, 0, pbBlob.Length);
351
Marshal.
Copy
(DataBlob.pbData, pbBlob, 0, pbBlob.Length);
381
Marshal.
Copy
(DataBlob.pbData, pbBlob, 0, pbBlob.Length);
745
Marshal.
Copy
(pCertInfo.SerialNumber.pbData, hex, 0, hex.Length);
841
Marshal.
Copy
(extension.Value.pbData, rawData, 0, rawData.Length);
861
Marshal.
Copy
(extension.Value.pbData, rawData, 0, rawData.Length);
944
Marshal.
Copy
(extension.Value.pbData, rawData, 0, rawData.Length);
1045
Marshal.
Copy
(ptr.DangerousGetHandle(), hex, 0, hex.Length);
security\system\security\cryptography\x509\x509extension.cs (3)
33
Marshal.
Copy
(extension.Value.pbData, rawData, 0, rawData.Length);
140
Marshal.
Copy
(pKeyUsage.pbData, keyUsage, 0, (int) pKeyUsage.cbData);
229
Marshal.
Copy
(pBasicConstraints.SubjectType.pbData, isCA, 0, 1);
security\system\security\cryptography\x509\x509utils.cs (1)
296
Marshal.
Copy
(unmanaged, array, 0, array.Length);
System.Configuration (2)
System\Configuration\DPAPIProtectedConfigurationProvider.cs (2)
113
Marshal.
Copy
(outputData.pbData, buf, 0, buf.Length);
180
Marshal.
Copy
(outputData.pbData, buf, 0, buf.Length);
System.Core (2)
System\Diagnostics\Eventing\Reader\NativeWrapper.cs (1)
1212
Marshal.
Copy
(val.Reference, arByte, 0, (int)val.Count);
System\Security\Cryptography\X509Certificates\RSACertificateExtensions.cs (1)
48
Marshal.
Copy
(cngBlobHandle.DangerousGetHandle(), cngBlob, 0, cngBlob.Length);
System.Data (2)
fx\src\data\System\Data\OleDb\ColumnBinding.cs (1)
610
Marshal.
Copy
(ptr, value, 0, value.Length);
fx\src\data\System\Data\ProviderBase\DbBuffer.cs (1)
152
Marshal.
Copy
(ptr, destination, startIndex, length);
System.Drawing (7)
commonui\System\Drawing\Advanced\GPStream.cs (1)
190
Marshal.
Copy
(buf, buffer, 0, length);
commonui\System\Drawing\Advanced\ImageCodecInfo.cs (2)
293
Marshal.
Copy
((IntPtr)((long)codecp.SigMask + j*codecp.SigSize), codecs[index].SignatureMasks[j], 0, codecp.SigSize);
294
Marshal.
Copy
((IntPtr)((long)codecp.SigPattern + j*codecp.SigSize), codecs[index].SignaturePatterns[j], 0, codecp.SigSize);
commonui\System\Drawing\Printing\PrinterSettings.cs (2)
1325
Marshal.
Copy
(pointer, cachedDevmode, 0, devmodebytes);
1332
Marshal.
Copy
((IntPtr)(checked((long)pointer + (long)mode.dmSize)), extrainfo, 0, extrabytes);
commonui\System\Drawing\PropertyItemInternal.cs (1)
104
Marshal.
Copy
(value,
commonui\System\Drawing\UnsafeNativeMethods.cs (1)
371
Marshal.
Copy
(buf, buffer, 0, length);
System.IdentityModel (4)
System\IdentityModel\SspiSafeHandles.cs (2)
300
Marshal.
Copy
(outUnmanagedBuffer[0].token, outSecBuffer.token, 0, outSecBuffer.size);
574
Marshal.
Copy
(outUnmanagedBuffer[0].token, outSecBuffer.token, 0, outSecBuffer.size);
System\IdentityModel\SspiWrapper.cs (2)
252
Marshal.
Copy
(safeHandle.DangerousGetHandle(), sessionKey, 0, sessionKeyLength);
748
Marshal.
Copy
(unmanagedBuffer[i].token, iBuffer.token, 0, iBuffer.size);
System.IdentityModel.Selectors (7)
infocard\client\System\IdentityModel\Selectors\InfoCardKeyedHashAlgorithm.cs (1)
209
Marshal.
Copy
(pOutData.DangerousGetHandle(), outData, 0, pOutData.Length);
infocard\client\System\IdentityModel\Selectors\InfoCardRSACryptoProvider.cs (3)
105
Marshal.
Copy
(pOutData.DangerousGetHandle(), outData, 0, pOutData.Length);
136
Marshal.
Copy
(pOutData.DangerousGetHandle(), outData, 0, pOutData.Length);
173
Marshal.
Copy
(pSig.DangerousGetHandle(), sig, 0, pSig.Length);
infocard\client\System\IdentityModel\Selectors\InfoCardSymmetricAlgorithm.cs (2)
253
Marshal.
Copy
(pOutData.DangerousGetHandle(), outputBuffer, outputOffset, pOutData.Length);
302
Marshal.
Copy
(pOutData.DangerousGetHandle(), outData, 0, pOutData.Length);
infocard\client\System\IdentityModel\Selectors\InfoCardSymmetricCrypto.cs (1)
147
Marshal.
Copy
(pDerivedKey.DangerousGetHandle(), derivedKey, 0, pDerivedKey.Length);
System.IO.Log (2)
System\IO\Log\LogLogRecord.cs (1)
34
Marshal.
Copy
(new IntPtr(data),
System\IO\Log\SimpleFileLog.cs (1)
230
Marshal.
Copy
(pData.DangerousGetHandle(),
System.Management (1)
InteropClasses\WMIInterop.cs (1)
123
Marshal.
Copy
(pData, rg, 0, (int)statstg.cbSize);
System.Messaging (5)
System\Messaging\ActiveXMessageFormatter.cs (1)
594
Marshal.
Copy
(buf, buffer, 0, length);
System\Messaging\MessageQueue.cs (3)
421
Marshal.
Copy
(handle, bytes, 0, 16);
721
Marshal.
Copy
(handle, bytes, 0, 16);
1923
Marshal.
Copy
(handle, bytes, 0, 16);
System\Messaging\MessageQueueEnumerator.cs (1)
208
Marshal.
Copy
(array[1].ptr, currentGuid, 0, 16);
System.Net (14)
net\PeerToPeer\Collaboration\CollaborationHelperFunctions.cs (3)
145
Marshal.
Copy
(pc.credentials.pbData, data, 0, (int)pc.credentials.cbData);
308
Marshal.
Copy
(po.data.pbData, data, 0, (int)po.data.cbData);
329
Marshal.
Copy
(pa.data.pbData, data, 0, (int)pa.data.cbData);
net\PeerToPeer\Collaboration\Peer.cs (1)
600
Marshal.
Copy
(pPeerObject->data.pbData, data, 0, (int)pPeerObject->data.cbData);
net\PeerToPeer\Collaboration\PeerCollaboration.cs (3)
274
Marshal.
Copy
(pi.applicationData.pbData, data, 0, (int)pi.applicationData.cbData);
723
Marshal.
Copy
(pPeerApp->data.pbData, data, 0, (int)pPeerApp->data.cbData);
952
Marshal.
Copy
(pPeerObject->data.pbData, data, 0, (int)pPeerObject->data.cbData);
net\PeerToPeer\Collaboration\PeerContact.cs (1)
1089
Marshal.
Copy
(pPeerApp->data.pbData, data, 0, (int)pPeerApp->data.cbData);
net\PeerToPeer\PeerNameResolver.cs (6)
318
Marshal.
Copy
(pEndPointInfo->payLoad.pbPayload, record.Data, 0, (int)pEndPointInfo->payLoad.cbPayload);
327
Marshal.
Copy
(pSOCKADDR, AddressFamilyBuffer, 0, 2);
335
Marshal.
Copy
(pSOCKADDR, buffer, 0, buffer.Length);
685
Marshal.
Copy
(pEndPointInfo->payLoad.pbPayload, record.Data, 0, (int)pEndPointInfo->payLoad.cbPayload);
695
Marshal.
Copy
(pSOCKADDR, AddressFamilyBuffer, 0, 2);
703
Marshal.
Copy
(pSOCKADDR, buffer, 0, buffer.Length);
System.Runtime.Remoting (1)
channels\core\corechannel.cs (1)
928
Marshal.
Copy
(sidIdentifierAuthorityPointer, sidIdentifierAuthority, 0, 6);
System.Security (19)
system\security\cryptography\cryptoapi.cs (3)
2309
Marshal.
Copy
(blob.pbData, data, 0, data.Length);
2421
Marshal.
Copy
(pbEncoded.DangerousGetHandle(), encodedData, 0, (int) cbEncoded);
2455
Marshal.
Copy
(pbEncoded.DangerousGetHandle(), encodedData, 0, (int) cbEncoded);
system\security\cryptography\dataprotection.cs (2)
93
Marshal.
Copy
(blob.pbData, encryptedData, 0, encryptedData.Length);
156
Marshal.
Copy
(userData.pbData, data, 0, data.Length);
system\security\cryptography\pkcs\envelopedpkcs7.cs (1)
362
Marshal.
Copy
(pbContent.DangerousGetHandle(), content, 0, (int) cbContent);
system\security\cryptography\pkcs\pkcsmisc.cs (9)
63
Marshal.
Copy
(issuer.pbData, issuerBytes, 0, issuerBytes.Length);
102
Marshal.
Copy
(certRdnAttr.Value.pbData, ski, 0, ski.Length);
130
Marshal.
Copy
(certId.Value.KeyId.pbData, ski, 0, ski.Length);
200
Marshal.
Copy
(keyInfo.PublicKey.pbData, m_keyValue, 0, m_keyValue.Length);
237
Marshal.
Copy
(certId.Value.KeyId.pbData, ski, 0, ski.Length);
326
Marshal.
Copy
(keyInfo.Algorithm.Parameters.pbData, parameters, 0, parameters.Length);
387
Marshal.
Copy
(blob.pbData, parameters, 0, parameters.Length);
400
Marshal.
Copy
(pbParameters.DangerousGetHandle(), parameters, 0, parameters.Length);
424
Marshal.
Copy
(algorithmIdentifier.Parameters.pbData, parameters, 0, parameters.Length);
system\security\cryptography\pkcs\pkcsutils.cs (1)
385
Marshal.
Copy
(pIssuerAndSerial.SerialNumber.pbData, serial, 0, serial.Length);
system\security\cryptography\pkcs\recipientinfo.cs (2)
182
Marshal.
Copy
(keyTrans.EncryptedKey.pbData, m_encryptedKey, 0, m_encryptedKey.Length);
326
Marshal.
Copy
(m_encryptedKeyInfo.EncryptedKey.pbData, m_encryptedKey, 0, m_encryptedKey.Length);
system\security\cryptography\pkcs\signerinfo.cs (1)
260
Marshal.
Copy
(m_cmsgSignerInfo.EncryptedHash.pbData, ret, 0, ret.Length);
System.ServiceModel (2)
System\ServiceModel\Channels\PeerUnsafeNativeCryptMethods.cs (1)
210
Marshal.
Copy
((IntPtr)data, bytes, 0, cbData);
System\ServiceModel\ComIntegration\PersistStreamTypeWrapper.cs (1)
58
Marshal.
Copy
(pBuff, byteArray, 0, sizeOfByteArray);
System.Transactions (4)
System\Transactions\Oletx\DTCTransactionManager.cs (1)
67
Marshal.
Copy
( whereaboutsBuffer.DangerousGetHandle(), this.whereabouts, 0, Convert.ToInt32(this.whereaboutsSize) );
System\Transactions\Oletx\OletxTransactionManager.cs (1)
324
Marshal.
Copy
( prepareInfoBuffer.DangerousGetHandle(), prepareInfo, 0, Convert.ToInt32(prepareInfoSize) );
System\Transactions\TransactionInterop.cs (2)
133
Marshal.
Copy
( cookieBuffer.DangerousGetHandle(), cookie, 0, Convert.ToInt32(cookieSize) );
349
Marshal.
Copy
( propagationTokenBuffer.DangerousGetHandle(), propagationToken, 0, Convert.ToInt32(tokenSize) );
System.Web (3)
Configuration\StrongNameUtility.cs (1)
47
Marshal.
Copy
(keyBlob, key, 0, (int)generatedSize);
Util\Misc.cs (1)
92
System.Runtime.InteropServices.Marshal.
Copy
(new IntPtr(src.ToInt64()+srcOffset), dest, destOffset, size);
Util\TlsTokenBindingHandle.cs (1)
54
Marshal.
Copy
(blob, retVal, 0, length);
System.Web.Services (2)
System\Web\Services\Protocols\RemoteDebugger.cs (2)
200
Marshal.
Copy
(bufferPtr, buffer, 0, bufferSize);
305
Marshal.
Copy
(bufferPtr, buffer, 0, bufferSize);
System.Windows.Forms (10)
parent\parent\parent\public\Internal\NDP\Inc\IsolationInterop.cs (1)
2170
Marshal.
Copy
(b.BlobData, retval, 0, (int)b.Size);
parent\parent\parent\public\Internal\NDP\Inc\mansign.cs (1)
1045
Marshal.
Copy
(timestampBlob.pbData, timestampSignature, 0, timestampSignature.Length);
parent\parent\parent\public\Internal\NDP\Inc\mansign2.cs (2)
1816
Marshal.
Copy
(timestampContext.pbEncoded, encodedBytes, 0, (int)timestampContext.cbEncoded);
1876
Marshal.
Copy
(timestampBlob.pbData, timestampSignature, 0, timestampSignature.Length);
winforms\Managed\System\WinForms\AxHost.cs (1)
6799
Marshal.
Copy
(pointer, buffer, 0, length);
winforms\Managed\System\WinForms\DataObject.cs (2)
1700
Marshal.
Copy
(ptr, bytes, 0, size);
1898
Marshal.
Copy
(ptr, bytes, 0, size);
winforms\Managed\System\WinForms\RichTextBox.cs (1)
1831
Marshal.
Copy
(buf, bytes, 0, cb);
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (2)
6563
Marshal.
Copy
(ptr, buffer, 0, buffer.Length);
6776
Marshal.
Copy
(buf, buffer, 0, length);
System.Workflow.Runtime (2)
DebugEngine\DebugController.cs (2)
150
Marshal.
Copy
(securityDescriptorPtr, sdBytes, 0, (int)returnLength);
194
Marshal.
Copy
(securityDescriptorPtr, sdBytes, 0, (int)returnLength);
WindowsBase (2)
Base\MS\Internal\IO\Packaging\StorageBasedPackageProperties.cs (1)
587
Marshal.
Copy
(pszVal, byteArray, 0, nLen);
Shared\MS\Win32\NativeMethodsCLR.cs (1)
6208
Marshal.
Copy
(ptr, buffer, 0, buffer.Length);