55 references to Copy
Microsoft.AspNetCore.Server.HttpSys (1)
NativeInterop\RequestQueue.cs (1)
59Marshal.Copy(securityDescriptorBytes, 0, pSecurityDescriptor.Value, securityDescriptorBytes.Length);
Microsoft.CodeAnalysis (1)
DiaSymReader\Utilities\ComMemoryStream.cs (1)
129Marshal.Copy(_chunks[chunkIndex], chunkOffset, (IntPtr)(pv + destinationIndex), bytesToCopy);
Microsoft.DiaSymReader (1)
Utilities\ComMemoryStream.cs (1)
135Marshal.Copy(_chunks[chunkIndex], chunkOffset, (IntPtr)(pv + destinationIndex), bytesToCopy);
Microsoft.ML.Core (1)
Data\ModelHeader.cs (1)
378Marshal.Copy(bytes, 0, (IntPtr)pheader, Size);
Microsoft.ML.Data (3)
DataLoadSave\Binary\BinaryLoader.cs (1)
1041Marshal.Copy(headerBytes, 0, (IntPtr)(&header), Header.HeaderSize);
DataLoadSave\Binary\Codecs.cs (1)
274Marshal.Copy(_buffer, 0, ptr, sublen);
DataLoadSave\Transpose\TransposeLoader.cs (1)
569Marshal.Copy(headerBytes, 0, (IntPtr)(&header), Header.HeaderSize);
NuGet.Packaging (4)
Signing\Cms\HeapBlockRetainer.cs (1)
33Marshal.Copy(b, 0, pb, b.Length);
Signing\Cms\NativeCms.cs (2)
245Marshal.Copy(encodedCert, 0, unmanagedCert, encodedCert.Length); 439Marshal.Copy(data, 0, unmanagedData, data.Length);
Signing\Cms\NativeUtility.cs (1)
191Marshal.Copy(attrData, 0, blob->pbData, attrData.Length);
PresentationCore (3)
System\Windows\Media\ByteStreamGeometryContext.cs (1)
493Marshal.Copy(_chunkList[currentChunk], bufferOffset, (IntPtr)pbData, cbDataForThisChunk);
System\Windows\Media\Imaging\BitmapSource.cs (1)
1833Marshal.Copy(managedArray, y * rectRowSize, new IntPtr(rowPtr), rectRowSize);
System\Windows\Media\Imaging\PropVariant.cs (1)
386Marshal.Copy(guid, 0, pclsidVal, guid.Length);
PresentationFramework (3)
MS\Internal\AppModel\IconHelper.cs (1)
234Marshal.Copy(colorArray, 0, bits, colorArray.Length);
MS\Internal\Printing\PrintDlgExMarshaler.cs (2)
767Marshal.Copy( 816Marshal.Copy(devModeData, 0, hDevMode, devModeData.Length);
PresentationUI (1)
MS\Internal\Documents\PeoplePickerWrapper.cs (1)
329Marshal.Copy(data, 0, _ptrToDsObjectNames, data.Length);
ReachFramework (1)
PrintConfig\PTProvider.cs (1)
394Marshal.Copy(devMode, 0, umDevMode, devMode.Length);
System.Data.Odbc (2)
Common\System\Data\Common\SafeNativeMethods.cs (1)
25Marshal.Copy(zeroes, 0, ptr, length);
Common\System\Data\ProviderBase\DbBuffer.cs (1)
447Marshal.Copy(source, startIndex, ptr, length);
System.Data.OleDb (2)
SafeNativeMethods.cs (1)
18Marshal.Copy(zeroes, 0, ptr, length);
System\Data\ProviderBase\DbBuffer.cs (1)
420Marshal.Copy(source, startIndex, ptr, length);
System.DirectoryServices (3)
System\DirectoryServices\ActiveDirectory\ForestTrustRelationshipInformation.cs (1)
223Marshal.Copy((byte[])_binaryData[i]!, 0, record.Data.Buffer, record.Data.Length);
System\DirectoryServices\ActiveDirectory\Utils.cs (1)
2310Marshal.Copy(bytes, 0, pBytes, bytes.Length);
System\DirectoryServices\DirectorySearcher.cs (1)
845Marshal.Copy(_vlv.DirectoryVirtualListViewContext._context, 0, vlvValue.contextID, vlvValue.contextIDlength);
System.DirectoryServices.AccountManagement (1)
System\DirectoryServices\AccountManagement\Utils.cs (1)
157Marshal.Copy(bytes, 0, pBytes, bytes.Length);
System.DirectoryServices.Protocols (7)
System\DirectoryServices\Protocols\common\BerConverter.cs (3)
325Marshal.Copy(value, 0, berValue.bv_val, value.Length); 470Marshal.Copy(tempValue, 0, tmp, tempValue.Length); 544Marshal.Copy(byteArray, 0, managedBervalArray[i].bv_val, byteArray.Length);
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (4)
614Marshal.Copy(byteArray, 0, berValuePtr.bv_val, byteArray.Length); 680Marshal.Copy(val, 0, berValuePtr.bv_val, val.Length); 1227Marshal.Copy(byteControlValue, 0, managedControls[i].ldctl_value.bv_val, (int)managedControls[i].ldctl_value.bv_len.Value); 1318Marshal.Copy(byteArray, 0, berValues[j].bv_val, (int)berValues[j].bv_len.Value);
System.Drawing.Common (5)
System\Drawing\Icon.cs (1)
650Marshal.Copy(_iconData, newOffset + j * width, (IntPtr)pixelPtr, lineLength);
System\Drawing\Imaging\EncoderParameter.cs (2)
179Marshal.Copy(value, 0, _parameterValue, _numberOfValues); 192Marshal.Copy(value, 0, _parameterValue, _numberOfValues);
System\Drawing\Printing\PrinterSettings.cs (2)
640Marshal.Copy(_cachedDevmode, 0, (nint)devmode, _devmodeBytes); 664Marshal.Copy(_extraInfo, 0, (nint)((byte*)devmode + devmode->dmSize), _extraBytes);
System.Net.Security (1)
System\Net\Security\Pal.Managed\SafeChannelBindingHandle.cs (1)
27Marshal.Copy(certHashBytes, 0, CertHashPtr, length);
System.Runtime.InteropServices.JavaScript (1)
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Byte.cs (1)
114Marshal.Copy(value, 0, slot.IntPtrValue, slot.Length);
System.Security.Cryptography.Pkcs (1)
Internal\Cryptography\Pal\Windows\HeapBlockRetainer.cs (1)
61Marshal.Copy(data, 0, pData, data.Length);
System.Security.Principal.Windows (1)
System\Security\Principal\WindowsIdentity.cs (1)
180Marshal.Copy(upnBytes, 0, pKerbS4uLogin->ClientUpn.Buffer, upnBytes.Length);
System.Speech (4)
Internal\SapiInterop\SpAudioStreamWrapper.cs (1)
64Marshal.Copy(_wfx, 0, format, _wfx.Length);
Internal\StreamMarshaler.cs (3)
36Marshal.Copy(ab, 0, buffer, sizeObject); 70Marshal.Copy(ab, 0, buffer, sizeObject); 123Marshal.Copy(ab, 0, buffer, sizeObject);
System.Windows.Forms (4)
System\Windows\Forms\ActiveX\AxHost.State.cs (1)
146Marshal.Copy(_buffer, 0, (nint)pointer, _length);
System\Windows\Forms\Control.cs (2)
6818Marshal.Copy(bytes, 0, m.LParamInternal, bytes.Length); 6819Marshal.Copy(nullBytes, 0, m.LParamInternal + (nint)bytes.Length, nullBytes.Length);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
1753Marshal.Copy(bytes, 0, buf, transferred);
System.Windows.Forms.Design (3)
System\Drawing\Design\ColorEditor.CustomColorDialog.cs (1)
29Marshal.Copy(buffer, 0, _hInstance, size);
System\Windows\Forms\Design\Behavior\BehaviorService.cs (2)
779Marshal.Copy(bytes, 0, m.LParamInternal, bytes.Length); 780Marshal.Copy(nullBytes, 0, m.LParamInternal + (nint)bytes.Length, nullBytes.Length);
UIAutomationTypes (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsCLR.cs (1)
2337Marshal.Copy(buffer, 0, result, buffer.Length);