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