243 references to CopyTo
Microsoft.AspNetCore.Components (1)
ParameterView.cs (1)
126_frames.AsSpan(1, numEntries).CopyTo(cloneBuffer.AsSpan(1));
Microsoft.AspNetCore.Components.Forms (1)
src\Components\Shared\src\ExpressionFormatting\ReverseStringBuilder.cs (1)
64_currentBuffer.CopyTo(newBuffer.AsSpan()[_nextEndIndex..]);
Microsoft.AspNetCore.Components.Server (4)
src\Shared\PooledArrayBufferWriter.cs (1)
169previousBuffer.CopyTo(_rentedBuffer);
src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
242_currentSegment.AsSpan(0, _position).CopyTo(result.AsSpan(totalWritten)); 271_currentSegment.AsSpan(0, _position).CopyTo(span.Slice(totalWritten));
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\BufferWriter.cs (1)
255_segment.AsSpan(0, _buffered).CopyTo(realSpan);
Microsoft.AspNetCore.Components.Web (1)
src\Components\Shared\src\ExpressionFormatting\ReverseStringBuilder.cs (1)
64_currentBuffer.CopyTo(newBuffer.AsSpan()[_nextEndIndex..]);
Microsoft.AspNetCore.Http.Abstractions (1)
src\Shared\ValueStringBuilder\ValueListBuilder.cs (1)
92_span.CopyTo(array);
Microsoft.AspNetCore.Http.Connections (2)
src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
242_currentSegment.AsSpan(0, _position).CopyTo(result.AsSpan(totalWritten)); 271_currentSegment.AsSpan(0, _position).CopyTo(span.Slice(totalWritten));
Microsoft.AspNetCore.Http.Extensions (4)
src\Shared\ValueStringBuilder\ValueListBuilder.cs (1)
92_span.CopyTo(array);
src\Shared\ValueStringBuilder\ValueStringBuilder.cs (3)
143_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 163_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 295_chars.Slice(0, _pos).CopyTo(poolArray);
Microsoft.AspNetCore.HttpLogging (4)
src\Shared\ValueStringBuilder\ValueListBuilder.cs (1)
92_span.CopyTo(array);
src\Shared\ValueStringBuilder\ValueStringBuilder.cs (3)
143_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 163_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 295_chars.Slice(0, _pos).CopyTo(poolArray);
Microsoft.AspNetCore.Identity.FunctionalTests (1)
src\Identity\Extensions.Core\src\Rfc6238AuthenticationService.cs (1)
73input.CopyTo(combined);
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
src\Shared\PooledArrayBufferWriter.cs (1)
169previousBuffer.CopyTo(_rentedBuffer);
Microsoft.AspNetCore.OpenApi (2)
src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
242_currentSegment.AsSpan(0, _position).CopyTo(result.AsSpan(totalWritten)); 271_currentSegment.AsSpan(0, _position).CopyTo(span.Slice(totalWritten));
Microsoft.AspNetCore.OutputCaching (1)
RecyclableArrayBufferWriter.cs (1)
120oldArray.AsSpan(0, _index).CopyTo(_buffer);
Microsoft.AspNetCore.Shared.Tests (1)
UrlDecoderTests.cs (1)
48input.AsSpan().CopyTo(destination);
Microsoft.AspNetCore.SignalR.Client.Tests (2)
src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
242_currentSegment.AsSpan(0, _position).CopyTo(result.AsSpan(totalWritten)); 271_currentSegment.AsSpan(0, _position).CopyTo(span.Slice(totalWritten));
Microsoft.AspNetCore.SignalR.Common (2)
src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
242_currentSegment.AsSpan(0, _position).CopyTo(result.AsSpan(totalWritten)); 271_currentSegment.AsSpan(0, _position).CopyTo(span.Slice(totalWritten));
Microsoft.AspNetCore.SignalR.Common.Tests (1)
Internal\Protocol\MemoryBufferWriterTests.cs (1)
420data.AsSpan(0, MinimumSegmentSize / 2).CopyTo(expectedOutput.AsSpan(0, MinimumSegmentSize / 2));
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (2)
src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
242_currentSegment.AsSpan(0, _position).CopyTo(result.AsSpan(totalWritten)); 271_currentSegment.AsSpan(0, _position).CopyTo(span.Slice(totalWritten));
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (2)
src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
242_currentSegment.AsSpan(0, _position).CopyTo(result.AsSpan(totalWritten)); 271_currentSegment.AsSpan(0, _position).CopyTo(span.Slice(totalWritten));
Microsoft.AspNetCore.SignalR.Specification.Tests (2)
src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
242_currentSegment.AsSpan(0, _position).CopyTo(result.AsSpan(totalWritten)); 271_currentSegment.AsSpan(0, _position).CopyTo(span.Slice(totalWritten));
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
242_currentSegment.AsSpan(0, _position).CopyTo(result.AsSpan(totalWritten)); 271_currentSegment.AsSpan(0, _position).CopyTo(span.Slice(totalWritten));
Microsoft.AspNetCore.WebSockets (4)
src\Shared\ValueStringBuilder\ValueListBuilder.cs (1)
92_span.CopyTo(array);
src\Shared\ValueStringBuilder\ValueStringBuilder.cs (3)
143_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 163_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 295_chars.Slice(0, _pos).CopyTo(poolArray);
Microsoft.Extensions.Caching.Hybrid (1)
Internal\RecyclableArrayBufferWriter.cs (1)
189oldArray.AsSpan(0, _index).CopyTo(_buffer);
Microsoft.Extensions.Caching.MicroBenchmarks (1)
src\Caching\Hybrid\src\Internal\RecyclableArrayBufferWriter.cs (1)
189oldArray.AsSpan(0, _index).CopyTo(_buffer);
Microsoft.Extensions.DependencyInjection.Abstractions (1)
ActivatorUtilities.cs (1)
139ctorArgs.CopyTo(bestCtorArgs);
Microsoft.Extensions.Identity.Core (1)
Rfc6238AuthenticationService.cs (1)
73input.CopyTo(combined);
Microsoft.Extensions.Logging.Abstractions (3)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 312_chars.Slice(0, _pos).CopyTo(poolArray);
Microsoft.Extensions.Logging.Console (1)
src\libraries\Common\src\System\Text\Json\PooledByteBufferWriter.cs (1)
212oldBufferAsSpan.CopyTo(_rentedBuffer);
Microsoft.Extensions.Logging.Generators (2)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.cs (2)
98_span.Slice(0, _pos).CopyTo(_span.Slice(source.Length)); 194_span.CopyTo(array);
System.Console (5)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 312_chars.Slice(0, _pos).CopyTo(poolArray);
System\ConsolePal.Unix.cs (1)
586dst.CopyTo(tmpReadBytes);
System\IO\StdInReader.cs (1)
84chars.CopyTo(_unprocessedBufferToBeRead.AsSpan(_endIndex));
System.Data.Common (1)
System\Data\SQLTypes\SQLBytes.cs (1)
329span.CopyTo(buffer);
System.Diagnostics.DiagnosticSource (4)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 312_chars.Slice(0, _pos).CopyTo(poolArray);
System\Diagnostics\Metrics\TagList.cs (1)
234_overflowTags.AsSpan(0, _tagsCount).CopyTo(tags);
System.Diagnostics.Process (4)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 312_chars.Slice(0, _pos).CopyTo(poolArray);
System\Diagnostics\Process.Linux.cs (1)
282buffer.CopyTo(tmp);
System.Formats.Asn1 (2)
System\Formats\Asn1\AsnDecoder.Oid.cs (1)
166accumValueBytes.Slice(0, SemanticByteCount).CopyTo(writeSpan);
System\Formats\Asn1\AsnWriter.cs (1)
147_buffer.AsSpan(0, _offset).CopyTo(destination);
System.Formats.Cbor (3)
System\Formats\Cbor\Writer\CborWriter.Map.cs (1)
174tmpSpan.CopyTo(source.Slice(_frameOffset, totalMapPayloadEncodingLength));
System\Formats\Cbor\Writer\CborWriter.String.cs (2)
221buffer.Slice(offset, length).CopyTo(s); 229tempSpan.CopyTo(buffer.Slice(_offset, definiteLength));
System.Formats.Tar (3)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 312_chars.Slice(0, _pos).CopyTo(poolArray);
System.IO.Compression (2)
System\IO\Compression\DeflateManaged\OutputWindow.cs (2)
143_window.AsSpan(WindowSize - tailLen, tailLen).CopyTo(output); 146_window.AsSpan(copy_end - output.Length, output.Length).CopyTo(output);
System.IO.FileSystem.Watcher (7)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 312_chars.Slice(0, _pos).CopyTo(poolArray);
System\IO\FileSystemWatcher.cs (4)
762items.AsSpan(0, index).CopyTo(newItems); 763items.AsSpan(index).CopyTo(newItems.AsSpan(index + 1)); 778items.AsSpan(0, index).CopyTo(newItems); 779items.AsSpan(index + 1).CopyTo(newItems.AsSpan(index));
System.IO.MemoryMappedFiles (1)
System\IO\MemoryMappedFiles\MemoryMappedFile.Unix.cs (1)
265guid.Slice(0, MaxNameLength - NamePrefix.Length).CopyTo(span.Slice(NamePrefix.Length));
System.Linq (1)
System\Linq\SegmentedArrayBuilder.cs (1)
306_currentSegment.Slice(0, _countInCurrentSegment).CopyTo(destination);
System.Memory (2)
System\Text\EncodingExtensions.cs (2)
204array.AsSpan(0, length).CopyTo(remainingBytes); 390array.AsSpan(0, length).CopyTo(span);
System.Net.Http (8)
src\libraries\Common\src\System\Net\MultiArrayBuffer.cs (3)
203_blocks.AsSpan((int)unusedInitialBlocks, (int)usedBlocks).CopyTo(newBlockArray); 209_blocks.AsSpan((int)unusedInitialBlocks, (int)usedBlocks).CopyTo(_blocks); 396block.Span.CopyTo(destination);
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 312_chars.Slice(0, _pos).CopyTo(poolArray);
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (2)
1116_recvBuffer.ActiveSpan.Slice(0, copyLen).CopyTo(buffer); 1188_recvBuffer.ActiveSpan.Slice(0, copyLen).CopyTo(buffer.Span);
System.Net.Mail (3)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 312_chars.Slice(0, _pos).CopyTo(poolArray);
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.RawSocket.cs (1)
446new Span<byte>(&ipHeader, sizeof(IpHeader)).CopyTo(result);
System.Net.Primitives (2)
System\Net\IPAddress.cs (1)
325MemoryMarshal.AsBytes<ushort>(numbers).CopyTo(destination);
System\Net\IPAddressParser.cs (1)
192used.CopyTo(destination.Slice(pos));
System.Net.Quic (6)
src\libraries\Common\src\System\Net\MultiArrayBuffer.cs (3)
203_blocks.AsSpan((int)unusedInitialBlocks, (int)usedBlocks).CopyTo(newBlockArray); 209_blocks.AsSpan((int)unusedInitialBlocks, (int)usedBlocks).CopyTo(_blocks); 396block.Span.CopyTo(destination);
System\Net\Quic\QuicConnection.SslConnectionOptions.cs (2)
104certificateBuffer->Span.CopyTo(certData.Span); 111chainBuffer->Span.CopyTo(chainData.Span);
System\Net\Quic\QuicStream.Stream.cs (1)
127rentedBuffer.AsSpan(0, readLength).CopyTo(buffer);
System.Net.Security (3)
System\Net\NegotiateAuthenticationPal.ManagedNtlm.cs (1)
411clientChallenge.CopyTo(MemoryMarshal.CreateSpan(ref temp.ClientChallenge[0], ChallengeLength));
System\Net\Security\SslStream.IO.cs (1)
851_buffer.DecryptedSpan.CopyTo(extraBuffer);
System\Net\Security\SslStream.Protocol.cs (1)
1384oldPayload.AsSpan<byte>().CopyTo(Payload);
System.Net.Sockets (2)
System\Net\Sockets\Socket.cs (2)
324buffer.Slice(0, size).CopyTo(socketAddress.Buffer.Span); 370buffer.Slice(0, size).CopyTo(socketAddress.Buffer.Span);
System.Net.WebSockets (6)
System\Net\WebSockets\Compression\WebSocketDeflater.cs (1)
68_buffer.AsSpan(0, position).CopyTo(newBuffer);
System\Net\WebSockets\Compression\WebSocketInflater.cs (2)
76_buffer.AsSpan(_position, _available).CopyTo(_buffer); 109_buffer.AsSpan(0, _available).CopyTo(newBuffer);
System\Net\WebSockets\ManagedWebSocket.cs (2)
833_receiveBuffer.Span.Slice(_receiveBufferOffset, receiveBufferBytesToCopy).CopyTo( 1418_receiveBuffer.Span.Slice(_receiveBufferOffset, _receiveBufferCount).CopyTo(_receiveBuffer.Span);
System\Net\WebSockets\WebSocket.cs (1)
47new Span<byte>(array, 0, r.Count).CopyTo(buffer.Span);
System.Private.CoreLib (36)
src\libraries\Common\src\System\Number.Formatting.Common.cs (1)
505thousandsSepPos.CopyTo(newThousandsSepPos);
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 312_chars.Slice(0, _pos).CopyTo(poolArray);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.cs (2)
98_span.Slice(0, _pos).CopyTo(_span.Slice(source.Length)); 194_span.CopyTo(array);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventProvider.cs (2)
529dataRefObj.CopyTo(newDataRefObj); 533refObjPosition.CopyTo(newRefObjPosition);
src\libraries\System.Private.CoreLib\src\System\IO\File.cs (1)
1242buffer.CopyTo(tmp);
src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (2)
361new Span<byte>(_buffer, _position, n).CopyTo(buffer); 574_buffer.AsSpan(_origin, count).CopyTo(copy);
src\libraries\System.Private.CoreLib\src\System\IO\Strategies\BufferedFileStreamStrategy.cs (4)
330_buffer.AsSpan(_readPos, buffer.Length).CopyTo(buffer.Span); 374new Span<byte>(_buffer!, _readPos, n).CopyTo(destination.Span); 411_buffer.AsSpan(_readPos, bytesFromBuffer).CopyTo(buffer.Span); 448_buffer.AsSpan(0, bytesFromBuffer).CopyTo(buffer.Span);
src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (4)
393new Span<char>(_charBuffer, _charPos, n).CopyTo(buffer.Slice(charsRead)); 967arrayPoolBuffer.AsSpan(0, arrayPoolBufferPos).CopyTo(newBuffer); 971charBuffer.AsSpan(charPos, charLen - charPos).CopyTo(arrayPoolBuffer.AsSpan(arrayPoolBufferPos)); 1241new Span<char>(_charBuffer, _charPos, n).CopyTo(buffer.Span.Slice(charsRead));
src\libraries\System.Private.CoreLib\src\System\IO\TextReader.cs (2)
107new Span<char>(array, 0, numRead).CopyTo(buffer); 157new Span<char>(array, 0, numRead).CopyTo(buffer);
src\libraries\System.Private.CoreLib\src\System\Memory.cs (1)
363public void CopyTo(Memory<T> destination) => Span.CopyTo(destination.Span);
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (1)
4631_destination.Slice(startingPos, charsWritten).CopyTo(_destination.Slice(startingPos + paddingNeeded));
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\DefaultInterpolatedStringHandler.cs (2)
562_chars.Slice(startingPos, charsWritten).CopyTo(_chars.Slice(startingPos + paddingNeeded)); 635_chars.Slice(0, _pos).CopyTo(newArray);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (2)
233new Span<T>(source, startIndex, length).CopyTo(new Span<T>((void*)destination, length)); 286new Span<T>((void*)source, length).CopyTo(new Span<T>(destination, startIndex, length));
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\RabinKarp.cs (1)
87existingBucket.AsSpan().CopyTo(newBucket);
src\libraries\System.Private.CoreLib\src\System\Security\SecureString.cs (4)
194span.Slice(index, _decryptedLength - index).CopyTo(span.Slice(index + 1)); 239span.Slice(index + 1, _decryptedLength - (index + 1)).CopyTo(span.Slice(index)); 323span.Slice(0, length).CopyTo(new Span<char>((void*)ptr, length)); 380span.CopyTo(resultSpan);
src\libraries\System.Private.CoreLib\src\System\Text\TranscodingStream.cs (2)
354_readBuffer.AsSpan(_readBufferOffset, bytesToReturn).CopyTo(buffer); 433_readBuffer.AsSpan(_readBufferOffset, bytesToReturn).CopyTo(buffer.Span);
src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8.cs (1)
792_destination.Slice(startingPos, bytesWritten).CopyTo(_destination.Slice(startingPos + paddingNeeded));
src\System\Text\StringBuilder.CoreCLR.cs (1)
36new Span<char>(newBuffer, newLength).CopyTo(m_ChunkChars);
System.Private.CoreLib.Generators (2)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.cs (2)
98_span.Slice(0, _pos).CopyTo(_span.Slice(source.Length)); 194_span.CopyTo(array);
System.Private.DataContractSerialization (3)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (1)
212_bytes.AsSpan(_byteOffset, count).CopyTo(buffer);
System\Xml\EncodingStreamWrapper.cs (1)
620_bytes.AsSpan(_byteOffset, count).CopyTo(buffer);
System\Xml\XmlBufferReader.cs (1)
497.CopyTo(dst);
System.Private.Uri (7)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 312_chars.Slice(0, _pos).CopyTo(poolArray);
System\Uri.cs (4)
4605span.Slice(lastSlash).CopyTo(span.Slice(i + 1)); 4633span.Slice(lastSlash + 1).CopyTo(span.Slice(i + 1)); 4648span.Slice(lastSlash).CopyTo(span); 4658span.Slice(dotCount).CopyTo(span);
System.Private.Xml (3)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 312_chars.Slice(0, _pos).CopyTo(poolArray);
System.Reflection.Metadata (4)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 312_chars.Slice(0, _pos).CopyTo(poolArray);
System\Reflection\Internal\Utilities\ReadOnlyUnmanagedMemoryStream.cs (1)
45new Span<byte>(_data + _position, bytesRead).CopyTo(buffer);
System.Runtime.Numerics (14)
src\libraries\Common\src\System\Number.Formatting.Common.cs (1)
505thousandsSepPos.CopyTo(newThousandsSepPos);
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 312_chars.Slice(0, _pos).CopyTo(poolArray);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.cs (2)
98_span.Slice(0, _pos).CopyTo(_span.Slice(source.Length)); 194_span.CopyTo(array);
System\Number.BigInteger.cs (1)
647currentBuffer.CopyTo(newBuffer);
System\Numerics\BigIntegerCalculator.GcdInv.cs (1)
200left.CopyTo(result);
System\Numerics\BigIntegerCalculator.PowMod.cs (5)
39result.CopyTo(bits); 319result.CopyTo(bits); 357result.CopyTo(bits); 379result.CopyTo(bits); 417result.CopyTo(bits);
System\Numerics\BigIntegerCalculator.SquMul.cs (1)
230carryOrig.CopyTo(carry);
System.Security.Cryptography (32)
src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanDerivation.cs (1)
222p.Slice(0, len).CopyTo(retSpan);
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (4)
442lastBlock.AsSpan().CopyTo(destination.AsSpan(written)); 956rentedDestination.AsSpan(0, writeOffset).CopyTo(destination); 963tmpEndSpan.CopyTo(destination.Slice(writeOffset)); 1019t.Slice(0, dk.Length).CopyTo(dk);
src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (2)
203hashBuf.Slice(0, destination.Length).CopyTo(destination); 207hashBuf.CopyTo(destination);
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (1)
146tmp.Slice(0, written).CopyTo(destination);
src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (2)
448salt.CopyTo(db.Slice(psLen + 1)); 620tmp.Slice(0, writePtr.Length).CopyTo(writePtr);
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 312_chars.Slice(0, _pos).CopyTo(poolArray);
System\Security\Cryptography\Base64Transforms.cs (3)
168transformBuffer.CopyTo(_inputBuffer); 239_inputBuffer.AsSpan(0, index).CopyTo(transformBuffer); 301transformBuffer.Slice(transformBuffer.Length - _inputIndex).CopyTo(_inputBuffer);
System\Security\Cryptography\CryptoStream.cs (2)
321_outputBuffer.AsSpan(bytesToCopy).CopyTo(_outputBuffer); 392tempOutputBuffer.AsSpan(0, numOutputBytes).CopyTo(buffer.Span);
System\Security\Cryptography\HKDF.cs (1)
183lastChunk.Slice(0, remainingOutput.Length).CopyTo(remainingOutput);
System\Security\Cryptography\OpenSslCipherLite.cs (2)
75rented.AsSpan(0, written).CopyTo(output); 113tmpSpan.Slice(0, written).CopyTo(output);
System\Security\Cryptography\RandomNumberGeneratorImplementation.cs (2)
84remainder.CopyTo(data.Slice(first0Byte)); 89remainder.Slice(0, next0Byte).CopyTo(data.Slice(first0Byte));
System\Security\Cryptography\Rfc2898DeriveBytes.cs (2)
148value.AsSpan().CopyTo(_salt); 299uiSpan.CopyTo(_buffer);
System\Security\Cryptography\SP800108HmacCounterKdfImplementationManaged.cs (1)
69hmacBuffer.Slice(0, destination.Length).CopyTo(destination);
System\Security\Cryptography\UniversalCryptoDecryptor.cs (2)
98_heldoverCipher.AsSpan().CopyTo(ciphertext); 117decryptedBytes.Slice(0, unpaddedLength).CopyTo(outputBuffer);
System\Security\Cryptography\UniversalCryptoOneShot.cs (3)
92writtenDepadded.CopyTo(output); 144depaddedFinalTransform.CopyTo(output.Slice(writtenToOutput)); 183decryptedBuffer.Slice(0, unpaddedLength).CopyTo(output);
System\Security\Cryptography\X509Certificates\OpenSslX509ChainProcessor.cs (1)
1393toReturn.AsSpan().CopyTo(_errors);
System.Text.Encodings.Web (3)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 312_chars.Slice(0, _pos).CopyTo(poolArray);
System.Text.Json (8)
src\libraries\Common\src\System\Text\Json\PooledByteBufferWriter.cs (1)
212oldBufferAsSpan.CopyTo(_rentedBuffer);
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 312_chars.Slice(0, _pos).CopyTo(poolArray);
src\libraries\System.Text.Json\Common\JsonSeparatorNamingPolicy.cs (1)
161destination.CopyTo(newBuffer);
System\Text\Json\Document\JsonDocument.MetadataDb.cs (1)
382_data.AsSpan(startIndex, length).CopyTo(newDatabase);
System\Text\Json\Writer\JsonWriterHelper.Date.cs (2)
21tempSpan.Slice(0, bytesWritten).CopyTo(buffer); 30tempSpan.Slice(0, bytesWritten).CopyTo(buffer);
System.Text.Json.SourceGeneration (3)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.cs (2)
98_span.Slice(0, _pos).CopyTo(_span.Slice(source.Length)); 194_span.CopyTo(array);
src\libraries\System.Text.Json\Common\JsonSeparatorNamingPolicy.cs (1)
161destination.CopyTo(newBuffer);
System.Text.RegularExpressions (5)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 312_chars.Slice(0, _pos).CopyTo(poolArray);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.cs (2)
98_span.Slice(0, _pos).CopyTo(_span.Slice(source.Length)); 194_span.CopyTo(array);
System.Text.RegularExpressions.Generator (5)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (3)
142_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 162_chars.Slice(index, remaining).CopyTo(_chars.Slice(index + count)); 312_chars.Slice(0, _pos).CopyTo(poolArray);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.cs (2)
98_span.Slice(0, _pos).CopyTo(_span.Slice(source.Length)); 194_span.CopyTo(array);
System.Xaml (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\FrugalList.cs (1)
1486public override void CopyTo(T[] array, int index) => _entries.AsSpan(0, _count).CopyTo(array.AsSpan(index));