819 references to CopyTo
GenerateDocumentationAndConfigFiles (9)
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
375span.Slice(offset, segmentLength).CopyTo(buffer.AsSpan());
http2cat (7)
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\Shared\runtime\Http2\Hpack\HPackEncoder.cs (1)
432value.CopyTo(destination);
src\Shared\ServerInfrastructure\BufferWriter.cs (2)
95source.CopyTo(_span); 146source.Slice(0, writable).CopyTo(_span);
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
135tupleStr.AsSpan().CopyTo(buffer);
IIS.FunctionalTests (7)
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\Shared\runtime\Http2\Hpack\HPackEncoder.cs (1)
432value.CopyTo(destination);
src\Shared\ServerInfrastructure\BufferWriter.cs (2)
95source.CopyTo(_span); 146source.Slice(0, writable).CopyTo(_span);
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
135tupleStr.AsSpan().CopyTo(buffer);
IIS.LongTests (7)
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\Shared\runtime\Http2\Hpack\HPackEncoder.cs (1)
432value.CopyTo(destination);
src\Shared\ServerInfrastructure\BufferWriter.cs (2)
95source.CopyTo(_span); 146source.Slice(0, writable).CopyTo(_span);
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
135tupleStr.AsSpan().CopyTo(buffer);
IIS.NewHandler.FunctionalTests (7)
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\Shared\runtime\Http2\Hpack\HPackEncoder.cs (1)
432value.CopyTo(destination);
src\Shared\ServerInfrastructure\BufferWriter.cs (2)
95source.CopyTo(_span); 146source.Slice(0, writable).CopyTo(_span);
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
135tupleStr.AsSpan().CopyTo(buffer);
IIS.NewShim.FunctionalTests (7)
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\Shared\runtime\Http2\Hpack\HPackEncoder.cs (1)
432value.CopyTo(destination);
src\Shared\ServerInfrastructure\BufferWriter.cs (2)
95source.CopyTo(_span); 146source.Slice(0, writable).CopyTo(_span);
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
135tupleStr.AsSpan().CopyTo(buffer);
IIS.ShadowCopy.Tests (3)
src\Shared\ServerInfrastructure\BufferWriter.cs (2)
95source.CopyTo(_span); 146source.Slice(0, writable).CopyTo(_span);
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
135tupleStr.AsSpan().CopyTo(buffer);
IISExpress.FunctionalTests (7)
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\Shared\runtime\Http2\Hpack\HPackEncoder.cs (1)
432value.CopyTo(destination);
src\Shared\ServerInfrastructure\BufferWriter.cs (2)
95source.CopyTo(_span); 146source.Slice(0, writable).CopyTo(_span);
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
135tupleStr.AsSpan().CopyTo(buffer);
illink (1)
Metrics (9)
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
375span.Slice(offset, segmentLength).CopyTo(buffer.AsSpan());
Metrics.Legacy (9)
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
375span.Slice(offset, segmentLength).CopyTo(buffer.AsSpan());
Microsoft.AspNetCore.Components (3)
src\Components\Shared\src\ArrayBuilder.cs (1)
99source.CopyTo(_items.AsSpan(_itemsInUse));
src\Shared\UrlDecoder\UrlDecoder.cs (2)
28source.CopyTo(destination); 362source.CopyTo(destination);
Microsoft.AspNetCore.Components.Endpoints (2)
FormMapping\FormDataReader.cs (2)
237separator.CopyTo(_prefixBuffer.Span[_currentPrefixBuffer.Length..]); 241key.CopyTo(_prefixBuffer[startingPoint..].Span);
Microsoft.AspNetCore.Components.Forms (4)
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\Components\Shared\src\ArrayBuilder.cs (1)
99source.CopyTo(_items.AsSpan(_itemsInUse));
src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
236segment.Span.CopyTo(result.AsSpan(totalWritten)); 265segment.Span.CopyTo(span.Slice(totalWritten));
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\BufferWriter.cs (2)
164source.CopyTo(_span); 240source.Slice(copiedBytes, writable).CopyTo(_span);
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackWriter.cs (2)
747src.CopyTo(span); 859utf8stringBytes.CopyTo(span);
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\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.WebView (1)
src\Components\Shared\src\ArrayBuilder.cs (1)
99source.CopyTo(_items.AsSpan(_itemsInUse));
Microsoft.AspNetCore.DataProtection (3)
SP800_108\ManagedSP800_108_CTR_HMACSHA512.cs (3)
91label.CopyTo(prfInput.Slice(sizeof(uint))); 92contextHeader.CopyTo(prfInput.Slice(sizeof(uint) + label.Length + 1)); 93contextData.CopyTo(prfInput.Slice(sizeof(uint) + label.Length + 1 + contextHeader.Length));
Microsoft.AspNetCore.DataProtection.Abstractions (1)
src\Shared\WebEncoders\WebEncoders.cs (1)
173inputSpan.CopyTo(bufferSpan);
Microsoft.AspNetCore.Http.Abstractions (2)
src\Shared\UrlDecoder\UrlDecoder.cs (2)
28source.CopyTo(destination); 362source.CopyTo(destination);
Microsoft.AspNetCore.Http.Connections (3)
src\Shared\WebEncoders\WebEncoders.cs (1)
173inputSpan.CopyTo(bufferSpan);
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\Components\Endpoints\src\FormMapping\FormDataReader.cs (2)
237separator.CopyTo(_prefixBuffer.Span[_currentPrefixBuffer.Length..]); 241key.CopyTo(_prefixBuffer[startingPoint..].Span);
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\Shared\ValueStringBuilder\ValueStringBuilder.cs (3)
164s.AsSpan().CopyTo(_chars.Slice(index)); 211s.AsSpan().CopyTo(_chars.Slice(pos)); 254value.CopyTo(_chars.Slice(_pos));
Microsoft.AspNetCore.Identity.Test (6)
Passkeys\CredentialHelpers.cs (6)
19args.Aaguid.Span.CopyTo(result.AsSpan(offset, AaguidLength)); 25args.CredentialId.Span.CopyTo(result.AsSpan(offset)); 28args.CredentialPublicKey.Span.CopyTo(result.AsSpan(offset)); 53args.RpIdHash.Span.CopyTo(result.AsSpan(offset, RpIdHashLength)); 64attestedCredentialData.Span.CopyTo(result.AsSpan(offset)); 70extensions.Span.CopyTo(result.AsSpan(offset));
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
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\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.OutputCaching.Microbenchmarks (1)
EndToEndBenchmarks.cs (1)
99value.Slice(0, bytes).CopyTo(span);
Microsoft.AspNetCore.Server.HttpSys (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
135tupleStr.AsSpan().CopyTo(buffer);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (6)
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\Shared\runtime\Http2\Hpack\HPackEncoder.cs (1)
432value.CopyTo(destination);
src\Shared\ServerInfrastructure\BufferWriter.cs (2)
95source.CopyTo(_span); 146source.Slice(0, writable).CopyTo(_span);
Microsoft.AspNetCore.Server.IIS (3)
src\Shared\ServerInfrastructure\BufferWriter.cs (2)
95source.CopyTo(_span); 146source.Slice(0, writable).CopyTo(_span);
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)
323span.CopyTo(array);
Internal\Http3\QPackHeaderWriter.cs (1)
127statusBytes.CopyTo(buffer.Slice(3));
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\Shared\runtime\Http2\Hpack\HPackEncoder.cs (1)
432value.CopyTo(destination);
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\Shared\ServerInfrastructure\BufferWriter.cs (2)
95source.CopyTo(_span); 146source.Slice(0, writable).CopyTo(_span);
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
135tupleStr.AsSpan().CopyTo(buffer);
src\Shared\UrlDecoder\UrlDecoder.cs (2)
28source.CopyTo(destination); 362source.CopyTo(destination);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
135tupleStr.AsSpan().CopyTo(buffer);
Microsoft.AspNetCore.Shared.Tests (13)
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\Shared\runtime\Http2\Hpack\HPackEncoder.cs (1)
432value.CopyTo(destination);
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\Shared\ServerInfrastructure\BufferWriter.cs (2)
95source.CopyTo(_span); 146source.Slice(0, writable).CopyTo(_span);
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
135tupleStr.AsSpan().CopyTo(buffer);
src\Shared\UrlDecoder\UrlDecoder.cs (2)
28source.CopyTo(destination); 362source.CopyTo(destination);
src\Shared\WebEncoders\WebEncoders.cs (1)
173inputSpan.CopyTo(bufferSpan);
Microsoft.AspNetCore.SignalR.Client.Tests (2)
src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
236segment.Span.CopyTo(result.AsSpan(totalWritten)); 265segment.Span.CopyTo(span.Slice(totalWritten));
Microsoft.AspNetCore.SignalR.Common (2)
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\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\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\SignalR\common\Shared\MemoryBufferWriter.cs (2)
236segment.Span.CopyTo(result.AsSpan(totalWritten)); 265segment.Span.CopyTo(span.Slice(totalWritten));
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
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\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\Shared\UrlDecoder\UrlDecoder.cs (2)
28source.CopyTo(destination); 362source.CopyTo(destination);
src\Shared\WebEncoders\WebEncoders.cs (1)
173inputSpan.CopyTo(bufferSpan);
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\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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
375span.Slice(offset, segmentLength).CopyTo(buffer.AsSpan());
Microsoft.CodeAnalysis.AnalyzerUtilities (9)
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
375span.Slice(offset, segmentLength).CopyTo(buffer.AsSpan());
Microsoft.CodeAnalysis.BannedApiAnalyzers (9)
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
375span.Slice(offset, segmentLength).CopyTo(buffer.AsSpan());
Microsoft.CodeAnalysis.CodeStyle (9)
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
375span.Slice(offset, segmentLength).CopyTo(buffer.AsSpan());
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (9)
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
375span.Slice(offset, segmentLength).CopyTo(buffer.AsSpan());
Microsoft.CodeAnalysis.PublicApiAnalyzers (9)
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
375span.Slice(offset, segmentLength).CopyTo(buffer.AsSpan());
Microsoft.CodeAnalysis.ResxSourceGenerator (9)
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
375span.Slice(offset, segmentLength).CopyTo(buffer.AsSpan());
Microsoft.CodeAnalysis.Workspaces (9)
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\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.Extensions.AI (2)
ChatCompletion\DistributedCachingChatClient.cs (1)
153additionalValues.CopyTo(arr.AsSpan(FixedValuesCount));
Embeddings\DistributedCachingEmbeddingGenerator.cs (1)
122values.CopyTo(arr.AsSpan(FixedValuesCount));
Microsoft.Extensions.AI.Abstractions (1)
Functions\AIFunctionFactory.cs (1)
1173buffer.Span.CopyTo(_buffer.AsSpan(_position));
Microsoft.Extensions.AI.OpenAI (3)
src\Shared\ServerSentEvents\Helpers.cs (2)
54value.CopyTo(buffer); 99buffer.Span.CopyTo(sharedBuffer);
src\Shared\ServerSentEvents\SseParser_1.cs (1)
419fieldValue.CopyTo(_dataBuffer.AsSpan(_dataLength));
Microsoft.Extensions.Compliance.Abstractions.Tests (1)
Redaction\RedactorTest.cs (1)
335source.CopyTo(destination);
Microsoft.Extensions.Compliance.Redaction (1)
HmacRedactor.cs (1)
107_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.Hosting.Systemd (1)
SystemdNotifier.cs (1)
76state.AsSpan(1).CopyTo(buffer.Slice(1));
Microsoft.Extensions.Logging.Abstractions (1)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
246value.CopyTo(_chars.Slice(_pos));
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)
36data.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\Components\Shared\src\ArrayBuilder.cs (1)
99source.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)
965sSpan.CopyTo(buffer); 1018specialTokenSpan.CopyTo(buffer); 1215ContinuingSubwordPrefix.AsSpan().CopyTo(buffer); 1216s.CopyTo(buffer.Slice(ContinuingSubwordPrefix.Length)); 1235s.CopyTo(buffer); 1236EndOfWordSuffix.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)
606specialToken.AsSpan().CopyTo(buffer); 689tokenSpan.CopyTo(buffer); 716tokenSpan.CopyTo(buffer); 738tokenSpan.CopyTo(buffer);
Model\SentencePieceUnigramModel.cs (2)
155text.CopyTo(normalizedString.AsSpan(normalizedString.Length - normalizedStringCountFromEnd - text.Length)); 189text.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)
215token.AsSpan().CopyTo(span.Slice(bufferIndex));
PreTokenizer\CompositePreTokenizer.cs (1)
150text.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.Http.Headers (3)
ContentDispositionHeaderValue.cs (2)
555MimePrefix.CopyTo(buffer); 561MimeSuffix.CopyTo(bufferContent.Slice(base64ContentLength));
SetCookieHeaderValue.cs (1)
325other.CopyTo(span);
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\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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
375span.Slice(offset, segmentLength).CopyTo(buffer.AsSpan());
Shared (2)
ServerSentEvents\Helpers.cs (1)
54value.CopyTo(buffer);
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)); 1019new 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.Data.Common (2)
System\Data\SQLTypes\SQLBytes.cs (2)
329span.CopyTo(buffer); 423buffer.CopyTo(span);
System.Diagnostics.DiagnosticSource (6)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
246value.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); 185((ReadOnlySpan<KeyValuePair<string, object?>>)_tags).CopyTo(_overflowTags);
System.Drawing.Common (11)
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)
361contents.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); 340source.Slice(o, l).CopyTo(target); 365source.Slice(o, l).CopyTo(destination);
System\Formats\Cbor\Writer\CborWriter.Array.cs (1)
84elementEncoding.CopyTo(target);
System\Formats\Cbor\Writer\CborWriter.cs (4)
147encodedValue.CopyTo(_buffer.AsSpan(_offset)); 197encoding.CopyTo(destination); 216encoding.CopyTo(destination); 253new ReadOnlySpan<byte>(_buffer, 0, _offset).CopyTo(newBuffer);
System\Formats\Cbor\Writer\CborWriter.Map.cs (1)
168keyValuePairEncoding.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\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
246value.CopyTo(_chars.Slice(_pos));
System\Formats\Tar\TarHeader.Write.cs (2)
1064bytesToWrite.CopyTo(destination); 1082bytesToWrite.CopyTo(destination.Slice(copyPos));
System.IO.FileSystem.Watcher (1)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
246value.CopyTo(_chars.Slice(_pos));
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)
168DefaultSecret.CopyTo(new Span<byte>(secret, SecretLengthBytes)); 251source.CopyTo(new Span<byte>(buffer + state.BufferedCount, source.Length)); 266source.Slice(0, loadSize).CopyTo(new Span<byte>(buffer + state.BufferedCount, loadSize)); 305source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes)); 318source.Slice(sourceIndex - StripeLengthBytes, StripeLengthBytes).CopyTo(new Span<byte>(buffer + InternalBufferLengthBytes - StripeLengthBytes, StripeLengthBytes)); 326source.Slice(sourceIndex).CopyTo(remaining); 381new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes)); 382new 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)
1105source.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)
151sourceSpan.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.Memory.Data (2)
src\libraries\Common\src\System\IO\ReadOnlyMemoryStream.cs (2)
114_content.Span.Slice(_position).CopyTo(buffer); 120_content.Span.Slice(_position, buffer.Length).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\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
246value.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.ServerSentEvents (2)
System\Net\ServerSentEvents\Helpers.cs (1)
37value.CopyTo(buffer);
System\Net\ServerSentEvents\SseParser_1.cs (1)
401fieldValue.CopyTo(_dataBuffer.AsSpan(_dataLength));
System.Net.WebClient (3)
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.Client (1)
System\Net\WebSockets\WebSocketHandle.Managed.cs (1)
499wsServerGuidBytes.CopyTo(bytes.Slice(encodedSecKeyLength));
System.Numerics.Tensors (43)
System\Numerics\Tensors\netcore\Tensor.cs (35)
160tensors[0].Lengths.CopyTo(lengths); 235tensors[0].Lengths.CopyTo(lengths); 1643span.CopyTo(ospan); 1645span.Slice(0, ospan.Length).CopyTo(ospan); 1683span.CopyTo(ospan); 1685span.Slice(0, ospan.Length).CopyTo(ospan); 1924tensor.Lengths[..dimension].CopyTo(lengths); 1925tensor.Lengths[(dimension + 1)..].CopyTo(lengths[dimension..]); 1927tensor.Strides[..dimension].CopyTo(strides); 1928tensor.Strides[(dimension + 1)..].CopyTo(strides[dimension..]); 1991tensor.Lengths[..dimension].CopyTo(lengths); 1992tensor.Lengths[(dimension + 1)..].CopyTo(lengths[dimension..]); 1994tensor.Strides[..dimension].CopyTo(strides); 1995tensor.Strides[(dimension + 1)..].CopyTo(strides[dimension..]); 2058tensor.Lengths[..dimension].CopyTo(lengths); 2059tensor.Lengths[(dimension + 1)..].CopyTo(lengths[dimension..]); 2061tensor.Strides[..dimension].CopyTo(strides); 2062tensor.Strides[(dimension + 1)..].CopyTo(strides[dimension..]); 2262tensor.Lengths.CopyTo(lengths); 2263tensor.Strides.CopyTo(strides); 2337tensor.Lengths.Slice(0, dimension).CopyTo(newLengths); 2338tensor.Lengths.Slice(dimension).CopyTo(newLengths.Slice(dimension + 1)); 2344tensor.Strides.CopyTo(newStrides); 2349tensor.Strides.Slice(0, dimension).CopyTo(newStrides); 2350tensor.Strides.Slice(dimension).CopyTo(newStrides.Slice(dimension + 1)); 2374tensor.Lengths.Slice(0, dimension).CopyTo(newLengths); 2375tensor.Lengths.Slice(dimension).CopyTo(newLengths.Slice(dimension + 1)); 2381tensor.Strides.CopyTo(newStrides); 2386tensor.Strides.Slice(0, dimension).CopyTo(newStrides); 2387tensor.Strides.Slice(dimension).CopyTo(newStrides.Slice(dimension + 1)); 2411tensor.Lengths.Slice(0, dimension).CopyTo(newLengths); 2412tensor.Lengths.Slice(dimension).CopyTo(newLengths.Slice(dimension + 1)); 2418tensor.Strides.CopyTo(newStrides); 2423tensor.Strides.Slice(0, dimension).CopyTo(newStrides); 2424tensor.Strides.Slice(dimension).CopyTo(newStrides.Slice(dimension + 1));
System\Numerics\Tensors\netcore\TensorOperation.cs (1)
402source.CopyTo(destination);
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertHelpers.cs (1)
28source.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)
103lengths.CopyTo(destinationLengths); 184strides.CopyTo(destinationStrides); 249strides.CopyTo(destinationStrides); 310lengths.CopyTo(destinationLengths); 311strides.CopyTo(destinationStrides);
System.Private.CoreLib (98)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
246value.CopyTo(_chars.Slice(_pos));
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\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (3)
94MemoryMarshal.AsBytes(array).CopyTo(_array); 248MemoryMarshal.AsBytes(values).CopyTo(_array); 709source.CopyTo(byteArray.AsSpan(index));
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\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.cs (2)
88source.CopyTo(_span.Slice(_pos)); 102source.CopyTo(_span);
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (1)
92name.AsSpan(collationIndex, length).CopyTo(buffer.Slice(bufferIndex));
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (2)
5873Value.Slice(0, i).CopyTo(result); 5900Value.Slice(i + 1).CopyTo(result.Slice(1));
src\libraries\System.Private.CoreLib\src\System\Globalization\InvariantModeCasing.cs (2)
59src.Slice(0, i).CopyTo(destination); 105src.Slice(0, i).CopyTo(destination);
src\libraries\System.Private.CoreLib\src\System\Globalization\TextInfo.cs (3)
331source.AsSpan(0, (int)currIdx).CopyTo(resultSpan); 350source.AsSpan(0, (int)currIdx).CopyTo(resultSpan); 381s.AsSpan(0, i).CopyTo(new Span<char>(pResult, result.Length));
src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanFormat.cs (1)
281decimalSeparator.CopyTo(new Span<TChar>(p, decimalSeparator.Length));
src\libraries\System.Private.CoreLib\src\System\Guid.cs (3)
904charSpan.Slice(0, i).CopyTo(chArr); 955srcUtf8Span.Slice(0, i).CopyTo(destUtf8Span); 969srcUtf8Span.Slice(i, bytesConsumed).CopyTo(destUtf8Span.Slice(newLength));
src\libraries\System.Private.CoreLib\src\System\IO\BinaryWriter.cs (1)
395buffer.CopyTo(array);
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)); 1119buffer.Span.CopyTo(new Span<byte>(_buffer, _writePos, buffer.Length));
src\libraries\System.Private.CoreLib\src\System\IO\File.cs (1)
1531preamble.CopyTo(bytes);
src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (1)
658buffer.CopyTo(new Span<byte>(_buffer, _position, buffer.Length));
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\libraries\System.Private.CoreLib\src\System\IO\Path.Unix.cs (1)
108fileTemplate.CopyTo(path.Slice(pos));
src\libraries\System.Private.CoreLib\src\System\IO\Strategies\BufferedFileStreamStrategy.cs (8)
211new ReadOnlySpan<byte>(_buffer, _readPos, n).CopyTo(destination); 501source.CopyTo(_buffer!.AsSpan(_writePos)); 507source.Slice(0, numBytes).CopyTo(_buffer!.AsSpan(_writePos)); 548source.CopyTo(_buffer.AsSpan(_writePos)); 638buffer.Span.CopyTo(_buffer.AsSpan(_writePos)); 702source.Span.CopyTo(_buffer.AsSpan(_writePos)); 708source.Span.Slice(0, spaceLeft).CopyTo(_buffer.AsSpan(_writePos)); 732source.Span.CopyTo(_buffer.AsSpan(_writePos));
src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (4)
323new ReadOnlySpan<byte>(localBuffer, 0, result).CopyTo(localDestination.Span); 738buffer.Span.CopyTo(sharedBuffer); 791new ReadOnlySpan<byte>(sharedBuffer, 0, numRead).CopyTo(buffer); 917buffer.CopyTo(sharedBuffer);
src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (1)
464new ReadOnlySpan<byte>(byteBuffer, n, _byteLen - n).CopyTo(byteBuffer);
src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (1)
792source.Span.Slice(copied, n).CopyTo(new Span<char>(_charBuffer, _charPos, n));
src\libraries\System.Private.CoreLib\src\System\IO\StringReader.cs (1)
138s.AsSpan(_pos, n).CopyTo(buffer);
src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.cs (2)
166buffer.CopyTo(new Span<char>(array)); 370buffer.CopyTo(new Span<char>(array));
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (5)
3924new ReadOnlySpan<T>(source).CopyTo(destination); 4785source.CopyTo(destination); 4835source.CopyTo(destination); 6279value.CopyTo(_destination.Slice(_pos)); 6288value.CopyTo(_destination.Slice(_pos));
src\libraries\System.Private.CoreLib\src\System\ReadOnlyMemory.cs (1)
284public void CopyTo(Memory<T> destination) => Span.CopyTo(destination.Span);
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\libraries\System.Private.CoreLib\src\System\SearchValues\SearchValues.cs (1)
141values.CopyTo(copy);
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\AsciiStringSearchValuesTeddyBase.cs (2)
124ReadOnlySpan<object?>.CastUp(values).CopyTo(_buckets); 140((ReadOnlySpan<object?>)buckets).CopyTo(_buckets);
src\libraries\System.Private.CoreLib\src\System\Security\SecureString.cs (1)
44value.CopyTo(span);
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (17)
298str0.CopyTo(resultSpan); 299str1.CopyTo(resultSpan.Slice(str0.Length)); 315str0.CopyTo(resultSpan); 318str1.CopyTo(resultSpan); 321str2.CopyTo(resultSpan); 337str0.CopyTo(resultSpan); 340str1.CopyTo(resultSpan); 343str2.CopyTo(resultSpan); 346str3.CopyTo(resultSpan); 362str0.CopyTo(resultSpan); 365str1.CopyTo(resultSpan); 368str2.CopyTo(resultSpan); 371str3.CopyTo(resultSpan); 374str4.CopyTo(resultSpan); 1109separator.CopyTo(new Span<char>(ref dest, separator.Length)); 1433this.AsSpan(thisIdx, count).CopyTo(dstSpan.Slice(dstIdx)); 1445this.AsSpan(thisIdx).CopyTo(dstSpan.Slice(dstIdx));
src\libraries\System.Private.CoreLib\src\System\Text\DecoderNLS.cs (1)
210bytes.CopyTo(MemoryMarshal.AsBytes(new Span<int>(ref _leftoverBytes)));
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\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (8)
140value.AsSpan(startIndex, length).CopyTo(m_ChunkChars); 921new ReadOnlySpan<char>(chunk.m_ChunkChars, chunkStartIndex, chunkCount).CopyTo(destination.Slice(curDestIndex)); 2314new ReadOnlySpan<char>(ref value, firstLength).CopyTo(m_ChunkChars.AsSpan(m_ChunkLength)); 2324new ReadOnlySpan<char>(ref Unsafe.Add(ref value, firstLength), restLength).CopyTo(m_ChunkChars); 2477new ReadOnlySpan<char>(ref value, lengthToCopy).CopyTo(chunk.m_ChunkChars.AsSpan(indexInChunk)); 2677new ReadOnlySpan<char>(chunk.m_ChunkChars, 0, copyCount1).CopyTo(newChunk.m_ChunkChars); 2683new ReadOnlySpan<char>(chunk.m_ChunkChars, copyCount1, copyCount2).CopyTo(chunk.m_ChunkChars); 2794new ReadOnlySpan<char>(endChunk.m_ChunkChars, endIndexInChunk, copyCount).CopyTo(endChunk.m_ChunkChars.AsSpan(copyTargetIndexInChunk));
src\System\StubHelpers.cs (1)
454managed.Slice(0, numChars).CopyTo(native);
System.Private.CoreLib.Generators (3)
EventSourceGenerator.Parser.cs (1)
112namespaceBytes.CopyTo(combinedBytes);
src\libraries\System.Private.CoreLib\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 (6)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
246value.CopyTo(_chars.Slice(_pos));
System\UriExt.cs (2)
670charsToUnescape.Slice(0, indexOfFirstToUnescape).CopyTo(destination); 674vsb.AsSpan().CopyTo(destination.Slice(indexOfFirstToUnescape));
System\UriHelper.cs (3)
147charsToEscape.CopyTo(destination); 175charsToEscape.Slice(0, indexOfFirstToEscape).CopyTo(destination); 179vsb.AsSpan().CopyTo(destination.Slice(indexOfFirstToEscape));
System.Private.Windows.Core (4)
System\Private\Windows\Ole\Composition.ManagedToNativeAdapter.cs (1)
396value.AsSpan().CopyTo(span);
System\SpanHelpers.cs (1)
22source.CopyTo(destination);
System\SpanWriter.cs (1)
52values.CopyTo(_unwritten);
System\Text\ValueStringBuilder.cs (1)
301value.CopyTo(_chars[_pos..]);
System.Private.Xml (3)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
246value.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\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
246value.CopyTo(_chars.Slice(_pos));
System\Reflection\Metadata\BlobBuilder.cs (2)
676buffer.Slice(0, bytesToCurrent).CopyTo(_buffer.AsSpan(Length)); 685remaining.CopyTo(_buffer);
System\Reflection\Metadata\BlobWriter.cs (1)
153buffer.CopyTo(_buffer.AsSpan(start));
System.Runtime.Numerics (26)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
246value.CopyTo(_chars.Slice(_pos));
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.cs (2)
88source.CopyTo(_span.Slice(_pos)); 102source.CopyTo(_span);
System\Number.BigInteger.cs (2)
1062LeadingPowers1E9.CopyTo(pow1E9.Slice(0, LeadingPowers1E9.Length)); 1147first.CopyTo(powersOfTen);
System\Numerics\BigInteger.cs (7)
378value.Slice(unalignedBytes).CopyTo(uintBytes); 387value.Slice(0, wholeUInt32Count * 4).CopyTo(MemoryMarshal.AsBytes<uint>(val.AsSpan())); 1461srcBytes.CopyTo(destBytes); 1466srcBytes.CopyTo(destination); 3312bits.CopyTo(xd); 3467bits.CopyTo(xd); 5326bits.CopyTo(xd);
System\Numerics\BigIntegerCalculator.AddSub.cs (1)
16source.Slice(start).CopyTo(dest.Slice(start));
System\Numerics\BigIntegerCalculator.DivRem.cs (8)
80left.CopyTo(remainder); 108left.CopyTo(leftCopy); 133left.CopyTo(remainder); 410src.CopyTo(dst); 535left.CopyTo(remainder); 570left.CopyTo(r1); 659b2.CopyTo(d.Slice(n)); 664left3.CopyTo(remainder.Slice(0, n));
System\Numerics\BigIntegerCalculator.GcdInv.cs (2)
64left.CopyTo(result); 70right.CopyTo(rightCopy);
System\Numerics\BigIntegerCalculator.PowMod.cs (3)
35value.CopyTo(valueCopy); 234value.CopyTo(valueCopy); 283value.CopyTo(valueCopy);
System.Security.Cryptography.Pkcs (14)
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (6)
379passwordBytes.CopyTo(pwdTmpBytes); 661rc2Parameters.Iv.Span.CopyTo(iv); 777password.CopyTo(tmpPassword); 935key.CopyTo(tmpKey); 936iv.CopyTo(tmpIv); 942encryptedData.CopyTo(rentedEncryptedData);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
362_sealedData.Span.CopyTo(destination);
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)
201val.CopyTo(ieeeSignature.Slice(fieldSize - val.Length, val.Length)); 213val.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.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.Text.Encodings.Web (3)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
246value.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 (65)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
246value.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)
622remaining.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)
361str.Slice(0, MaxLength).CopyTo(builder);
System\Text\Json\Writer\JsonWriterHelper.Escaping.cs (2)
114value.Slice(0, indexOfFirstByteToEscape).CopyTo(destination); 232value.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)
283escapedValue.CopyTo(output.Slice(BytesPending)); 324escapedValue.CopyTo(output.Slice(BytesPending));
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.StringSegment.cs (1)
343escapedValue.CopyTo(output.Slice(BytesPending));
System.Text.Json.SourceGeneration (2)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.cs (2)
88source.CopyTo(_span.Slice(_pos)); 102source.CopyTo(_span);
System.Text.RegularExpressions (8)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
246value.CopyTo(_chars.Slice(_pos));
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.cs (2)
88source.CopyTo(_span.Slice(_pos)); 102source.CopyTo(_span);
System\Text\RegularExpressions\Regex.Replace.cs (1)
234segment.CopyTo(dest);
System\Text\RegularExpressions\RegexCharClass.cs (3)
580state.set.AsSpan(2).CopyTo(span.Slice(SetStartIndex)); 588state.set.AsSpan().CopyTo(span.Slice(SetStartIndex)); 592state.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\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
167.CopyTo(_chars.Slice(index)); 219.CopyTo(_chars.Slice(pos)); 246value.CopyTo(_chars.Slice(_pos));
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.cs (2)
88source.CopyTo(_span.Slice(_pos)); 102source.CopyTo(_span);
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (3)
580state.set.AsSpan(2).CopyTo(span.Slice(SetStartIndex)); 588state.set.AsSpan().CopyTo(span.Slice(SetStartIndex)); 592state.category.AsSpan().CopyTo(span.Slice(index));
System.Web.HttpUtility (1)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
246value.CopyTo(_chars.Slice(_pos));
System.Windows.Forms (4)
System\Windows\Forms\ActiveX\AxHost.VBFormat.cs (1)
59format.CopyTo(buffer);
System\Windows\Forms\Dialogs\CommonDialogs\ColorDialog.cs (2)
77MemoryMarshal.Cast<COLORREF, int>(_customColors).CopyTo(result); 87MemoryMarshal.Cast<int, COLORREF>(value)[..Math.Min(customColors.Length, value.Length)].CopyTo(customColors);
System\Windows\Forms\ToolTip\ToolTipBuffer.cs (1)
31text.AsSpan().CopyTo(_buffer);
System.Windows.Forms.Primitives (1)
Windows\Win32\UI\Controls\LVITEMW.cs (1)
26text.CopyTo(targetSpan);
System.Windows.Forms.Tests (1)
SpanHelpersTests.cs (1)
41source.AsSpan().CopyTo(copy);
System.Windows.Forms.UI.IntegrationTests (2)
Infra\ScreenRecordService.cs (2)
542bytes.CopyTo(buffer); 550current.CopyTo(buffer);
Test.Utilities (9)
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
375span.Slice(offset, segmentLength).CopyTo(buffer.AsSpan());
Text.Analyzers (9)
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (1)
375span.Slice(offset, segmentLength).CopyTo(buffer.AsSpan());