91 references to Copy
PresentationCore (4)
Core\CSharp\System\Windows\DataObject.cs (2)
2310
Marshal.
Copy
(new byte[] { 0 }, 0, (IntPtr)((long)ptr + pinvokeSize), 1);
2370
Marshal.
Copy
(new byte[] { 0 }, 0, (IntPtr)((long)pointerUtf8 + utf8ByteCount), 1);
Core\CSharp\System\Windows\Media\Imaging\BitmapSource.cs (1)
2005
Marshal.
Copy
(managedArray, y * rectRowSize, new IntPtr(rowPtr), rectRowSize);
Core\CSharp\System\Windows\Media\Imaging\PropVariant.cs (1)
440
Marshal.
Copy
(guid, 0, pclsidVal, guid.Length);
PresentationFramework (3)
src\Framework\MS\Internal\AppModel\IconHelper.cs (1)
276
Marshal.
Copy
(colorArray, 0, bits, colorArray.Length);
src\Framework\MS\Internal\Printing\PrintDlgExMarshaler.cs (2)
875
Marshal.
Copy
(
939
Marshal.
Copy
(devModeData, 0, hDevMode, devModeData.Length);
System (10)
net\System\Net\_ListenerResponseStream.cs (1)
174
Marshal.
Copy
(buffer, offset, IntPtrHelper.Add(pBufferAsIntPtr, chunkHeader.Length + 2), size);
net\System\Net\HttpListener.cs (1)
2482
Marshal.
Copy
(blob, tokenOffset, token.DangerousGetHandle(), tokenSize);
security\system\security\Authentication\ExtendedProtection\ExtendedProtectionPolicy.cs (1)
96
Marshal.
Copy
(channelBindingData, 0, customChannelBinding.DangerousGetHandle(), channelBindingData.Length);
security\system\security\cryptography\x509\x509extension.cs (3)
498
Marshal.
Copy
(szObjId, 0, pszObjId, szObjId.Length);
502
Marshal.
Copy
(encodedParameters, 0, pbParameters, encodedParameters.Length);
506
Marshal.
Copy
(encodedKeyValue, 0, pbPublicKey, encodedKeyValue.Length);
security\system\security\cryptography\x509\x509utils.cs (4)
272
Marshal.
Copy
(managed, 0, pb.DangerousGetHandle(), managed.Length);
319
Marshal.
Copy
(arr, 0, pb.DangerousGetHandle(), arr.Length);
330
Marshal.
Copy
(arr, 0, pb.DangerousGetHandle(), arr.Length);
513
Marshal.
Copy
(ansiOid, 0, pOid, ansiOid.Length);
System.Configuration (1)
System\Configuration\DPAPIProtectedConfigurationProvider.cs (1)
240
Marshal.
Copy
(buf, 0, db.pbData, db.cbData);
System.Core (1)
System\Security\Cryptography\CapiNative.cs (1)
1028
Marshal.
Copy
(arr, 0, pb.DangerousGetHandle(), arr.Length);
System.Data (4)
fx\src\data\System\Data\ProviderBase\DbBuffer.cs (1)
396
Marshal.
Copy
(source, startIndex, ptr, length);
fx\src\data\System\Data\SqlClient\SqlConnection.cs (3)
2515
Marshal.
Copy
(rgbMachineName, 0, ADP.IntPtrOffset(pMemMap, offset), rgbMachineName.Length);
2517
Marshal.
Copy
(rgbSDIDLLName, 0, ADP.IntPtrOffset(pMemMap, offset), rgbSDIDLLName.Length);
2522
Marshal.
Copy
(rgbData, 0, ADP.IntPtrOffset(pMemMap, offset), (int)cbData);
System.Drawing (11)
commonui\System\Drawing\Advanced\EncoderParameter.cs (2)
275
Marshal.
Copy
(value, 0, parameterValue, numberOfValues);
298
Marshal.
Copy
(value, 0, parameterValue, numberOfValues);
commonui\System\Drawing\Advanced\GPStream.cs (1)
118
Marshal.
Copy
(buffer, 0, buf, length);
commonui\System\Drawing\Advanced\GraphicsPath.cs (2)
106
Marshal.
Copy
(types, 0, typebuf, count);
159
Marshal.
Copy
(types, 0, typebuf, count);
commonui\System\Drawing\Icon.cs (1)
986
Marshal.
Copy
(iconData, newOffset + j * width, (IntPtr)pixelPtr, lineLength);
commonui\System\Drawing\Printing\PrinterSettings.cs (3)
1015
Marshal.
Copy
(cachedDevmode, 0, pointer, devmodebytes);
1032
Marshal.
Copy
(extrainfo, 0, pointeroffset, extrabytes);
1405
Marshal.
Copy
(bytes, 0, address, bytes.Length);
commonui\System\Drawing\PropertyItemInternal.cs (1)
59
Marshal.
Copy
(propItemValue, 0, propItemInternal.value, length);
commonui\System\Drawing\UnsafeNativeMethods.cs (1)
299
Marshal.
Copy
(buffer, 0, buf, length);
System.IdentityModel (5)
System\IdentityModel\Selectors\X509CertificateChain.cs (1)
353
Marshal.
Copy
(ansiOid, 0, pOid, ansiOid.Length);
System\IdentityModel\Selectors\X509SecurityTokenAuthenticator.cs (3)
146
Marshal.
Copy
(NativeMethods.LsaSourceName, 0, pSourceName.DangerousGetHandle(), NativeMethods.LsaSourceName.Length);
202
Marshal.
Copy
(NativeMethods.LsaKerberosName, 0, pPackageName.DangerousGetHandle(), NativeMethods.LsaKerberosName.Length);
237
Marshal.
Copy
(certRawData, 0, pInfo->Certificate, certRawData.Length);
System\IdentityModel\SspiSafeHandles.cs (1)
1422
Marshal.
Copy
(bytes, 0, result.DangerousGetHandle(), bytes.Length);
System.IdentityModel.Selectors (12)
infocard\client\System\IdentityModel\Selectors\InfoCardKeyedHashAlgorithm.cs (2)
135
Marshal.
Copy
(m_cachedBlock, 0, pInData.DangerousGetHandle(), m_cachedBlock.Length);
192
Marshal.
Copy
(m_cachedBlock, 0, pInData.DangerousGetHandle(), m_cachedBlock.Length);
infocard\client\System\IdentityModel\Selectors\InfoCardRSACryptoProvider.cs (5)
88
Marshal.
Copy
(inData, 0, pInData.DangerousGetHandle(), inData.Length);
120
Marshal.
Copy
(inData, 0, pInData.DangerousGetHandle(), inData.Length);
154
Marshal.
Copy
(hash, 0, pHash.DangerousGetHandle(), hash.Length);
194
Marshal.
Copy
(hash, 0, pHash.DangerousGetHandle(), hash.Length);
198
Marshal.
Copy
(sig, 0, pSig.DangerousGetHandle(), sig.Length);
infocard\client\System\IdentityModel\Selectors\InfoCardSymmetricAlgorithm.cs (3)
167
Marshal.
Copy
(iv, 0, pIV.DangerousGetHandle(), iv.Length);
238
Marshal.
Copy
(inputBuffer, inputOffset, pInData.DangerousGetHandle(), inputCount);
285
Marshal.
Copy
(inputBuffer, inputOffset, pInData.DangerousGetHandle(), inputCount);
infocard\client\System\IdentityModel\Selectors\InfoCardSymmetricCrypto.cs (2)
125
Marshal.
Copy
(label, 0, pLabel.DangerousGetHandle(), label.Length);
126
Marshal.
Copy
(nonce, 0, pNonce.DangerousGetHandle(), nonce.Length);
System.Management (1)
InteropClasses\WMIInterop.cs (1)
94
Marshal.
Copy
(rg, 0, hGlobal, rg.Length);
System.Messaging (2)
System\Messaging\ActiveXMessageFormatter.cs (1)
506
Marshal.
Copy
(buffer, 0, buf, length);
System\Messaging\Interop\Restrictions.cs (1)
36
Marshal.
Copy
(value.ToByteArray(), 0, data, 16);
System.Net (4)
net\PeerToPeer\Collaboration\Peer.cs (2)
685
Marshal.
Copy
(invitationData, 0, pi.applicationData.pbData, invitationData.Length);
1108
Marshal.
Copy
(m_inviteData, 0, pi.applicationData.pbData, m_inviteData.Length);
net\PeerToPeer\Collaboration\PeerCollaboration.cs (2)
524
Marshal.
Copy
(application.Data, 0, appRegInfo.application.data.pbData, application.Data.Length);
824
Marshal.
Copy
(peerObject.Data, 0, po.data.pbData, peerObject.Data.Length);
System.Security (9)
system\security\cryptography\pkcs\envelopedpkcs7.cs (4)
711
Marshal.
Copy
(objId, 0, encryptParam.rgszObjId[index].DangerousGetHandle(), objId.Length);
826
Marshal.
Copy
(objId, 0, encryptParam.rgszObjId[index].DangerousGetHandle(), objId.Length);
846
Marshal.
Copy
(objId, 0, encryptParam.rgszKeyWrapObjId[cKeyAgree].DangerousGetHandle(), objId.Length);
875
Marshal.
Copy
(objId, 0, encryptParam.rgszEphemeralObjId[cKeyAgree].DangerousGetHandle(), objId.Length);
system\security\cryptography\pkcs\pkcsutils.cs (3)
668
Marshal.
Copy
(objId, 0, pCryptAttribute->pszObjId, objId.Length);
684
Marshal.
Copy
(encodedData, 0, pbEncodedData, encodedData.Length);
766
Marshal.
Copy
(dummyName.RawData, 0, pbDataIssuer.DangerousGetHandle(), dummyName.RawData.Length);
system\security\cryptography\x509\x509utils.cs (2)
131
Marshal.
Copy
(arr, 0, pb.DangerousGetHandle(), arr.Length);
269
Marshal.
Copy
(ansiOid, 0, pOid, ansiOid.Length);
System.ServiceModel (3)
System\ServiceModel\Channels\PeerUnsafeNativeCryptMethods.cs (1)
168
Marshal.
Copy
(bytes, 0, (IntPtr)data, bytes.Length);
System\ServiceModel\Channels\PeerUnsafeNativeMethods.cs (1)
370
Marshal.
Copy
(input.ToByteArray(), 0, (IntPtr)result, guidSize);
System\ServiceModel\ComIntegration\PersistStreamTypeWrapper.cs (1)
106
Marshal.
Copy
(byteStream, 0, pBuff, byteStream.Length);
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\Interop\SafeHGlobalHandleCritical.cs (1)
54
Marshal.
Copy
(bytes, 0, result.DangerousGetHandle(), bytes.Length);
System.Web (1)
Util\Misc.cs (1)
97
System.Runtime.InteropServices.Marshal.
Copy
(src, srcOffset, new IntPtr(dest.ToInt64()+destOffset), size);
System.Windows.Forms (14)
winforms\Managed\System\WinForms\AxHost.cs (1)
6697
Marshal.
Copy
(buffer, 0, pointer, length);
winforms\Managed\System\WinForms\Control.cs (2)
7888
Marshal.
Copy
(bytes, 0, m.LParam, bytes.Length);
7889
Marshal.
Copy
(nullBytes, 0, unchecked((IntPtr)((long)m.LParam + (long)bytes.Length)), nullBytes.Length);
winforms\Managed\System\WinForms\DataObject.cs (6)
966
Marshal.
Copy
(bytes, 0, ptr, size);
1044
Marshal.
Copy
(new byte[]{0,0}, 0, currentPtr, 2);
1051
Marshal.
Copy
(new byte[]{0}, 0, currentPtr, 1);
1061
Marshal.
Copy
(new byte[]{0}, 0, currentPtr, 1);
1121
Marshal.
Copy
(new byte[] {0}, 0, (IntPtr)((long)ptr+pinvokeSize), 1);
1153
Marshal.
Copy
(new byte[] { 0 }, 0, (IntPtr)((long)ptr + bytes.Length), 1);
winforms\Managed\System\WinForms\ListView.cs (2)
6071
Marshal.
Copy
(buff, 0, dispInfo.item.pszText, text.Length + 1);
6156
Marshal.
Copy
(byteBuf, 0, infoTip.lpszText, Math.Min(byteBuf.Length, infoTip.cchTextMax));
winforms\Managed\System\WinForms\RichTextBox.cs (1)
1904
Marshal.
Copy
(bytes, 0, buf, transferred);
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (2)
6545
Marshal.
Copy
(buffer, 0, result, buffer.Length);
6704
Marshal.
Copy
(buffer, 0, buf, count);
System.Workflow.Runtime (1)
DebugEngine\DebugController.cs (1)
203
Marshal.
Copy
(sdBytes, 0, securityDescriptorPtr, rawSecurityDescriptor.BinaryLength);
WindowsBase (2)
Base\MS\Internal\IO\Packaging\StorageBasedPackageProperties.cs (1)
744
Marshal.
Copy
(byteArray, 0, pszVal, nLen);
Shared\MS\Win32\NativeMethodsCLR.cs (1)
6185
Marshal.
Copy
(buffer, 0, result, buffer.Length);
WsatConfig (1)
Configuration\SafeLocalAllocation.cs (1)
45
System.Runtime.InteropServices.Marshal.
Copy
(
WsatUI (1)
Configuration\SafeLocalAllocation.cs (1)
45
System.Runtime.InteropServices.Marshal.
Copy
(