59 references to Copy
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\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
821Marshal.Copy((IntPtr)clientCert, certEncoded, 0, certEncoded.Length);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
DelegateTests.cs (1)
330Marshal.Copy(new IntPtr(pSecurityDescriptor.Value), securityDescriptorBytes, 0, length);
Microsoft.AspNetCore.Server.IIS (2)
Core\IISHttpContext.FeatureCollection.cs (1)
395Marshal.Copy((IntPtr)NativeRequest->pSslInfo->pClientCertInfo->pCertEncoded, rawCertificateCopy, 0, rawCertificateCopy.Length);
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
821Marshal.Copy((IntPtr)clientCert, certEncoded, 0, certEncoded.Length);
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
821Marshal.Copy((IntPtr)clientCert, certEncoded, 0, certEncoded.Length);
Microsoft.Build.Tasks.Core (3)
ManifestUtil\EmbeddedManifestReader.cs (1)
55Marshal.Copy(hResource, buffer, 0, buffer.Length);
ManifestUtil\mansign2.cs (2)
818Marshal.Copy(timestampContext.pbEncoded, encodedBytes, 0, (int)timestampContext.cbEncoded); 890Marshal.Copy(timestampBlob.pbData, timestampSignature, 0, timestampSignature.Length);
Microsoft.Build.Tasks.UnitTests (1)
AddToWin32Manifest_Tests.cs (1)
178Marshal.Copy(ipMemorySource, uiBytes, 0, (int)resSize);
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.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
505Marshal.Copy((IntPtr)valuePtr, bytes, 0, bytes.Length);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Emit\EmitMetadataTests.cs (1)
2406Marshal.Copy((IntPtr)relocBlock.Pointer, relocBytes, 0, relocBytes.Length);
Microsoft.CodeAnalysis.Features (1)
SymbolSearch\Windows\NativePatching.cs (1)
77Marshal.Copy(output.pBuf, targetBytes, 0, targetBytes.Length);
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
277Marshal.Copy(new IntPtr(contentPtr), content, 0, length);
Microsoft.CodeAnalysis.Test.Utilities (4)
CompilationVerifier.EmitOutput.cs (1)
47Marshal.Copy((IntPtr)mdReader.MetadataPointer, bytes, 0, length);
Win32Res.cs (3)
50Marshal.Copy((IntPtr)(ptr.ToInt64() + offset), fullmanif, 0, length); 57Marshal.Copy(mfRsrc, ar, 0, 3); 168Marshal.Copy(versionRsrc, entireResourceBytes, 0, entireResourceBytes.Length);
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
505Marshal.Copy((IntPtr)valuePtr, bytes, 0, bytes.Length);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyUnmanagedMemoryStream.cs (1)
38Marshal.Copy(_data + _position, buffer, offset, bytesRead);
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)));
PresentationCore (9)
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\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.Test.PdbUtilities (1)
Reader\PdbValidation.cs (1)
554Marshal.Copy((IntPtr)data, result, 0, result.Length);
System.Data.Odbc (1)
Common\System\Data\ProviderBase\DbBuffer.cs (1)
158Marshal.Copy(ptr, destination, startIndex, length);
System.Drawing.Common.Tests (3)
mono\System.Drawing\BitmapTests.cs (2)
220Marshal.Copy(bd.Scan0, data, 0, size); 522Marshal.Copy((nint)cur, btv, 0, 1);
System\Drawing\BitmapTests.cs (1)
1352Marshal.Copy(bitmapData.Scan0, data, 0, size);
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.RawSocket.cs (1)
470Marshal.Copy(new IntPtr(&icmpHeader), result, offset, icmpHeaderSize);
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventProvider.cs (1)
1358Marshal.Copy((IntPtr)(void*)filterData->Ptr, data, 0, data.Length);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (1)
1929Marshal.Copy(data->DataPointer, blob, 0, blob.Length);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\DataCollector.cs (2)
137Marshal.Copy((IntPtr)p, buffer, oldPos, size); 176Marshal.Copy((IntPtr)p, buffer, oldPos, size);
System.Private.Windows.Core (1)
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (1)
151Marshal.Copy((nint)buffer, bytes, 0, size);
System.Reflection.Metadata (3)
System\Reflection\Internal\Utilities\EncodingHelper.netcoreapp.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.Security.Cryptography.ProtectedData (1)
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)
1638Marshal.Copy(buf, bytes, 0, cb);
System.Windows.Forms.Tests (1)
System\Windows\Forms\ClipboardTests.cs (1)
942Marshal.Copy((nint)buffer, bytes, 0, size);
UIAutomationTypes (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsCLR.cs (1)
2360Marshal.Copy(ptr, buffer, 0, buffer.Length);