97 references to Copy
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
507Marshal.Copy((IntPtr)valuePtr, bytes, 0, bytes.Length);
Microsoft.AspNetCore.DataProtection (1)
Cng\DpapiSecretSerializerHelper.cs (1)
104Marshal.Copy((IntPtr)dataOut.pbData, retVal, 0, dataLength);
Microsoft.AspNetCore.Server.HttpSys (2)
RequestProcessing\ClientCertLoader.cs (1)
279Marshal.Copy((IntPtr)pClientCertInfo->pCertEncoded, certEncoded, 0, certEncoded.Length);
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
898Marshal.Copy((IntPtr)clientCert, certEncoded, 0, certEncoded.Length);
Microsoft.AspNetCore.Server.IIS (2)
Core\IISHttpContext.FeatureCollection.cs (1)
398Marshal.Copy((IntPtr)NativeRequest->pSslInfo->pClientCertInfo->pCertEncoded, rawCertificateCopy, 0, rawCertificateCopy.Length);
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
898Marshal.Copy((IntPtr)clientCert, certEncoded, 0, certEncoded.Length);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\TlsConnectionFeature.cs (1)
223Marshal.Copy(binding.DangerousGetHandle(), buffer, 0, size);
Microsoft.Build.Tasks.Core (2)
ManifestUtil\mansign2.cs (2)
838Marshal.Copy(timestampContext.pbEncoded, encodedBytes, 0, (int)timestampContext.cbEncoded); 910Marshal.Copy(timestampBlob.pbData, timestampSignature, 0, timestampSignature.Length);
Microsoft.CodeAnalysis (3)
DiaSymReader\Utilities\ComMemoryStream.cs (1)
226Marshal.Copy((IntPtr)(pv + bytesWritten), _chunks[chunkIndex], chunkOffset, bytesToCopy);
InternalUtilities\ReadOnlyUnmanagedMemoryStream.cs (1)
38Marshal.Copy(_data + _position, buffer, offset, bytesRead);
StrongName\DesktopStrongNameProvider.cs (1)
218Marshal.Copy(keyBlob, pubKey, 0, keyBlobByteCount);
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
507Marshal.Copy((IntPtr)valuePtr, bytes, 0, bytes.Length);
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
507Marshal.Copy((IntPtr)valuePtr, bytes, 0, bytes.Length);
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
507Marshal.Copy((IntPtr)valuePtr, bytes, 0, bytes.Length);
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
282Marshal.Copy(new IntPtr(contentPtr), content, 0, length);
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
507Marshal.Copy((IntPtr)valuePtr, bytes, 0, bytes.Length);
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
507Marshal.Copy((IntPtr)valuePtr, bytes, 0, bytes.Length);
Microsoft.DiaSymReader (1)
Utilities\ComMemoryStream.cs (1)
230Marshal.Copy((IntPtr)(pv + bytesWritten), _chunks[chunkIndex], chunkOffset, bytesToCopy);
Microsoft.ML.Core (1)
Data\ModelHeader.cs (1)
311Marshal.Copy((IntPtr)pheader, bytes, 0, Size);
Microsoft.ML.Data (3)
DataLoadSave\Binary\BinarySaver.cs (1)
557Marshal.Copy(new IntPtr(&header), headerBytes, 0, Marshal.SizeOf(typeof(Header)));
DataLoadSave\Binary\Codecs.cs (1)
213Marshal.Copy(ptr, _buffer, 0, sublen);
DataLoadSave\Transpose\TransposeSaver.cs (1)
179Marshal.Copy(new IntPtr(&header), headerBytes, 0, Marshal.SizeOf(typeof(Header)));
Microsoft.Private.Windows.Core (1)
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (1)
168Marshal.Copy((nint)buffer, bytes, 0, size);
NuGet.Packaging (2)
Signing\Cms\NativeCms.cs (2)
71Marshal.Copy( 198Marshal.Copy(attributeValue.pbData, bytes, startIndex: 0, length: bytes.Length);
PresentationCore (10)
MS\Internal\FontCache\FontCacheUtil.cs (1)
75Marshal.Copy((IntPtr)_pointer, b, 0, Size);
MS\Internal\FontFace\FontDriver.cs (1)
250Marshal.Copy((IntPtr)fontData, fontCopy, 0, fileSize);
System\Windows\Media\ByteStreamGeometryContext.cs (1)
497Marshal.Copy((IntPtr)pbData, _chunkList[currentChunk], bufferOffset, cbDataForThisChunk);
System\Windows\Media\GlyphTypeface.cs (1)
1280Marshal.Copy(new IntPtr(pMilPathGeometry), data, 0, checked((int)size));
System\Windows\Media\Imaging\PropVariant.cs (4)
505Marshal.Copy(ca.pElems, array, 0, (int)ca.cElems); 582Marshal.Copy(ca.pElems, guid, i*16, 16); 672Marshal.Copy(pclsidVal, guid, 0, 16); 684Marshal.Copy(ca.pElems, blob, 0, (int)ca.cElems);
System\Windows\Media\RenderData.cs (2)
108Marshal.Copy((IntPtr)(&header), this._buffer, _curOffset, sizeof(RecordHeader)); 109Marshal.Copy((IntPtr)pbRecord, this._buffer, _curOffset + sizeof(RecordHeader), cbRecordSize);
PresentationFramework (1)
MS\Internal\Printing\PrintDlgExMarshaler.cs (1)
371Marshal.Copy(pDevMode, devModeData, 0, devModeData.Length);
ReachFramework (2)
MS\Internal\Printing\Configuration\DevMode.cs (1)
465Marshal.Copy(devModeWPointer, devModeWBytes, 0, devModeWByteSize);
PrintConfig\PTProvider.cs (1)
476Marshal.Copy(umDevMode, devMode, 0, (int)umDevModeLen);
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
507Marshal.Copy((IntPtr)valuePtr, bytes, 0, bytes.Length);
System.Data.Odbc (1)
Common\System\Data\ProviderBase\DbBuffer.cs (1)
158Marshal.Copy(ptr, destination, startIndex, length);
System.Data.OleDb (2)
ColumnBinding.cs (1)
674Marshal.Copy(ptr, value, 0, value.Length);
System\Data\ProviderBase\DbBuffer.cs (1)
131Marshal.Copy(ptr, destination, startIndex, length);
System.Diagnostics.EventLog (1)
System\Diagnostics\Reader\NativeWrapper.cs (1)
1184Marshal.Copy(val.Reference, arByte, 0, (int)val.Count);
System.DirectoryServices (6)
Interop\AdsValueHelper2.cs (3)
137Marshal.Copy(dnb.lpBinaryValue, bytes, 0, dnb.dwLength); 194Marshal.Copy(adsvalue.octetString.value, value, 0, len); 234Marshal.Copy(vlv.contextID, bytes, 0, vlv.contextIDlength);
System\DirectoryServices\ActiveDirectory\ForestTrustRelationshipInformation.cs (1)
409Marshal.Copy(record.Data.Buffer, byteArray, 0, length);
System\DirectoryServices\DirectorySearcher.cs (2)
815Marshal.Copy((INTPTR_INTPTRCAST)(&sortKey), sortKeyBytes, 0, sortKeyBytes.Length); 852Marshal.Copy(vlvPtr, vlvBytes, 0, vlvBytes.Length);
System.DirectoryServices.AccountManagement (1)
System\DirectoryServices\AccountManagement\Utils.cs (1)
178Marshal.Copy(pSid, sid, 0, sidLength);
System.DirectoryServices.Protocols (7)
System\DirectoryServices\Protocols\common\BerConverter.cs (3)
280Marshal.Copy(binaryValue.bv_val, encodingResult, 0, (int)binaryValue.bv_len.Value); 502Marshal.Copy(binaryValue.bv_val, byteArray, 0, (int)binaryValue.bv_len.Value); 610Marshal.Copy(ber.bv_val, berArray, 0, (int)ber.bv_len.Value);
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (4)
909Marshal.Copy(info.pbData, context, 0, dataLength); 1470Marshal.Copy(val.bv_val, requestValueArray, 0, (int)val.bv_len.Value); 1791Marshal.Copy(bervalue.bv_val, byteArray, 0, (int)bervalue.bv_len.Value); 1927Marshal.Copy(control.ldctl_value.bv_val, bytes, 0, (int)control.ldctl_value.bv_len.Value);
System.Drawing.Common (2)
System\Drawing\Printing\PrinterSettings.cs (2)
996Marshal.Copy((nint)devmode, _cachedDevmode, 0, _devmodeBytes); 1004Marshal.Copy((nint)((byte*)devmode + devmode->dmSize), _extraInfo, 0, _extraBytes);
System.Net.Http.WinHttpHandler (3)
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.CRYPT_BIT_BLOB.cs (1)
22Marshal.Copy(pbData, data, 0, numBytes);
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.DATA_BLOB.cs (1)
31Marshal.Copy(pbData, array, 0, (int)cbData);
System\Net\Http\WinHttpChannelBinding.cs (1)
61Marshal.Copy(this.handle, bytes, 0, _size);
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.RawSocket.cs (1)
467Marshal.Copy(new IntPtr(&icmpHeader), result, offset, icmpHeaderSize);
System.Private.CoreLib (4)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventProvider.cs (1)
1288Marshal.Copy((IntPtr)(void*)filterData->Ptr, data, 0, data.Length);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (1)
1942Marshal.Copy(data->DataPointer, blob, 0, blob.Length);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\DataCollector.cs (2)
138Marshal.Copy((IntPtr)p, buffer, oldPos, size); 177Marshal.Copy((IntPtr)p, buffer, oldPos, size);
System.Private.Windows.Core (1)
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (1)
168Marshal.Copy((nint)buffer, bytes, 0, size);
System.Reflection.Metadata (3)
System\Reflection\Internal\Utilities\EncodingHelper.cs (1)
48Marshal.Copy((IntPtr)bytes, buffer, prefix.Length, byteCount);
System\Reflection\Metadata\BlobReader.cs (1)
437Marshal.Copy((IntPtr)GetCurrentPointerAndAdvance(byteCount), buffer, bufferOffset, byteCount);
System\Reflection\Metadata\Internal\StringHeap.cs (1)
188Marshal.Copy((IntPtr)block.Pointer, bytes, prefix.Length, block.Length);
System.Runtime.InteropServices.JavaScript (1)
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Byte.cs (1)
94Marshal.Copy(slot.IntPtrValue, value, 0, slot.Length);
System.Security.AccessControl (2)
System\Security\AccessControl\SecurityDescriptor.cs (1)
492Marshal.Copy(byteArray, binaryForm, 0, (int)byteArraySize);
System\Security\AccessControl\Win32.cs (1)
170Marshal.Copy(ByteArray, BinaryForm, 0, (int)Length);
System.Security.Cryptography (3)
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.CRYPT_BIT_BLOB.cs (1)
22Marshal.Copy(pbData, data, 0, numBytes);
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.DATA_BLOB.cs (1)
31Marshal.Copy(pbData, array, 0, (int)cbData);
System\Security\Cryptography\X509Certificates\StorePal.Windows.Export.cs (1)
42Marshal.Copy((IntPtr)(pCertContext.DangerousCertContext->pbCertEncoded), rawData, 0, rawData.Length);
System.Security.Cryptography.Pkcs (3)
Internal\Cryptography\Pal\Windows\HelpersWindows.cs (1)
76Marshal.Copy(blob.pbData, data, 0, length);
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.CRYPT_BIT_BLOB.cs (1)
22Marshal.Copy(pbData, data, 0, numBytes);
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.DATA_BLOB.cs (1)
31Marshal.Copy(pbData, array, 0, (int)cbData);
System.Security.Cryptography.ProtectedData (1)
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.DATA_BLOB.cs (1)
31Marshal.Copy(pbData, array, 0, (int)cbData);
System.Security.Principal.Windows (1)
System\Security\Principal\Win32.cs (1)
90Marshal.Copy(binaryForm, ResultSid, 0, BinaryLength);
System.Speech (9)
Internal\StreamMarshaler.cs (3)
56Marshal.Copy(buffer, ab, 0, sizeObject); 110Marshal.Copy(buffer, ab, 0, sizeObject); 135Marshal.Copy(buffer, ab, 0, sizeObject);
Internal\Synthesis\AudioBase.cs (2)
46Marshal.Copy(pBuff, buffer, 0, cb); 426Marshal.Copy(waveHeader, ab, 0, 18 + cbSize);
Recognition\RecognizerBase.cs (1)
2537Marshal.Copy(coMemSerializeBlob, serializedBlob, 0, (int)sizeOfSerializedBlob);
Result\RecognitionResult.cs (2)
165Marshal.Copy(rawDataBuffer, rawAudioData, 0, audioLength - (int)audioHeader.cbUsed); 171Marshal.Copy(codecDataBuffer, formatSpecificData, 0, audioHeader.cbSize);
Result\RecognizedPhrase.cs (1)
360Marshal.Copy(phraseBuffer, _phraseBuffer, 0, phraseLength);
System.Windows.Extensions (2)
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.CRYPT_BIT_BLOB.cs (1)
22Marshal.Copy(pbData, data, 0, numBytes);
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.DATA_BLOB.cs (1)
31Marshal.Copy(pbData, array, 0, (int)cbData);
System.Windows.Forms (2)
System\Windows\Forms\ActiveX\AxHost.State.cs (1)
284Marshal.Copy((nint)pointer, _buffer, 0, _length);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
1665Marshal.Copy(buf, bytes, 0, cb);
UIAutomationTypes (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsCLR.cs (1)
2360Marshal.Copy(ptr, buffer, 0, buffer.Length);