527 references to CopyTo
aspire (5)
src\Shared\CircularBuffer.cs (5)
99data.Slice(0, _end).CopyTo(data.Slice(1)); 107data.Slice(internalIndex, shiftLength).CopyTo(data.Slice(internalIndex + 1)); 110data.Slice(0, _end).CopyTo(data.Slice(1)); 116data.Slice(internalIndex, _end - internalIndex).CopyTo(data.Slice(internalIndex + 1)); 120data.Slice(internalIndex, data.Length - internalIndex - 1).CopyTo(data.Slice(internalIndex + 1));
Aspire.Dashboard (6)
Otlp\Model\OtlpHelpers.cs (1)
270parentAttributes.AsSpan().CopyTo(copiedAttributes);
src\Shared\CircularBuffer.cs (5)
99data.Slice(0, _end).CopyTo(data.Slice(1)); 107data.Slice(internalIndex, shiftLength).CopyTo(data.Slice(internalIndex + 1)); 110data.Slice(0, _end).CopyTo(data.Slice(1)); 116data.Slice(internalIndex, _end - internalIndex).CopyTo(data.Slice(internalIndex + 1)); 120data.Slice(internalIndex, data.Length - internalIndex - 1).CopyTo(data.Slice(internalIndex + 1));
Aspire.Hosting (5)
src\Shared\CircularBuffer.cs (5)
99data.Slice(0, _end).CopyTo(data.Slice(1)); 107data.Slice(internalIndex, shiftLength).CopyTo(data.Slice(internalIndex + 1)); 110data.Slice(0, _end).CopyTo(data.Slice(1)); 116data.Slice(internalIndex, _end - internalIndex).CopyTo(data.Slice(internalIndex + 1)); 120data.Slice(internalIndex, data.Length - internalIndex - 1).CopyTo(data.Slice(internalIndex + 1));
ILCompiler.Compiler (4)
src\runtime\src\coreclr\tools\Common\Internal\Text\Utf8StringBuilder.cs (1)
94buffer.Slice(0, bytesWritten).CopyTo(_buffer.AsSpan(_length));
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
113_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 133_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 267_chars.Slice(0, _pos).CopyTo(poolArray);
ILCompiler.ReadyToRun (1)
src\runtime\src\coreclr\tools\Common\Internal\Text\Utf8StringBuilder.cs (1)
94buffer.Slice(0, bytesWritten).CopyTo(_buffer.AsSpan(_length));
ILCompiler.RyuJit (3)
JitInterface\CorInfoImpl.RyuJit.cs (3)
2370bytes.AsSpan(valueOffset, bufferSize).CopyTo(new Span<byte>(buffer, bufferSize)); 2380new Span<byte>(&handle, targetPtrSize).CopyTo(new Span<byte>(buffer, targetPtrSize)); 2418new Span<byte>((byte*)pStr + offset, bufferSize).CopyTo(
ILCompiler.TypeSystem (4)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\TypeSystemHelpers.cs (1)
465s4.Slice(0, s4length).CopyTo(buffer.Slice(s1.Length + s2.Length + s3.Length));
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
113_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 133_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 267_chars.Slice(0, _pos).CopyTo(poolArray);
illink (3)
ILLink.RoslynAnalyzer (3)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
113_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 133_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 267_chars.Slice(0, _pos).CopyTo(poolArray);
Microsoft.AspNetCore.Antiforgery (2)
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (2)
134_buffer.CopyTo(_rentedBuffer); 161previousBuffer.CopyTo(_rentedBuffer);
Microsoft.AspNetCore.Components (3)
ParameterView.cs (1)
126_frames.AsSpan(1, numEntries).CopyTo(cloneBuffer.AsSpan(1));
PersistentState\PersistentStateValueProviderKeyResolver.cs (1)
145keyBuffer.CopyTo(newPool);
src\aspnetcore\src\Shared\PooledArrayBufferWriter.cs (1)
200previousBuffer.CopyTo(_rentedBuffer);
Microsoft.AspNetCore.Components.Endpoints (2)
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (2)
134_buffer.CopyTo(_rentedBuffer); 161previousBuffer.CopyTo(_rentedBuffer);
Microsoft.AspNetCore.Components.Forms (1)
src\aspnetcore\src\Components\Shared\src\ExpressionFormatting\ReverseStringBuilder.cs (1)
64_currentBuffer[_nextEndIndex..].CopyTo(newBuffer.AsSpan(newEndIndex));
Microsoft.AspNetCore.Components.Server (4)
src\aspnetcore\src\Shared\PooledArrayBufferWriter.cs (1)
200previousBuffer.CopyTo(_rentedBuffer);
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
242_currentSegment.AsSpan(0, _position).CopyTo(result.AsSpan(totalWritten)); 271_currentSegment.AsSpan(0, _position).CopyTo(span.Slice(totalWritten));
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\BufferWriter.cs (1)
255_segment.AsSpan(0, _buffered).CopyTo(realSpan);
Microsoft.AspNetCore.Components.Web (1)
src\aspnetcore\src\Components\Shared\src\ExpressionFormatting\ReverseStringBuilder.cs (1)
64_currentBuffer[_nextEndIndex..].CopyTo(newBuffer.AsSpan(newEndIndex));
Microsoft.AspNetCore.DataProtection (6)
Managed\ManagedAuthenticatedEncryptor.cs (1)
194keyModifier.CopyTo(buffer.Slice(0, keyModifierLength));
SP800_108\ManagedSP800_108_CTR_HMACSHA512.cs (2)
157prfOutput.Slice(0, bytesToWrite).CopyTo(destination); 164prfOutput.Slice(bytesToWrite, leftOverBytes).CopyTo(destination);
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (2)
134_buffer.CopyTo(_rentedBuffer); 161previousBuffer.CopyTo(_rentedBuffer);
src\aspnetcore\src\Shared\PooledArrayBufferWriter.cs (1)
200previousBuffer.CopyTo(_rentedBuffer);
Microsoft.AspNetCore.Http.Abstractions (1)
src\aspnetcore\src\Shared\ValueStringBuilder\ValueListBuilder.cs (1)
92_span.CopyTo(array);
Microsoft.AspNetCore.Http.Connections (2)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
242_currentSegment.AsSpan(0, _position).CopyTo(result.AsSpan(totalWritten)); 271_currentSegment.AsSpan(0, _position).CopyTo(span.Slice(totalWritten));
Microsoft.AspNetCore.Http.Extensions (4)
src\aspnetcore\src\Shared\ValueStringBuilder\ValueListBuilder.cs (1)
92_span.CopyTo(array);
src\aspnetcore\src\Shared\ValueStringBuilder\ValueStringBuilder.cs (3)
143_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 163_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 295_chars.Slice(0, _pos).CopyTo(poolArray);
Microsoft.AspNetCore.HttpLogging (6)
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (2)
134_buffer.CopyTo(_rentedBuffer); 161previousBuffer.CopyTo(_rentedBuffer);
src\aspnetcore\src\Shared\ValueStringBuilder\ValueListBuilder.cs (1)
92_span.CopyTo(array);
src\aspnetcore\src\Shared\ValueStringBuilder\ValueStringBuilder.cs (3)
143_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 163_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 295_chars.Slice(0, _pos).CopyTo(poolArray);
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
src\aspnetcore\src\Shared\PooledArrayBufferWriter.cs (1)
200previousBuffer.CopyTo(_rentedBuffer);
Microsoft.AspNetCore.OutputCaching (1)
RecyclableArrayBufferWriter.cs (1)
120oldArray.AsSpan(0, _index).CopyTo(_buffer);
Microsoft.AspNetCore.Razor.Utilities.Shared (2)
MemoryBuilder`1.cs (1)
162_memory.Span.CopyTo(newArray);
PooledArrayBufferWriter`1.cs (1)
186previousBuffer.CopyTo(_rentedBuffer);
Microsoft.AspNetCore.Server.Kestrel.Core (6)
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (2)
134_buffer.CopyTo(_rentedBuffer); 161previousBuffer.CopyTo(_rentedBuffer);
src\aspnetcore\src\Shared\PathNormalizer\PathNormalizer.cs (4)
35currentSrc.CopyTo(src[writtenLength..]); 42currentSrc[..nextDotSegmentIndex].CopyTo(src[writtenLength..]); 74src.Slice(readPointer, 3).CopyTo(src[writtenLength..]); 110src[readPointer..].CopyTo(src[writtenLength..]);
Microsoft.AspNetCore.SignalR.Common (2)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
242_currentSegment.AsSpan(0, _position).CopyTo(result.AsSpan(totalWritten)); 271_currentSegment.AsSpan(0, _position).CopyTo(span.Slice(totalWritten));
Microsoft.AspNetCore.WebSockets (4)
src\aspnetcore\src\Shared\ValueStringBuilder\ValueListBuilder.cs (1)
92_span.CopyTo(array);
src\aspnetcore\src\Shared\ValueStringBuilder\ValueStringBuilder.cs (3)
143_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 163_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 295_chars.Slice(0, _pos).CopyTo(poolArray);
Microsoft.Build.Framework (9)
Collections\RefArrayBuilder.cs (5)
205span.Slice(index, toCopy).CopyTo(span.Slice(index + 1, toCopy)); 247span.Slice(index, toCopy).CopyTo(span.Slice(index + source.Length, toCopy)); 319span[..startIndex].CopyTo(destination); 322span[startIndex.._count].CopyTo(destination.Slice(startIndex + size)); 346span.Slice(index + 1, toCopy).CopyTo(span.Slice(index, toCopy));
Utilities\BufferScope.cs (1)
101_span.CopyTo(newArray);
Utilities\ValueStringBuilder.cs (3)
241_chars.Slice(index, remaining).CopyTo(_chars[(index + count)..]); 267_chars.Slice(index, remaining).CopyTo(_chars[(index + count)..]); 422_chars[.._length].CopyTo(MemoryMarshal.Cast<byte, char>((Span<byte>)poolArray));
Microsoft.CodeAnalysis (2)
CommandLine\CommandLineParser.cs (1)
640lineBuffer.CopyTo(temp.AsSpan());
Text\SourceText.cs (1)
741tempBuffer.AsSpan(0, copyLength).CopyTo(buffer);
Microsoft.CSharp (2)
src\runtime\src\libraries\Common\src\System\Runtime\InteropServices\ComEventsMethod.cs (2)
196wrappers.AsSpan(0, removeIdx).CopyTo(newWrappers); 197wrappers.AsSpan(removeIdx + 1).CopyTo(newWrappers.AsSpan(removeIdx));
Microsoft.Diagnostics.DataContractReader.Contracts (2)
Contracts\StackWalk\Context\ContextHolder.cs (2)
38buffer.Slice(0, sizeof(T)).CopyTo(byteSpan); 42buffer.CopyTo(byteSpan);
Microsoft.Diagnostics.DataContractReader.Legacy (16)
_generated\26\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSHandleEnum.cs (1)
76global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSHandleData, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSHandleData>.GetManagedValuesDestination(handles).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSHandleData, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSHandleData>.GetUnmanagedValuesSource(__handles_native, __handles_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSHandleData, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSHandleData>.GetUnmanagedValuesSource(__handles_native, __handles_native__numElements).Length));
_generated\27\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSStackRefErrorEnum.cs (1)
76global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSStackRefError, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSStackRefError>.GetManagedValuesDestination(refs).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSStackRefError, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSStackRefError>.GetUnmanagedValuesSource(__refs_native, __refs_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSStackRefError, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSStackRefError>.GetUnmanagedValuesSource(__refs_native, __refs_native__numElements).Length));
_generated\28\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSStackRefEnum.cs (1)
78global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSStackRefData, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSStackRefData>.GetManagedValuesDestination(refs).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSStackRefData, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSStackRefData>.GetUnmanagedValuesSource(__refs_native, __refs_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSStackRefData, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSStackRefData>.GetUnmanagedValuesSource(__refs_native, __refs_native__numElements).Length));
_generated\29\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSMemoryEnum.cs (1)
76global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSMemoryRegion, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSMemoryRegion>.GetManagedValuesDestination(memRegions).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSMemoryRegion, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSMemoryRegion>.GetUnmanagedValuesSource(__memRegions_native, __memRegions_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSMemoryRegion, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSMemoryRegion>.GetUnmanagedValuesSource(__memRegions_native, __memRegions_native__numElements).Length));
_generated\30\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface.cs (3)
3322global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpJitCodeHeapInfo, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpJitCodeHeapInfo>.GetManagedValuesDestination(codeHeaps).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpJitCodeHeapInfo, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpJitCodeHeapInfo>.GetUnmanagedValuesSource(__codeHeaps_native, __codeHeaps_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpJitCodeHeapInfo, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpJitCodeHeapInfo>.GetUnmanagedValuesSource(__codeHeaps_native, __codeHeaps_native__numElements).Length)); 3612global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpCOMInterfacePointerData, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpCOMInterfacePointerData>.GetManagedValuesDestination(interfaces).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpCOMInterfacePointerData, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpCOMInterfacePointerData>.GetUnmanagedValuesSource(__interfaces_native, __interfaces_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpCOMInterfacePointerData, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpCOMInterfacePointerData>.GetUnmanagedValuesSource(__interfaces_native, __interfaces_native__numElements).Length)); 3707global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpCOMInterfacePointerData, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpCOMInterfacePointerData>.GetManagedValuesDestination(interfaces).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpCOMInterfacePointerData, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpCOMInterfacePointerData>.GetUnmanagedValuesSource(__interfaces_native, __interfaces_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpCOMInterfacePointerData, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpCOMInterfacePointerData>.GetUnmanagedValuesSource(__interfaces_native, __interfaces_native__numElements).Length));
_generated\34\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface5.cs (1)
78global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpTieredVersionData, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpTieredVersionData>.GetManagedValuesDestination(nativeCodeAddrs).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpTieredVersionData, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpTieredVersionData>.GetUnmanagedValuesSource(__nativeCodeAddrs_native, __nativeCodeAddrs_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpTieredVersionData, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpTieredVersionData>.GetUnmanagedValuesSource(__nativeCodeAddrs_native, __nativeCodeAddrs_native__numElements).Length));
_generated\44\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSMethodEnum.cs (1)
76global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSMethodData, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSMethodData>.GetManagedValuesDestination(values).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSMethodData, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSMethodData>.GetUnmanagedValuesSource(__values_native, __values_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSMethodData, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSMethodData>.GetUnmanagedValuesSource(__values_native, __values_native__numElements).Length));
_generated\49\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataProcess.cs (2)
1857global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.GetManagedValuesDestination(flags).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.GetUnmanagedValuesSource(__flags_native, __flags_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.GetUnmanagedValuesSource(__flags_native, __flags_native__numElements).Length)); 1993global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.GetManagedValuesDestination(flags).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.GetUnmanagedValuesSource(__flags_native, __flags_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.GetUnmanagedValuesSource(__flags_native, __flags_native__numElements).Length));
_generated\51\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataStackWalk.cs (1)
87global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(contextBuf).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__contextBuf_native, __contextBuf_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__contextBuf_native, __contextBuf_native__numElements).Length));
_generated\52\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataFrame.cs (1)
132global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(contextBuf).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__contextBuf_native, __contextBuf_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__contextBuf_native, __contextBuf_native__numElements).Length));
_generated\55\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodInstance.cs (1)
629global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataILAddressMap, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataILAddressMap>.GetManagedValuesDestination(maps).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataILAddressMap, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataILAddressMap>.GetUnmanagedValuesSource(__maps_native, __maps_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataILAddressMap, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataILAddressMap>.GetUnmanagedValuesSource(__maps_native, __maps_native__numElements).Length));
Dbi\DacDbiImpl.cs (1)
1162context.AsSpan().CopyTo(new Span<byte>(pContextBuffer, context.Length));
SOSDacImpl.cs (1)
755buckets.AsSpan().CopyTo(dest);
Microsoft.DiaSymReader (26)
_generated\10\Microsoft.DiaSymReader.ISymUnmanagedAsyncMethod.cs (3)
323global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(breakpointMethod).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__breakpointMethod_native, __breakpointMethod_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__breakpointMethod_native, __breakpointMethod_native__numElements).Length)); 324global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(breakpointOffset).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__breakpointOffset_native, __breakpointOffset_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__breakpointOffset_native, __breakpointOffset_native__numElements).Length)); 325global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(yieldOffsets).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__yieldOffsets_native, __yieldOffsets_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__yieldOffsets_native, __yieldOffsets_native__numElements).Length));
_generated\15\Microsoft.DiaSymReader.ISymUnmanagedConstant.cs (2)
81global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetManagedValuesDestination(name).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetUnmanagedValuesSource(__name_native, __name_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetUnmanagedValuesSource(__name_native, __name_native__numElements).Length)); 193global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(signature).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__signature_native, __signature_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__signature_native, __signature_native__numElements).Length));
_generated\17\Microsoft.DiaSymReader.ISymUnmanagedDocument.cs (3)
95global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetManagedValuesDestination(url).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetUnmanagedValuesSource(__url_native, __url_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetUnmanagedValuesSource(__url_native, __url_native__numElements).Length)); 324global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(checksum).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__checksum_native, __checksum_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__checksum_native, __checksum_native__numElements).Length)); 510global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(source).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__source_native, __source_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__source_native, __source_native__numElements).Length));
_generated\19\Microsoft.DiaSymReader.ISymUnmanagedMethod.cs (8)
373global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(ranges).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__ranges_native, __ranges_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__ranges_native, __ranges_native__numElements).Length)); 701global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(columns).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__columns_native, __columns_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__columns_native, __columns_native__numElements).Length)); 702global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(lines).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__lines_native, __lines_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__lines_native, __lines_native__numElements).Length)); 869global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(endColumns).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__endColumns_native, __endColumns_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__endColumns_native, __endColumns_native__numElements).Length)); 870global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(endLines).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__endLines_native, __endLines_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__endLines_native, __endLines_native__numElements).Length)); 871global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(startColumns).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__startColumns_native, __startColumns_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__startColumns_native, __startColumns_native__numElements).Length)); 872global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(startLines).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__startLines_native, __startLines_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__startLines_native, __startLines_native__numElements).Length)); 887global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(offsets).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__offsets_native, __offsets_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__offsets_native, __offsets_native__numElements).Length));
_generated\21\Microsoft.DiaSymReader.ISymUnmanagedNamespace.cs (1)
81global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetManagedValuesDestination(name).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetUnmanagedValuesSource(__name_native, __name_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetUnmanagedValuesSource(__name_native, __name_native__numElements).Length));
_generated\22\Microsoft.DiaSymReader.ISymUnmanagedReader.cs (2)
803global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(customDebugInformation).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__customDebugInformation_native, __customDebugInformation_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__customDebugInformation_native, __customDebugInformation_native__numElements).Length)); 1162global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetManagedValuesDestination(name).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetUnmanagedValuesSource(__name_native, __name_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetUnmanagedValuesSource(__name_native, __name_native__numElements).Length));
_generated\23\Microsoft.DiaSymReader.ISymUnmanagedReader2.cs (1)
160global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(customDebugInformation).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__customDebugInformation_native, __customDebugInformation_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__customDebugInformation_native, __customDebugInformation_native__numElements).Length));
_generated\24\Microsoft.DiaSymReader.ISymUnmanagedReader3.cs (2)
102global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(customDebugInformation).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__customDebugInformation_native, __customDebugInformation_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__customDebugInformation_native, __customDebugInformation_native__numElements).Length)); 158global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(customDebugInformation).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__customDebugInformation_native, __customDebugInformation_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__customDebugInformation_native, __customDebugInformation_native__numElements).Length));
_generated\27\Microsoft.DiaSymReader.ISymUnmanagedCompilerInfoReader.cs (1)
93global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetManagedValuesDestination(name).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetUnmanagedValuesSource(__name_native, __name_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetUnmanagedValuesSource(__name_native, __name_native__numElements).Length));
_generated\31\Microsoft.DiaSymReader.ISymUnmanagedVariable.cs (2)
93global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetManagedValuesDestination(name).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetUnmanagedValuesSource(__name_native, __name_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetUnmanagedValuesSource(__name_native, __name_native__numElements).Length)); 190global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(signature).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__signature_native, __signature_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__signature_native, __signature_native__numElements).Length));
_generated\9\Microsoft.DiaSymReader.ISymEncUnmanagedMethod.cs (1)
85global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetManagedValuesDestination(name).CopyTo(global::System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref global::System.Runtime.InteropServices.MemoryMarshal.GetReference(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetUnmanagedValuesSource(__name_native, __name_native__numElements)), global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetUnmanagedValuesSource(__name_native, __name_native__numElements).Length));
Microsoft.DotNet.TemplateLocator (1)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestReader.SystemTextJson.cs (1)
93span.Slice((int)reader.BytesConsumed).CopyTo(newBuffer);
Microsoft.Extensions.Caching.Hybrid (2)
Internal\BufferChunk.cs (1)
65OversizedArray.AsSpan(Offset, length).CopyTo(copy);
Internal\RecyclableArrayBufferWriter.cs (1)
194oldArray.AsSpan(0, _index).CopyTo(_buffer);
Microsoft.Extensions.DataIngestion (3)
Chunkers\ValueStringBuilder.cs (3)
113_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 133_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 267_chars.Slice(0, _pos).CopyTo(poolArray);
Microsoft.Extensions.DependencyInjection.Abstractions (1)
ActivatorUtilities.cs (1)
141ctorArgs.CopyTo(bestCtorArgs);
Microsoft.Extensions.Identity.Core (1)
Rfc6238AuthenticationService.cs (1)
73input.CopyTo(combined);
Microsoft.Extensions.Logging.Abstractions (3)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
113_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 133_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 267_chars.Slice(0, _pos).CopyTo(poolArray);
Microsoft.Extensions.Logging.Generators (2)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (2)
101_span.Slice(0, _pos).CopyTo(_span.Slice(source.Length)); 229_span.CopyTo(array);
Microsoft.Extensions.ServiceDiscovery.Dns.Tests.Fuzzing (1)
Fuzzers\DnsResponseFuzzer.cs (1)
31_buffer.AsSpan(0, Math.Min(_length, buffer.Length - 2)).CopyTo(buffer.Span.Slice(2));
Microsoft.ML.Core (11)
Utilities\BigArray.cs (6)
408_entries[maMax].AsSpan(miMin, length).CopyTo(dst); 414_entries[maMin].AsSpan(miMin, BlockSize - miMin).CopyTo(dst); 416_entries[maMax].AsSpan(0, miLim).CopyTo(dst.Slice(BlockSize - miMin)); 425_entries[maMin].AsSpan(miMin, dstSoFar).CopyTo(dst); 430_entries[major].AsSpan(0, BlockSize).CopyTo(dst.Slice(dstSoFar)); 437_entries[maMax].AsSpan(0, miLim).CopyTo(dst.Slice(dstSoFar));
Utilities\Stream.cs (1)
717rentedArray.AsSpan(0, numElementsToReadThisChunk * sizeof(T)).CopyTo(MemoryMarshal.AsBytes(destination.Slice(0, numElementsToReadThisChunk)));
Utilities\VBufferUtils.cs (4)
342editor.Indices.Slice(idx, sliceLength).CopyTo(editor.Indices.Slice(idx + 1)); 343editor.Values.Slice(idx, sliceLength).CopyTo(editor.Values.Slice(idx + 1)); 433editor.Values.Slice(lim, sliceLength).CopyTo(editor.Values.Slice(denseCount)); 434editor.Indices.Slice(lim, sliceLength).CopyTo(editor.Indices.Slice(denseCount));
Microsoft.ML.Core.Tests (1)
UnitTests\TestVBuffer.cs (1)
1148aEditor.Indices.Slice(boundary).CopyTo(bEditor.Indices);
Microsoft.ML.CpuMath (2)
AlignedArray.cs (2)
115Items.AsSpan(_base, count).CopyTo(dst.Slice(index)); 123Items.AsSpan(start + _base, count).CopyTo(dst.Slice(index));
Microsoft.ML.Data (12)
Data\BufferBuilder.cs (3)
454_values.AsSpan(0, _length).CopyTo(editor.Values); 461_values.AsSpan(0, _count).CopyTo(editor.Values); 462_indices.AsSpan(0, _count).CopyTo(editor.Indices);
DataLoadSave\Binary\Codecs.cs (3)
1097.CopyTo(editor.Values); 1108.CopyTo(editor.Values); 1110.CopyTo(editor.Indices);
DataLoadSave\Text\TextLoaderParser.cs (2)
426_values.AsSpan(0, _count).CopyTo(editor.Values); 433_indices.AsSpan(0, _count).CopyTo(editor.Indices);
DataView\DataViewConstructionUtils.cs (2)
347buf.AsSpan(0, n).CopyTo(dstEditor.Values); 999value.AsSpan(0, n).CopyTo(dstEditor.Values);
Deprecated\Vector\VBufferMathUtils.cs (2)
310.CopyTo(indices.Slice(dLim + gapCount)); 312.CopyTo(values.Slice(dLim + gapCount));
Microsoft.ML.DataView (8)
VBuffer.cs (8)
184_values.AsSpan(0, Length).CopyTo(editor.Values); 200_values.AsSpan(0, Length).CopyTo(editor.Values); 209_values.AsSpan(0, _count).CopyTo(editor.Values); 210_indices.AsSpan(0, _count).CopyTo(editor.Indices); 233_values.AsSpan(sourceIndex, length).CopyTo(editor.Values); 250_values.AsSpan(copyMin, copyCount).CopyTo(editor.Values); 294_values.AsSpan(0, Length).CopyTo(destination.Slice(destinationIndex)); 328source.AsSpan(sourceIndex, length).CopyTo(editor.Values);
Microsoft.ML.FastTree (16)
Utils\ToByteArrayExtensions.cs (16)
293MemoryMarshal.AsBytes(a.AsSpan()).CopyTo(buffer.AsSpan(position)); 304buffer.AsSpan(position, byteLength).CopyTo(MemoryMarshal.AsBytes(a.AsSpan())); 326MemoryMarshal.AsBytes(a.AsSpan()).CopyTo(buffer.AsSpan(position)); 337buffer.AsSpan(position, byteLength).CopyTo(MemoryMarshal.AsBytes(a.AsSpan())); 359MemoryMarshal.AsBytes(a.AsSpan()).CopyTo(buffer.AsSpan(position)); 375buffer.AsSpan(position, byteLength).CopyTo(MemoryMarshal.AsBytes(a.AsSpan())); 397MemoryMarshal.AsBytes(a.AsSpan()).CopyTo(buffer.AsSpan(position)); 408buffer.AsSpan(position, byteLength).CopyTo(MemoryMarshal.AsBytes(a.AsSpan())); 430MemoryMarshal.AsBytes(a.AsSpan()).CopyTo(buffer.AsSpan(position)); 441buffer.AsSpan(position, byteLength).CopyTo(MemoryMarshal.AsBytes(a.AsSpan())); 463MemoryMarshal.AsBytes(a.AsSpan()).CopyTo(buffer.AsSpan(position)); 474buffer.AsSpan(position, byteLength).CopyTo(MemoryMarshal.AsBytes(a.AsSpan())); 496MemoryMarshal.AsBytes(a.AsSpan()).CopyTo(buffer.AsSpan(position)); 507buffer.AsSpan(position, byteLength).CopyTo(MemoryMarshal.AsBytes(a.AsSpan())); 529MemoryMarshal.AsBytes(a.AsSpan()).CopyTo(buffer.AsSpan(position)); 540buffer.AsSpan(position, byteLength).CopyTo(MemoryMarshal.AsBytes(a.AsSpan()));
Microsoft.ML.ImageAnalytics (1)
ImageLoader.cs (1)
346srcSpan.CopyTo(dstSpan);
Microsoft.ML.OnnxTransformer (1)
OnnxTransform.cs (1)
721tensor.Buffer.Span.CopyTo(editor.Values);
Microsoft.ML.TensorFlow (1)
TensorTypeExtensions.cs (1)
48span.CopyTo(values);
Microsoft.ML.Tokenizers (21)
Model\BPETokenizer.cs (1)
1070vocabBuffer.Slice(0, completeCharsWritten).CopyTo(buffer);
Model\CodeGenTokenizer.cs (1)
1496vocabBuffer.Slice(0, completeCharsWritten).CopyTo(buffer);
Model\SentencePieceBaseModel.cs (2)
558destination.Slice(suffixIndex + 1, charsWritten - suffixIndex - 1).CopyTo(destination.Slice(suffixIndex)); 634charPoolArray.AsSpan(0, charCount).CopyTo(buffer);
Model\SentencePieceUnigramModel.cs (2)
150normalizedString.AsSpan().Slice(normalizedString.Length - normalizedStringCountFromEnd).CopyTo(utf16NormalizedString.AsSpan(utf16NormalizedString.Length - normalizedStringCountFromEnd)); 167normalizedString.AsSpan().Slice(normalizedString.Length - normalizedStringCountFromEnd).CopyTo(utf16NormalizedString.AsSpan(utf16NormalizedString.Length - normalizedStringCountFromEnd));
Model\TiktokenTokenizer.cs (3)
842utf8Bytes.CopyTo(tmp.AsSpan()); 922tempBuffer.Slice(0, incompleteCharsWritten).CopyTo(buffer); 955tempBuffer.Slice(0, charsConsumed).CopyTo(buffer);
Normalizer\BertNormalizer.cs (1)
168chars.CopyTo(buffer.AsSpan(index));
Normalizer\SentencePieceNormalizer.cs (2)
409_spaceSymbol.AsSpan().CopyTo(normalized.Slice(normalizedIndex)); 471_spaceSymbol.AsSpan().CopyTo(normalized.Slice(normalizedIndex));
Utils\BytePairEncoder.cs (1)
87byteIndicesAndRanks.Slice(j + 2).CopyTo(byteIndicesAndRanks.Slice(j + 1));
Utils\Helpers.cs (1)
35span.CopyTo(newPoolArray);
Utils\Helpers.netcoreapp.cs (1)
92buffer.Slice(0, bytesWritten).CopyTo(destination.AsSpan(bytesIndex));
Utils\ValueStringBuilder.cs (6)
180_chars.Slice(newIndex, _pos - newIndex).CopyTo(_chars.Slice(index + newLength)); 189_chars.Slice(newIndex, _pos - newIndex).CopyTo(_chars.Slice(index + newLength)); 213_chars.Slice(start + length, remaining).CopyTo(_chars.Slice(start)); 237_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 257_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 407_chars.Slice(0, _pos).CopyTo(poolArray);
Microsoft.ML.Tokenizers.Tests (2)
src\Microsoft.ML.Tokenizers\Utils\Helpers.cs (1)
35span.CopyTo(newPoolArray);
src\Microsoft.ML.Tokenizers\Utils\Helpers.netcoreapp.cs (1)
92buffer.Slice(0, bytesWritten).CopyTo(destination.AsSpan(bytesIndex));
Microsoft.ML.Transforms (1)
GroupTransform.cs (1)
477_buffer.AsSpan(0, _size).CopyTo(editor.Values);
Microsoft.NET.Build.Tasks (1)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestReader.SystemTextJson.cs (1)
93span.Slice((int)reader.BytesConsumed).CopyTo(newBuffer);
Microsoft.NET.Sdk.WorkloadManifestReader (1)
WorkloadManifestReader.SystemTextJson.cs (1)
93span.Slice((int)reader.BytesConsumed).CopyTo(newBuffer);
Microsoft.Private.Windows.Core (4)
System\BufferScope.cs (1)
91_span.CopyTo(newArray);
System\Text\ValueStringBuilder.cs (3)
161_chars.Slice(index, remaining).CopyTo(_chars[(index + count)..]); 181_chars.Slice(index, remaining).CopyTo(_chars[(index + count)..]); 336_chars[.._pos].CopyTo(poolArray);
Microsoft.Win32.Registry (1)
Microsoft\Win32\RegistryKey.cs (1)
1111span.CopyTo(newPooled);
Shared (1)
ServerSentEvents\SseParser_1.cs (1)
313_lineBuffer.AsSpan(_lineOffset, _lineLength).CopyTo(_lineBuffer);
System.Console (5)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
113_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 133_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 267_chars.Slice(0, _pos).CopyTo(poolArray);
System\ConsolePal.Unix.cs (1)
581dst.CopyTo(tmpReadBytes);
System\IO\StdInReader.cs (1)
84chars.CopyTo(_unprocessedBufferToBeRead.AsSpan(_endIndex));
System.Data.OleDb (1)
SafeHandles.cs (1)
281srcSpan.CopyTo(dstSpan);
System.Diagnostics.DiagnosticSource (6)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
113_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 133_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 267_chars.Slice(0, _pos).CopyTo(poolArray);
System\Diagnostics\Metrics\TagList.netcore.cs (3)
199_overflowTags.AsSpan(index, _tagsCount - index).CopyTo(_overflowTags.AsSpan(index + 1)); 205tags.Slice(index, _tagsCount - index).CopyTo(tags.Slice(index + 1)); 222tags.Slice(index + 1, _tagsCount - index - 1).CopyTo(tags.Slice(index));
System.Diagnostics.Process (4)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
113_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 133_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 267_chars.Slice(0, _pos).CopyTo(poolArray);
System\Diagnostics\Process.Linux.cs (1)
254buffer.CopyTo(tmp);
System.Drawing.Common (1)
System\Drawing\Font.cs (1)
320faceName[..^1].CopyTo(faceName[1..]);
System.Formats.Asn1 (3)
System\Formats\Asn1\AsnDecoder.Oid.cs (1)
203accumValueBytes.Slice(0, SemanticByteCount).CopyTo(writeSpan);
System\Formats\Asn1\AsnWriter.cs (1)
157_buffer.AsSpan(0, _offset).CopyTo(destination);
System\Formats\Asn1\AsnWriter.GeneralizedTime.cs (1)
137fraction.CopyTo(baseSpan.Slice(IntegerPortionLength));
System.Formats.Cbor (3)
System\Formats\Cbor\Writer\CborWriter.Map.cs (1)
174tmpSpan.CopyTo(source.Slice(_frameOffset, totalMapPayloadEncodingLength));
System\Formats\Cbor\Writer\CborWriter.String.cs (2)
215buffer.Slice(offset, length).CopyTo(s); 223tempSpan.CopyTo(buffer.Slice(_offset, definiteLength));
System.Formats.Tar (4)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
113_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 133_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 267_chars.Slice(0, _pos).CopyTo(poolArray);
System\Formats\Tar\GnuSparseStream.cs (1)
434bytes.AsSpan(activeStart, active).CopyTo(bytes);
System.IO.Compression (2)
System\IO\Compression\DeflateManaged\OutputWindow.cs (2)
143_window.AsSpan(WindowSize - tailLen, tailLen).CopyTo(output); 146_window.AsSpan(copy_end - output.Length, output.Length).CopyTo(output);
System.IO.FileSystem.AccessControl (3)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
113_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 133_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 267_chars.Slice(0, _pos).CopyTo(poolArray);
System.IO.FileSystem.Watcher (7)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
113_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 133_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 267_chars.Slice(0, _pos).CopyTo(poolArray);
System\IO\FileSystemWatcher.cs (4)
750items.AsSpan(0, index).CopyTo(newItems); 751items.AsSpan(index).CopyTo(newItems.AsSpan(index + 1)); 766items.AsSpan(0, index).CopyTo(newItems); 767items.AsSpan(index + 1).CopyTo(newItems.AsSpan(index));
System.IO.MemoryMappedFiles (1)
System\IO\MemoryMappedFiles\MemoryMappedFile.Unix.cs (1)
262guid.Slice(0, MaxNameLength - NamePrefix.Length).CopyTo(span.Slice(NamePrefix.Length));
System.Linq (1)
System\Linq\SegmentedArrayBuilder.cs (1)
328_currentSegment.Slice(0, _countInCurrentSegment).CopyTo(destination);
System.Memory (2)
System\Text\EncodingExtensions.cs (2)
204array.AsSpan(0, length).CopyTo(remainingBytes); 390array.AsSpan(0, length).CopyTo(span);
System.Net.Http (9)
src\runtime\src\libraries\Common\src\System\Net\MultiArrayBuffer.cs (3)
203_blocks.AsSpan((int)unusedInitialBlocks, (int)usedBlocks).CopyTo(newBlockArray); 209_blocks.AsSpan((int)unusedInitialBlocks, (int)usedBlocks).CopyTo(_blocks); 396block.Span.CopyTo(destination);
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
113_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 133_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 267_chars.Slice(0, _pos).CopyTo(poolArray);
System\Net\Http\HttpContent.cs (1)
1075_lastBuffer.AsSpan(0, _lastBufferOffset).CopyTo(destination);
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (2)
1221_recvBuffer.ActiveSpan.Slice(0, copyLen).CopyTo(buffer); 1293_recvBuffer.ActiveSpan.Slice(0, copyLen).CopyTo(buffer.Span);
System.Net.Mail (4)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
113_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 133_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 267_chars.Slice(0, _pos).CopyTo(poolArray);
System\Net\BufferedReadStream.cs (1)
37_storedBuffer.AsSpan(_storedOffset, read).CopyTo(buffer);
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.RawSocket.cs (1)
465new Span<byte>(&ipHeader, sizeof(IpHeader)).CopyTo(result);
System.Net.Primitives (1)
System\Net\IPAddress.cs (1)
374MemoryMarshal.AsBytes<ushort>(numbers).CopyTo(destination);
System.Net.Quic (6)
src\runtime\src\libraries\Common\src\System\Net\MultiArrayBuffer.cs (3)
203_blocks.AsSpan((int)unusedInitialBlocks, (int)usedBlocks).CopyTo(newBlockArray); 209_blocks.AsSpan((int)unusedInitialBlocks, (int)usedBlocks).CopyTo(_blocks); 396block.Span.CopyTo(destination);
System\Net\Quic\QuicConnection.SslConnectionOptions.cs (2)
104certificateBuffer->Span.CopyTo(certData.Span); 111chainBuffer->Span.CopyTo(chainData.Span);
System\Net\Quic\QuicStream.Stream.cs (1)
127rentedBuffer.AsSpan(0, readLength).CopyTo(buffer);
System.Net.Security (4)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
651oldBuffer.AsSpan().CopyTo(buffer);
System\Net\NegotiateAuthenticationPal.ManagedNtlm.cs (1)
465clientChallenge.CopyTo((Span<byte>)temp.ClientChallenge);
System\Net\Security\SslStream.IO.cs (1)
954_buffer.DecryptedSpan.CopyTo(extraBuffer);
System\Net\Security\SslStream.Protocol.cs (1)
1422oldPayload.AsSpan<byte>().CopyTo(Payload);
System.Net.ServerSentEvents (1)
System\Net\ServerSentEvents\SseParser_1.cs (1)
298_lineBuffer.AsSpan(_lineOffset, _lineLength).CopyTo(_lineBuffer);
System.Net.Sockets (2)
System\Net\Sockets\Socket.cs (2)
332buffer.Slice(0, size).CopyTo(socketAddress.Buffer.Span); 378buffer.Slice(0, size).CopyTo(socketAddress.Buffer.Span);
System.Net.WebSockets (6)
System\Net\WebSockets\Compression\WebSocketDeflater.cs (1)
68_buffer.AsSpan(0, position).CopyTo(newBuffer);
System\Net\WebSockets\Compression\WebSocketInflater.cs (2)
76_buffer.AsSpan(_position, _available).CopyTo(_buffer); 109_buffer.AsSpan(0, _available).CopyTo(newBuffer);
System\Net\WebSockets\ManagedWebSocket.cs (2)
926_receiveBuffer.Span.Slice(_receiveBufferOffset, receiveBufferBytesToCopy).CopyTo( 1612_receiveBuffer.Span.Slice(_receiveBufferOffset, _receiveBufferCount).CopyTo(_receiveBuffer.Span);
System\Net\WebSockets\WebSocket.cs (1)
47new Span<byte>(array, 0, r.Count).CopyTo(buffer.Span);
System.Private.CoreLib (44)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (2)
101_span.Slice(0, _pos).CopyTo(_span.Slice(source.Length)); 229_span.CopyTo(array);
src\runtime\src\libraries\Common\src\System\Number.Formatting.Common.cs (1)
505thousandsSepPos.CopyTo(newThousandsSepPos);
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
113_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 133_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 267_chars.Slice(0, _pos).CopyTo(poolArray);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Array.cs (1)
1568span.CopyTo(values);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (5)
95MemoryMarshal.AsBytes(array).CopyTo(_array); 257MemoryMarshal.AsBytes(values).CopyTo(_array); 547intSpan.Slice((int)fromIndex, ints - fromIndex).CopyTo(intSpan); 599intSpan.Slice(0, lastIndex + 1 - lengthToClear).CopyTo(intSpan.Slice(lengthToClear)); 694source.CopyTo(intArray.AsSpan(index));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventProvider.cs (2)
526dataRefObj.CopyTo(newDataRefObj); 530refObjPosition.CopyTo(newRefObjPosition);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemName.cs (2)
257currentMatches.CopyTo(temp); 261priorMatches.CopyTo(temp);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\File.cs (1)
1526buffer.CopyTo(tmp);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (2)
362new Span<byte>(_buffer, _position, n).CopyTo(buffer); 575_buffer.AsSpan(_origin, count).CopyTo(copy);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\BufferedFileStreamStrategy.cs (4)
330_buffer.AsSpan(_readPos, buffer.Length).CopyTo(buffer.Span); 374new Span<byte>(_buffer!, _readPos, n).CopyTo(destination.Span); 411_buffer.AsSpan(_readPos, bytesFromBuffer).CopyTo(buffer.Span); 448_buffer.AsSpan(0, bytesFromBuffer).CopyTo(buffer.Span);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (4)
394new Span<char>(_charBuffer, _charPos, n).CopyTo(buffer.Slice(charsRead)); 968arrayPoolBuffer.AsSpan(0, arrayPoolBufferPos).CopyTo(newBuffer); 972charBuffer.AsSpan(charPos, charLen - charPos).CopyTo(arrayPoolBuffer.AsSpan(arrayPoolBufferPos)); 1242new Span<char>(_charBuffer, _charPos, n).CopyTo(buffer.Span.Slice(charsRead));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\TextReader.cs (2)
107new Span<char>(array, 0, numRead).CopyTo(buffer); 157new Span<char>(array, 0, numRead).CopyTo(buffer);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Memory.cs (1)
362public void CopyTo(Memory<T> destination) => Span.CopyTo(destination.Span);
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (1)
6454_destination.Slice(startingPos, charsWritten).CopyTo(_destination.Slice(startingPos + paddingNeeded));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\DefaultInterpolatedStringHandler.cs (2)
583_chars.Slice(startingPos, charsWritten).CopyTo(_chars.Slice(startingPos + paddingNeeded)); 656_chars.Slice(0, _pos).CopyTo(newArray);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (2)
231new Span<T>(source, startIndex, length).CopyTo(new Span<T>((void*)destination, length)); 284new Span<T>((void*)source, length).CopyTo(new Span<T>(destination, startIndex, length));
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\RabinKarp.cs (1)
87existingBucket.AsSpan().CopyTo(newBucket);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Security\SecureString.cs (4)
195span.Slice(index, _decryptedLength - index).CopyTo(span.Slice(index + 1)); 240span.Slice(index + 1, _decryptedLength - (index + 1)).CopyTo(span.Slice(index)); 324span.Slice(0, length).CopyTo(new Span<char>((void*)ptr, length)); 381span.CopyTo(resultSpan);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Span.cs (1)
446CopyTo(destination);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\TranscodingStream.cs (2)
354_readBuffer.AsSpan(_readBufferOffset, bytesToReturn).CopyTo(buffer); 433_readBuffer.AsSpan(_readBufferOffset, bytesToReturn).CopyTo(buffer.Span);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8.cs (1)
801_destination.Slice(startingPos, bytesWritten).CopyTo(_destination.Slice(startingPos + paddingNeeded));
System.Private.CoreLib.Generators (2)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (2)
101_span.Slice(0, _pos).CopyTo(_span.Slice(source.Length)); 229_span.CopyTo(array);
System.Private.DataContractSerialization (3)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (1)
208_bytes.AsSpan(_byteOffset, count).CopyTo(buffer);
System\Xml\EncodingStreamWrapper.cs (1)
620_bytes.AsSpan(_byteOffset, count).CopyTo(buffer);
System\Xml\XmlBufferReader.cs (1)
497.CopyTo(dst);
System.Private.Uri (7)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (2)
101_span.Slice(0, _pos).CopyTo(_span.Slice(source.Length)); 229_span.CopyTo(array);
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
113_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 133_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 267_chars.Slice(0, _pos).CopyTo(poolArray);
System\UriHelper.cs (2)
755span.Slice(readOffset, segmentLength).CopyTo(span.Slice(writeOffset)); 766span.Slice(readOffset).CopyTo(span.Slice(writeOffset));
System.Private.Windows.Core (14)
System\BufferScope.cs (1)
91_span.CopyTo(newArray);
System\Text\ValueStringBuilder.cs (3)
161_chars.Slice(index, remaining).CopyTo(_chars[(index + count)..]); 181_chars.Slice(index, remaining).CopyTo(_chars[(index + count)..]); 336_chars[.._pos].CopyTo(poolArray);
Windows\Win32\System\Variant\VARIANT.cs (10)
293.CopyTo(GetSpan<sbyte>(array)); 297.CopyTo(GetSpan<byte>(array)); 301.CopyTo(GetSpan<short>(array)); 305.CopyTo(GetSpan<ushort>(array)); 310.CopyTo(GetSpan<int>(array)); 316.CopyTo(GetSpan<uint>(array)); 320.CopyTo(GetSpan<long>(array)); 324.CopyTo(GetSpan<ulong>(array)); 328.CopyTo(GetSpan<float>(array)); 332.CopyTo(GetSpan<double>(array));
System.Private.Xml (3)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
113_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 133_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 267_chars.Slice(0, _pos).CopyTo(poolArray);
System.Reflection.Metadata (3)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
113_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 133_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 267_chars.Slice(0, _pos).CopyTo(poolArray);
System.Runtime.Numerics (48)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (2)
101_span.Slice(0, _pos).CopyTo(_span.Slice(source.Length)); 229_span.CopyTo(array);
src\runtime\src\libraries\Common\src\System\Number.Formatting.Common.cs (1)
505thousandsSepPos.CopyTo(newThousandsSepPos);
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder_1.cs (3)
167_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 187_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 301_chars.Slice(0, _pos).CopyTo(poolArray);
System\Number.BigInteger.cs (1)
1355dst.Slice(shift).CopyTo(dst);
System\Numerics\BigIntegerCalculator.DivRem.cs (8)
164left.CopyTo(leftCopy); 388a.Slice((t - 2) * n).CopyTo(z); 399q.Slice(0, quotientUpper.Length).CopyTo(quotientUpper); 411a.Slice(i * n, n).CopyTo(z); 412r.Slice(0, n).CopyTo(z.Slice(n)); 447rt.CopyTo(remainder); 512r1.CopyTo(remainder); 517r1.Slice(0, remainder.Length).CopyTo(remainder);
System\Numerics\BigIntegerCalculator.GcdInv.cs (1)
247left.CopyTo(result);
System\Numerics\BigIntegerCalculator.PowMod.cs (15)
32result.CopyTo(bits); 354result.CopyTo(bits); 378result.CopyTo(bits); 407result.CopyTo(bits); 497value.Slice(0, valueLength).CopyTo(shifted.Slice(k)); 504shifted.Slice(0, k).CopyTo(value); 517oneShifted.Slice(0, k).CopyTo(rModN); 529rModN.Slice(0, rModNLength).CopyTo(bits); 532bits.Slice(0, resultLength).CopyTo(originalBits); 557value.Slice(0, valueLength).CopyTo(table.Slice(0, k)); 570prod.Slice(0, k).CopyTo(base2); 583prod.Slice(0, k).CopyTo(table.Slice(i * k, k)); 592rModN.Slice(0, rModNLength).CopyTo(bits); 648bits.Slice(0, resultLen).CopyTo(originalBits); 733upper.CopyTo(value);
System\Numerics\BigIntegerCalculator.ShiftRot.cs (12)
88upper.CopyTo(tmp); 89lower.CopyTo(lowerDst); 90tmp.CopyTo(bits); 94lower.CopyTo(tmp); 95upper.CopyTo(bits); 96tmp.CopyTo(lowerDst); 126upper.CopyTo(tmp); 127lower.CopyTo(lowerDst); 128tmp.CopyTo(bits); 132lower.CopyTo(tmp); 133upper.CopyTo(bits); 134tmp.CopyTo(lowerDst);
System\Numerics\BigIntegerCalculator.SquMul.cs (5)
350pm1.CopyTo(p1); 380c1.CopyTo(z2); 507carryOrig.CopyTo(carry); 587p1.CopyTo(pm1); 604pm1.CopyTo(pm2);
System.Security.Cryptography (45)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CngHelpers.cs (1)
330destination.Slice(0, numBytesNeeded).CopyTo(trimmed);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsa.cs (2)
1601lease.Span.Slice(0, localBytesWritten).CopyTo(destination); 1731lease.Span.Slice(0, localBytesWritten).CopyTo(destination);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaManaged.cs (1)
477metadata.Label.AsSpan().CopyTo(M_prime.AsSpan(offset, metadata.Label.Length));
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsaCng.Windows.cs (1)
241pkcs8.AsSpan().CopyTo(destination);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (4)
465lastBlock.AsSpan().CopyTo(destination.AsSpan(written)); 993rentedDestination.AsSpan(0, writeOffset).CopyTo(destination); 1000tmpEndSpan.CopyTo(destination.Slice(writeOffset)); 1056t.Slice(0, dk.Length).CopyTo(dk);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (2)
202hashBuf.Slice(0, destination.Length).CopyTo(destination); 206hashBuf.CopyTo(destination);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (2)
450salt.CopyTo(db.Slice(psLen + 1)); 624tmp.Slice(0, writePtr.Length).CopyTo(writePtr);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.cs (1)
651earlyBuf.Slice(0, read).CopyTo(rented);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (2)
1076array.AsSpan().CopyTo(next); 1174decrypted.AsSpan().CopyTo(_keyDecryptBuffer.AsSpan(_keyDecryptBufferOffset));
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
113_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 133_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 267_chars.Slice(0, _pos).CopyTo(poolArray);
System\Security\Cryptography\Aes.cs (7)
302lease.Span.Slice(0, written).CopyTo(destination); 364decrypt.Slice(8).CopyTo(destination); 470R.Slice(0, 8).CopyTo(B.Slice(8)); 477B.Slice(8, 8).CopyTo(R); 481A.CopyTo(destination); 505R.Slice(0, 8).CopyTo(B.Slice(8)); 507B.Slice(8).CopyTo(R);
System\Security\Cryptography\Base64Transforms.cs (3)
168transformBuffer.CopyTo(_inputBuffer); 240_inputBuffer.AsSpan(0, index).CopyTo(transformBuffer); 302transformBuffer.Slice(transformBuffer.Length - _inputIndex).CopyTo(_inputBuffer);
System\Security\Cryptography\BasicSymmetricCipherLiteBCrypt.cs (1)
61rented.AsSpan(0, numBytesWritten).CopyTo(output);
System\Security\Cryptography\BasicSymmetricCipherLiteNCrypt.cs (1)
71rented.AsSpan(0, numBytesWritten).CopyTo(output);
System\Security\Cryptography\CapiHelper.Windows.cs (2)
937encryptedData.AsSpan(0, outputCount).CopyTo(output); 959dataToBeDecrypted.AsSpan(0, decryptedDataLength).CopyTo(output);
System\Security\Cryptography\CryptoStream.cs (2)
321_outputBuffer.AsSpan(bytesToCopy).CopyTo(_outputBuffer); 392tempOutputBuffer.AsSpan(0, numOutputBytes).CopyTo(buffer.Span);
System\Security\Cryptography\HKDFManagedImplementation.cs (1)
71lastChunk.Slice(0, remainingOutput.Length).CopyTo(remainingOutput);
System\Security\Cryptography\RandomNumberGeneratorImplementation.cs (2)
84remainder.CopyTo(data.Slice(first0Byte)); 89remainder.Slice(0, next0Byte).CopyTo(data.Slice(first0Byte));
System\Security\Cryptography\Rfc2898DeriveBytes.cs (2)
151value.AsSpan().CopyTo(_salt); 302uiSpan.CopyTo(_buffer);
System\Security\Cryptography\UniversalCryptoDecryptor.cs (2)
98_heldoverCipher.AsSpan().CopyTo(ciphertext); 117decryptedBytes.Slice(0, unpaddedLength).CopyTo(outputBuffer);
System\Security\Cryptography\UniversalCryptoOneShot.cs (3)
100writtenDepadded.CopyTo(output); 152depaddedFinalTransform.CopyTo(output.Slice(writtenToOutput)); 191decryptedBuffer.Slice(0, unpaddedLength).CopyTo(output);
System.Security.Cryptography.Pkcs (8)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (4)
465lastBlock.AsSpan().CopyTo(destination.AsSpan(written)); 993rentedDestination.AsSpan(0, writeOffset).CopyTo(destination); 1000tmpEndSpan.CopyTo(destination.Slice(writeOffset)); 1056t.Slice(0, dk.Length).CopyTo(dk);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (2)
202hashBuf.Slice(0, destination.Length).CopyTo(destination); 206hashBuf.CopyTo(destination);
System\Security\Cryptography\Pkcs\Rfc3161TimestampRequest.cs (1)
159_encodedBytes.AsSpan().CopyTo(destination);
System\Security\Cryptography\Pkcs\Rfc3161TimestampTokenInfo.cs (1)
221_encodedBytes.AsSpan().CopyTo(destination);
System.Security.Cryptography.ProtectedData (1)
System\Security\Cryptography\ProtectedData.cs (1)
395interopSpan.CopyTo(outputSpan);
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\Connection.cs (1)
248memBuffer.Slice(0, bytesRead).Span.CopyTo(buffer);
System.ServiceProcess.ServiceController (3)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
113_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 133_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 267_chars.Slice(0, _pos).CopyTo(poolArray);
System.Text.Encodings.Web (3)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
113_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 133_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 267_chars.Slice(0, _pos).CopyTo(poolArray);
System.Text.Json (7)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
113_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 133_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 267_chars.Slice(0, _pos).CopyTo(poolArray);
src\runtime\src\libraries\System.Text.Json\Common\JsonSeparatorNamingPolicy.cs (1)
189destination.CopyTo(newBuffer);
System\Text\Json\Document\JsonDocument.MetadataDb.cs (1)
375_data.AsSpan(startIndex, length).CopyTo(newDatabase);
System\Text\Json\Writer\JsonWriterHelper.Date.cs (2)
21tempSpan.Slice(0, bytesWritten).CopyTo(buffer); 30tempSpan.Slice(0, bytesWritten).CopyTo(buffer);
System.Text.Json.SourceGeneration (3)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (2)
101_span.Slice(0, _pos).CopyTo(_span.Slice(source.Length)); 229_span.CopyTo(array);
src\runtime\src\libraries\System.Text.Json\Common\JsonSeparatorNamingPolicy.cs (1)
189destination.CopyTo(newBuffer);
System.Text.RegularExpressions (5)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (2)
101_span.Slice(0, _pos).CopyTo(_span.Slice(source.Length)); 229_span.CopyTo(array);
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
113_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 133_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 267_chars.Slice(0, _pos).CopyTo(poolArray);
System.Text.RegularExpressions.Generator (5)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (2)
101_span.Slice(0, _pos).CopyTo(_span.Slice(source.Length)); 229_span.CopyTo(array);
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
113_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 133_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 267_chars.Slice(0, _pos).CopyTo(poolArray);
System.Web.HttpUtility (3)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
113_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 133_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 267_chars.Slice(0, _pos).CopyTo(poolArray);
System.Windows.Forms (3)
System\Windows\Forms\Dialogs\CommonDialogs\ColorDialog.cs (3)
77MemoryMarshal.Cast<COLORREF, int>(_customColors).CopyTo(result); 87MemoryMarshal.Cast<int, COLORREF>(value)[..Math.Min(customColors.Length, value.Length)].CopyTo(customColors); 190customColors.CopyTo(_customColors);
System.Xaml (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\FrugalList.cs (1)
1505public override void CopyTo(T[] array, int index) => _entries.AsSpan(0, _count).CopyTo(array.AsSpan(index));