199 references to ReadOnlySpan
GenerateDocumentationAndConfigFiles (2)
ILCompiler.Compiler (1)
Microsoft.AspNetCore.Http.Connections (1)
Microsoft.AspNetCore.Http.Connections.Client (1)
Microsoft.AspNetCore.Razor.Utilities.Shared (2)
Microsoft.AspNetCore.Server.IIS (1)
Microsoft.AspNetCore.Server.Kestrel.Core (8)
Middleware\Internal\LoggingStream.cs (4)
81Log("Read", new ReadOnlySpan<byte>(buffer, offset, read));
101Log("ReadAsync", new ReadOnlySpan<byte>(buffer, offset, read));
128Log("Write", new ReadOnlySpan<byte>(buffer, offset, count));
140Log("WriteAsync", new ReadOnlySpan<byte>(buffer, offset, count));
Microsoft.AspNetCore.SignalR.Client.Core (1)
Microsoft.AspNetCore.WebUtilities (1)
Microsoft.Build (3)
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.Analyzers (3)
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
Microsoft.CodeAnalysis.CodeStyle (3)
Microsoft.CodeAnalysis.Extensions.Package (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
Microsoft.CodeAnalysis.Workspaces (2)
Microsoft.Diagnostics.DataContractReader.Legacy (14)
SOSDacImpl.cs (11)
289Debug.Assert(name == null || new ReadOnlySpan<char>(nameLocal, 0, (int)neededLocal - 1).SequenceEqual(new string(name)));
575Debug.Assert(name == null || new ReadOnlySpan<char>(fileNameLocal, 0, (int)neededLocal - 1).SequenceEqual(new string(name)));
777Debug.Assert(new ReadOnlySpan<byte>(genericModeBlockLocal, 0, sizeOfGenericModeBlock).SequenceEqual(new Span<byte>(pGenericModeBlock, sizeOfGenericModeBlock)));
1086Debug.Assert(location == null || new ReadOnlySpan<char>(locationLocal, 0, (int)neededLocal - 1).SequenceEqual(new string(location)));
1265Debug.Assert(frameName == null || new ReadOnlySpan<char>(nameLocal, 0, (int)neededLocal).SequenceEqual(new string(frameName)),
2760Debug.Assert(name == null || new ReadOnlySpan<char>(nameLocal, 0, (int)neededLocal - 1).SequenceEqual(new string(name)), $"cDAC: {new string(name)}, DAC: {new string(nameLocal, 0, (int)neededLocal - 1)}");
3087Debug.Assert(mtName == null || new ReadOnlySpan<char>(mtNameLocal, 0, (int)neededLocal - 1).SequenceEqual(new string(mtName)));
3402Debug.Assert(className == null || new ReadOnlySpan<char>(classNameLocal, 0, (int)neededLocal - 1).SequenceEqual(new string(className)));
3559Debug.Assert(stringData == null || new ReadOnlySpan<char>(stringDataLocal, 0, new string(stringData).Length).SequenceEqual(new string(stringData)));
3751Debug.Assert(fileName == null || new ReadOnlySpan<char>(fileNameLocal, 0, (int)neededLocal - 1).SequenceEqual(new string(fileName)));
3980Debug.Assert(buffer is null || new ReadOnlySpan<char>(bufferLocal, 0, (int)Math.Min(count, neededLocal)).SequenceEqual(new ReadOnlySpan<char>(buffer, (int)Math.Min(count, neededLocal))));
Microsoft.Diagnostics.NETCore.Client (9)
Microsoft.Extensions.AI (1)
Microsoft.Extensions.Caching.Hybrid (3)
Microsoft.Extensions.Caching.SqlServer (2)
Microsoft.Extensions.Logging.Console (1)
Microsoft.Private.Windows.Core (2)
Roslyn.Diagnostics.Analyzers (3)
Shared (1)
System.Collections.Immutable (3)
System.Console (1)
System.Data.Common (1)
System.Formats.Asn1 (5)
System.Formats.Cbor (2)
System.IO.Compression (3)
System.IO.Compression.Brotli (3)
System.IO.Hashing (2)
System.IO.Packaging (1)
System.IO.Pipes (1)
System.Linq (1)
System.Memory (1)
System.Net.Http (6)
System.Net.Http.WinHttpHandler (1)
System.Net.Primitives (1)
System.Net.Quic (1)
System.Net.Requests (1)
System.Net.Security (13)
System\Net\Security\TlsSession.cs (12)
1000AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size));
1056AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size));
1198AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size));
1442AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size));
1522AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size));
1882AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size));
1995new ReadOnlySpan<byte>(scratch, offset, produced - offset),
2006AppendPending(new ReadOnlySpan<byte>(scratch, offset, produced - offset));
2190new ReadOnlySpan<byte>(scratch, offset, produced - offset),
2200AppendPending(new ReadOnlySpan<byte>(scratch, offset, produced - offset));
2265new ReadOnlySpan<byte>(scratch, offset, written - offset),
2275AppendPending(new ReadOnlySpan<byte>(scratch, offset, written - offset));
System.Net.ServerSentEvents (1)
System.Net.Sockets (2)
System.Net.WebClient (1)
System.Net.WebSockets (1)
System.Private.CoreLib (40)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Convert.cs (6)
2339return ToBase64String(new ReadOnlySpan<byte>(inArray, offset, length), options);
2404int charsWritten = Base64.EncodeToChars(new ReadOnlySpan<byte>(inArray, offsetIn, length), outArray.AsSpan(offsetOut));
2409int converted = ConvertToBase64WithLineBreaks(outArray.AsSpan(offsetOut), new ReadOnlySpan<byte>(inArray, offsetIn, length));
2560return Base64.DecodeFromChars(new ReadOnlySpan<char>(inArray, offset, length));
2790return ToHexString(new ReadOnlySpan<byte>(inArray, offset, length));
2885return ToHexStringLower(new ReadOnlySpan<byte>(inArray, offset, length));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (5)
494new ReadOnlySpan<byte>(byteBuffer, n, _byteLen - n).CopyTo(byteBuffer);
781charsRead = _decoder.GetChars(new ReadOnlySpan<byte>(_byteBuffer, 0, _byteLen), userBuffer, flush: false);
800charsRead = _decoder.GetChars(new ReadOnlySpan<byte>(_byteBuffer, 0, _byteLen), userBuffer, flush: true);
1189n = _decoder.GetChars(new ReadOnlySpan<byte>(tmpByteBuffer, 0, _byteLen), buffer.Span.Slice(charsRead), flush: false);
1253n = _decoder.GetChars(new ReadOnlySpan<byte>(tmpByteBuffer, 0, _byteLen), buffer.Span.Slice(charsRead), flush: false);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (5)
946new ReadOnlySpan<char>(chunk.m_ChunkChars, chunkStartIndex, chunkCount).CopyTo(destination.Slice(curDestIndex));
2088ReadOnlySpan<char> chunk = new ReadOnlySpan<char>(sbChunk.m_ChunkChars, 0, chunk_length);
2761new ReadOnlySpan<char>(chunk.m_ChunkChars, 0, copyCount1).CopyTo(newChunk.m_ChunkChars);
2767new ReadOnlySpan<char>(chunk.m_ChunkChars, copyCount1, copyCount2).CopyTo(chunk.m_ChunkChars);
2878new ReadOnlySpan<char>(endChunk.m_ChunkChars, endIndexInChunk, copyCount).CopyTo(endChunk.m_ChunkChars.AsSpan(copyTargetIndexInChunk));
System.Private.DataContractSerialization (1)
System.Security.Cryptography (24)
System\Security\Cryptography\DSA.cs (3)
90CryptographicOperations.HashData(hashAlgorithm, new ReadOnlySpan<byte>(data, offset, count));
207return SignDataCore(new ReadOnlySpan<byte>(data, offset, count), hashAlgorithm, signatureFormat);
381return VerifyDataCore(new ReadOnlySpan<byte>(data, offset, count), signature, hashAlgorithm, signatureFormat);
System\Security\Cryptography\ECDsa.cs (3)
121return SignDataCore(new ReadOnlySpan<byte>(data, offset, count), hashAlgorithm, signatureFormat);
802new ReadOnlySpan<byte>(data, offset, count),
993CryptographicOperations.HashData(hashAlgorithm, new ReadOnlySpan<byte>(data, offset, count));
System\Security\Cryptography\RSA.cs (3)
97CryptographicOperations.HashData(hashAlgorithm, new ReadOnlySpan<byte>(data, offset, count));
689return VerifyHash(new ReadOnlySpan<byte>(hash, 0, hashLength), signature, hashAlgorithm, padding);
791return RSAKeyFormatHelper.WritePkcs8PrivateKey(new ReadOnlySpan<byte>(rented, 0, pkcs1Size));
System.Security.Cryptography.Cose (1)
System.Security.Cryptography.Pkcs (2)
System.ServiceModel.NetFramingBase (1)
System.Text.Json (1)
System.Windows.Forms (2)