1131 references to CopyTo
cdac-build-tool (1)
ObjectFileScraper.cs (1)
143GetBytes(_position, buffer.Length).CopyTo(buffer);
EventSourceGenerator (1)
EventSourceGenerator.Parser.cs (1)
180namespaceBytes.CopyTo(combinedBytes);
GenerateDocumentationAndConfigFiles (9)
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHashShared.cs (8)
173DefaultSecret.CopyTo(new Span<byte>(secret, SecretLengthBytes)); 260source.CopyTo(new Span<byte>(buffer + state.BufferedCount, source.Length)); 275source.Slice(0, loadSize).CopyTo(new Span<byte>(buffer + state.BufferedCount, loadSize)); 314source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes)); 327source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes)); 335source.Slice(sourceIndex).CopyTo(remaining); 390new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes)); 391new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
375span.Slice(offset, segmentLength).CopyTo(buffer.AsSpan());
ILCompiler.Compiler (29)
Compiler\ObjectWriter\CodeView\CodeViewSymbolsBuilder.cs (1)
412value.AsSpan().CopyTo(_bufferWriter.GetSpan(byteCount));
Compiler\ObjectWriter\CodeView\CodeViewTypesBuilder.cs (1)
451value.AsSpan().CopyTo(_bufferWriter.GetSpan(byteCount));
Compiler\TypePreinit.cs (1)
3518value.CopyTo(MemoryMarshal.Cast<byte, char>(((Span<byte>)bytes).Slice(firstCharField.Offset.AsInt)));
src\runtime\src\coreclr\tools\Common\Compiler\NativeAotNameMangler.cs (1)
152origName.AsSpan().CopyTo(buffer);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (2)
561BigObjMagic.CopyTo(buffer.Slice(12)); 771Name.AsSpan().CopyTo(buffer);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (1)
973Magic.CopyTo(buffer.Slice(0, Magic.Length));
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\SectionData.cs (2)
145currentBuffer.Slice(0, buffer.Length).CopyTo(buffer); 152currentBuffer.CopyTo(buffer);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\SectionWriter.cs (2)
98value.CopyTo(bufferWriter.GetSpan(value.Length)); 126value.AsSpan().CopyTo(buffer);
src\runtime\src\coreclr\tools\Common\Internal\Text\Utf8String.cs (15)
102s.AsSpan().CopyTo(resultSpan); 112s1.CopyTo(result); 113s2.CopyTo(result.AsSpan(s1.Length)); 120s1.CopyTo(result); 121s2.CopyTo(result.AsSpan(s1.Length)); 122s3.CopyTo(result.AsSpan(s1.Length + s2.Length)); 129s1.CopyTo(result); 130s2.CopyTo(result.AsSpan(s1.Length)); 131s3.CopyTo(result.AsSpan(s1.Length + s2.Length)); 132s4.CopyTo(result.AsSpan(s1.Length + s2.Length + s3.Length)); 139s1.CopyTo(result); 140s2.CopyTo(result.AsSpan(s1.Length)); 141s3.CopyTo(result.AsSpan(s1.Length + s2.Length)); 142s4.CopyTo(result.AsSpan(s1.Length + s2.Length + s3.Length)); 143s5.CopyTo(result.AsSpan(s1.Length + s2.Length + s3.Length + s4.Length));
src\runtime\src\coreclr\tools\Common\Internal\Text\Utf8StringBuilder.cs (2)
54value.CopyTo(_buffer.AsSpan(_length)); 131AsSpan().CopyTo(newBuffer);
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
217value.CopyTo(_chars.Slice(_pos));
ILCompiler.Diagnostics (2)
_generated\1\Microsoft.DiaSymReader.ISymNGenWriter2.cs (2)
170global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__pbSym_native, __pbSym_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(pbSym)); 257global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetUnmanagedValuesSource(__pdb_native, __pdb_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetManagedValuesDestination(pdb));
ILCompiler.ReadyToRun (29)
src\runtime\src\coreclr\tools\Common\Compiler\NativeAotNameMangler.cs (1)
152origName.AsSpan().CopyTo(buffer);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (2)
561BigObjMagic.CopyTo(buffer.Slice(12)); 771Name.AsSpan().CopyTo(buffer);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (1)
973Magic.CopyTo(buffer.Slice(0, Magic.Length));
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\SectionData.cs (2)
145currentBuffer.Slice(0, buffer.Length).CopyTo(buffer); 152currentBuffer.CopyTo(buffer);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\SectionWriter.cs (2)
98value.CopyTo(bufferWriter.GetSpan(value.Length)); 126value.AsSpan().CopyTo(buffer);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmInstructions.cs (1)
66localWriter.WrittenSpan.CopyTo(_locals.AsSpan(pos));
src\runtime\src\coreclr\tools\Common\Internal\Text\Utf8String.cs (15)
102s.AsSpan().CopyTo(resultSpan); 112s1.CopyTo(result); 113s2.CopyTo(result.AsSpan(s1.Length)); 120s1.CopyTo(result); 121s2.CopyTo(result.AsSpan(s1.Length)); 122s3.CopyTo(result.AsSpan(s1.Length + s2.Length)); 129s1.CopyTo(result); 130s2.CopyTo(result.AsSpan(s1.Length)); 131s3.CopyTo(result.AsSpan(s1.Length + s2.Length)); 132s4.CopyTo(result.AsSpan(s1.Length + s2.Length + s3.Length)); 139s1.CopyTo(result); 140s2.CopyTo(result.AsSpan(s1.Length)); 141s3.CopyTo(result.AsSpan(s1.Length + s2.Length)); 142s4.CopyTo(result.AsSpan(s1.Length + s2.Length + s3.Length)); 143s5.CopyTo(result.AsSpan(s1.Length + s2.Length + s3.Length + s4.Length));
src\runtime\src\coreclr\tools\Common\Internal\Text\Utf8StringBuilder.cs (2)
54value.CopyTo(_buffer.AsSpan(_length)); 131AsSpan().CopyTo(newBuffer);
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (3)
2137str.AsSpan(startIndex, Math.Min(size, result)).CopyTo(new Span<char>(buffer, size)); 3724s.AsSpan().CopyTo(bytes); 4949rvaData.Slice(valueOffset, bufferSize).CopyTo(new Span<byte>(buffer, bufferSize));
ILCompiler.RyuJit (4)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmInstructions.cs (1)
66localWriter.WrittenSpan.CopyTo(_locals.AsSpan(pos));
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (3)
2137str.AsSpan(startIndex, Math.Min(size, result)).CopyTo(new Span<char>(buffer, size)); 3724s.AsSpan().CopyTo(bytes); 4949rvaData.Slice(valueOffset, bufferSize).CopyTo(new Span<byte>(buffer, bufferSize));
ILCompiler.TypeSystem (14)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\TypeSystemHelpers.cs (13)
440s1.AsSpan().CopyTo(buffer); 441s2.AsSpan().CopyTo(buffer.Slice(s1.Length)); 450s1.CopyTo(buffer); 451s2.AsSpan().CopyTo(buffer.Slice(s1.Length)); 460s1.CopyTo(buffer); 461s2.CopyTo(buffer.Slice(s1.Length)); 462s3.CopyTo(buffer.Slice(s1.Length + s2.Length)); 474s1Span.CopyTo(buffer); 475s2Span.CopyTo(buffer.Slice(s1Span.Length)); 476s3Span.CopyTo(buffer.Slice(s1Span.Length + s2Span.Length)); 488s1.AsSpan().CopyTo(buffer); 489s2.AsSpan().CopyTo(buffer.Slice(s1.Length)); 490s3.AsSpan().CopyTo(buffer.Slice(s1.Length + s2.Length));
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
217value.CopyTo(_chars.Slice(_pos));
illink (1)
ILLink.RoslynAnalyzer (3)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
138.CopyTo(_chars.Slice(index)); 190.CopyTo(_chars.Slice(pos)); 217value.CopyTo(_chars.Slice(_pos));
libmscordaccore_universal (3)
Entrypoints.cs (3)
75context.CopyTo(new Span<byte>(alignedBuffer, context.Length)); 120new ReadOnlySpan<byte>(alignedBuffer, buffer.Length).CopyTo(buffer); 436context.CopyTo(new Span<byte>(alignedBuffer, context.Length));
Microsoft.AspNetCore.Antiforgery (1)
src\aspnetcore\src\Shared\WebEncoders\WebEncoders.cs (1)
173inputSpan.CopyTo(bufferSpan);
Microsoft.AspNetCore.Components (5)
NavigationManagerExtensions.cs (2)
815uriValue.AsSpan(0, uriLength).CopyTo(chars); 823fragmentValue.AsSpan().CopyTo(chars[position..]);
src\aspnetcore\src\Components\Shared\src\ArrayBuilder.cs (1)
101source.CopyTo(_items.AsSpan(_itemsInUse));
src\aspnetcore\src\Shared\UrlDecoder\UrlDecoder.cs (2)
28source.CopyTo(destination); 362source.CopyTo(destination);
Microsoft.AspNetCore.Components.Endpoints (2)
FormMapping\FormDataReader.cs (2)
230separator.CopyTo(_prefixBuffer.Span[_currentPrefixBuffer.Length..]); 234key.CopyTo(_prefixBuffer[startingPoint..].Span);
Microsoft.AspNetCore.Components.Forms (4)
src\aspnetcore\src\Components\Shared\src\ExpressionFormatting\ReverseStringBuilder.cs (4)
45span.CopyTo(_currentBuffer[startIndex..]); 66span.CopyTo(newBuffer.AsSpan(newEndIndex)); 77span[remainingLength..].CopyTo(_currentBuffer); 86span.CopyTo(_currentBuffer[startIndex..]);
Microsoft.AspNetCore.Components.Server (10)
src\aspnetcore\src\Components\Shared\src\ArrayBuilder.cs (1)
101source.CopyTo(_items.AsSpan(_itemsInUse));
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
236segment.Span.CopyTo(result.AsSpan(totalWritten)); 265segment.Span.CopyTo(span.Slice(totalWritten));
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\BufferWriter.cs (2)
164source.CopyTo(_span); 240source.Slice(copiedBytes, writable).CopyTo(_span);
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackWriter.cs (2)
747src.CopyTo(span); 859utf8stringBytes.CopyTo(span);
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\SequenceReader.cs (3)
459firstSpan.Slice(0, destination.Length).CopyTo(destination); 475firstSpan.CopyTo(destination); 485nextSpan.Slice(0, toCopy).CopyTo(destination.Slice(copied));
Microsoft.AspNetCore.Components.Web (4)
src\aspnetcore\src\Components\Shared\src\ExpressionFormatting\ReverseStringBuilder.cs (4)
45span.CopyTo(_currentBuffer[startIndex..]); 66span.CopyTo(newBuffer.AsSpan(newEndIndex)); 77span[remainingLength..].CopyTo(_currentBuffer); 86span.CopyTo(_currentBuffer[startIndex..]);
Microsoft.AspNetCore.Components.WebAssembly (1)
src\aspnetcore\src\Components\Shared\src\ArrayBuilder.cs (1)
101source.CopyTo(_items.AsSpan(_itemsInUse));
Microsoft.AspNetCore.Components.WebView (1)
src\aspnetcore\src\Components\Shared\src\ArrayBuilder.cs (1)
101source.CopyTo(_items.AsSpan(_itemsInUse));
Microsoft.AspNetCore.DataProtection (4)
SP800_108\ManagedSP800_108_CTR_HMACSHA512.cs (4)
54kdk.CopyTo(zeroExtended); 118label.CopyTo(prfInput.Slice(sizeof(uint))); 119contextHeader.CopyTo(prfInput.Slice(sizeof(uint) + label.Length + 1)); 120contextData.CopyTo(prfInput.Slice(sizeof(uint) + label.Length + 1 + contextHeader.Length));
Microsoft.AspNetCore.DataProtection.Abstractions (1)
src\aspnetcore\src\Shared\WebEncoders\WebEncoders.cs (1)
173inputSpan.CopyTo(bufferSpan);
Microsoft.AspNetCore.Http.Abstractions (2)
src\aspnetcore\src\Shared\UrlDecoder\UrlDecoder.cs (2)
28source.CopyTo(destination); 362source.CopyTo(destination);
Microsoft.AspNetCore.Http.Connections (3)
src\aspnetcore\src\Shared\WebEncoders\WebEncoders.cs (1)
173inputSpan.CopyTo(bufferSpan);
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
236segment.Span.CopyTo(result.AsSpan(totalWritten)); 265segment.Span.CopyTo(span.Slice(totalWritten));
Microsoft.AspNetCore.Http.Extensions (6)
src\aspnetcore\src\Components\Endpoints\src\FormMapping\FormDataReader.cs (2)
230separator.CopyTo(_prefixBuffer.Span[_currentPrefixBuffer.Length..]); 234key.CopyTo(_prefixBuffer[startingPoint..].Span);
src\aspnetcore\src\Shared\ValueStringBuilder\ValueStringBuilder.cs (3)
164s.AsSpan().CopyTo(_chars.Slice(index)); 211s.AsSpan().CopyTo(_chars.Slice(pos)); 254value.CopyTo(_chars.Slice(_pos));
UriHelper.cs (1)
219text.CopyTo(buffer.Slice(index, text.Length));
Microsoft.AspNetCore.HttpLogging (3)
src\aspnetcore\src\Shared\ValueStringBuilder\ValueStringBuilder.cs (3)
164s.AsSpan().CopyTo(_chars.Slice(index)); 211s.AsSpan().CopyTo(_chars.Slice(pos)); 254value.CopyTo(_chars.Slice(_pos));
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
src\aspnetcore\src\Mvc\Mvc.RazorPages\src\ApplicationModels\PageRouteModelFactory.cs (2)
151areaNameValue.AsSpan().CopyTo(span); 154viewEnginePathValue.AsSpan().CopyTo(span);
Microsoft.AspNetCore.Mvc.RazorPages (2)
ApplicationModels\PageRouteModelFactory.cs (2)
151areaNameValue.AsSpan().CopyTo(span); 154viewEnginePathValue.AsSpan().CopyTo(span);
Microsoft.AspNetCore.OpenApi (2)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
236segment.Span.CopyTo(result.AsSpan(totalWritten)); 265segment.Span.CopyTo(span.Slice(totalWritten));
Microsoft.AspNetCore.OutputCaching (4)
FormatterBinaryWriter.cs (2)
184value.CopyTo(AvailableBuffer); 201value.Slice(start: 0, length: toWrite).CopyTo(available);
RecyclableSequenceBuilder.cs (2)
94buffer.CopyTo(available); 105buffer.Slice(0, toWrite).CopyTo(available);
Microsoft.AspNetCore.Razor.Utilities.Shared (11)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\ImmutableArrayExtensions.cs (1)
1251items.CopyTo(newArray);
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\MemoryBuilder`1.cs (1)
130source.CopyTo(_memory.Span[_length..]);
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\MemoryBuilderExtensions.cs (1)
58chunk.Span.CopyTo(destination);
Utilities\Hashing\XxHashShared.cs (8)
172DefaultSecret.CopyTo(new Span<byte>(secret, SecretLengthBytes)); 259source.CopyTo(new Span<byte>(buffer + state.BufferedCount, source.Length)); 274source.Slice(0, loadSize).CopyTo(new Span<byte>(buffer + state.BufferedCount, loadSize)); 313source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes)); 326source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes)); 334source.Slice(sourceIndex).CopyTo(remaining); 389new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes)); 390new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));
Microsoft.AspNetCore.Server.HttpSys (9)
_generated\30\Windows.Win32.HTTP_KNOWN_HEADER.InlineArrays.g.cs (2)
52 value.CopyTo(result.AsSpan()); 92 value.CopyTo(result.AsSpan());
_generated\4\Windows.Win32.byte.InlineArrays.g.cs (1)
59 value.CopyTo(result.AsSpan());
_generated\6\Windows.Win32.char.InlineArrays.g.cs (3)
77 value.CopyTo(result.AsSpan()); 116 value.CopyTo(result.AsSpan()); 156 value.CopyTo(result.AsSpan());
_generated\90\Windows.Win32.ushort.InlineArrays.g.cs (1)
59 value.CopyTo(result.AsSpan());
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
851new ReadOnlySpan<byte>(pToken, tokenSize).CopyTo(token);
src\aspnetcore\src\Shared\ServerInfrastructure\StringUtilities.cs (1)
135tupleStr.AsSpan().CopyTo(buffer);
Microsoft.AspNetCore.Server.IIS (10)
_generated\15\Windows.Win32.HTTP_KNOWN_HEADER.InlineArrays.g.cs (1)
52 value.CopyTo(result.AsSpan());
_generated\3\Windows.Win32.byte.InlineArrays.g.cs (1)
59 value.CopyTo(result.AsSpan());
_generated\49\Windows.Win32.ushort.InlineArrays.g.cs (1)
59 value.CopyTo(result.AsSpan());
_generated\5\Windows.Win32.char.InlineArrays.g.cs (3)
77 value.CopyTo(result.AsSpan()); 116 value.CopyTo(result.AsSpan()); 156 value.CopyTo(result.AsSpan());
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
851new ReadOnlySpan<byte>(pToken, tokenSize).CopyTo(token);
src\aspnetcore\src\Shared\ServerInfrastructure\BufferWriter.cs (2)
95source.CopyTo(_span); 146source.Slice(0, writable).CopyTo(_span);
src\aspnetcore\src\Shared\ServerInfrastructure\StringUtilities.cs (1)
135tupleStr.AsSpan().CopyTo(buffer);
Microsoft.AspNetCore.Server.Kestrel.Core (15)
Internal\Http\DateHeaderValueManager.cs (1)
48DatePreambleBytes.CopyTo(dateBytes);
Internal\Http\HttpParser.cs (1)
114span.CopyTo(array);
Internal\Http3\QPackHeaderWriter.cs (1)
127statusBytes.CopyTo(buffer.Slice(3));
src\aspnetcore\src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (3)
199headerBytes.CopyTo(_headerName); 448data.Slice(currentIndex, count).CopyTo(_stringOctets.AsSpan(_stringIndex)); 479data.Slice(currentIndex, count).CopyTo(_stringOctets.AsSpan(_stringIndex));
src\aspnetcore\src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (1)
432value.CopyTo(destination);
src\aspnetcore\src\Shared\runtime\Http3\QPack\QPackDecoder.cs (3)
250headerBytes.CopyTo(_headerName); 310data.Slice(currentIndex, count).CopyTo(_stringOctets.AsSpan(_stringIndex)); 394data.Slice(currentIndex, count).CopyTo(_stringOctets.AsSpan(_stringIndex));
src\aspnetcore\src\Shared\ServerInfrastructure\BufferWriter.cs (2)
95source.CopyTo(_span); 146source.Slice(0, writable).CopyTo(_span);
src\aspnetcore\src\Shared\ServerInfrastructure\StringUtilities.cs (1)
135tupleStr.AsSpan().CopyTo(buffer);
src\aspnetcore\src\Shared\UrlDecoder\UrlDecoder.cs (2)
28source.CopyTo(destination); 362source.CopyTo(destination);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\aspnetcore\src\Shared\ServerInfrastructure\StringUtilities.cs (1)
135tupleStr.AsSpan().CopyTo(buffer);
Microsoft.AspNetCore.SignalR.Common (2)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
236segment.Span.CopyTo(result.AsSpan(totalWritten)); 265segment.Span.CopyTo(span.Slice(totalWritten));
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (2)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
236segment.Span.CopyTo(result.AsSpan(totalWritten)); 265segment.Span.CopyTo(span.Slice(totalWritten));
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (2)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
236segment.Span.CopyTo(result.AsSpan(totalWritten)); 265segment.Span.CopyTo(span.Slice(totalWritten));
Microsoft.AspNetCore.SignalR.Specification.Tests (2)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
236segment.Span.CopyTo(result.AsSpan(totalWritten)); 265segment.Span.CopyTo(span.Slice(totalWritten));
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
236segment.Span.CopyTo(result.AsSpan(totalWritten)); 265segment.Span.CopyTo(span.Slice(totalWritten));
Microsoft.AspNetCore.WebSockets (4)
HandshakeHelpers.cs (1)
62EncodedWebSocketKey.CopyTo(mergedBytes[24..]);
src\aspnetcore\src\Shared\ValueStringBuilder\ValueStringBuilder.cs (3)
164s.AsSpan().CopyTo(_chars.Slice(index)); 211s.AsSpan().CopyTo(_chars.Slice(pos)); 254value.CopyTo(_chars.Slice(_pos));
Microsoft.AspNetCore.WebUtilities (5)
HttpRequestStreamReader.cs (1)
193source.CopyTo(buffer);
HttpResponseStreamWriter.cs (1)
664source.CopyTo(destination);
src\aspnetcore\src\Shared\UrlDecoder\UrlDecoder.cs (2)
28source.CopyTo(destination); 362source.CopyTo(destination);
src\aspnetcore\src\Shared\WebEncoders\WebEncoders.cs (1)
173inputSpan.CopyTo(bufferSpan);
Microsoft.Build (2)
Construction\Solution\ProjectInSolution.cs (1)
522state.projectName.AsSpan().CopyTo(dest);
Logging\OptimizedStringIndenter.cs (1)
82input.Slice(segment.Start, segment.Length).CopyTo(output);
Microsoft.Build.Framework (9)
Collections\RefArrayBuilder.cs (3)
183source.CopyTo(span.Slice(start: count)); 249source.CopyTo(span.Slice(index)); 273source.CopyTo(span.Slice(index, source.Length));
Coordinator\CoordinatorSettings.cs (1)
171prefix.CopyTo(span);
EscapingUtilities.cs (2)
245source.Slice(sourceIndex, charsToCopy).CopyTo(destination); 261source.Slice(sourceIndex).CopyTo(destination);
Utilities\ValueStringBuilder.cs (3)
268s.AsSpan().CopyTo(_chars[index..]); 322s.AsSpan().CopyTo(_chars[pos..]); 376value.CopyTo(_chars[_length..]);
Microsoft.CodeAnalysis (9)
Hashing\XxHashShared.cs (8)
173DefaultSecret.CopyTo(new Span<byte>(secret, SecretLengthBytes)); 260source.CopyTo(new Span<byte>(buffer + state.BufferedCount, source.Length)); 275source.Slice(0, loadSize).CopyTo(new Span<byte>(buffer + state.BufferedCount, loadSize)); 314source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes)); 327source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes)); 335source.Slice(sourceIndex).CopyTo(remaining); 390new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes)); 391new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));
Syntax\SyntaxTriviaListBuilder.cs (1)
101items.Slice(offset, length).CopyTo(_nodes.AsSpan().Slice(_count, length));
Microsoft.CodeAnalysis.Analyzers (9)
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHashShared.cs (8)
173DefaultSecret.CopyTo(new Span<byte>(secret, SecretLengthBytes)); 260source.CopyTo(new Span<byte>(buffer + state.BufferedCount, source.Length)); 275source.Slice(0, loadSize).CopyTo(new Span<byte>(buffer + state.BufferedCount, loadSize)); 314source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes)); 327source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes)); 335source.Slice(sourceIndex).CopyTo(remaining); 390new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes)); 391new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
375span.Slice(offset, segmentLength).CopyTo(buffer.AsSpan());
Microsoft.CodeAnalysis.AnalyzerUtilities (9)
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHashShared.cs (8)
173DefaultSecret.CopyTo(new Span<byte>(secret, SecretLengthBytes)); 260source.CopyTo(new Span<byte>(buffer + state.BufferedCount, source.Length)); 275source.Slice(0, loadSize).CopyTo(new Span<byte>(buffer + state.BufferedCount, loadSize)); 314source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes)); 327source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes)); 335source.Slice(sourceIndex).CopyTo(remaining); 390new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes)); 391new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
375span.Slice(offset, segmentLength).CopyTo(buffer.AsSpan());
Microsoft.CodeAnalysis.CodeStyle (9)
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHashShared.cs (8)
173DefaultSecret.CopyTo(new Span<byte>(secret, SecretLengthBytes)); 260source.CopyTo(new Span<byte>(buffer + state.BufferedCount, source.Length)); 275source.Slice(0, loadSize).CopyTo(new Span<byte>(buffer + state.BufferedCount, loadSize)); 314source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes)); 327source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes)); 335source.Slice(sourceIndex).CopyTo(remaining); 390new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes)); 391new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
375span.Slice(offset, segmentLength).CopyTo(buffer.AsSpan());
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (1)
1156MemoryMarshal.Cast<char, short>(charSpan).CopyTo(shortSpan);
Microsoft.CodeAnalysis.Razor.Compiler (9)
Language\CodeGeneration\CodeWriter.cs (2)
458source.CopyTo(destination); 529source.CopyTo(destination);
Language\CodeGeneration\IntermediateNodeWriter.cs (1)
323htmlContent.Span.CopyTo(content.AsSpan(contentIndex));
Language\DefaultRazorProjectFileSystem.cs (2)
141rootSpan.CopyTo(span); 153pathSpan.CopyTo(span);
Language\RazorProjectFileSystem.cs (2)
130memory.Span.CopyTo(span); 133fileName.AsSpan().CopyTo(span);
Language\Syntax\GreenNode.cs (1)
219content.CopyTo(span);
Language\TagHelperCollection.SegmentCollectionBase.cs (1)
103segment.Span.CopyTo(destination);
Microsoft.CodeAnalysis.ResxSourceGenerator (9)
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHashShared.cs (8)
173DefaultSecret.CopyTo(new Span<byte>(secret, SecretLengthBytes)); 260source.CopyTo(new Span<byte>(buffer + state.BufferedCount, source.Length)); 275source.Slice(0, loadSize).CopyTo(new Span<byte>(buffer + state.BufferedCount, loadSize)); 314source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes)); 327source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes)); 335source.Slice(sourceIndex).CopyTo(remaining); 390new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes)); 391new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
375span.Slice(offset, segmentLength).CopyTo(buffer.AsSpan());
Microsoft.CodeAnalysis.Workspaces (9)
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHashShared.cs (8)
173DefaultSecret.CopyTo(new Span<byte>(secret, SecretLengthBytes)); 260source.CopyTo(new Span<byte>(buffer + state.BufferedCount, source.Length)); 275source.Slice(0, loadSize).CopyTo(new Span<byte>(buffer + state.BufferedCount, loadSize)); 314source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes)); 327source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes)); 335source.Slice(sourceIndex).CopyTo(remaining); 390new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes)); 391new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
375span.Slice(offset, segmentLength).CopyTo(buffer.AsSpan());
Microsoft.Data.Analysis (1)
DataFrameColumns\ArrowStringDataFrameColumn.cs (1)
213value.CopyTo(mutableDataBuffer.RawSpan.Slice(startIndex));
Microsoft.Diagnostics.DataContractReader.Legacy (30)
_generated\21\Microsoft.Diagnostics.DataContractReader.Legacy.IDacDbiInterface.cs (1)
4095global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.DacGcReference, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacGcReference>.GetUnmanagedValuesSource(__refs_native, __refs_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.DacGcReference, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacGcReference>.GetManagedValuesDestination(refs));
_generated\32\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSHandleEnum.cs (1)
72global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSHandleData, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSHandleData>.GetUnmanagedValuesSource(__handles_native, __handles_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSHandleData, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSHandleData>.GetManagedValuesDestination(handles));
_generated\33\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSStackRefErrorEnum.cs (1)
72global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSStackRefError, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSStackRefError>.GetUnmanagedValuesSource(__refs_native, __refs_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSStackRefError, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSStackRefError>.GetManagedValuesDestination(refs));
_generated\34\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSStackRefEnum.cs (1)
74global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSStackRefData, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSStackRefData>.GetUnmanagedValuesSource(__refs_native, __refs_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSStackRefData, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSStackRefData>.GetManagedValuesDestination(refs));
_generated\35\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSMemoryEnum.cs (1)
72global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSMemoryRegion, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSMemoryRegion>.GetUnmanagedValuesSource(__memRegions_native, __memRegions_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSMemoryRegion, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSMemoryRegion>.GetManagedValuesDestination(memRegions));
_generated\36\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface.cs (4)
3034global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.GetUnmanagedValuesSource(__types_native, __types_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.GetManagedValuesDestination(types)); 3317global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpJitCodeHeapInfo, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpJitCodeHeapInfo>.GetUnmanagedValuesSource(__codeHeaps_native, __codeHeaps_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpJitCodeHeapInfo, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpJitCodeHeapInfo>.GetManagedValuesDestination(codeHeaps)); 3607global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpCOMInterfacePointerData, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpCOMInterfacePointerData>.GetUnmanagedValuesSource(__interfaces_native, __interfaces_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpCOMInterfacePointerData, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpCOMInterfacePointerData>.GetManagedValuesDestination(interfaces)); 3702global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpCOMInterfacePointerData, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpCOMInterfacePointerData>.GetUnmanagedValuesSource(__interfaces_native, __interfaces_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpCOMInterfacePointerData, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpCOMInterfacePointerData>.GetManagedValuesDestination(interfaces));
_generated\40\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface5.cs (1)
73global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpTieredVersionData, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpTieredVersionData>.GetUnmanagedValuesSource(__nativeCodeAddrs_native, __nativeCodeAddrs_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpTieredVersionData, global::Microsoft.Diagnostics.DataContractReader.Legacy.DacpTieredVersionData>.GetManagedValuesDestination(nativeCodeAddrs));
_generated\50\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSMethodEnum.cs (1)
72global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSMethodData, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSMethodData>.GetUnmanagedValuesSource(__values_native, __values_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSMethodData, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSMethodData>.GetManagedValuesDestination(values));
_generated\53\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSStressLogThreadEnum.cs (1)
72global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSThreadStressLogData, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSThreadStressLogData>.GetUnmanagedValuesSource(__values_native, __values_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSThreadStressLogData, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSThreadStressLogData>.GetManagedValuesDestination(values));
_generated\54\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSStressLogMsgEnum.cs (1)
74global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSStressMsgData, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSStressMsgData>.GetUnmanagedValuesSource(__values_native, __values_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSStressMsgData, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSStressMsgData>.GetManagedValuesDestination(values));
_generated\56\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface18.cs (3)
121global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSCodeRange, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSCodeRange>.GetUnmanagedValuesSource(__ranges_native, __ranges_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSCodeRange, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSCodeRange>.GetManagedValuesDestination(ranges)); 174global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.GetUnmanagedValuesSource(__offsets_native, __offsets_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.GetManagedValuesDestination(offsets)); 227global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCSlotLifetime, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCSlotLifetime>.GetUnmanagedValuesSource(__lifetimes_native, __lifetimes_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCSlotLifetime, global::Microsoft.Diagnostics.DataContractReader.Legacy.SOSGCSlotLifetime>.GetManagedValuesDestination(lifetimes));
_generated\59\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataProcess.cs (8)
1906global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.GetUnmanagedValuesSource(__flags_native, __flags_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.GetManagedValuesDestination(flags)); 1909global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.GetUnmanagedValuesSource(__tokens_native, __tokens_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.GetManagedValuesDestination(tokens)); 1975global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.GetUnmanagedValuesSource(__flags_native, __flags_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.GetManagedValuesDestination(flags)); 1978global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.GetUnmanagedValuesSource(__tokens_native, __tokens_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.GetManagedValuesDestination(tokens)); 2042global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.GetUnmanagedValuesSource(__flags_native, __flags_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.GetManagedValuesDestination(flags)); 2045global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.GetUnmanagedValuesSource(__tokens_native, __tokens_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.GetManagedValuesDestination(tokens)); 2111global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.GetUnmanagedValuesSource(__flags_native, __flags_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.GetManagedValuesDestination(flags)); 2114global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.GetUnmanagedValuesSource(__tokens_native, __tokens_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<uint, uint>.GetManagedValuesDestination(tokens));
_generated\62\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataStackWalk.cs (2)
131global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__context_native, __context_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(context)); 390global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__context_native, __context_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(context));
_generated\66\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodInstance.cs (1)
625global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataILAddressMap, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataILAddressMap>.GetUnmanagedValuesSource(__maps_native, __maps_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataILAddressMap, global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataILAddressMap>.GetManagedValuesDestination(maps));
Dbi\DacDbiImpl.cs (1)
858new ReadOnlySpan<byte>((void*)pRecord, recordSize).CopyTo(recordBytes);
MetaDataImportImpl.cs (1)
1432new ReadOnlySpan<char>(dataPtr, copyChars).CopyTo(new Span<char>(szString, copyChars));
OutputBufferHelpers.cs (1)
29strSpan.CopyTo(target);
Microsoft.DiaSymReader (38)
_generated\10\Microsoft.DiaSymReader.ISymUnmanagedAsyncMethod.cs (3)
313global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__breakpointMethod_native, __breakpointMethod_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(breakpointMethod)); 316global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__breakpointOffset_native, __breakpointOffset_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(breakpointOffset)); 319global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__yieldOffsets_native, __yieldOffsets_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(yieldOffsets));
_generated\15\Microsoft.DiaSymReader.ISymUnmanagedConstant.cs (2)
77global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetUnmanagedValuesSource(__name_native, __name_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetManagedValuesDestination(name)); 189global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__signature_native, __signature_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(signature));
_generated\17\Microsoft.DiaSymReader.ISymUnmanagedDocument.cs (3)
91global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetUnmanagedValuesSource(__url_native, __url_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetManagedValuesDestination(url)); 320global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__checksum_native, __checksum_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(checksum)); 506global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__source_native, __source_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(source));
_generated\18\Microsoft.DiaSymReader.ISymUnmanagedEncUpdate.cs (2)
90global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.SymUnmanagedLineDelta, global::Microsoft.DiaSymReader.SymUnmanagedLineDelta>.GetUnmanagedValuesSource(__lineDeltas_native, __lineDeltas_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.SymUnmanagedLineDelta, global::Microsoft.DiaSymReader.SymUnmanagedLineDelta>.GetManagedValuesDestination(lineDeltas)); 350global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__deltas_native, __deltas_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(deltas));
_generated\19\Microsoft.DiaSymReader.ISymUnmanagedMethod.cs (8)
368global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__ranges_native, __ranges_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(ranges)); 681global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__columns_native, __columns_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(columns)); 684global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__lines_native, __lines_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(lines)); 841global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__endColumns_native, __endColumns_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(endColumns)); 844global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__endLines_native, __endLines_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(endLines)); 847global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__startColumns_native, __startColumns_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(startColumns)); 850global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__startLines_native, __startLines_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(startLines)); 865global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__offsets_native, __offsets_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(offsets));
_generated\21\Microsoft.DiaSymReader.ISymUnmanagedNamespace.cs (1)
77global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetUnmanagedValuesSource(__name_native, __name_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetManagedValuesDestination(name));
_generated\22\Microsoft.DiaSymReader.ISymUnmanagedReader.cs (2)
798global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__customDebugInformation_native, __customDebugInformation_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(customDebugInformation)); 1158global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetUnmanagedValuesSource(__name_native, __name_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetManagedValuesDestination(name));
_generated\23\Microsoft.DiaSymReader.ISymUnmanagedReader2.cs (1)
155global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__customDebugInformation_native, __customDebugInformation_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(customDebugInformation));
_generated\24\Microsoft.DiaSymReader.ISymUnmanagedReader3.cs (2)
97global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__customDebugInformation_native, __customDebugInformation_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(customDebugInformation)); 153global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__customDebugInformation_native, __customDebugInformation_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(customDebugInformation));
_generated\27\Microsoft.DiaSymReader.ISymUnmanagedCompilerInfoReader.cs (1)
89global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetUnmanagedValuesSource(__name_native, __name_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetManagedValuesDestination(name));
_generated\31\Microsoft.DiaSymReader.ISymUnmanagedVariable.cs (2)
89global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetUnmanagedValuesSource(__name_native, __name_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetManagedValuesDestination(name)); 186global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__signature_native, __signature_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(signature));
_generated\33\Microsoft.DiaSymReader.ISymUnmanagedAsyncMethodPropertiesWriter.cs (3)
159global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__breakpointMethod_native, __breakpointMethod_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(breakpointMethod)); 162global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__breakpointOffset_native, __breakpointOffset_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(breakpointOffset)); 165global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__yieldOffsets_native, __yieldOffsets_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(yieldOffsets));
_generated\35\Microsoft.DiaSymReader.ISymUnmanagedDocumentWriter.cs (2)
71global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__source_native, __source_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(source)); 119global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__checkSum_native, __checkSum_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(checkSum));
_generated\37\Microsoft.DiaSymReader.ISymUnmanagedWriter5.cs (5)
1034global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__endColumns_native, __endColumns_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(endColumns)); 1037global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__endLines_native, __endLines_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(endLines)); 1040global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__columns_native, __columns_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(columns)); 1043global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__lines_native, __lines_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(lines)); 1046global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetUnmanagedValuesSource(__offsets_native, __offsets_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<int, int>.GetManagedValuesDestination(offsets));
_generated\9\Microsoft.DiaSymReader.ISymEncUnmanagedMethod.cs (1)
81global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetUnmanagedValuesSource(__name_native, __name_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetManagedValuesDestination(name));
Microsoft.Extensions.AI (2)
ChatCompletion\DistributedCachingChatClient.cs (1)
148additionalValues.CopyTo(arr.AsSpan(FixedValuesCount));
Embeddings\DistributedCachingEmbeddingGenerator.cs (1)
122values.CopyTo(arr.AsSpan(FixedValuesCount));
Microsoft.Extensions.AI.Abstractions (1)
Functions\AIFunctionFactory.cs (1)
1301buffer.Span.CopyTo(_buffer.AsSpan(_position));
Microsoft.Extensions.Compliance.Abstractions.Tests (1)
Redaction\RedactorTest.cs (1)
335source.CopyTo(destination);
Microsoft.Extensions.Compliance.Redaction (1)
HmacRedactor.cs (1)
106_keyId.AsSpan().CopyTo(destination);
Microsoft.Extensions.Compliance.Redaction.Tests (1)
FakePlaintextRedactor.cs (1)
14source.CopyTo(destination);
Microsoft.Extensions.Compliance.Testing (1)
FakeRedactor.cs (1)
81str.AsSpan().CopyTo(destination);
Microsoft.Extensions.Configuration.Binder.SourceGeneration (2)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (2)
88source.CopyTo(_span.Slice(_pos)); 102source.CopyTo(_span);
Microsoft.Extensions.Configuration.EnvironmentVariables (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
217value.CopyTo(_chars.Slice(_pos));
Microsoft.Extensions.DataIngestion (1)
Chunkers\ValueStringBuilder.cs (1)
217value.CopyTo(_chars.Slice(_pos));
Microsoft.Extensions.Hosting.Systemd (1)
SystemdNotifier.cs (1)
74state.AsSpan(1).CopyTo(buffer.Slice(1));
Microsoft.Extensions.Logging.Abstractions (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
217value.CopyTo(_chars.Slice(_pos));
Microsoft.Extensions.Logging.Console (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
217value.CopyTo(_chars.Slice(_pos));
Microsoft.Extensions.Logging.Generators (2)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (2)
88source.CopyTo(_span.Slice(_pos)); 102source.CopyTo(_span);
Microsoft.Extensions.Primitives (1)
StringValues.cs (1)
239value.AsSpan().CopyTo(span.Slice(offset));
Microsoft.Extensions.ServiceDiscovery.Dns (1)
Resolver\DnsDataWriter.cs (1)
117value.CopyTo(_buffer.Span.Slice(_position));
Microsoft.Extensions.ServiceDiscovery.Dns.Tests.Fuzzing (2)
Fuzzers\DnsResponseFuzzer.cs (1)
37data.CopyTo(_buffer!);
Fuzzers\EncodedDomainNameFuzzer.cs (1)
13data.CopyTo(buffer);
Microsoft.Extensions.Telemetry (3)
Logging\JustInTimeRedactor.cs (3)
135inputAsSpan.CopyTo(workBuffer); 141DiscriminatorSeparator.AsSpan().CopyTo(workBuffer.Slice(charsInWorkBuffer)); 144_discriminator.AsSpan().CopyTo(workBuffer.Slice(charsInWorkBuffer));
Microsoft.Gen.Logging.Generated.Tests (1)
SimpleRedactors.cs (1)
30redacted.AsSpan().CopyTo(destination);
Microsoft.JSInterop (1)
src\aspnetcore\src\Components\Shared\src\ArrayBuilder.cs (1)
101source.CopyTo(_items.AsSpan(_itemsInUse));
Microsoft.ML.Core (12)
Utilities\BigArray.cs (6)
339src.CopyTo(_entries[maMax].AsSpan(miMin)); 346src.Slice(0, firstSubArrayCapacity).CopyTo(_entries[maMin].AsSpan(miMin)); 349src.Slice(firstSubArrayCapacity, miLim).CopyTo(_entries[maMax]); 358src.Slice(0, srcSoFar).CopyTo(_entries[maMin].AsSpan(miMin)); 364src.Slice(srcSoFar, BlockSize).CopyTo(_entries[major]); 372src.Slice(srcSoFar, miLim).CopyTo(_entries[maMax]);
Utilities\VBufferUtils.cs (6)
860srcIndices.CopyTo(editor.Indices); 907srcIndices.CopyTo(editor.Indices); 1152srcIndices.CopyTo(indices); 1261aIndices.CopyTo(indices); 1271bIndices.CopyTo(indices); 1286aIndices.CopyTo(indices);
Microsoft.ML.Core.Tests (2)
UnitTests\TestVBuffer.cs (2)
1017src.GetIndices().CopyTo(indices); 1018src.GetValues().CopyTo(values);
Microsoft.ML.CpuMath (2)
AlignedArray.cs (2)
129src.CopyTo(Items.AsSpan(_base)); 135src.CopyTo(Items.AsSpan(start + _base));
Microsoft.ML.Data (11)
Data\RowCursorUtils.cs (1)
291srcIndices.CopyTo(editor.Indices);
DataView\Transposer.cs (3)
1191_inputValue.GetValues().Slice(min, len).CopyTo(editor.Values); 1209_inputValue.GetIndices().Slice(smin, scount).CopyTo(editor.Indices); 1217_inputValue.GetValues().Slice(smin, scount).CopyTo(editor.Values);
DataView\TypedCursor.cs (1)
472value.GetValues().CopyTo(buf);
Deprecated\Vector\VBufferMathUtils.cs (1)
127src.GetIndices().CopyTo(editor.Indices);
Transforms\Hashing.cs (4)
1053src.GetIndices().CopyTo(editor.Indices); 1107src.GetIndices().CopyTo(editor.Indices); 1178srcIndices.CopyTo(editor.Indices); 1242srcIndices.CopyTo(editor.Indices);
Transforms\ValueMapping.cs (1)
923src.GetIndices().CopyTo(editor.Indices);
Microsoft.ML.FastTree (2)
BinFile\BinFinder.cs (1)
69explicitValues.CopyTo(valueBuffer);
FastTree.cs (1)
1316src.GetIndices().CopyTo(editor.Indices);
Microsoft.ML.ImageAnalytics (1)
MLImage.cs (1)
108imagePixelData.CopyTo(new Span<byte>(image.GetPixels().ToPointer(), image.Width * image.Height * 4));
Microsoft.ML.Mkl.Components (1)
SymSgdClassificationTrainer.cs (1)
466instArray.CopyTo(_storage[_storageIndex].Buffer.AsSpan(_indexInCurArray));
Microsoft.ML.Tokenizers (37)
Model\BPETokenizer.cs (6)
969sSpan.CopyTo(buffer); 1022specialTokenSpan.CopyTo(buffer); 1219ContinuingSubwordPrefix.AsSpan().CopyTo(buffer); 1220s.CopyTo(buffer.Slice(ContinuingSubwordPrefix.Length)); 1239s.CopyTo(buffer); 1240EndOfWordSuffix.AsSpan().CopyTo(buffer.Slice(s.Length));
Model\CodeGenTokenizer.cs (8)
351span.CopyTo(mutatedInputSpan.Slice(1)); 608span.CopyTo(mutatedInputSpan.Slice(1)); 827span.CopyTo(mutatedInputSpan.Slice(1)); 964span.CopyTo(mutatedInputSpan.Slice(1)); 1384BeginningOfSentenceToken.AsSpan().CopyTo(buffer); 1407EndOfSentenceToken.AsSpan().CopyTo(buffer); 1430UnknownToken.AsSpan().CopyTo(buffer); 1457specialTokenSpan.CopyTo(buffer);
Model\EnglishRobertaTokenizer.cs (1)
813s.AsSpan().CopyTo(buffer);
Model\SentencePieceBaseModel.cs (4)
650specialToken.AsSpan().CopyTo(buffer); 733tokenSpan.CopyTo(buffer); 760tokenSpan.CopyTo(buffer); 782tokenSpan.CopyTo(buffer);
Model\SentencePieceUnigramModel.cs (2)
430text.CopyTo(normalizedString.AsSpan(normalizedString.Length - normalizedStringCountFromEnd - text.Length)); 464text.CopyTo(utf16NormalizedString);
Model\TiktokenTokenizer.cs (3)
824tokenBytes.Span.CopyTo(utf8Bytes.Slice(utf8ByteCount)); 936tokenBytes.Span.Slice(bytesConsumed).CopyTo(utf8Bytes); 943tokenBytes.Span.CopyTo(utf8Bytes.Slice(utf8BytesIncompleteIndex + utf8BytesIncompleteCount));
Model\WordPieceTokenizer.cs (7)
326ContinuingSubwordPrefix.AsSpan().CopyTo(buffer); 345subStr.CopyTo(buffer.Slice(ContinuingSubwordPrefix.Length)); 466ContinuingSubwordPrefix.AsSpan().CopyTo(buffer); 486subStr.CopyTo(buffer.Slice(ContinuingSubwordPrefix.Length)); 759token.AsSpan().Slice(ContinuingSubwordPrefix.Length).CopyTo(buffer); 773token.AsSpan().CopyTo(buffer.Slice(1)); 784token.AsSpan().CopyTo(buffer);
Normalizer\SentencePieceNormalizer.cs (1)
263token.AsSpan().CopyTo(span.Slice(bufferIndex));
PreTokenizer\CompositePreTokenizer.cs (1)
152text.CopyTo(buffer);
PreTokenizer\PreTokenizer.cs (1)
137text.CopyTo(buffer);
PreTokenizer\RegexPreTokenizer.cs (1)
105text.CopyTo(buffer);
Utils\ValueStringBuilder.cs (2)
176newValue.AsSpan().CopyTo(_chars.Slice(index)); 357value.CopyTo(_chars.Slice(_pos));
Microsoft.ML.TorchSharp (7)
Utils\DataUtils.cs (7)
80s1.CopyTo(array); 81s2.CopyTo(array.AsSpan(s1.Length)); 88s1.CopyTo(array); 89s2.CopyTo(array.AsSpan(s1.Length)); 90s3.CopyTo(array.AsSpan(s1.Length + s2.Length)); 97s1.CopyTo(array); 105s1.CopyTo(array);
Microsoft.ML.Transforms (14)
Expression\BuiltinFunctions.cs (5)
741a.Span.CopyTo(dst); 742b.Span.CopyTo(new Span<char>(dst, a.Length, b.Length)); 750a.Span.CopyTo(dst); 751b.Span.CopyTo(new Span<char>(dst, a.Length, b.Length)); 752c.Span.CopyTo(new Span<char>(dst, a.Length + b.Length, c.Length));
ExpressionTransformer.cs (5)
627src0.GetIndices().CopyTo(editor.Indices); 701src0.GetIndices().CopyTo(editor.Indices); 764src0.GetIndices().CopyTo(editor.Indices); 830src0.GetIndices().CopyTo(editor.Indices); 899src0.GetIndices().CopyTo(editor.Indices);
GcnTransform.cs (1)
503src.GetIndices().CopyTo(editor.Indices);
MutualInformationFeatureSelection.cs (1)
903input.GetIndices().CopyTo(editor.Indices);
Text\LdaSingleBox.cs (2)
206termID.Slice(0, termNum).CopyTo(pID); 273termID.Slice(0, termNum).CopyTo(pID);
Microsoft.NET.HostModel (1)
src\runtime\src\coreclr\tools\Common\MachO\BinaryFormat\NameBuffer.cs (1)
27nameBytes.CopyTo(buffer);
Microsoft.Net.Http.Headers (3)
ContentDispositionHeaderValue.cs (2)
554MimePrefix.CopyTo(buffer); 560MimeSuffix.CopyTo(bufferContent.Slice(base64ContentLength));
SetCookieHeaderValue.cs (1)
325other.CopyTo(span);
Microsoft.NET.Sdk.StaticWebAssets.Tasks (1)
Utils\Globbing\StaticWebAssetGlobMatcher.cs (1)
134segment.CopyTo(span.Slice(index));
Microsoft.Private.Windows.Core (22)
_generated\12\Windows.Win32.byte.InlineArrays.g.cs (1)
59 value.CopyTo(result.AsSpan());
_generated\214\Windows.Win32.RECT.InlineArrays.g.cs (2)
34 new ReadOnlySpan<winmdroot.Foundation.RECT>(p0, SpanLength).Slice(0, length).CopyTo(target); 47 value.CopyTo(target);
_generated\37\Windows.Win32.char.InlineArrays.g.cs (2)
77 value.CopyTo(result.AsSpan()); 141 value.CopyTo(result.AsSpan());
src\winforms\src\Microsoft.Private.Windows.Polyfills\System\IO\BinaryReaderExtensions.cs (1)
30new ReadOnlySpan<byte>(sharedBuffer, 0, numRead).CopyTo(buffer);
src\winforms\src\Microsoft.Private.Windows.Polyfills\System\IO\StreamExtensions.cs (2)
40new ReadOnlySpan<byte>(sharedBuffer, 0, numRead).CopyTo(buffer); 59buffer.CopyTo(sharedBuffer);
src\winforms\src\Microsoft.Private.Windows.Polyfills\System\StringExtensions.cs (10)
25stringValue.AsSpan().CopyTo(destination); 50str0.CopyTo(resultSpan); 51str1.CopyTo(resultSpan[str0.Length..]); 70str0.CopyTo(resultSpan); 72str1.CopyTo(resultSpan); 74str2.CopyTo(resultSpan); 104str0.CopyTo(resultSpan); 106str1.CopyTo(resultSpan); 108str2.CopyTo(resultSpan); 110str3.CopyTo(resultSpan);
System\Private\Windows\Ole\Composition.ManagedToNativeAdapter.cs (1)
405value.AsSpan().CopyTo(span);
System\SpanHelpers.cs (1)
22source.CopyTo(destination);
System\SpanWriter.cs (1)
49values.CopyTo(_unwritten);
System\Text\ValueStringBuilder.cs (1)
299value.CopyTo(_chars[_pos..]);
NuGet.ProjectModel (2)
src\nuget-client\build\Shared\Utf8JsonStreamReader.cs (2)
348leftover.CopyTo(_buffer); 353leftover.CopyTo(_buffer);
PresentationFramework (3)
MS\Internal\AppModel\ResourceContainer.cs (3)
215assemblyVersion.CopyTo(key.Slice(assemblyName.Length)); 224assemblyToken.CopyTo(key.Slice(assemblyName.Length + assemblyVersion.Length)); 229assemblyToken.CopyTo(key.Slice(assemblyName.Length));
Roslyn.Diagnostics.Analyzers (9)
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHashShared.cs (8)
173DefaultSecret.CopyTo(new Span<byte>(secret, SecretLengthBytes)); 260source.CopyTo(new Span<byte>(buffer + state.BufferedCount, source.Length)); 275source.Slice(0, loadSize).CopyTo(new Span<byte>(buffer + state.BufferedCount, loadSize)); 314source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes)); 327source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes)); 335source.Slice(sourceIndex).CopyTo(remaining); 390new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes)); 391new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
375span.Slice(offset, segmentLength).CopyTo(buffer.AsSpan());
Shared (3)
ServerSentEvents\Helpers.cs (2)
54value.CopyTo(buffer); 99buffer.Span.CopyTo(sharedBuffer);
ServerSentEvents\SseParser_1.cs (1)
419fieldValue.CopyTo(_dataBuffer.AsSpan(_dataLength));
System.Collections.Immutable (5)
System\Collections\Frozen\FrozenSet.cs (1)
281Items.AsSpan().CopyTo(destination);
System\Collections\Immutable\ImmutableArray_1.Builder.cs (2)
438items.CopyTo(new Span<T>(_elements, offset, items.Length)); 1021new ReadOnlySpan<T>(_elements, 0, this.Count).CopyTo(destination);
System\Collections\Immutable\ImmutableArray_1.cs (2)
918self.AsSpan().CopyTo(destination); 1519items.CopyTo(new Span<T>(tmp, index, items.Length));
System.Collections.Specialized (1)
System\Collections\Specialized\BitVector32.cs (1)
165prefix.CopyTo(dst);
System.Console (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
217value.CopyTo(_chars.Slice(_pos));
System.Data.Common (2)
System\Data\SQLTypes\SQLBytes.cs (2)
329span.CopyTo(buffer); 423buffer.CopyTo(span);
System.Diagnostics.DiagnosticSource (6)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
217value.CopyTo(_chars.Slice(_pos));
System\Diagnostics\Activity.GenerateRootId.netcoreapp.cs (1)
21s_uniqSuffix.AsSpan().CopyTo(result.Slice(1 + charsWritten));
System\Diagnostics\Metrics\TagList.netcore.cs (4)
46tagList.CopyTo(tags); 124((ReadOnlySpan<KeyValuePair<string, object?>>)_tags).CopyTo(_overflowTags); 148Tags.CopyTo(tags); 189((ReadOnlySpan<KeyValuePair<string, object?>>)_tags).CopyTo(_overflowTags);
System.Diagnostics.Process (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
217value.CopyTo(_chars.Slice(_pos));
System.Drawing.Common (12)
_generated\3\Windows.Win32.byte.InlineArrays.g.cs (1)
59 value.CopyTo(result.AsSpan());
System\Drawing\Icon.cs (1)
547bestImage.CopyTo(alignedBuffer.AsSpan());
System\Drawing\Imaging\ColorMatrix.cs (1)
344newColorMatrix.CopyTo(new Span<float>(f, 25));
System\Drawing\Imaging\Effects\ColorLookupTableEffect.cs (4)
47blueLookupTable.CopyTo(bytes); 48greenLookupTable.CopyTo(bytes[256..]); 49redLookupTable.CopyTo(bytes[512..]); 50alphaLookupTable.CopyTo(bytes[768..]);
System\Drawing\Imaging\EncoderParameter.cs (2)
312new ReadOnlySpan<byte>((void*)Value, bytes).CopyTo(new Span<byte>((void*)_parameterValue, bytes)); 338new ReadOnlySpan<byte>((void*)value, bytes).CopyTo(new Span<byte>((void*)_parameterValue, bytes));
System\Drawing\Printing\PrinterSettings.cs (3)
743driver.AsSpan().CopyTo(names.Slice(offsetInChars, driver.Length)); 747printerName.AsSpan().CopyTo(names.Slice(offsetInChars, printerName.Length)); 751outPort.AsSpan().CopyTo(names.Slice(offsetInChars, outPort.Length));
System.Formats.Asn1 (15)
System\Formats\Asn1\AsnDecoder.BitString.cs (1)
409value.CopyTo(destination);
System\Formats\Asn1\AsnDecoder.OctetString.cs (2)
93contents.CopyTo(destination); 376contents.CopyTo(curDest);
System\Formats\Asn1\AsnDecoder.Text.cs (1)
359contents.CopyTo(destination);
System\Formats\Asn1\AsnWriter.BitString.cs (3)
93bitString.CopyTo(_buffer.AsSpan(_offset)); 174remainingData.Slice(0, MaxCERContentSize).CopyTo(dest); 187remainingData.CopyTo(dest);
System\Formats\Asn1\AsnWriter.cs (2)
589value.CopyTo(_buffer.AsSpan(_offset)); 688src.CopyTo(dest);
System\Formats\Asn1\AsnWriter.Integer.cs (2)
246value.CopyTo(_buffer.AsSpan(_offset)); 274value.CopyTo(_buffer.AsSpan(_offset));
System\Formats\Asn1\AsnWriter.OctetString.cs (3)
98octetString.CopyTo(_buffer.AsSpan(_offset)); 151remainingData.Slice(0, MaxCERSegmentSize).CopyTo(dest); 160remainingData.CopyTo(dest);
System\Formats\Asn1\AsnWriter.Oid.cs (1)
66wellKnownContents.CopyTo(_buffer.AsSpan(_offset));
System.Formats.Cbor (11)
System\Formats\Cbor\Reader\CborReader.String.cs (4)
45buffer.Slice(bytesRead, length).CopyTo(result); 86buffer.Slice(bytesRead, length).CopyTo(destination); 342source.Slice(o, l).CopyTo(target); 367source.Slice(o, l).CopyTo(destination);
System\Formats\Cbor\Writer\CborWriter.Array.cs (1)
86elementEncoding.CopyTo(target);
System\Formats\Cbor\Writer\CborWriter.cs (4)
185encodedValue.CopyTo(_buffer.AsSpan(_offset)); 243encoding.CopyTo(destination); 262encoding.CopyTo(destination); 295new ReadOnlySpan<byte>(_buffer, 0, _offset).CopyTo(newBuffer);
System\Formats\Cbor\Writer\CborWriter.Map.cs (1)
170keyValuePairEncoding.CopyTo(s);
System\Formats\Cbor\Writer\CborWriter.String.cs (1)
53value.CopyTo(_buffer.AsSpan(_offset));
System.Formats.Nrbf (2)
System\Formats\Nrbf\Utils\TypeNameHelpers.cs (2)
211typeName.AsSpan().CopyTo(rented); 213libraryName.AsSpan().CopyTo(rented.AsSpan(typeName.Length + 1));
System.Formats.Tar (3)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
217value.CopyTo(_chars.Slice(_pos));
System\Formats\Tar\TarHeader.Write.cs (2)
788bytesToWrite.CopyTo(destination); 806bytesToWrite.CopyTo(destination.Slice(copyPos));
System.IO.Compression (6)
System\IO\Compression\WinZipAesStream.cs (1)
485buffer[..bytesToProcess].CopyTo(workBuffer);
System\IO\Compression\ZipArchiveEntry.cs (3)
863ZipCentralDirectoryFileHeader.SignatureConstantBytes.CopyTo(cdStaticHeader[ZipCentralDirectoryFileHeader.FieldLocations.Signature..]); 1728ZipLocalFileHeader.SignatureConstantBytes.CopyTo(lfStaticHeader[ZipLocalFileHeader.FieldLocations.Signature..]); 2131ZipLocalFileHeader.DataDescriptorSignatureConstantBytes.CopyTo(dataDescriptor[ZipLocalFileHeader.ZipDataDescriptor.FieldLocations.Signature..]);
System\IO\Compression\ZipBlocks.cs (2)
575SignatureConstantBytes.CopyTo(blockContents[FieldLocations.Signature..]); 1019buffer[FieldLocations.DynamicData..].CopyTo(collatedHeader);
System.IO.Compression.Brotli (1)
System\IO\Compression\dec\BrotliStream.Decompress.cs (1)
250new ReadOnlySpan<byte>(_buffer, _bufferOffset, _bufferCount).CopyTo(_buffer);
System.IO.Compression.ZipFile (2)
src\runtime\src\libraries\Common\src\System\IO\Archiving.Utils.Windows.cs (2)
41entryPath.AsSpan(0, state.i).CopyTo(dest); 76path.CopyTo(dest);
System.IO.FileSystem.AccessControl (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
217value.CopyTo(_chars.Slice(_pos));
System.IO.FileSystem.Watcher (3)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
217value.CopyTo(_chars.Slice(_pos));
System\IO\FileSystemWatcher.Linux.cs (2)
627dirs.CopyTo(_dirBuffer); // dirs won't be at the start of _dirBuffer when movedFromWatchCount was not zero. 1394path.CopyTo(pathBuffer.Slice(length));
System.IO.Hashing (14)
System\IO\Hashing\XxHash32.cs (3)
99source.Slice(0, remain).CopyTo(_holdback.AsSpan(held)); 107source.CopyTo(_holdback.AsSpan(held)); 123source.CopyTo(_holdback);
System\IO\Hashing\XxHash64.cs (3)
99source.Slice(0, remain).CopyTo(_holdback.AsSpan(held)); 107source.CopyTo(_holdback.AsSpan(held)); 123source.CopyTo(_holdback);
System\IO\Hashing\XxHashShared.cs (8)
169DefaultSecret.CopyTo(new Span<byte>(secret, SecretLengthBytes)); 252source.CopyTo(new Span<byte>(buffer + state.BufferedCount, source.Length)); 267source.Slice(0, loadSize).CopyTo(new Span<byte>(buffer + state.BufferedCount, loadSize)); 306source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes)); 319source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes)); 327source.Slice(sourceIndex).CopyTo(remaining); 382new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes)); 383new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));
System.IO.Pipelines (1)
System\IO\Pipelines\Pipe.cs (1)
1216source.Slice(0, writable).CopyTo(destination);
System.Linq (5)
System\Linq\SegmentedArrayBuilder.cs (4)
146sourceSlice.CopyTo(_currentSegment.Slice(_countInCurrentSegment)); 153sourceSlice.CopyTo(_currentSegment); 311firstSegment.CopyTo(destination); 321segment.CopyTo(destination);
System\Linq\SkipTake.SpeedOpt.cs (1)
153sourceSpan.Slice(sourceIndex, destination.Length).CopyTo(destination);
System.Memory (7)
System\Buffers\BuffersExtensions.cs (4)
70span.CopyTo(destination); 87span.CopyTo(destination); 123value.CopyTo(destination); 138input.Slice(0, writeSize).CopyTo(destination);
System\Buffers\SequenceReader.cs (3)
419firstSpan.Slice(0, destination.Length).CopyTo(destination); 435firstSpan.CopyTo(destination); 445nextSpan.Slice(0, toCopy).CopyTo(destination.Slice(copied));
System.Net.Http (25)
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HPackDecoder.cs (3)
199headerBytes.CopyTo(_headerName); 448data.Slice(currentIndex, count).CopyTo(_stringOctets.AsSpan(_stringIndex)); 479data.Slice(currentIndex, count).CopyTo(_stringOctets.AsSpan(_stringIndex));
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HPackEncoder.cs (1)
432value.CopyTo(destination);
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\QPack\QPackDecoder.cs (3)
250headerBytes.CopyTo(_headerName); 310data.Slice(currentIndex, count).CopyTo(_stringOctets.AsSpan(_stringIndex)); 394data.Slice(currentIndex, count).CopyTo(_stringOctets.AsSpan(_stringIndex));
src\runtime\src\libraries\Common\src\System\Net\MultiArrayBuffer.cs (2)
415source.CopyTo(block.Span); 419source.Slice(0, block.Length).CopyTo(block.Span);
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
217value.CopyTo(_chars.Slice(_pos));
System\Net\Http\HttpContent.cs (5)
926buffer.CopyTo(lastBuffer.AsSpan(offset)); 984buffer.CopyTo(newBuffer.AsSpan(_totalLength)); 1000buffer.CopyTo(newBuffer); 1014buffer.Slice(0, remainingInCurrentBuffer.Length).CopyTo(remainingInCurrentBuffer); 1018buffer.CopyTo(newBuffer);
System\Net\Http\SocketsHttpHandler\ChunkedEncodingReadStream.cs (1)
307bytesRead.Span.CopyTo(buffer);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (1)
198"Host: "u8.CopyTo(hostHeaderLine);
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (4)
208Http2ConnectionPreface.CopyTo(_outgoingBuffer.AvailableSpan); 1446bytes.CopyTo(headerBuffer.AvailableSpan); 1700current.Span.CopyTo(span); 1712current.Span.CopyTo(span);
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (1)
894span.CopyTo(_sendBuffer.AvailableSpan);
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (3)
486bytes.CopyTo(_writeBuffer.AvailableSpan); 1380source.CopyTo(_writeBuffer.AvailableSpan); 1754available.Slice(0, toCopy).CopyTo(buffer);
System.Net.HttpListener (2)
System\Net\HttpListener.cs (2)
187state.uriPrefix.AsSpan(0, indexOfNextCopy).CopyTo(destination); 200state.uriPrefix.AsSpan(state.j).CopyTo(destination.Slice(indexOfNextCopy));
System.Net.Mail (5)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
217value.CopyTo(_chars.Slice(_pos));
System\Net\BufferBuilder.cs (2)
40value.Span.CopyTo(_buffer.AsSpan(_offset)); 47value.CopyTo(_buffer.AsSpan(_offset));
System\Net\BufferedReadStream.cs (1)
130buffer.CopyTo(_storedBuffer.AsSpan(_storedOffset));
System\Net\Mime\WriteStateInfoBase.cs (1)
83bytes.CopyTo(_buffer.AsSpan(Length));
System.Net.Primitives (1)
src\runtime\src\libraries\Common\src\System\Net\NetworkInformation\InterfaceInfoPal.Unix.cs (1)
54castInterfaceName.CopyTo(buffer);
System.Net.Quic (5)
src\runtime\src\libraries\Common\src\System\Net\MultiArrayBuffer.cs (2)
415source.CopyTo(block.Span); 419source.Slice(0, block.Length).CopyTo(block.Span);
src\runtime\src\libraries\Common\src\System\Net\Security\SslKeyLogger.cs (2)
110labelUtf8.CopyTo(line); 113clientRandomUtf8.CopyTo(line.Slice(labelUtf8.Length + 1));
System\Net\Quic\Internal\MsQuicBuffers.cs (1)
58buffer.Span.CopyTo(_buffers[index].Span);
System.Net.Security (24)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Net.Security.Native\Interop.GssBuffer.cs (2)
37Span.CopyTo(destination.AsSpan(offset, sourceLength)); 50Span.CopyTo(destination);
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (1)
366protocol.Protocol.Span.CopyTo(buffer.Slice(offset));
src\runtime\src\libraries\Common\src\System\Net\Security\MD4.cs (2)
116input.Slice(0, partLen).CopyTo(buffer.Slice(index)); 132input.Slice(i).CopyTo(buffer.Slice(index));
src\runtime\src\libraries\Common\src\System\Net\Security\SslKeyLogger.cs (2)
110labelUtf8.CopyTo(line); 113clientRandomUtf8.CopyTo(line.Slice(labelUtf8.Length + 1));
src\runtime\src\libraries\Common\src\System\Text\UrlBase64Encoding.cs (2)
42source.CopyTo(dest); 47source.Slice(0, pos).CopyTo(dest);
System\Net\NegotiateAuthenticationPal.ManagedNtlm.cs (5)
370NtlmHeader.CopyTo(asBytes); 404data.CopyTo(payload.Slice(offset)); 466serverInfo.CopyTo(MemoryMarshal.CreateSpan(ref temp.ServerInfo[0], serverInfo.Length)); 573info.Slice(0, length + 4).CopyTo(targetInfoBuffer.AsSpan(targetInfoOffset, length + 4)); 704NtlmHeader.CopyTo(responseAsSpan);
System\Net\NegotiateAuthenticationPal.Unix.cs (3)
347encryptedBuffer.Span.CopyTo(outputWriter.GetSpan(encryptedBuffer.Span.Length)); 375decryptedBuffer.Span.CopyTo(outputWriter.GetSpan(decryptedBuffer.Span.Length)); 405decryptedBuffer.Span.CopyTo(input);
System\Net\Security\Pal.Managed\SafeChannelBindingHandle.cs (1)
41cbtPrefix.CopyTo(new Span<byte>((byte*)cbtPrefixPtr, cbtPrefix.Length));
System\Net\Security\SslStream.IO.cs (1)
1097_buffer.DecryptedReadOnlySpanSliced(copyBytes).CopyTo(buffer.Span);
System\Net\Security\SslStream.Protocol.cs (1)
1559payload.CopyTo(new Span<byte>(Payload, 0, Size));
System\Net\Security\TlsSession.cs (4)
589source.CopyTo(destination); 1172plaintext.Slice(0, chunk).CopyTo(rented); 1259ciphertext.Slice(0, frameSize).CopyTo(_decryptScratch); 1548data.CopyTo(_pendingBuffer.AvailableSpan);
System.Net.ServerSentEvents (2)
System\Net\ServerSentEvents\Helpers.cs (1)
37value.CopyTo(buffer);
System\Net\ServerSentEvents\SseParser_1.cs (1)
424fieldValue.CopyTo(_dataBuffer.AsSpan(_dataLength));
System.Net.Sockets (1)
System\Net\Sockets\SocketAsyncEventArgs.Unix.cs (1)
347new ReadOnlySpan<byte>(_acceptBuffer, 0, _acceptAddressBufferCount).CopyTo(remoteSocketAddress.Buffer.Span);
System.Net.WebClient (3)
src\runtime\src\libraries\Common\src\System\IO\ChunkedMemoryStream.cs (1)
51buffer.Slice(0, toCopy).CopyTo(new Span<byte>(_currentChunk._buffer, _currentChunk._freeOffset, toCopy));
System\Net\WebClient.cs (2)
513"\r\n--"u8.CopyTo(boundaryBytes); 514"--\r\n"u8.CopyTo(boundaryBytes.AsSpan("\r\n--".Length + boundary.Length));
System.Net.WebSockets (4)
System\Net\WebSockets\Compression\WebSocketInflater.cs (2)
102FlushMarker.CopyTo(_buffer); 117FlushMarker.CopyTo(_buffer.AsSpan(_available));
System\Net\WebSockets\ManagedWebSocket.cs (1)
675payloadBuffer.CopyTo(new Span<byte>(_sendBuffer, headerLength, payloadLength));
System\Net\WebSockets\WebSocket.cs (1)
75buffer.Span.CopyTo(array);
System.Numerics.Tensors (43)
System\Numerics\Tensors\netcore\Tensor.cs (35)
159tensors[0].Lengths.CopyTo(lengths); 244tensors[0].Lengths.CopyTo(lengths); 1614span.CopyTo(ospan); 1618span.Slice(0, ospan.Length).CopyTo(ospan); 1674span.CopyTo(ospan); 1678span.Slice(0, ospan.Length).CopyTo(ospan); 1952tensor.Lengths[..dimension].CopyTo(lengths); 1953tensor.Lengths[(dimension + 1)..].CopyTo(lengths[dimension..]); 1955tensor.Strides[..dimension].CopyTo(strides); 1956tensor.Strides[(dimension + 1)..].CopyTo(strides[dimension..]); 2019tensor.Lengths[..dimension].CopyTo(lengths); 2020tensor.Lengths[(dimension + 1)..].CopyTo(lengths[dimension..]); 2022tensor.Strides[..dimension].CopyTo(strides); 2023tensor.Strides[(dimension + 1)..].CopyTo(strides[dimension..]); 2086tensor.Lengths[..dimension].CopyTo(lengths); 2087tensor.Lengths[(dimension + 1)..].CopyTo(lengths[dimension..]); 2089tensor.Strides[..dimension].CopyTo(strides); 2090tensor.Strides[(dimension + 1)..].CopyTo(strides[dimension..]); 2339tensor.Lengths.CopyTo(lengths); 2340tensor.Strides.CopyTo(strides); 2414tensor.Lengths.Slice(0, dimension).CopyTo(newLengths); 2415tensor.Lengths.Slice(dimension).CopyTo(newLengths.Slice(dimension + 1)); 2421tensor.Strides.CopyTo(newStrides); 2426tensor.Strides.Slice(0, dimension).CopyTo(newStrides); 2427tensor.Strides.Slice(dimension).CopyTo(newStrides.Slice(dimension + 1)); 2451tensor.Lengths.Slice(0, dimension).CopyTo(newLengths); 2452tensor.Lengths.Slice(dimension).CopyTo(newLengths.Slice(dimension + 1)); 2458tensor.Strides.CopyTo(newStrides); 2463tensor.Strides.Slice(0, dimension).CopyTo(newStrides); 2464tensor.Strides.Slice(dimension).CopyTo(newStrides.Slice(dimension + 1)); 2488tensor.Lengths.Slice(0, dimension).CopyTo(newLengths); 2489tensor.Lengths.Slice(dimension).CopyTo(newLengths.Slice(dimension + 1)); 2495tensor.Strides.CopyTo(newStrides); 2500tensor.Strides.Slice(0, dimension).CopyTo(newStrides); 2501tensor.Strides.Slice(dimension).CopyTo(newStrides.Slice(dimension + 1));
System\Numerics\Tensors\netcore\TensorOperation.cs (1)
422source.CopyTo(destination);
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertHelpers.cs (1)
26source.CopyTo(Rename<TTo, TFrom>(destination));
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertTruncating.cs (1)
36source.CopyTo(Rename<TTo, TFrom>(destination));
System\Numerics\Tensors\netcore\TensorShape.cs (5)
98lengths.CopyTo(destinationLengths); 179strides.CopyTo(destinationStrides); 244strides.CopyTo(destinationStrides); 305lengths.CopyTo(destinationLengths); 306strides.CopyTo(destinationStrides);
System.Private.CoreLib (106)
Internal\Runtime\CompilerHelpers\InteropHelpers.cs (1)
75managed.Slice(0, numChars).CopyTo(native);
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (2)
88source.CopyTo(_span.Slice(_pos)); 102source.CopyTo(_span);
src\runtime\src\libraries\Common\src\System\Sha1ForNonSecretPurposes.cs (1)
48source.CopyTo(tail);
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
217value.CopyTo(_chars.Slice(_pos));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Number.cs (2)
114source.Slice(startIndexNonLeadingDigitsBeforeDecimal, numNonLeadingDigitsBeforeDecimalToCopy).CopyTo(digits); 178source.Slice(startIndexOfDigitsAfterDecimalToCopy, numDigitsAfterDecimalToCopy).CopyTo(digits.Slice(dstIndex));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (1)
720source.CopyTo(byteArray.AsSpan(index));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\CollectionExtensions.cs (3)
110source.CopyTo(list._items.AsSpan(list._size)); 152source.CopyTo(list._items.AsSpan(index)); 171new ReadOnlySpan<T>(list._items, 0, list._size).CopyTo(destination);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (1)
1780namespaceBytes.CopyTo(source);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (1)
92name.AsSpan(collationIndex, length).CopyTo(buffer.Slice(bufferIndex));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (2)
5978Value.Slice(0, i).CopyTo(result); 6005Value.Slice(i + 1).CopyTo(result.Slice(1));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.cs (1)
285unicode.CopyTo(destination);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\InvariantModeCasing.cs (2)
59src.Slice(0, i).CopyTo(destination); 105src.Slice(0, i).CopyTo(destination);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TextInfo.cs (3)
373source.AsSpan(0, (int)currIdx).CopyTo(resultSpan); 397source.AsSpan(0, (int)currIdx).CopyTo(resultSpan); 431s.AsSpan(0, i).CopyTo(new Span<char>(pResult, result.Length));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanFormat.cs (1)
281decimalSeparator.CopyTo(new Span<TChar>(p, decimalSeparator.Length));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Guid.cs (3)
916charSpan.Slice(0, i).CopyTo(chArr); 967srcUtf8Span.Slice(0, i).CopyTo(destUtf8Span); 981srcUtf8Span.Slice(i, bytesConsumed).CopyTo(destUtf8Span.Slice(newLength));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BinaryWriter.cs (1)
398buffer.CopyTo(array);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BufferedStream.cs (4)
452new ReadOnlySpan<byte>(_buffer, _readPos, readbytes).CopyTo(destination); 787buffer.Slice(0, bytesToWrite).CopyTo(new Span<byte>(_buffer, _writePos, bytesToWrite)); 982buffer.CopyTo(new Span<byte>(_buffer, _writePos, buffer.Length)); 1120buffer.Span.CopyTo(new Span<byte>(_buffer, _writePos, buffer.Length));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\File.cs (1)
1579preamble.CopyTo(bytes);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (1)
655buffer.CopyTo(new Span<byte>(_buffer, _position, buffer.Length));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Path.cs (8)
597pathToUse.CopyTo(destination); 607path1.CopyTo(destination); 611path2.CopyTo(destination.Slice(path1.Length + (needsSeparator ? 1 : 0))); 645path3.CopyTo(destination.Slice(charsWritten)); 751first.CopyTo(destination); 761second.CopyTo(destination); 771third.CopyTo(destination); 782fourth.CopyTo(destination);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Path.Unix.cs (1)
108fileTemplate.CopyTo(path.Slice(pos));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\ReadOnlyMemoryStream.cs (1)
119_memory.Span.Slice(_position, bytesToRead).CopyTo(buffer);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\BufferedFileStreamStrategy.cs (8)
211new ReadOnlySpan<byte>(_buffer, _readPos, n).CopyTo(destination); 502source.CopyTo(_buffer!.AsSpan(_writePos)); 508source.Slice(0, numBytes).CopyTo(_buffer!.AsSpan(_writePos)); 549source.CopyTo(_buffer.AsSpan(_writePos)); 639buffer.Span.CopyTo(_buffer.AsSpan(_writePos)); 704source.Span.CopyTo(_buffer.AsSpan(_writePos)); 710source.Span.Slice(0, spaceLeft).CopyTo(_buffer.AsSpan(_writePos)); 734source.Span.CopyTo(_buffer.AsSpan(_writePos));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (4)
324new ReadOnlySpan<byte>(localBuffer, 0, result).CopyTo(localDestination.Span); 741buffer.Span.CopyTo(sharedBuffer); 794new ReadOnlySpan<byte>(sharedBuffer, 0, numRead).CopyTo(buffer); 920buffer.CopyTo(sharedBuffer);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (1)
467new ReadOnlySpan<byte>(byteBuffer, n, _byteLen - n).CopyTo(byteBuffer);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (1)
791source.Span.Slice(copied, n).CopyTo(new Span<char>(_charBuffer, _charPos, n));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StringReader.cs (1)
138s.AsSpan(_pos, n).CopyTo(buffer);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.cs (2)
196buffer.CopyTo(new Span<char>(array)); 420buffer.CopyTo(new Span<char>(array));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\WritableMemoryStream.cs (1)
258buffer.CopyTo(_memory.Span.Slice(_position));
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (5)
3956new ReadOnlySpan<T>(source).CopyTo(destination); 4839source.CopyTo(destination); 4889source.CopyTo(destination); 6330value.CopyTo(_destination.Slice(_pos)); 6339value.CopyTo(_destination.Slice(_pos));
src\runtime\src\libraries\System.Private.CoreLib\src\System\ReadOnlyMemory.cs (1)
284public void CopyTo(Memory<T> destination) => Span.CopyTo(destination.Span);
src\runtime\src\libraries\System.Private.CoreLib\src\System\ReadOnlySpan.cs (1)
416CopyTo(destination);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\DefaultInterpolatedStringHandler.cs (3)
443value.CopyTo(_chars.Slice(_pos)); 452value.CopyTo(_chars.Slice(_pos)); 617value.CopyTo(_chars.Slice(_pos));
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\SearchValues.cs (1)
141values.CopyTo(copy);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\AsciiStringSearchValuesTeddyBase.cs (2)
125ReadOnlySpan<object?>.CastUp(values).CopyTo(_buckets); 141((ReadOnlySpan<object?>)buckets).CopyTo(_buckets);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Security\SecureString.cs (1)
45value.CopyTo(span);
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (18)
319str0.CopyTo(resultSpan); 320str1.CopyTo(resultSpan.Slice(str0.Length)); 336str0.CopyTo(resultSpan); 339str1.CopyTo(resultSpan); 342str2.CopyTo(resultSpan); 358str0.CopyTo(resultSpan); 361str1.CopyTo(resultSpan); 364str2.CopyTo(resultSpan); 367str3.CopyTo(resultSpan); 383str0.CopyTo(resultSpan); 386str1.CopyTo(resultSpan); 389str2.CopyTo(resultSpan); 392str3.CopyTo(resultSpan); 395str4.CopyTo(resultSpan); 1128separator.CopyTo(new Span<char>(ref dest, separator.Length)); 1452this.AsSpan(thisIdx, count).CopyTo(dstSpan.Slice(dstIdx)); 1464this.AsSpan(thisIdx).CopyTo(dstSpan.Slice(dstIdx)); 2659this.AsSpan(0, consumed).CopyTo(resultSpan);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\DecoderNLS.cs (1)
211bytes.CopyTo(MemoryMarshal.AsBytes(new Span<int>(ref _leftoverBytes)));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (2)
722new ReadOnlySpan<byte>(arrByte, 0, byteCount).CopyTo(new Span<byte>(bytes, byteCount)); 871new ReadOnlySpan<char>(arrChar, 0, charCount).CopyTo(new Span<char>(chars, charCount));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (8)
142value.AsSpan(startIndex, length).CopyTo(m_ChunkChars); 946new ReadOnlySpan<char>(chunk.m_ChunkChars, chunkStartIndex, chunkCount).CopyTo(destination.Slice(curDestIndex)); 2398new ReadOnlySpan<char>(ref value, firstLength).CopyTo(m_ChunkChars.AsSpan(m_ChunkLength)); 2408new ReadOnlySpan<char>(ref Unsafe.Add(ref value, firstLength), restLength).CopyTo(m_ChunkChars); 2561new ReadOnlySpan<char>(ref value, lengthToCopy).CopyTo(chunk.m_ChunkChars.AsSpan(indexInChunk)); 2761new ReadOnlySpan<char>(chunk.m_ChunkChars, 0, copyCount1).CopyTo(newChunk.m_ChunkChars); 2767new ReadOnlySpan<char>(chunk.m_ChunkChars, copyCount1, copyCount2).CopyTo(chunk.m_ChunkChars); 2878new ReadOnlySpan<char>(endChunk.m_ChunkChars, endIndexInChunk, copyCount).CopyTo(endChunk.m_ChunkChars.AsSpan(copyTargetIndexInChunk));
System\CrashInfo.cs (1)
395bytes.CopyTo(destination);
System\Text\StringBuilder.NativeAot.cs (2)
40new ReadOnlySpan<char>(newBuffer, len).CopyTo(chunkChars); 62new ReadOnlySpan<char>(chunkCharsCandidate, 0, len).CopyTo(chunkChars);
System.Private.CoreLib.Generators (2)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (2)
88source.CopyTo(_span.Slice(_pos)); 102source.CopyTo(_span);
System.Private.DataContractSerialization (3)
System\Xml\XmlStreamNodeWriter.cs (3)
233bytes.CopyTo(buffer); 282value.CopyTo(buffer.AsSpan(offset)); 341.CopyTo(MemoryMarshal.Cast<byte, char>(buffer.AsSpan(offset)));
System.Private.Uri (8)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (2)
88source.CopyTo(_span.Slice(_pos)); 102source.CopyTo(_span);
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
217value.CopyTo(_chars.Slice(_pos));
System\UriExt.cs (2)
582charsToUnescape.Slice(0, indexOfFirstToUnescape).CopyTo(destination); 586vsb.AsSpan().CopyTo(destination.Slice(indexOfFirstToUnescape));
System\UriHelper.cs (3)
146charsToEscape.CopyTo(destination); 174charsToEscape.Slice(0, indexOfFirstToEscape).CopyTo(destination); 178vsb.AsSpan().CopyTo(destination.Slice(indexOfFirstToEscape));
System.Private.Windows.Core (8)
_generated\12\Windows.Win32.byte.InlineArrays.g.cs (1)
59 value.CopyTo(result.AsSpan());
_generated\215\Windows.Win32.RECT.InlineArrays.g.cs (1)
52 value.CopyTo(result.AsSpan());
_generated\37\Windows.Win32.char.InlineArrays.g.cs (2)
77 value.CopyTo(result.AsSpan()); 141 value.CopyTo(result.AsSpan());
System\Private\Windows\Ole\Composition.ManagedToNativeAdapter.cs (1)
405value.AsSpan().CopyTo(span);
System\SpanHelpers.cs (1)
22source.CopyTo(destination);
System\SpanWriter.cs (1)
49values.CopyTo(_unwritten);
System\Text\ValueStringBuilder.cs (1)
299value.CopyTo(_chars[_pos..]);
System.Private.Windows.GdiPlus (1)
_generated\25\Windows.Win32.float.InlineArrays.g.cs (1)
59 value.CopyTo(result.AsSpan());
System.Private.Xml (3)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
217value.CopyTo(_chars.Slice(_pos));
System\Xml\BinaryXml\XmlBinaryReader.cs (1)
2336srcBytes.CopyTo(dstBytes);
System\Xml\Core\XmlUtf8RawTextWriter.cs (1)
117bom.CopyTo(new Span<byte>(_bufBytes).Slice(1));
System.Reflection.Metadata (4)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
217value.CopyTo(_chars.Slice(_pos));
System\Reflection\Metadata\BlobBuilder.cs (2)
682buffer.Slice(0, bytesToCurrent).CopyTo(_buffer.AsSpan(Length)); 691remaining.CopyTo(_buffer);
System\Reflection\Metadata\BlobWriter.cs (1)
154buffer.CopyTo(_buffer.AsSpan(start));
System.Runtime.Numerics (37)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (2)
88source.CopyTo(_span.Slice(_pos)); 102source.CopyTo(_span);
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder_1.cs (2)
188text.CopyTo(_chars.Slice(index)); 236text.CopyTo(_chars.Slice(pos));
System\Number.BigInteger.cs (5)
905sNegative.CopyTo(destination); 935state.sNegative.CopyTo(span); 1075bits.Slice(0, omittedLength).CopyTo(lower); 1376LeadingPowers1E9.CopyTo(pow1E9.Slice(0, LeadingPowers1E9.Length)); 1498first.CopyTo(powersOfTen);
System\Numerics\BigInteger.cs (9)
420value.Slice(unalignedBytes).CopyTo(limbBytes); 428value.Slice(0, wholeLimbCount * nint.Size).CopyTo(MemoryMarshal.AsBytes(val.AsSpan())); 1670srcBytes.CopyTo(destBytes); 1675srcBytes.CopyTo(destination); 2806bits.CopyTo(zd); 2898bits.Slice(digitShift).CopyTo(zd); 3541bits.CopyTo(zd); 3719bits.CopyTo(zd); 5485bits.Slice(digitShift).CopyTo(zd);
System\Numerics\BigIntegerCalculator.AddSub.cs (1)
21source.Slice(start).CopyTo(dest.Slice(start));
System\Numerics\BigIntegerCalculator.DivRem.cs (8)
76left.CopyTo(remainder); 100left.CopyTo(leftCopy); 124left.CopyTo(remainder); 358src.CopyTo(dst); 471left.CopyTo(remainder); 503left.CopyTo(r1); 584b2.CopyTo(d.Slice(n)); 589left3.CopyTo(remainder.Slice(0, n));
System\Numerics\BigIntegerCalculator.GcdInv.cs (2)
95left.CopyTo(result); 98right.CopyTo(rightCopy);
System\Numerics\BigIntegerCalculator.PowMod.cs (3)
28value.CopyTo(valueCopy); 280value.CopyTo(valueCopy); 320value.CopyTo(valueCopy);
System\Numerics\BigIntegerCalculator.SquMul.cs (5)
356right0.CopyTo(q1); 357right0.CopyTo(qm1); 584v0.CopyTo(p1); 967right.CopyTo(left); 1011right.CopyTo(left);
System.Security.Cryptography (94)
Microsoft\Win32\SafeHandles\SafePasswordHandle.cs (1)
53password.CopyTo(dest);
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.BCryptImportKey.cs (1)
41key.CopyTo(blob.Slice(sizeof(BCRYPT_KEY_DATA_BLOB_HEADER)));
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.Blobs.cs (1)
87blob.Slice(offset, count).CopyTo(destination);
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeUnicodeStringHandle.cs (1)
39s.CopyTo(dest);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs (1)
105signatureField.CopyTo(response.Slice(writeOffset));
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaCng.Windows.cs (1)
228keyBytes.CopyTo(destination);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaImplementation.Windows.cs (1)
186keyBytes.CopyTo(destination);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\DSACng.SignVerify.cs (1)
140hash.CopyTo(stackBuf.Slice(zeroByteCount));
src\runtime\src\libraries\Common\src\System\Security\Cryptography\KeyBlobHelpers.cs (3)
37span.CopyTo(destination); 45span.Slice(1).CopyTo(destination); 56span.CopyTo(destination.Slice(length - span.Length));
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsaCng.Windows.cs (3)
137seedValue.CopyTo(destination); 182expandedKeyValue.CopyTo(destination); 470keyBytes.CopyTo(destination);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsaImplementation.Windows.cs (1)
253keyBytes.CopyTo(destination);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKem.Windows.cs (1)
47exportedSpan.Slice(blobHeaderSize + paramSetSize, keySize).CopyTo(destination);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (7)
407passwordBytes.CopyTo(pwdTmpBytes); 699rc2Parameters.Iv.CopyTo(iv); 818password.CopyTo(tmpPassword); 819saltSpan.CopyTo(tmpSalt); 977key.CopyTo(tmpKey); 978iv.CopyTo(tmpIv); 984encryptedData.CopyTo(rentedEncryptedData);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
362_sealedData.Span.CopyTo(destination);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (2)
258bytes.CopyTo(destination); 263bytes.Slice(0, destination.Length).CopyTo(destination);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PqcBlobHelpers.cs (3)
219parameterSet.CopyTo(blobBodyChars); 224data.CopyTo(blobBytes.Slice(index)); 339key.CopyTo(buffer.Slice(blobHeaderSize + parameterSetMarshalLength));
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (5)
143source.CopyTo(mInEM); 173source[^len..].CopyTo(destination); 284digestInfoPrefix.CopyTo(destination.Slice(paddingLength + 3)); 285source.CopyTo(destination.Slice(paddingLength + 3 + digestInfoPrefix.Length)); 343source.CopyTo(mDest);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellman.cs (2)
1458spkiPreamble.CopyTo(destination); 1536pkcs8Preamble.CopyTo(destination);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellmanCng.Windows.cs (1)
258ecKey.PrivateKey.CopyTo(privateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519WindowsHelpers.cs (5)
62d.CopyTo(destination); 67x.CopyTo(destination); 106key.CopyTo(destination); 115key.CopyTo(destination); 165publicKey.CopyTo(reduced);
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
217value.CopyTo(_chars.Slice(_pos));
System\Security\Cryptography\Aes.cs (5)
451source.CopyTo(keyPart); 475source.CopyTo(lease.Span); 499source.CopyTo(destination.Slice(8)); 535source.Slice(0, 8).CopyTo(A); 536source.Slice(8).CopyTo(destination);
System\Security\Cryptography\Base64Transforms.cs (2)
254inputBuffer.Slice(0, whitespaceIndex).CopyTo(transformBuffer.Slice(index)); 266inputBuffer.CopyTo(transformBuffer.Slice(index));
System\Security\Cryptography\BasicSymmetricCipherLiteBCrypt.cs (1)
95iv.CopyTo(_currentIv);
System\Security\Cryptography\CapiHelper.Windows.cs (2)
922input.CopyTo(encryptedData); 949input.CopyTo(dataToBeDecrypted);
System\Security\Cryptography\CryptoStream.cs (2)
319new ReadOnlySpan<byte>(_outputBuffer, 0, bytesToCopy).CopyTo(buffer.Span); 512buffer.CopyTo(sharedBuffer);
System\Security\Cryptography\DSA.cs (1)
902data.CopyTo(array);
System\Security\Cryptography\ECDsa.cs (3)
1014data.CopyTo(array); 1020new ReadOnlySpan<byte>(hash).CopyTo(destination); 1222data.CopyTo(array);
System\Security\Cryptography\FixedMemoryKeyBox.cs (1)
15key.CopyTo(new Span<byte>(memory, key.Length));
System\Security\Cryptography\HashAlgorithm.cs (2)
255source.CopyTo(array); 270new ReadOnlySpan<byte>(final).CopyTo(destination);
System\Security\Cryptography\Helpers.cs (3)
581context.CopyTo(message.Slice(2)); 586(dest, encoded) => encoded.CopyTo(dest)); 589hash.CopyTo(message.Slice(2 + context.Length + encodedOidLength));
System\Security\Cryptography\HKDF.Windows.cs (1)
134info.CopyTo(rented);
System\Security\Cryptography\HKDFManagedImplementation.cs (1)
41info.CopyTo(tempInfoBuffer);
System\Security\Cryptography\KeyBlobHelpers.cs (1)
36span.CopyTo(target.AsSpan(length - span.Length));
System\Security\Cryptography\PemEncoding.cs (4)
236T.PostEBPrefix.CopyTo(destination); 237label.CopyTo(destination.Slice(T.PostEBPrefix.Length)); 238T.Ending.CopyTo(destination.Slice(T.PostEBPrefix.Length + label.Length)); 594str.CopyTo(dest.Slice(offset));
System\Security\Cryptography\RandomNumberGenerator.cs (2)
63new ReadOnlySpan<byte>(array, 0, data.Length).CopyTo(data); 89new ReadOnlySpan<byte>(array, 0, data.Length).CopyTo(data);
System\Security\Cryptography\Rfc2898DeriveBytes.cs (5)
116salt.CopyTo(_salt); 195bufferSpan.Slice(_startIndex, size).CopyTo(destination); 201bufferSpan.Slice(_startIndex, cb).CopyTo(destination); 215bufferSpan.Slice(0, _blockSize).CopyTo(destination.Slice(offset)); 220bufferSpan.Slice(0, remainder).CopyTo(destination.Slice(offset));
System\Security\Cryptography\RSA.cs (5)
108new ReadOnlySpan<byte>(result).CopyTo(destination); 123new ReadOnlySpan<byte>(result).CopyTo(destination); 321data.CopyTo(array); 332new ReadOnlySpan<byte>(result).CopyTo(destination); 347new ReadOnlySpan<byte>(result).CopyTo(destination);
System\Security\Cryptography\SymmetricPadding.cs (5)
53block.CopyTo(destination); 68block.CopyTo(destination); 85block.CopyTo(destination); 102block.CopyTo(destination); 123block.CopyTo(destination);
System\Security\Cryptography\UniversalCryptoDecryptor.cs (2)
55inputBuffer.Slice(inputBuffer.Length - _heldoverCipher.Length).CopyTo(_heldoverCipher); 99inputBuffer.CopyTo(ciphertext.Slice(_heldoverCipher.Length));
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (2)
1116serialNumber.CopyTo(newSerialNumber.AsSpan(1)); 1129serialNumber.Slice(leadingZeros).CopyTo(newSerialNumber);
System\Security\Cryptography\X509Certificates\X509CertificateLoader.Windows.cs (1)
254password.CopyTo(szPassword);
System.Security.Cryptography.Pkcs (15)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (7)
407passwordBytes.CopyTo(pwdTmpBytes); 699rc2Parameters.Iv.CopyTo(iv); 818password.CopyTo(tmpPassword); 819saltSpan.CopyTo(tmpSalt); 977key.CopyTo(tmpKey); 978iv.CopyTo(tmpIv); 984encryptedData.CopyTo(rentedEncryptedData);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
362_sealedData.Span.CopyTo(destination);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (2)
258bytes.CopyTo(destination); 263bytes.Slice(0, destination.Length).CopyTo(destination);
System\Security\Cryptography\Pkcs\CmsSignature.cs (2)
203val.CopyTo(ieeeSignature.Slice(fieldSize - val.Length, val.Length)); 215val.CopyTo(ieeeSignature.Slice(fieldSize + fieldSize - val.Length, val.Length));
System\Security\Cryptography\Pkcs\Rfc3161TimestampRequest.cs (1)
273nonceSpan.CopyTo(temp.AsSpan(1));
System\Security\Cryptography\Pkcs\SignerInfo.cs (2)
794additionalContent.Value.Span.CopyTo(rented); 795content.Span.CopyTo(rented.AsSpan(additionalContent.Value.Length));
System.Security.Principal.Windows (2)
System\Security\Principal\WindowsIdentity.cs (2)
149sourceName.CopyTo(new Span<byte>(sourceContext.SourceName, TOKEN_SOURCE.TOKEN_SOURCE_LENGTH)); 188sourceName.CopyTo(new Span<byte>((void*)sourceNameBuffer.DangerousGetHandle(), sourceName.Length));
System.ServiceModel.NetFramingBase (2)
System\ServiceModel\Channels\Connection.cs (1)
207buffer.CopyTo(memBuffer.Span);
System\ServiceModel\Channels\SingletonConnectionReader.cs (1)
546new ReadOnlySpan<byte>(localBuffer, 0, result).CopyTo(localDestination.Span);
System.ServiceProcess.ServiceController (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
217value.CopyTo(_chars.Slice(_pos));
System.Text.Encodings.Web (3)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
217value.CopyTo(_chars.Slice(_pos));
System\Text\Encodings\Web\TextEncoder.cs (2)
304utf8Source.Slice(0, idxOfFirstByteToEncode).CopyTo(utf8Destination); // memcpy data that doesn't need to be encoded 434source.Slice(0, idxOfFirstCharToEncode).CopyTo(destination); // memcpy data that doesn't need to be encoded
System.Text.Json (66)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
217value.CopyTo(_chars.Slice(_pos));
System\Text\Json\Document\JsonDocument.Parse.cs (2)
178utf8Json.CopyTo(owned); 658valueSpan.CopyTo(rentedSpan);
System\Text\Json\JsonHelpers.Escaping.cs (1)
90utf8Value.CopyTo(propertySection.AsSpan(1, length));
System\Text\Json\Reader\JsonReaderHelper.Unescaping.cs (1)
534remaining.Slice(0, nextUnescapedSegmentLength).CopyTo(destination.Slice(written));
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (4)
552span.Slice(0, amountToWrite).CopyTo(readSoFar); 562span.Slice(0, amountToWrite).CopyTo(readSoFar); 589span.Slice(0, amountToWrite).CopyTo(readSoFar.Slice(written)); 609span.Slice(0, amountToWrite).CopyTo(readSoFar.Slice(written));
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (1)
105valueSpan.CopyTo(utf8Destination);
System\Text\Json\ThrowHelper.Serialization.cs (1)
383str.Slice(0, MaxLength).CopyTo(builder);
System\Text\Json\Writer\JsonWriterHelper.cs (1)
320utf8Value.CopyTo(quotedValue.Slice(1));
System\Text\Json\Writer\JsonWriterHelper.Escaping.cs (2)
153value.Slice(0, indexOfFirstByteToEscape).CopyTo(destination); 277value.Slice(0, indexOfFirstByteToEscape).CopyTo(destination);
System\Text\Json\Writer\Utf8JsonWriter.cs (3)
142value.CopyTo(partialStringDataBytes); 170value.CopyTo(MemoryMarshal.Cast<byte, char>(partialStringDataBytes)); 198value.CopyTo(partialStringDataBytes);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Bytes.cs (2)
264escapedPropertyName.CopyTo(output.Slice(BytesPending)); 364escapedPropertyName.CopyTo(output.Slice(BytesPending));
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTime.cs (2)
267escapedPropertyName.CopyTo(output.Slice(BytesPending)); 364escapedPropertyName.CopyTo(output.Slice(BytesPending));
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTimeOffset.cs (2)
266escapedPropertyName.CopyTo(output.Slice(BytesPending)); 363escapedPropertyName.CopyTo(output.Slice(BytesPending));
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Decimal.cs (2)
263escapedPropertyName.CopyTo(output.Slice(BytesPending)); 354escapedPropertyName.CopyTo(output.Slice(BytesPending));
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Double.cs (2)
267escapedPropertyName.CopyTo(output.Slice(BytesPending)); 358escapedPropertyName.CopyTo(output.Slice(BytesPending));
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Float.cs (2)
267escapedPropertyName.CopyTo(output.Slice(BytesPending)); 358escapedPropertyName.CopyTo(output.Slice(BytesPending));
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Guid.cs (2)
267escapedPropertyName.CopyTo(output.Slice(BytesPending)); 366escapedPropertyName.CopyTo(output.Slice(BytesPending));
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Helpers.cs (2)
95escapedPropertyName.CopyTo(output.Slice(BytesPending)); 137escapedPropertyName.CopyTo(output.Slice(BytesPending));
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Literal.cs (8)
358value.CopyTo(output.Slice(BytesPending)); 383escapedPropertyName.CopyTo(output.Slice(BytesPending)); 389value.CopyTo(output.Slice(BytesPending)); 414escapedPropertyNameSection.CopyTo(output.Slice(BytesPending)); 417value.CopyTo(output.Slice(BytesPending)); 463value.CopyTo(output.Slice(BytesPending)); 502escapedPropertyName.CopyTo(output.Slice(BytesPending)); 509value.CopyTo(output.Slice(BytesPending));
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.SignedNumber.cs (2)
336escapedPropertyName.CopyTo(output.Slice(BytesPending)); 427escapedPropertyName.CopyTo(output.Slice(BytesPending));
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.String.cs (11)
338escapedPropertyName.CopyTo(output.Slice(BytesPending)); 366escapedPropertyNameSection.CopyTo(output.Slice(BytesPending)); 407escapedPropertyName.CopyTo(output.Slice(BytesPending)); 1411escapedPropertyName.CopyTo(output.Slice(BytesPending)); 1419escapedValue.CopyTo(output.Slice(BytesPending)); 1455escapedValue.CopyTo(output.Slice(BytesPending)); 1484escapedPropertyName.CopyTo(output.Slice(BytesPending)); 1583escapedPropertyName.CopyTo(output.Slice(BytesPending)); 1592escapedValue.CopyTo(output.Slice(BytesPending)); 1643escapedValue.CopyTo(output.Slice(BytesPending)); 1686escapedPropertyName.CopyTo(output.Slice(BytesPending));
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.UnsignedNumber.cs (2)
345escapedPropertyName.CopyTo(output.Slice(BytesPending)); 436escapedPropertyName.CopyTo(output.Slice(BytesPending));
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Comment.cs (2)
209utf8Value.CopyTo(output.Slice(BytesPending)); 244utf8Value.CopyTo(output.Slice(BytesPending));
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.FormattedNumber.cs (2)
63utf8Value.CopyTo(output.Slice(BytesPending)); 98utf8Value.CopyTo(output.Slice(BytesPending));
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Literal.cs (2)
82utf8Value.CopyTo(output.Slice(BytesPending)); 116utf8Value.CopyTo(output.Slice(BytesPending));
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Raw.cs (1)
275utf8Json.CopyTo(output.Slice(BytesPending));
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.String.cs (2)
285escapedValue.CopyTo(output.Slice(BytesPending)); 326escapedValue.CopyTo(output.Slice(BytesPending));
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.StringSegment.cs (1)
343escapedValue.CopyTo(output.Slice(BytesPending));
System.Text.Json.SourceGeneration (2)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (2)
88source.CopyTo(_span.Slice(_pos)); 102source.CopyTo(_span);
System.Text.RegularExpressions (8)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (2)
88source.CopyTo(_span.Slice(_pos)); 102source.CopyTo(_span);
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
217value.CopyTo(_chars.Slice(_pos));
System\Text\RegularExpressions\Regex.Replace.cs (1)
689segment.CopyTo(dest);
System\Text\RegularExpressions\RegexCharClass.cs (3)
453state.set.AsSpan(2).CopyTo(span.Slice(SetStartIndex)); 461state.set.AsSpan().CopyTo(span.Slice(SetStartIndex)); 465state.category.AsSpan().CopyTo(span.Slice(index));
System\Text\RegularExpressions\RegexReplacement.cs (1)
284state.input.AsSpan(offset, count).CopyTo(dest);
System.Text.RegularExpressions.Generator (8)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (2)
88source.CopyTo(_span.Slice(_pos)); 102source.CopyTo(_span);
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
138.CopyTo(_chars.Slice(index)); 190.CopyTo(_chars.Slice(pos)); 217value.CopyTo(_chars.Slice(_pos));
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (3)
453state.set.AsSpan(2).CopyTo(span.Slice(SetStartIndex)); 461state.set.AsSpan().CopyTo(span.Slice(SetStartIndex)); 465state.category.AsSpan().CopyTo(span.Slice(index));
System.Transactions.Local (11)
_generated\12\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionExport.cs (1)
144global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__rgbTransactionCookie_native, __rgbTransactionCookie_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(rgbTransactionCookie));
_generated\13\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionExportFactory.cs (1)
134global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__rgbWhereabouts_native, __rgbWhereabouts_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(rgbWhereabouts));
_generated\17\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionImport.cs (1)
91global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__rgbTransactionCookie_native, __rgbTransactionCookie_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(rgbTransactionCookie));
_generated\18\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionImportWhereabouts.cs (1)
119global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__rgbWhereabouts_native, __rgbWhereabouts_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(rgbWhereabouts));
_generated\22\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionReceiver.cs (3)
93global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__rgbToken_native, __rgbToken_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(rgbToken)); 183global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__rgbReturnToken_native, __rgbReturnToken_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(rgbReturnToken)); 218global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesSource(rgbReturnToken).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesDestination(__rgbReturnToken_native, __rgbReturnToken_native__numElements));
_generated\25\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionTransmitter.cs (2)
176global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__rgbToken_native, __rgbToken_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(rgbToken)); 225global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__rgbToken_native, __rgbToken_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(rgbToken));
_generated\5\System.Transactions.DtcProxyShim.DtcInterfaces.IPrepareInfo.cs (1)
115global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__pPrepInfo_native, __pPrepInfo_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(pPrepInfo));
_generated\7\System.Transactions.DtcProxyShim.DtcInterfaces.IResourceManager.cs (1)
161global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__pPrepInfo_native, __pPrepInfo_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(pPrepInfo));
System.Web.HttpUtility (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
217value.CopyTo(_chars.Slice(_pos));
System.Windows.Forms (2)
System\Windows\Forms\ActiveX\AxHost.VBFormat.cs (1)
59format.CopyTo(buffer);
System\Windows\Forms\ToolTip\ToolTipBuffer.cs (1)
31text.AsSpan().CopyTo(_buffer);
System.Windows.Forms.Primitives (10)
_generated\12\Windows.Win32.byte.InlineArrays.g.cs (2)
59 value.CopyTo(result.AsSpan()); 105 value.CopyTo(result.AsSpan());
_generated\19\Windows.Win32.char.InlineArrays.g.cs (5)
77 value.CopyTo(result.AsSpan()); 141 value.CopyTo(result.AsSpan()); 205 value.CopyTo(result.AsSpan()); 269 value.CopyTo(result.AsSpan()); 333 value.CopyTo(result.AsSpan());
_generated\197\Windows.Win32.int.InlineArrays.g.cs (1)
59 value.CopyTo(result.AsSpan());
_generated\565\Windows.Win32.uint.InlineArrays.g.cs (1)
59 value.CopyTo(result.AsSpan());
Windows\Win32\UI\Controls\LVITEMW.cs (1)
26text.CopyTo(targetSpan);