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)
283Debug.Assert(name == null || new ReadOnlySpan<char>(nameLocal, 0, (int)neededLocal - 1).SequenceEqual(new string(name)));
559Debug.Assert(name == null || new ReadOnlySpan<char>(fileNameLocal, 0, (int)neededLocal - 1).SequenceEqual(new string(name)));
758Debug.Assert(new ReadOnlySpan<byte>(genericModeBlockLocal, 0, sizeOfGenericModeBlock).SequenceEqual(new Span<byte>(pGenericModeBlock, sizeOfGenericModeBlock)));
1044Debug.Assert(location == null || new ReadOnlySpan<char>(locationLocal, 0, (int)neededLocal - 1).SequenceEqual(new string(location)));
1221Debug.Assert(frameName == null || new ReadOnlySpan<char>(nameLocal, 0, (int)neededLocal).SequenceEqual(new string(frameName)),
2672Debug.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)}");
2992Debug.Assert(mtName == null || new ReadOnlySpan<char>(mtNameLocal, 0, (int)neededLocal - 1).SequenceEqual(new string(mtName)));
3307Debug.Assert(className == null || new ReadOnlySpan<char>(classNameLocal, 0, (int)neededLocal - 1).SequenceEqual(new string(className)));
3462Debug.Assert(stringData == null || new ReadOnlySpan<char>(stringDataLocal, 0, new string(stringData).Length).SequenceEqual(new string(stringData)));
3650Debug.Assert(fileName == null || new ReadOnlySpan<char>(fileNameLocal, 0, (int)neededLocal - 1).SequenceEqual(new string(fileName)));
3875Debug.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 (4)
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)
994AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size));
1050AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size));
1192AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size));
1436AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size));
1516AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size));
1876AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size));
1989new ReadOnlySpan<byte>(scratch, offset, produced - offset),
2000AppendPending(new ReadOnlySpan<byte>(scratch, offset, produced - offset));
2184new ReadOnlySpan<byte>(scratch, offset, produced - offset),
2194AppendPending(new ReadOnlySpan<byte>(scratch, offset, produced - offset));
2259new ReadOnlySpan<byte>(scratch, offset, written - offset),
2269AppendPending(new ReadOnlySpan<byte>(scratch, offset, written - offset));
System.Net.ServerSentEvents (1)
System.Net.Sockets (1)
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)
467new ReadOnlySpan<byte>(byteBuffer, n, _byteLen - n).CopyTo(byteBuffer);
754charsRead = _decoder.GetChars(new ReadOnlySpan<byte>(_byteBuffer, 0, _byteLen), userBuffer, flush: false);
773charsRead = _decoder.GetChars(new ReadOnlySpan<byte>(_byteBuffer, 0, _byteLen), userBuffer, flush: true);
1154n = _decoder.GetChars(new ReadOnlySpan<byte>(tmpByteBuffer, 0, _byteLen), buffer.Span.Slice(charsRead), flush: false);
1218n = _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)