1371 references to Span
aspire (3)
Aspire.Dashboard (6)
Aspire.Hosting (2)
Aspire.Hosting.RabbitMQ.Tests (2)
cdac-build-tool (12)
dotnet-dev-certs (2)
GenerateDocumentationAndConfigFiles (7)
ILCompiler.Compiler (1)
ILCompiler.ReadyToRun (2)
ILCompiler.TypeSystem (1)
Microsoft.Agents.AI.ProjectTemplates.Tests (1)
Microsoft.AspNetCore.Components (21)
Microsoft.AspNetCore.Components.Endpoints (20)
FormMapping\PrefixResolver.cs (10)
59separatorX = x.Value.Span[currentXPos..].IndexOfAny('.', '[');
60separatorY = y.Value.Span[currentYPos..].IndexOfAny('.', '[');
66return MemoryExtensions.CompareTo(x.Value.Span[currentXPos..], y.Value.Span[currentYPos..], StringComparison.Ordinal);
71compare = MemoryExtensions.CompareTo(x.Value.Span[currentXPos..], y.Value.Span[currentYPos..][..separatorY], StringComparison.Ordinal);
81compare = MemoryExtensions.CompareTo(x.Value.Span[currentXPos..][..separatorX], y.Value.Span[currentYPos..], StringComparison.Ordinal);
89compare = MemoryExtensions.CompareTo(x.Value.Span[currentXPos..][..separatorX], y.Value.Span[currentYPos..][..separatorY], StringComparison.Ordinal);
Microsoft.AspNetCore.Components.QuickGrid (11)
Microsoft.AspNetCore.Components.Server (8)
Microsoft.AspNetCore.Components.WebAssembly (1)
Microsoft.AspNetCore.Components.WebView (1)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (2)
Microsoft.AspNetCore.Http (2)
Microsoft.AspNetCore.Http.Connections (1)
Microsoft.AspNetCore.Http.Connections.Client (5)
Microsoft.AspNetCore.Http.Extensions (20)
src\aspnetcore\src\Components\Endpoints\src\FormMapping\PrefixResolver.cs (10)
59separatorX = x.Value.Span[currentXPos..].IndexOfAny('.', '[');
60separatorY = y.Value.Span[currentYPos..].IndexOfAny('.', '[');
66return MemoryExtensions.CompareTo(x.Value.Span[currentXPos..], y.Value.Span[currentYPos..], StringComparison.Ordinal);
71compare = MemoryExtensions.CompareTo(x.Value.Span[currentXPos..], y.Value.Span[currentYPos..][..separatorY], StringComparison.Ordinal);
81compare = MemoryExtensions.CompareTo(x.Value.Span[currentXPos..][..separatorX], y.Value.Span[currentYPos..], StringComparison.Ordinal);
89compare = MemoryExtensions.CompareTo(x.Value.Span[currentXPos..][..separatorX], y.Value.Span[currentYPos..][..separatorY], StringComparison.Ordinal);
Microsoft.AspNetCore.HttpLogging (1)
Microsoft.AspNetCore.Identity (11)
Microsoft.AspNetCore.OutputCaching (7)
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (1)
Microsoft.AspNetCore.Razor.Utilities.Shared (1)
Microsoft.AspNetCore.ResponseCaching (1)
Microsoft.AspNetCore.Server.HttpSys (2)
Microsoft.AspNetCore.Server.IIS (6)
Microsoft.AspNetCore.Server.Kestrel.Core (28)
Internal\Http\HttpProtocol.cs (6)
1640return Output.WriteChunkAsync(data.Span, cancellationToken);
1643return Output.WriteDataToPipeAsync(data.Span, cancellationToken: cancellationToken);
1690return Output.FirstWriteChunkedAsync(StatusCode, ReasonPhrase, responseHeaders, _responseBodyMode, data.Span, cancellationToken);
1693return Output.FirstWriteAsync(StatusCode, ReasonPhrase, responseHeaders, _responseBodyMode, data.Span, cancellationToken);
1737return await Output.WriteChunkAsync(data.Span, cancellationToken);
1740return await Output.WriteDataToPipeAsync(data.Span, cancellationToken: cancellationToken);
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (2)
Microsoft.AspNetCore.SignalR.Common (3)
Microsoft.AspNetCore.SignalR.Protocols.Json (2)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (2)
Microsoft.AspNetCore.Watch.BrowserRefresh (5)
Microsoft.AspNetCore.WebUtilities (7)
Microsoft.Build (4)
Microsoft.Build.Framework (1)
Microsoft.Build.Tasks.Git (1)
Microsoft.CodeAnalysis (21)
Microsoft.CodeAnalysis.Analyzers (5)
Microsoft.CodeAnalysis.AnalyzerUtilities (5)
Microsoft.CodeAnalysis.CodeStyle (7)
Microsoft.CodeAnalysis.CSharp (10)
Microsoft.CodeAnalysis.CSharp.Features (3)
Microsoft.CodeAnalysis.Features (11)
Microsoft.CodeAnalysis.Razor.Compiler (64)
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
Microsoft.CodeAnalysis.Workspaces (18)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Microsoft.Data.Analysis (1)
Microsoft.DotNet.Build.Tasks.FileCatalog (2)
Microsoft.Extensions.AI (1)
Microsoft.Extensions.AI.Abstractions (15)
Microsoft.Extensions.AI.Abstractions.Tests (4)
Microsoft.Extensions.AI.Evaluation.NLP (4)
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Microsoft.Extensions.AI.Integration.Tests (1)
Microsoft.Extensions.AI.OpenAI (1)
Microsoft.Extensions.AI.OpenAI.Tests (5)
Microsoft.Extensions.AI.Templates.Tests (1)
Microsoft.Extensions.AI.Tests (1)
Microsoft.Extensions.Caching.Hybrid.Tests (4)
Microsoft.Extensions.DataIngestion (5)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
Microsoft.Extensions.ServiceDiscovery.Dns (17)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
Microsoft.Extensions.VectorData.ConformanceTests (14)
Microsoft.ML.Core (20)
Microsoft.ML.Core.Tests (4)
Microsoft.ML.Data (26)
Microsoft.ML.IntegrationTests (1)
Microsoft.ML.TestFramework (6)
Microsoft.ML.TestFrameworkCommon (2)
Microsoft.ML.Tests (6)
Microsoft.ML.Tokenizers (7)
Microsoft.ML.Transforms (28)
Microsoft.NET.Build.Tasks (1)
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (22)
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAssetPathPattern.cs (18)
89var nextToken = MemoryExtensions.IndexOf(current.Span, PatternStart.AsSpan(), StringComparison.OrdinalIgnoreCase);
108var tokenEnd = MemoryExtensions.IndexOf(current.Span, PatternEnd);
130(current.Span[tokenEnd + 1] == PatternOptional || current.Span[tokenEnd + 1] == PatternPreferred || current.Span[tokenEnd + 1] == PatternPackOnly))
132if (current.Span[tokenEnd + 1] == PatternPackOnly)
141if (current.Span[tokenEnd + 1] == PatternPreferred)
150nextToken = MemoryExtensions.IndexOf(current.Span, PatternStart.AsSpan(), StringComparison.OrdinalIgnoreCase);
176var nextToken = MemoryExtensions.IndexOf(current.Span, PatternParameterStart);
186var tokenEnd = MemoryExtensions.IndexOf(current.Span, PatternParameterEnd);
192var embeddedValue = MemoryExtensions.IndexOf(current.Span, PatternValueSeparator);
210nextToken = MemoryExtensions.IndexOf(current.Span, PatternParameterStart);
281if (!part.IsLiteral && part.Name.Span.SequenceEqual(tokenName.Span) && !part.Value.IsEmpty)
485if (part.Name.Span.SequenceEqual(tokenName.Span))
539MemoryExtensions.Equals(RawPattern.Span, other.RawPattern.Span, StringComparison.Ordinal) &&
Microsoft.NET.Sdk.StaticWebAssets.Tasks (39)
Data\StaticWebAssetPathPattern.cs (18)
89var nextToken = MemoryExtensions.IndexOf(current.Span, PatternStart.AsSpan(), StringComparison.OrdinalIgnoreCase);
108var tokenEnd = MemoryExtensions.IndexOf(current.Span, PatternEnd);
130(current.Span[tokenEnd + 1] == PatternOptional || current.Span[tokenEnd + 1] == PatternPreferred || current.Span[tokenEnd + 1] == PatternPackOnly))
132if (current.Span[tokenEnd + 1] == PatternPackOnly)
141if (current.Span[tokenEnd + 1] == PatternPreferred)
150nextToken = MemoryExtensions.IndexOf(current.Span, PatternStart.AsSpan(), StringComparison.OrdinalIgnoreCase);
176var nextToken = MemoryExtensions.IndexOf(current.Span, PatternParameterStart);
186var tokenEnd = MemoryExtensions.IndexOf(current.Span, PatternParameterEnd);
192var embeddedValue = MemoryExtensions.IndexOf(current.Span, PatternValueSeparator);
210nextToken = MemoryExtensions.IndexOf(current.Span, PatternParameterStart);
281if (!part.IsLiteral && part.Name.Span.SequenceEqual(tokenName.Span) && !part.Value.IsEmpty)
485if (part.Name.Span.SequenceEqual(tokenName.Span))
539MemoryExtensions.Equals(RawPattern.Span, other.RawPattern.Span, StringComparison.Ordinal) &&
Microsoft.NET.StringTools (12)
Microsoft.SourceLink.AzureDevOpsServer.Git (1)
Microsoft.SourceLink.AzureRepos.Git (1)
Microsoft.SourceLink.Bitbucket.Git (1)
Microsoft.SourceLink.Common (1)
Microsoft.SourceLink.Gitea (1)
Microsoft.SourceLink.Gitee (1)
Microsoft.SourceLink.GitHub (1)
Microsoft.SourceLink.GitLab (1)
Microsoft.SourceLink.GitWeb (1)
NuGet.Packaging (15)
OrderProcessor (1)
RepoTasks (2)
Roslyn.Diagnostics.Analyzers (5)
Shared (1)
System.CommandLine (1)
System.Console (1)
System.Diagnostics.TextWriterTraceListener (1)
System.Formats.Asn1 (36)
System.Formats.Cbor (8)
System.Formats.Tar (1)
System.IO.Compression (7)
System.IO.Compression.Brotli (1)
System.IO.Compression.ZipFile (8)
System\IO\Compression\ZipFile.Create.cs (2)
422CreateZipArchiveFromDirectory(sourceDirectoryName, archive, options.CompressionLevel, options.IncludeBaseDirectory, options.Password.Span, options.EncryptionMethod);
444CreateZipArchiveFromDirectory(sourceDirectoryName, archive, options.CompressionLevel, options.IncludeBaseDirectory, options.Password.Span, options.EncryptionMethod);
System.IO.Hashing (1)
System.IO.Pipelines (3)
System.IO.Ports (1)
System.Memory (17)
System.Memory.Data (4)
System.Net.Http (14)
System.Net.Http.WinHttpHandler (1)
System.Net.Mail (6)
System.Net.NameResolution (2)
System.Net.Quic (6)
System.Net.Security (19)
System.Net.ServerSentEvents (1)
System.Net.WebClient (1)
System.Net.WebSockets (3)
System.Private.CoreLib (44)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\File.cs (2)
1618using SafeFileHandle fileHandle = OpenHandle(path, mode, FileAccess.Write, FileShare.Read, FileOptions.Asynchronous, GetPreallocationSize(mode, contents.Span, encoding, preambleSize));
1649int encoded = encoder.GetBytes(toEncode.Span, bytes.AsSpan(preambleSize), flush: contents.IsEmpty);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStream.cs (1)
740Write(buffer.Span);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\WritableMemoryStream.cs (1)
306Write(buffer.Span);
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Trim.cs (9)
47ReadOnlySpan<T> span = memory.Span;
59=> memory.Slice(ClampStart(memory.Span, trimElement));
67=> memory.Slice(0, ClampEnd(memory.Span, 0, trimElement));
275ReadOnlySpan<T> span = memory.Span;
300return memory.Slice(ClampStart(memory.Span, trimElements));
322return memory.Slice(0, ClampEnd(memory.Span, 0, trimElements));
545ReadOnlySpan<char> span = memory.Span;
556=> memory.Slice(ClampStart(memory.Span));
563=> memory.Slice(0, ClampEnd(memory.Span, 0));
System.Security.Cryptography (210)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (9)
142AsnDecoder.ReadSequence(data.Span, AsnEncodingRules.BER, out _, out _, out int trimLength);
154ReadOnlySpan<byte> authSafeContents = authSafeMemory.Span;
279ValueAsnReader outer = new ValueAsnReader(contentData.Span, AsnEncodingRules.BER);
549encryptedContent.Span);
581algorithmIdentifier.Parameters.Value.Span,
588algorithmIdentifier.Parameters.Value.Span,
784return HasCapiValue(attr.AttrValues[0].Span, out isRsa);
1115bag.BagValue.Span,
1143bag.BagValue.Span,
System\Security\Cryptography\Kmac128.cs (4)
559return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC128, key.Span, source, xof: false, outputLength, customizationString.Span, cancellationToken);
599return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC128, key.Span, source, xof: false, destination, customizationString.Span, cancellationToken);
System\Security\Cryptography\Kmac256.cs (4)
559return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC256, key.Span, source, xof: false, outputLength, customizationString.Span, cancellationToken);
599return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC256, key.Span, source, xof: false, destination, customizationString.Span, cancellationToken);
System\Security\Cryptography\KmacXof128.cs (4)
559return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC128, key.Span, source, xof: true, outputLength, customizationString.Span, cancellationToken);
599return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC128, key.Span, source, xof: true, destination, customizationString.Span, cancellationToken);
System\Security\Cryptography\KmacXof256.cs (4)
559return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC256, key.Span, source, xof: true, outputLength, customizationString.Span, cancellationToken);
599return LiteHashProvider.KmacStreamAsync(HashAlgorithmNames.KMAC256, key.Span, source, xof: true, destination, customizationString.Span, cancellationToken);
System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.xml.cs (9)
72writer.WriteInteger(SerialNumber.Span);
76if (!Asn1Tag.TryDecode(Issuer.Span, out Asn1Tag validateTag, out _) ||
85writer.WriteEncodedValue(Issuer.Span);
94if (!Asn1Tag.TryDecode(Subject.Span, out Asn1Tag validateTag, out _) ||
103writer.WriteEncodedValue(Subject.Span);
113writer.WriteBitString(IssuerUniqueId.Value.Span, 0, new Asn1Tag(TagClass.ContextSpecific, 1));
119writer.WriteBitString(SubjectUniqueId.Value.Span, 0, new Asn1Tag(TagClass.ContextSpecific, 2));
149ValueAsnReader reader = new ValueAsnReader(encoded.Span, ruleSet);
185ReadOnlySpan<byte> rebindSpan = rebind.Span;
System.Security.Cryptography.Cose (14)
System\Security\Cryptography\Cose\CoseSignature.cs (4)
112return VerifyCore(coseKey, Message.Content.Value.Span, null, associatedData);
152return VerifyCore(key, Message.Content.Value.Span, null, associatedData);
195return VerifyCore(coseKey, Message.Content.Value.Span, null, associatedData);
662CoseMessage.AppendToBeSigned(buffer, toBeSignedBuilder, SigStructureContext.Signature, Message.RawProtectedHeaders.Span, _encodedSignProtectedHeaders, associatedData, contentBytes, contentStream);
System.Security.Cryptography.Pkcs (229)
System.Text.Json (72)
System.Text.RegularExpressions (3)
System.Text.RegularExpressions.Generator (2)