768 instantiations of ReadOnlySpan
GenerateDocumentationAndConfigFiles (7)
http2cat (2)
IIS.FunctionalTests (2)
IIS.LongTests (2)
IIS.NewHandler.FunctionalTests (2)
IIS.NewShim.FunctionalTests (2)
IIS.ShadowCopy.Tests (1)
IISExpress.FunctionalTests (2)
Metrics (7)
Metrics.Legacy (7)
Microsoft.AspNetCore.Cryptography.Internal (2)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.AspNetCore.Http.Connections (1)
Microsoft.AspNetCore.Http.Connections.Client (1)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
Microsoft.AspNetCore.Server.HttpSys (3)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
Microsoft.AspNetCore.Server.IIS (3)
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.Server.Kestrel.Core.Tests (18)
src\Shared\test\Shared.Tests\runtime\Http2\HuffmanDecodingTests.cs (7)
74int decodedByteCount = Huffman.Decode(new ReadOnlySpan<byte>(encoded, 0, encodedByteCount), ref decoded);
250Assert.Equal(expected.Length, Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst));
271Exception exception = Assert.Throws<HuffmanDecodingException>(() => Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst));
288Exception exception = Assert.Throws<HuffmanDecodingException>(() => Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst));
299int decodedCount = Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref actualDestination);
333Exception exception = Assert.Throws<HuffmanDecodingException>(() => Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst));
344int decodedLength = Huffman.Decode(new ReadOnlySpan<byte>(encoded, 0, encoded.Length), ref decodedBytes);
Microsoft.AspNetCore.Shared.Tests (20)
runtime\Http2\HuffmanDecodingTests.cs (7)
74int decodedByteCount = Huffman.Decode(new ReadOnlySpan<byte>(encoded, 0, encodedByteCount), ref decoded);
250Assert.Equal(expected.Length, Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst));
271Exception exception = Assert.Throws<HuffmanDecodingException>(() => Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst));
288Exception exception = Assert.Throws<HuffmanDecodingException>(() => Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst));
299int decodedCount = Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref actualDestination);
333Exception exception = Assert.Throws<HuffmanDecodingException>(() => Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst));
344int decodedLength = Huffman.Decode(new ReadOnlySpan<byte>(encoded, 0, encoded.Length), ref decodedBytes);
Microsoft.AspNetCore.SignalR.Client.Core (1)
Microsoft.AspNetCore.WebUtilities (1)
Microsoft.AspNetCore.WebUtilities.Tests (3)
Microsoft.Build.Framework (1)
Microsoft.Cci.Extensions (1)
Microsoft.CodeAnalysis (9)
Microsoft.CodeAnalysis.Analyzers (8)
Microsoft.CodeAnalysis.AnalyzerUtilities (8)
Microsoft.CodeAnalysis.BannedApiAnalyzers (8)
Microsoft.CodeAnalysis.CodeStyle (8)
Microsoft.CodeAnalysis.Extensions.Package (1)
Microsoft.CodeAnalysis.InteractiveHost (1)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (8)
Microsoft.CodeAnalysis.PublicApiAnalyzers (8)
Microsoft.CodeAnalysis.Rebuild.UnitTests (2)
Microsoft.CodeAnalysis.ResxSourceGenerator (8)
Microsoft.CodeAnalysis.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces (9)
Microsoft.Extensions.AI (1)
Microsoft.Extensions.AI.Abstractions (1)
Microsoft.Extensions.AI.OpenAI (1)
Microsoft.Extensions.Caching.Hybrid (4)
Microsoft.Extensions.Caching.SqlServer (2)
Microsoft.Extensions.Logging.Console (1)
Microsoft.ML.Tests (2)
Microsoft.ML.Tokenizers (1)
PresentationCore (3)
PresentationFramework (1)
Roslyn.Diagnostics.Analyzers (8)
Shared (1)
System.Collections.Immutable (5)
System.Console (6)
System.Data.Common (2)
System.Diagnostics.DiagnosticSource (2)
System.Drawing.Common (7)
System.Drawing.Common.Tests (3)
System.Formats.Asn1 (9)
System.Formats.Cbor (2)
System.IO.Compression (5)
System.IO.Compression.Brotli (4)
System.IO.Compression.ZipFile (1)
System.IO.Hashing (16)
System.IO.IsolatedStorage (2)
System.IO.Packaging (1)
System.IO.Pipes (1)
System.Linq (1)
System.Memory (1)
System.Net.Http (8)
System.Net.NameResolution (2)
System.Net.NetworkInformation (3)
System.Net.Ping (2)
System.Net.Primitives (4)
System.Net.Quic (4)
System.Net.Requests (1)
System.Net.Security (9)
System.Net.ServerSentEvents (1)
System.Net.Sockets (6)
System\Net\Sockets\SocketAsyncContext.Unix.cs (1)
431return SocketPal.TryCompleteSendTo(context._socket, new ReadOnlySpan<byte>(BufferPtr, bufferLength), null, ref bufferIndex, ref Offset, ref Count, Flags, SocketAddress.Span, ref BytesTransferred, out ErrorCode);
System.Net.WebClient (1)
System.Net.WebSockets (1)
System.Private.CoreLib (175)
src\libraries\System.Private.CoreLib\src\System\Convert.cs (9)
2317return ToBase64String(new ReadOnlySpan<byte>(inArray), Base64FormattingOptions.None);
2324return ToBase64String(new ReadOnlySpan<byte>(inArray), options);
2340return ToBase64String(new ReadOnlySpan<byte>(inArray, offset, length), options);
2414ToBase64CharsLargeNoLineBreaks(new ReadOnlySpan<byte>(inArray, offsetIn, length), outArray.AsSpan(offsetOut), charLengthRequired);
2852if (!TryFromBase64Chars(new ReadOnlySpan<char>(inputPtr, inputLength), decodedBytes, out int _))
3122return ToHexString(new ReadOnlySpan<byte>(inArray));
3145return ToHexString(new ReadOnlySpan<byte>(inArray, offset, length));
3217return ToHexStringLower(new ReadOnlySpan<byte>(inArray));
3240return ToHexStringLower(new ReadOnlySpan<byte>(inArray, offset, length));
src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (5)
464new ReadOnlySpan<byte>(byteBuffer, n, _byteLen - n).CopyTo(byteBuffer);
751charsRead = _decoder.GetChars(new ReadOnlySpan<byte>(_byteBuffer, 0, _byteLen), userBuffer, flush: false);
770charsRead = _decoder.GetChars(new ReadOnlySpan<byte>(_byteBuffer, 0, _byteLen), userBuffer, flush: true);
1151n = _decoder.GetChars(new ReadOnlySpan<byte>(tmpByteBuffer, 0, _byteLen), buffer.Span.Slice(charsRead), flush: false);
1215n = _decoder.GetChars(new ReadOnlySpan<byte>(tmpByteBuffer, 0, _byteLen), buffer.Span.Slice(charsRead), flush: false);
src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (4)
313int count = _encoder.GetBytes(new ReadOnlySpan<char>(_charBuffer, 0, _charPos), byteBuffer, flushEncoder);
519WriteFormatHelper(format, new ReadOnlySpan<object?>(in arg0), appendNewLine: false);
590WriteFormatHelper(format, new ReadOnlySpan<object?>(in arg0), appendNewLine: true);
992int count = _encoder.GetBytes(new ReadOnlySpan<char>(_charBuffer, 0, _charPos), byteBuffer, flushEncoder);
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (7)
102return new ReadOnlySpan<char>(ref text.GetRawStringData(), text.Length);
126return new ReadOnlySpan<char>(ref Unsafe.Add(ref text.GetRawStringData(), (nint)(uint)start /* force zero-extension */), text.Length - start);
152return new ReadOnlySpan<char>(ref Unsafe.Add(ref text.GetRawStringData(), (nint)(uint)actualIndex /* force zero-extension */), text.Length - actualIndex);
178return new ReadOnlySpan<char>(ref Unsafe.Add(ref text.GetRawStringData(), (nint)(uint)start /* force zero-extension */), length);
210return new ReadOnlySpan<char>(ref Unsafe.Add(ref text.GetRawStringData(), (nint)(uint)start /* force zero-extension */), length);
3924new ReadOnlySpan<T>(source).CopyTo(destination);
5058return SplitCore(source, destination, new ReadOnlySpan<char>(in separator), default, isAny: true, options);
src\libraries\System.Private.CoreLib\src\System\ReadOnlySpan.cs (6)
205public static implicit operator ReadOnlySpan<T>(T[]? array) => new ReadOnlySpan<T>(array);
211=> new ReadOnlySpan<T>(segment.Array, segment.Offset, segment.Count);
227return new ReadOnlySpan<T>(ref Unsafe.As<TDerived, T>(ref items._reference), items.Length);
358return new string(new ReadOnlySpan<char>(ref Unsafe.As<T, char>(ref _reference), _length));
376return new ReadOnlySpan<T>(ref Unsafe.Add(ref _reference, (nint)(uint)start /* force zero-extension */), _length - start);
399return new ReadOnlySpan<T>(ref Unsafe.Add(ref _reference, (nint)(uint)start /* force zero-extension */), length);
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (15)
457return FormatHelper(null, format, new ReadOnlySpan<object?>(in arg0));
497return FormatHelper(provider, format, new ReadOnlySpan<object?>(in arg0));
726return JoinCore(new ReadOnlySpan<char>(in separator), new ReadOnlySpan<string?>(value));
741return JoinCore(new ReadOnlySpan<char>(in separator), value);
751return JoinCore(separator.AsSpan(), new ReadOnlySpan<string?>(value));
770JoinCore(new ReadOnlySpan<char>(in separator), value, startIndex, count);
782return JoinCore(separator, new ReadOnlySpan<string?>(value, startIndex, count));
794return JoinCore(separator.AsSpan(), new ReadOnlySpan<string?>(valuesArray));
840return JoinCore(new ReadOnlySpan<char>(in separator), (ReadOnlySpan<object?>)values);
854JoinCore(new ReadOnlySpan<char>(in separator), values);
911JoinCore(new ReadOnlySpan<char>(in separator), values);
932return JoinCore(separator, new ReadOnlySpan<string?>(valuesArray));
1638return SplitInternal(new ReadOnlySpan<char>(in separator), int.MaxValue, options);
1643return SplitInternal(new ReadOnlySpan<char>(in separator), count, options);
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (6)
576char[] arrChar = new ReadOnlySpan<char>(chars, count).ToArray();
703char[] arrChar = new ReadOnlySpan<char>(chars, charCount).ToArray();
722new ReadOnlySpan<byte>(arrByte, 0, byteCount).CopyTo(new Span<byte>(bytes, byteCount));
778byte[] arrByte = new ReadOnlySpan<byte>(bytes, count).ToArray();
852byte[] arrByte = new ReadOnlySpan<byte>(bytes, byteCount).ToArray();
871new ReadOnlySpan<char>(arrChar, 0, charCount).CopyTo(new Span<char>(chars, charCount));
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.Internal.cs (8)
234chars: new ReadOnlySpan<char>(pCharsOriginal, originalCharCount).Slice(charsConsumedSoFar),
263ReadOnlySpan<char> chars = new ReadOnlySpan<char>(pOriginalChars, originalCharCount).Slice(charsConsumedSoFar);
498chars: new ReadOnlySpan<char>(pOriginalChars, originalCharCount).Slice(charsConsumedSoFar),
531ReadOnlySpan<char> chars = new ReadOnlySpan<char>(pOriginalChars, originalCharCount).Slice(charsConsumedSoFar);
828bytes: new ReadOnlySpan<byte>(pBytesOriginal, originalByteCount).Slice(bytesConsumedSoFar),
857ReadOnlySpan<byte> bytes = new ReadOnlySpan<byte>(pOriginalBytes, originalByteCount).Slice(bytesConsumedSoFar);
1094bytes: new ReadOnlySpan<byte>(pOriginalBytes, originalByteCount).Slice(bytesConsumedSoFar),
1133ReadOnlySpan<byte> bytes = new ReadOnlySpan<byte>(pOriginalBytes, originalByteCount).Slice(bytesConsumedSoFar);
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (10)
921new ReadOnlySpan<char>(chunk.m_ChunkChars, chunkStartIndex, chunkCount).CopyTo(destination.Slice(curDestIndex));
1429return AppendFormat(null, format, new ReadOnlySpan<object?>(in arg0));
1477return AppendFormat(provider, format, new ReadOnlySpan<object?>(in arg0));
2038ReadOnlySpan<char> chunk = new ReadOnlySpan<char>(sbChunk.m_ChunkChars, 0, chunk_length);
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));
System.Private.DataContractSerialization (5)
System.Private.Uri (14)
System\Uri.cs (10)
3895newHost = string.Concat(newHost, new ReadOnlySpan<char>(pString + start, end - start));
3905newHost = string.Concat(newHost, new ReadOnlySpan<char>(pString + start, end - start));
3909DomainNameHelper.IsValid(new ReadOnlySpan<char>(pString + start, end - start), iri: false, StaticNotAny(flags, Flags.ImplicitFile), out int domainNameLength))
3919if (!new ReadOnlySpan<char>(pString + start, domainNameLength).ContainsAnyInRange('A', 'Z'))
3926DomainNameHelper.IsValid(new ReadOnlySpan<char>(pString + start, end - start), iri: true, StaticNotAny(flags, Flags.ImplicitFile), out domainNameLength))
3945newHost = string.Concat(newHost, new ReadOnlySpan<char>(pString + start, end - start));
4017newHost = string.Concat(newHost, new ReadOnlySpan<char>(pString + startPort, idx - startPort));
4049newHost = UriHelper.NormalizeAndConcat(newHost, new ReadOnlySpan<char>(pString + startInput, end - startInput));
4093newHost = UriHelper.NormalizeAndConcat(newHost, new ReadOnlySpan<char>(pString + startOtherHost, end - startOtherHost));
4124ReadOnlySpan<char> host = new ReadOnlySpan<char>(pString + start, end - start);
System.Private.Windows.Core (1)
System.Private.Windows.GdiPlus (1)
System.Reflection.Metadata (8)
System.Reflection.MetadataLoadContext (2)
System.Resources.Extensions (1)
System.Runtime.InteropServices (1)
System.Runtime.Numerics (9)
System.Security.Cryptography (178)
src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsa.cs (13)
149int bytesWritten = SignDataCore(new ReadOnlySpan<byte>(data), new ReadOnlySpan<byte>(context), signature);
162new ReadOnlySpan<byte>(data),
163new ReadOnlySpan<byte>(context),
292return VerifyData(new ReadOnlySpan<byte>(data), new ReadOnlySpan<byte>(signature), new ReadOnlySpan<byte>(context));
484return ImportFromEncryptedPem(source.AsSpan(), new ReadOnlySpan<byte>(passwordBytes));
627return ImportSubjectPublicKeyInfo(new ReadOnlySpan<byte>(source));
695return ImportEncryptedPkcs8PrivateKey(password.AsSpan(), new ReadOnlySpan<byte>(source));
817return ImportPkcs8PrivateKey(new ReadOnlySpan<byte>(source));
894return ImportCompositeMLDsaPublicKey(algorithm, new ReadOnlySpan<byte>(source));
944return ImportCompositeMLDsaPrivateKey(algorithm, new ReadOnlySpan<byte>(source));
src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (20)
172SignData(new ReadOnlySpan<byte>(data), destination.AsSpan(), new ReadOnlySpan<byte>(context));
260return VerifyData(new ReadOnlySpan<byte>(data), new ReadOnlySpan<byte>(signature), new ReadOnlySpan<byte>(context));
373SignPreHash(new ReadOnlySpan<byte>(hash), destination.AsSpan(), hashAlgorithmOid, new ReadOnlySpan<byte>(context));
491new ReadOnlySpan<byte>(hash),
492new ReadOnlySpan<byte>(signature),
494new ReadOnlySpan<byte>(context));
503return SignMu(new ReadOnlySpan<byte>(externalMu));
604return VerifyMu(new ReadOnlySpan<byte>(externalMu), new ReadOnlySpan<byte>(signature));
1383return ImportSubjectPublicKeyInfo(new ReadOnlySpan<byte>(source));
1434return ImportPkcs8PrivateKey(new ReadOnlySpan<byte>(source));
1549return ImportEncryptedPkcs8PrivateKey(password.AsSpan(), new ReadOnlySpan<byte>(source));
1769return ImportFromEncryptedPem(source.AsSpan(), new ReadOnlySpan<byte>(passwordBytes));
1819return ImportMLDsaPublicKey(algorithm, new ReadOnlySpan<byte>(source));
1869return ImportMLDsaPrivateKey(algorithm, new ReadOnlySpan<byte>(source));
1919return ImportMLDsaPrivateSeed(algorithm, new ReadOnlySpan<byte>(source));
src\libraries\Common\src\System\Security\Cryptography\SlhDsa.cs (16)
186SignData(new ReadOnlySpan<byte>(data), destination.AsSpan(), new ReadOnlySpan<byte>(context));
272return VerifyData(new ReadOnlySpan<byte>(data), new ReadOnlySpan<byte>(signature), new ReadOnlySpan<byte>(context));
379SignPreHash(new ReadOnlySpan<byte>(hash), destination.AsSpan(), hashAlgorithmOid, new ReadOnlySpan<byte>(context));
487new ReadOnlySpan<byte>(hash),
488new ReadOnlySpan<byte>(signature),
490new ReadOnlySpan<byte>(context));
1250return ImportSubjectPublicKeyInfo(new ReadOnlySpan<byte>(source));
1318return ImportPkcs8PrivateKey(new ReadOnlySpan<byte>(source));
1433return ImportEncryptedPkcs8PrivateKey(password.AsSpan(), new ReadOnlySpan<byte>(source));
1653return ImportFromEncryptedPem(source.AsSpan(), new ReadOnlySpan<byte>(passwordBytes));
1703return ImportSlhDsaPublicKey(algorithm, new ReadOnlySpan<byte>(source));
1753return ImportSlhDsaPrivateKey(algorithm, new ReadOnlySpan<byte>(source));
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 (4)
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));
1020new ReadOnlySpan<byte>(hash).CopyTo(destination);
System\Security\Cryptography\RSA.cs (7)
97CryptographicOperations.HashData(hashAlgorithm, new ReadOnlySpan<byte>(data, offset, count));
108new ReadOnlySpan<byte>(result).CopyTo(destination);
123new ReadOnlySpan<byte>(result).CopyTo(destination);
332new ReadOnlySpan<byte>(result).CopyTo(destination);
347new ReadOnlySpan<byte>(result).CopyTo(destination);
689return VerifyHash(new ReadOnlySpan<byte>(hash, 0, hashLength), signature, hashAlgorithm, padding);
791return RSAKeyFormatHelper.WritePkcs8PrivateKey(new ReadOnlySpan<byte>(rented, 0, pkcs1Size));
System\Security\Cryptography\SymmetricAlgorithm.cs (10)
498return DecryptEcb(new ReadOnlySpan<byte>(ciphertext), paddingMode);
616return EncryptEcb(new ReadOnlySpan<byte>(plaintext), paddingMode);
739return DecryptCbc(new ReadOnlySpan<byte>(ciphertext), new ReadOnlySpan<byte>(iv), paddingMode);
894return EncryptCbc(new ReadOnlySpan<byte>(plaintext), new ReadOnlySpan<byte>(iv), paddingMode);
1067new ReadOnlySpan<byte>(ciphertext),
1068new ReadOnlySpan<byte>(iv),
1308new ReadOnlySpan<byte>(plaintext),
1309new ReadOnlySpan<byte>(iv),
System.Security.Cryptography.Cose (5)
System.Security.Cryptography.Pkcs (8)
System.Security.Cryptography.ProtectedData (2)
System.ServiceModel.NetFramingBase (1)
System.Text.Encodings.Web (1)
System.Text.Json (3)
System.Text.RegularExpressions (4)
System.Windows.Forms (6)
System.Windows.Forms.Design (1)
System.Windows.Forms.Primitives.Tests (2)
System.Windows.Forms.Primitives.TestUtilities (5)
System.Windows.Forms.Tests (2)
System.Windows.Forms.UI.IntegrationTests (2)
Test.Utilities (7)
Text.Analyzers (8)
15655 references to ReadOnlySpan
Aspire.Azure.Npgsql (2)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (2)
Aspire.Dashboard (15)
Aspire.Hosting (10)
Aspire.Hosting.Docker (15)
EnvVarEscaper.cs (15)
28public static void EscapeUnescapedEnvVars(ReadOnlySpan<char> input, StringBuilder result)
43private static void EscapeUnescapedEnvVarsInternal(ReadOnlySpan<char> input, StringBuilder result, int depth)
83private static int FindFirstUnescapedDollar(ReadOnlySpan<char> input)
98private static int ProcessVariable(ReadOnlySpan<char> input, StringBuilder result, int depth)
111private static int ProcessSimpleVariable(ReadOnlySpan<char> input, StringBuilder result, int depth)
119var remaining = input[1..];
135var candidate = remaining[..varLength];
156private static int ProcessBracedVariable(ReadOnlySpan<char> input, StringBuilder result, int depth)
164var remaining = input[2..];
198var content = remaining[..closeIndex];
264private static void ProcessWithDefault(ReadOnlySpan<char> content, int sepIdx, StringBuilder result, int depth)
277var varPart = content[..sepIdx];
278var defaultPart = content[(sepIdx + 2)..];
296private static int FindDefaultSeparator(ReadOnlySpan<char> content)
337private static bool IsValidSimpleVariable(ReadOnlySpan<char> name)
BuildActionTelemetryTable (4)
CodeGenerator (2)
ConfigurationSchemaGenerator (2)
GenerateDocumentationAndConfigFiles (51)
http2cat (67)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (18)
136public void Decode(ReadOnlySpan<byte> data, bool endHeaders, IHttpStreamHeadersHandler handler)
142private void DecodeInternal(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler)
198ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length);
204private void ParseDynamicTableSizeUpdate(ReadOnlySpan<byte> data, ref int currentIndex)
213private void ParseHeaderValueLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
243private void ParseHeaderNameLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
256private void ParseHeaderValueLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
268private void ParseHeaderFieldIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
276private void ParseHeaderNameIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
285private void ParseHeaderNameLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
311private void Parse(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
395private void ParseLiteralHeaderField(ReadOnlySpan<byte> data, ref int currentIndex, byte b, byte mask, byte indexPrefix, bool index, IHttpStreamHeadersHandler handler)
422private void ParseHeaderName(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
460private void ParseHeaderValue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
504private void ProcessHeaderValue(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler)
506ReadOnlySpan<byte> headerValueSpan = _headerValueRange == null
521ReadOnlySpan<byte> headerNameSpan = _headerNameRange == null
638private bool TryDecodeInteger(ReadOnlySpan<byte> data, ref int currentIndex, out int result)
src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (4)
63var statusBytes = StatusCodes.ToStatusBytes(statusCode);
288public static bool EncodeLiteralHeaderFieldWithoutIndexingNewName(string name, ReadOnlySpan<string> values, byte[] separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten)
410public static bool EncodeStringLiteral(ReadOnlySpan<byte> value, Span<byte> destination, out int bytesWritten)
513public static bool EncodeStringLiterals(ReadOnlySpan<string> values, byte[]? separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten)
IIS.FunctionalTests (67)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (18)
136public void Decode(ReadOnlySpan<byte> data, bool endHeaders, IHttpStreamHeadersHandler handler)
142private void DecodeInternal(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler)
198ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length);
204private void ParseDynamicTableSizeUpdate(ReadOnlySpan<byte> data, ref int currentIndex)
213private void ParseHeaderValueLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
243private void ParseHeaderNameLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
256private void ParseHeaderValueLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
268private void ParseHeaderFieldIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
276private void ParseHeaderNameIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
285private void ParseHeaderNameLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
311private void Parse(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
395private void ParseLiteralHeaderField(ReadOnlySpan<byte> data, ref int currentIndex, byte b, byte mask, byte indexPrefix, bool index, IHttpStreamHeadersHandler handler)
422private void ParseHeaderName(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
460private void ParseHeaderValue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
504private void ProcessHeaderValue(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler)
506ReadOnlySpan<byte> headerValueSpan = _headerValueRange == null
521ReadOnlySpan<byte> headerNameSpan = _headerNameRange == null
638private bool TryDecodeInteger(ReadOnlySpan<byte> data, ref int currentIndex, out int result)
src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (4)
63var statusBytes = StatusCodes.ToStatusBytes(statusCode);
288public static bool EncodeLiteralHeaderFieldWithoutIndexingNewName(string name, ReadOnlySpan<string> values, byte[] separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten)
410public static bool EncodeStringLiteral(ReadOnlySpan<byte> value, Span<byte> destination, out int bytesWritten)
513public static bool EncodeStringLiterals(ReadOnlySpan<string> values, byte[]? separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten)
IIS.LongTests (67)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (18)
136public void Decode(ReadOnlySpan<byte> data, bool endHeaders, IHttpStreamHeadersHandler handler)
142private void DecodeInternal(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler)
198ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length);
204private void ParseDynamicTableSizeUpdate(ReadOnlySpan<byte> data, ref int currentIndex)
213private void ParseHeaderValueLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
243private void ParseHeaderNameLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
256private void ParseHeaderValueLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
268private void ParseHeaderFieldIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
276private void ParseHeaderNameIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
285private void ParseHeaderNameLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
311private void Parse(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
395private void ParseLiteralHeaderField(ReadOnlySpan<byte> data, ref int currentIndex, byte b, byte mask, byte indexPrefix, bool index, IHttpStreamHeadersHandler handler)
422private void ParseHeaderName(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
460private void ParseHeaderValue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
504private void ProcessHeaderValue(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler)
506ReadOnlySpan<byte> headerValueSpan = _headerValueRange == null
521ReadOnlySpan<byte> headerNameSpan = _headerNameRange == null
638private bool TryDecodeInteger(ReadOnlySpan<byte> data, ref int currentIndex, out int result)
src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (4)
63var statusBytes = StatusCodes.ToStatusBytes(statusCode);
288public static bool EncodeLiteralHeaderFieldWithoutIndexingNewName(string name, ReadOnlySpan<string> values, byte[] separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten)
410public static bool EncodeStringLiteral(ReadOnlySpan<byte> value, Span<byte> destination, out int bytesWritten)
513public static bool EncodeStringLiterals(ReadOnlySpan<string> values, byte[]? separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten)
IIS.NewHandler.FunctionalTests (67)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (18)
136public void Decode(ReadOnlySpan<byte> data, bool endHeaders, IHttpStreamHeadersHandler handler)
142private void DecodeInternal(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler)
198ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length);
204private void ParseDynamicTableSizeUpdate(ReadOnlySpan<byte> data, ref int currentIndex)
213private void ParseHeaderValueLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
243private void ParseHeaderNameLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
256private void ParseHeaderValueLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
268private void ParseHeaderFieldIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
276private void ParseHeaderNameIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
285private void ParseHeaderNameLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
311private void Parse(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
395private void ParseLiteralHeaderField(ReadOnlySpan<byte> data, ref int currentIndex, byte b, byte mask, byte indexPrefix, bool index, IHttpStreamHeadersHandler handler)
422private void ParseHeaderName(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
460private void ParseHeaderValue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
504private void ProcessHeaderValue(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler)
506ReadOnlySpan<byte> headerValueSpan = _headerValueRange == null
521ReadOnlySpan<byte> headerNameSpan = _headerNameRange == null
638private bool TryDecodeInteger(ReadOnlySpan<byte> data, ref int currentIndex, out int result)
src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (4)
63var statusBytes = StatusCodes.ToStatusBytes(statusCode);
288public static bool EncodeLiteralHeaderFieldWithoutIndexingNewName(string name, ReadOnlySpan<string> values, byte[] separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten)
410public static bool EncodeStringLiteral(ReadOnlySpan<byte> value, Span<byte> destination, out int bytesWritten)
513public static bool EncodeStringLiterals(ReadOnlySpan<string> values, byte[]? separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten)
IIS.NewShim.FunctionalTests (67)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (18)
136public void Decode(ReadOnlySpan<byte> data, bool endHeaders, IHttpStreamHeadersHandler handler)
142private void DecodeInternal(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler)
198ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length);
204private void ParseDynamicTableSizeUpdate(ReadOnlySpan<byte> data, ref int currentIndex)
213private void ParseHeaderValueLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
243private void ParseHeaderNameLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
256private void ParseHeaderValueLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
268private void ParseHeaderFieldIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
276private void ParseHeaderNameIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
285private void ParseHeaderNameLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
311private void Parse(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
395private void ParseLiteralHeaderField(ReadOnlySpan<byte> data, ref int currentIndex, byte b, byte mask, byte indexPrefix, bool index, IHttpStreamHeadersHandler handler)
422private void ParseHeaderName(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
460private void ParseHeaderValue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
504private void ProcessHeaderValue(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler)
506ReadOnlySpan<byte> headerValueSpan = _headerValueRange == null
521ReadOnlySpan<byte> headerNameSpan = _headerNameRange == null
638private bool TryDecodeInteger(ReadOnlySpan<byte> data, ref int currentIndex, out int result)
src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (4)
63var statusBytes = StatusCodes.ToStatusBytes(statusCode);
288public static bool EncodeLiteralHeaderFieldWithoutIndexingNewName(string name, ReadOnlySpan<string> values, byte[] separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten)
410public static bool EncodeStringLiteral(ReadOnlySpan<byte> value, Span<byte> destination, out int bytesWritten)
513public static bool EncodeStringLiterals(ReadOnlySpan<string> values, byte[]? separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten)
IIS.ShadowCopy.Tests (21)
IISExpress.FunctionalTests (67)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (18)
136public void Decode(ReadOnlySpan<byte> data, bool endHeaders, IHttpStreamHeadersHandler handler)
142private void DecodeInternal(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler)
198ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length);
204private void ParseDynamicTableSizeUpdate(ReadOnlySpan<byte> data, ref int currentIndex)
213private void ParseHeaderValueLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
243private void ParseHeaderNameLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
256private void ParseHeaderValueLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
268private void ParseHeaderFieldIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
276private void ParseHeaderNameIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
285private void ParseHeaderNameLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
311private void Parse(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
395private void ParseLiteralHeaderField(ReadOnlySpan<byte> data, ref int currentIndex, byte b, byte mask, byte indexPrefix, bool index, IHttpStreamHeadersHandler handler)
422private void ParseHeaderName(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
460private void ParseHeaderValue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
504private void ProcessHeaderValue(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler)
506ReadOnlySpan<byte> headerValueSpan = _headerValueRange == null
521ReadOnlySpan<byte> headerNameSpan = _headerNameRange == null
638private bool TryDecodeInteger(ReadOnlySpan<byte> data, ref int currentIndex, out int result)
src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (4)
63var statusBytes = StatusCodes.ToStatusBytes(statusCode);
288public static bool EncodeLiteralHeaderFieldWithoutIndexingNewName(string name, ReadOnlySpan<string> values, byte[] separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten)
410public static bool EncodeStringLiteral(ReadOnlySpan<byte> value, Span<byte> destination, out int bytesWritten)
513public static bool EncodeStringLiterals(ReadOnlySpan<string> values, byte[]? separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten)
illink (6)
ILLink.RoslynAnalyzer (47)
src\libraries\Common\src\System\HexConverter.cs (9)
185public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper)
202public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper)
219public static string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper)
249public ReadOnlySpan<byte> Bytes { get; set; }
281public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
293public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
461private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
496private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
603public static ReadOnlySpan<byte> CharToHexLookup =>
InMemory.FunctionalTests (21)
Interop.FunctionalTests (1)
Metrics (59)
Metrics.Legacy (59)
Microsoft.AspNetCore.Authorization (1)
Microsoft.AspNetCore.Components (49)
Routing\UrlValueConstraint.cs (15)
15public delegate bool TryParseDelegate<T>(ReadOnlySpan<char> str, [MaybeNullWhen(false)] out T result);
35private static bool TryParse(ReadOnlySpan<char> str, out string result)
41private static bool TryParse(ReadOnlySpan<char> str, out DateTime result)
44private static bool TryParse(ReadOnlySpan<char> str, out DateOnly result)
47private static bool TryParse(ReadOnlySpan<char> str, out TimeOnly result)
50private static bool TryParse(ReadOnlySpan<char> str, out decimal result)
53private static bool TryParse(ReadOnlySpan<char> str, out double result)
56private static bool TryParse(ReadOnlySpan<char> str, out float result)
59private static bool TryParse(ReadOnlySpan<char> str, out int result)
62private static bool TryParse(ReadOnlySpan<char> str, out long result)
91public abstract bool TryParse(ReadOnlySpan<char> value, [MaybeNullWhen(false)] out object result);
93public abstract object? Parse(ReadOnlySpan<char> value, string destinationNameForMessage);
106public override bool TryParse(ReadOnlySpan<char> value, [MaybeNullWhen(false)] out object result)
120public override object? Parse(ReadOnlySpan<char> value, string destinationNameForMessage)
163bool TryParseNullable(ReadOnlySpan<char> value, [MaybeNullWhen(false)] out T? result)
Microsoft.AspNetCore.Components.Endpoints (8)
Microsoft.AspNetCore.Components.Forms (1)
Microsoft.AspNetCore.Components.Performance (4)
Microsoft.AspNetCore.Components.Server (29)
Microsoft.AspNetCore.Components.Web (9)
Microsoft.AspNetCore.Components.WebView (3)
Microsoft.AspNetCore.CookiePolicy (1)
Microsoft.AspNetCore.Cors (1)
Microsoft.AspNetCore.Cryptography.Internal (4)
Microsoft.AspNetCore.DataProtection (10)
Microsoft.AspNetCore.DataProtection.Abstractions (4)
Microsoft.AspNetCore.Diagnostics.Middleware (2)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Microsoft.AspNetCore.HeaderParsing (1)
Microsoft.AspNetCore.Http (6)
Microsoft.AspNetCore.Http.Abstractions (10)
Microsoft.AspNetCore.Http.Connections (6)
Microsoft.AspNetCore.Http.Connections.Common (3)
Microsoft.AspNetCore.Http.Extensions (12)
Microsoft.AspNetCore.Http.Extensions.Tests (3)
Microsoft.AspNetCore.Http.Features (1)
Microsoft.AspNetCore.Http.Results (4)
Microsoft.AspNetCore.HttpLogging (11)
Microsoft.AspNetCore.HttpOverrides (10)
Microsoft.AspNetCore.Identity (9)
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Microsoft.AspNetCore.Identity.Test (3)
Microsoft.AspNetCore.Localization (5)
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
Microsoft.AspNetCore.Mvc.Core (4)
Microsoft.AspNetCore.Mvc.Razor (2)
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Microsoft.AspNetCore.OpenApi (7)
Microsoft.AspNetCore.OutputCaching (7)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (2)
Microsoft.AspNetCore.Razor (1)
Microsoft.AspNetCore.ResponseCaching (1)
Microsoft.AspNetCore.Rewrite (1)
Microsoft.AspNetCore.Routing (31)
Microsoft.AspNetCore.Routing.Microbenchmarks (2)
Microsoft.AspNetCore.Routing.Tests (1)
Microsoft.AspNetCore.Server.HttpSys (26)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (62)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (18)
136public void Decode(ReadOnlySpan<byte> data, bool endHeaders, IHttpStreamHeadersHandler handler)
142private void DecodeInternal(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler)
198ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length);
204private void ParseDynamicTableSizeUpdate(ReadOnlySpan<byte> data, ref int currentIndex)
213private void ParseHeaderValueLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
243private void ParseHeaderNameLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
256private void ParseHeaderValueLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
268private void ParseHeaderFieldIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
276private void ParseHeaderNameIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
285private void ParseHeaderNameLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
311private void Parse(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
395private void ParseLiteralHeaderField(ReadOnlySpan<byte> data, ref int currentIndex, byte b, byte mask, byte indexPrefix, bool index, IHttpStreamHeadersHandler handler)
422private void ParseHeaderName(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
460private void ParseHeaderValue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
504private void ProcessHeaderValue(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler)
506ReadOnlySpan<byte> headerValueSpan = _headerValueRange == null
521ReadOnlySpan<byte> headerNameSpan = _headerNameRange == null
638private bool TryDecodeInteger(ReadOnlySpan<byte> data, ref int currentIndex, out int result)
src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (4)
63var statusBytes = StatusCodes.ToStatusBytes(statusCode);
288public static bool EncodeLiteralHeaderFieldWithoutIndexingNewName(string name, ReadOnlySpan<string> values, byte[] separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten)
410public static bool EncodeStringLiteral(ReadOnlySpan<byte> value, Span<byte> destination, out int bytesWritten)
513public static bool EncodeStringLiterals(ReadOnlySpan<string> values, byte[]? separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten)
Microsoft.AspNetCore.Server.IIS (23)
Microsoft.AspNetCore.Server.Kestrel.Core (262)
Internal\Http\Http1Connection.cs (3)
18internal static ReadOnlySpan<byte> Http2GoAwayHttp11RequiredBytes => [0, 0, 8, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13];
863var clientPrefaceRequestLine = Http2.Http2Connection.ClientPreface.Slice(0, PrefaceLineLength);
864var currentRequestLine = requestData.Slice(0, PrefaceLineLength).ToSpan();
Internal\Http\Http1OutputProducer.cs (13)
19private static ReadOnlySpan<byte> ContinueBytes => "HTTP/1.1 100 Continue\r\n\r\n"u8;
20private static ReadOnlySpan<byte> HttpVersion11Bytes => "HTTP/1.1 "u8;
21private static ReadOnlySpan<byte> EndHeadersBytes => "\r\n\r\n"u8;
22private static ReadOnlySpan<byte> EndChunkedResponseBytes => "0\r\n\r\n"u8;
96public Task WriteDataAsync(ReadOnlySpan<byte> buffer, CancellationToken cancellationToken = default)
106public ValueTask<FlushResult> WriteDataToPipeAsync(ReadOnlySpan<byte> buffer, CancellationToken cancellationToken = default)
295public ValueTask<FlushResult> WriteChunkAsync(ReadOnlySpan<byte> buffer, CancellationToken cancellationToken)
319private void CommitChunkInternal(ref BufferWriter<PipeWriter> writer, ReadOnlySpan<byte> buffer)
495public ValueTask<FlushResult> FirstWriteAsync(int statusCode, string? reasonPhrase, HttpResponseHeaders responseHeaders, ResponseBodyMode responseBodyMode, ReadOnlySpan<byte> buffer, CancellationToken cancellationToken)
515public ValueTask<FlushResult> FirstWriteChunkedAsync(int statusCode, string? reasonPhrase, HttpResponseHeaders responseHeaders, ResponseBodyMode responseBodyMode, ReadOnlySpan<byte> buffer, CancellationToken cancellationToken)
552ReadOnlySpan<byte> buffer,
571ReadOnlySpan<byte> buffer,
803public ReadOnlySpan<byte> Span => Buffer.Span.Slice(0, Length);
Internal\Http\HttpHeaders.Generated.cs (7)
7514public void Append(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value, bool checkForNewlineChars)
7927public bool TryHPackAppend(int index, ReadOnlySpan<byte> value, bool checkForNewlineChars)
8139public bool TryQPackAppend(int index, ReadOnlySpan<byte> value, bool checkForNewlineChars)
8688private static ReadOnlySpan<byte> HeaderBytes => [13,10,67,111,110,110,101,99,116,105,111,110,58,32,13,10,67,111,110,116,101,110,116,45,84,121,112,101,58,32,13,10,68,97,116,101,58,32,13,10,83,101,114,118,101,114,58,32,13,10,65,99,99,101,112,116,45,82,97,110,103,101,115,58,32,13,10,65,99,99,101,115,115,45,67,111,110,116,114,111,108,45,65,108,108,111,119,45,67,114,101,100,101,110,116,105,97,108,115,58,32,13,10,65,99,99,101,115,115,45,67,111,110,116,114,111,108,45,65,108,108,111,119,45,72,101,97,100,101,114,115,58,32,13,10,65,99,99,101,115,115,45,67,111,110,116,114,111,108,45,65,108,108,111,119,45,77,101,116,104,111,100,115,58,32,13,10,65,99,99,101,115,115,45,67,111,110,116,114,111,108,45,65,108,108,111,119,45,79,114,105,103,105,110,58,32,13,10,65,99,99,101,115,115,45,67,111,110,116,114,111,108,45,69,120,112,111,115,101,45,72,101,97,100,101,114,115,58,32,13,10,65,99,99,101,115,115,45,67,111,110,116,114,111,108,45,77,97,120,45,65,103,101,58,32,13,10,65,103,101,58,32,13,10,65,108,108,111,119,58,32,13,10,65,108,116,45,83,118,99,58,32,13,10,67,97,99,104,101,45,67,111,110,116,114,111,108,58,32,13,10,67,111,110,116,101,110,116,45,69,110,99,111,100,105,110,103,58,32,13,10,67,111,110,116,101,110,116,45,76,97,110,103,117,97,103,101,58,32,13,10,67,111,110,116,101,110,116,45,76,111,99,97,116,105,111,110,58,32,13,10,67,111,110,116,101,110,116,45,77,68,53,58,32,13,10,67,111,110,116,101,110,116,45,82,97,110,103,101,58,32,13,10,69,84,97,103,58,32,13,10,69,120,112,105,114,101,115,58,32,13,10,71,114,112,99,45,69,110,99,111,100,105,110,103,58,32,13,10,75,101,101,112,45,65,108,105,118,101,58,32,13,10,76,97,115,116,45,77,111,100,105,102,105,101,100,58,32,13,10,76,111,99,97,116,105,111,110,58,32,13,10,80,114,97,103,109,97,58,32,13,10,80,114,111,120,121,45,65,117,116,104,101,110,116,105,99,97,116,101,58,32,13,10,80,114,111,120,121,45,67,111,110,110,101,99,116,105,111,110,58,32,13,10,82,101,116,114,121,45,65,102,116,101,114,58,32,13,10,83,101,116,45,67,111,111,107,105,101,58,32,13,10,84,114,97,105,108,101,114,58,32,13,10,84,114,97,110,115,102,101,114,45,69,110,99,111,100,105,110,103,58,32,13,10,85,112,103,114,97,100,101,58,32,13,10,86,97,114,121,58,32,13,10,86,105,97,58,32,13,10,87,97,114,110,105,110,103,58,32,13,10,87,87,87,45,65,117,116,104,101,110,116,105,99,97,116,101,58,32,13,10,67,111,110,116,101,110,116,45,76,101,110,103,116,104,58,32,];
15174var headerKey = HeaderBytes.Slice(keyStart, keyLength);
15524private static ReadOnlySpan<byte> HeaderBytes => [13,10,69,84,97,103,58,32,13,10,71,114,112,99,45,77,101,115,115,97,103,101,58,32,13,10,71,114,112,99,45,83,116,97,116,117,115,58,32,];
Internal\Http\IHttpOutputProducer.cs (5)
13ValueTask<FlushResult> WriteChunkAsync(ReadOnlySpan<byte> data, CancellationToken cancellationToken);
18ValueTask<FlushResult> WriteDataToPipeAsync(ReadOnlySpan<byte> data, CancellationToken cancellationToken);
20Task WriteDataAsync(ReadOnlySpan<byte> data, CancellationToken cancellationToken);
28ValueTask<FlushResult> FirstWriteAsync(int statusCode, string? reasonPhrase, HttpResponseHeaders responseHeaders, ResponseBodyMode responseBodyMode, ReadOnlySpan<byte> data, CancellationToken cancellationToken);
29ValueTask<FlushResult> FirstWriteChunkedAsync(int statusCode, string? reasonPhrase, HttpResponseHeaders responseHeaders, ResponseBodyMode responseBodyMode, ReadOnlySpan<byte> data, CancellationToken cancellationToken);
Internal\Http2\Http2Connection.cs (27)
43private static ReadOnlySpan<byte> ClientPrefaceBytes => "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n"u8;
44private static ReadOnlySpan<byte> AuthorityBytes => ":authority"u8;
45private static ReadOnlySpan<byte> MethodBytes => ":method"u8;
46private static ReadOnlySpan<byte> PathBytes => ":path"u8;
47private static ReadOnlySpan<byte> SchemeBytes => ":scheme"u8;
48private static ReadOnlySpan<byte> StatusBytes => ":status"u8;
49private static ReadOnlySpan<byte> ConnectionBytes => "connection"u8;
50private static ReadOnlySpan<byte> TeBytes => "te"u8;
51private static ReadOnlySpan<byte> TrailersBytes => "trailers"u8;
52private static ReadOnlySpan<byte> ConnectBytes => "CONNECT"u8;
53private static ReadOnlySpan<byte> ProtocolBytes => ":protocol"u8;
55public static ReadOnlySpan<byte> ClientPreface => ClientPrefaceBytes;
638if (reader.TryReadTo(out ReadOnlySpan<byte> requestLine, (byte)'\n'))
666var span = preface.ToSpan();
1536public void OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
1541public void OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
1554public void OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value)
1572private void OnHeaderCore(HeaderType headerType, int? staticTableIndex, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
1661private void ValidateHeaderContent(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
1686private void UpdateHeaderParsingState(ReadOnlySpan<byte> value, PseudoHeaderFields headerField)
1780private static PseudoHeaderFields GetPseudoHeaderField(ReadOnlySpan<byte> name)
1816private static bool IsConnectionSpecificHeaderField(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
Internal\Http2\Http2OutputProducer.cs (5)
385public Task WriteDataAsync(ReadOnlySpan<byte> data, CancellationToken cancellationToken)
521public ValueTask<FlushResult> WriteDataToPipeAsync(ReadOnlySpan<byte> data, CancellationToken cancellationToken)
552public ValueTask<FlushResult> FirstWriteAsync(int statusCode, string? reasonPhrase, HttpResponseHeaders responseHeaders, ResponseBodyMode responseBodyMode, ReadOnlySpan<byte> data, CancellationToken cancellationToken)
562ValueTask<FlushResult> IHttpOutputProducer.WriteChunkAsync(ReadOnlySpan<byte> data, CancellationToken cancellationToken)
567public ValueTask<FlushResult> FirstWriteChunkedAsync(int statusCode, string? reasonPhrase, HttpResponseHeaders responseHeaders, ResponseBodyMode responseBodyMode, ReadOnlySpan<byte> data, CancellationToken cancellationToken)
Internal\Http3\Http3OutputProducer.cs (5)
150public ValueTask<FlushResult> FirstWriteAsync(int statusCode, string? reasonPhrase, HttpResponseHeaders responseHeaders, ResponseBodyMode responseBodyMode, ReadOnlySpan<byte> data, CancellationToken cancellationToken)
160public ValueTask<FlushResult> FirstWriteChunkedAsync(int statusCode, string? reasonPhrase, HttpResponseHeaders responseHeaders, ResponseBodyMode responseBodyMode, ReadOnlySpan<byte> data, CancellationToken cancellationToken)
321public ValueTask<FlushResult> WriteChunkAsync(ReadOnlySpan<byte> data, CancellationToken cancellationToken)
326public Task WriteDataAsync(ReadOnlySpan<byte> data, CancellationToken cancellationToken)
351public ValueTask<FlushResult> WriteDataToPipeAsync(ReadOnlySpan<byte> data, CancellationToken cancellationToken)
Internal\Http3\Http3Stream.cs (29)
29private static ReadOnlySpan<byte> AuthorityBytes => ":authority"u8;
30private static ReadOnlySpan<byte> MethodBytes => ":method"u8;
31private static ReadOnlySpan<byte> PathBytes => ":path"u8;
32private static ReadOnlySpan<byte> ProtocolBytes => ":protocol"u8;
33private static ReadOnlySpan<byte> SchemeBytes => ":scheme"u8;
34private static ReadOnlySpan<byte> StatusBytes => ":status"u8;
35private static ReadOnlySpan<byte> ConnectionBytes => "connection"u8;
36private static ReadOnlySpan<byte> TeBytes => "te"u8;
37private static ReadOnlySpan<byte> TrailersBytes => "trailers"u8;
38private static ReadOnlySpan<byte> ConnectBytes => "CONNECT"u8;
225public void OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value)
232public void OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
237public void OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
250public override void OnHeader(int index, bool indexOnly, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
290private void AppendHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
295private void OnHeaderCore(HeaderType headerType, int? staticTableIndex, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
373private void ValidateHeaderContent(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
398private void UpdateHeaderParsingState(ReadOnlySpan<byte> value, PseudoHeaderFields headerField)
507private static PseudoHeaderFields GetPseudoHeaderField(ReadOnlySpan<byte> name)
543private static bool IsConnectionSpecificHeaderField(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
1106var pathSegment = queryIndex == -1 ? path.AsSpan() : path.AsSpan(0, queryIndex);
1175private bool TryValidatePath(ReadOnlySpan<char> pathSegment)
Internal\Infrastructure\HttpUtilities.cs (16)
76private static ulong GetMaskAsLong(ReadOnlySpan<byte> bytes)
85public static string GetHeaderName(this ReadOnlySpan<byte> span)
113public static string GetAsciiOrUTF8String(this ReadOnlySpan<byte> span)
116public static string GetRequestHeaderString(this ReadOnlySpan<byte> span, string name, Func<string, Encoding?> encodingSelector, bool checkForNewlineChars)
131((ReadOnlySpan<char>)result).ContainsAny('\r', '\n', '\0')
132: ((ReadOnlySpan<char>)result).Contains('\0');
155private static string GetRequestHeaderStringWithoutDefaultEncodingCore(this ReadOnlySpan<byte> span, string name, Func<string, Encoding?> encodingSelector)
177public static string GetAsciiStringEscaped(this ReadOnlySpan<byte> span, int maxChars)
207public static bool GetKnownMethod(this ReadOnlySpan<byte> span, out HttpMethod method, out int length)
214public static HttpMethod GetKnownMethod(this ReadOnlySpan<byte> span, out int methodLength)
279var methodsLookup = Methods();
296static uint PerfectHash(ReadOnlySpan<char> str)
298ReadOnlySpan<byte> associatedValues =
335static ReadOnlySpan<HttpMethod> Methods() =>
381public static bool GetKnownVersion(this ReadOnlySpan<byte> span, out HttpVersion knownVersion, out byte length)
409internal static HttpVersion GetKnownVersion(this ReadOnlySpan<byte> span)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (18)
136public void Decode(ReadOnlySpan<byte> data, bool endHeaders, IHttpStreamHeadersHandler handler)
142private void DecodeInternal(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler)
198ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length);
204private void ParseDynamicTableSizeUpdate(ReadOnlySpan<byte> data, ref int currentIndex)
213private void ParseHeaderValueLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
243private void ParseHeaderNameLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
256private void ParseHeaderValueLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
268private void ParseHeaderFieldIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
276private void ParseHeaderNameIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
285private void ParseHeaderNameLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
311private void Parse(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
395private void ParseLiteralHeaderField(ReadOnlySpan<byte> data, ref int currentIndex, byte b, byte mask, byte indexPrefix, bool index, IHttpStreamHeadersHandler handler)
422private void ParseHeaderName(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
460private void ParseHeaderValue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
504private void ProcessHeaderValue(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler)
506ReadOnlySpan<byte> headerValueSpan = _headerValueRange == null
521ReadOnlySpan<byte> headerNameSpan = _headerNameRange == null
638private bool TryDecodeInteger(ReadOnlySpan<byte> data, ref int currentIndex, out int result)
src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (4)
63var statusBytes = StatusCodes.ToStatusBytes(statusCode);
288public static bool EncodeLiteralHeaderFieldWithoutIndexingNewName(string name, ReadOnlySpan<string> values, byte[] separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten)
410public static bool EncodeStringLiteral(ReadOnlySpan<byte> value, Span<byte> destination, out int bytesWritten)
513public static bool EncodeStringLiterals(ReadOnlySpan<string> values, byte[]? separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten)
src\Shared\runtime\Http3\QPack\QPackDecoder.cs (21)
175public void Decode(ReadOnlySpan<byte> data, bool endHeaders, IHttpStreamHeadersHandler handler)
181private void DecodeInternal(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler)
249ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length);
255private void ParseHeaderNameIndexPostBase(ReadOnlySpan<byte> data, ref int currentIndex)
263private void ParsePostBaseIndex(ReadOnlySpan<byte> data, ref int currentIndex)
271private void ParseHeaderNameLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
284private void ParseHeaderName(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
323private void ParseHeaderFieldIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
331private void ParseHeaderNameIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
340private void ParseHeaderValueLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
370private void ParseHeaderValue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
407private void ParseHeaderValueLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
424private void ParseCompressedHeaders(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
523private void ParseRequiredInsertCountContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
532private void ParseBase(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
552private void ParseBaseContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
561private void ParseRequiredInsertCount(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
591private void ProcessHeaderValue(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler)
593ReadOnlySpan<byte> headerValueSpan = _headerValueRange == null
603ReadOnlySpan<byte> headerNameSpan = _headerNameRange == null
687private bool TryDecodeInteger(ReadOnlySpan<byte> data, ref int currentIndex, out int result)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (25)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (29)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (5)
Microsoft.AspNetCore.Shared.Tests (124)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (18)
136public void Decode(ReadOnlySpan<byte> data, bool endHeaders, IHttpStreamHeadersHandler handler)
142private void DecodeInternal(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler)
198ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length);
204private void ParseDynamicTableSizeUpdate(ReadOnlySpan<byte> data, ref int currentIndex)
213private void ParseHeaderValueLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
243private void ParseHeaderNameLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
256private void ParseHeaderValueLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
268private void ParseHeaderFieldIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
276private void ParseHeaderNameIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
285private void ParseHeaderNameLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
311private void Parse(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
395private void ParseLiteralHeaderField(ReadOnlySpan<byte> data, ref int currentIndex, byte b, byte mask, byte indexPrefix, bool index, IHttpStreamHeadersHandler handler)
422private void ParseHeaderName(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
460private void ParseHeaderValue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
504private void ProcessHeaderValue(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler)
506ReadOnlySpan<byte> headerValueSpan = _headerValueRange == null
521ReadOnlySpan<byte> headerNameSpan = _headerNameRange == null
638private bool TryDecodeInteger(ReadOnlySpan<byte> data, ref int currentIndex, out int result)
src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (4)
63var statusBytes = StatusCodes.ToStatusBytes(statusCode);
288public static bool EncodeLiteralHeaderFieldWithoutIndexingNewName(string name, ReadOnlySpan<string> values, byte[] separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten)
410public static bool EncodeStringLiteral(ReadOnlySpan<byte> value, Span<byte> destination, out int bytesWritten)
513public static bool EncodeStringLiterals(ReadOnlySpan<string> values, byte[]? separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten)
src\Shared\runtime\Http3\QPack\QPackDecoder.cs (21)
175public void Decode(ReadOnlySpan<byte> data, bool endHeaders, IHttpStreamHeadersHandler handler)
181private void DecodeInternal(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler)
249ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length);
255private void ParseHeaderNameIndexPostBase(ReadOnlySpan<byte> data, ref int currentIndex)
263private void ParsePostBaseIndex(ReadOnlySpan<byte> data, ref int currentIndex)
271private void ParseHeaderNameLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
284private void ParseHeaderName(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
323private void ParseHeaderFieldIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
331private void ParseHeaderNameIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
340private void ParseHeaderValueLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
370private void ParseHeaderValue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
407private void ParseHeaderValueLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
424private void ParseCompressedHeaders(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
523private void ParseRequiredInsertCountContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
532private void ParseBase(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
552private void ParseBaseContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
561private void ParseRequiredInsertCount(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
591private void ProcessHeaderValue(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler)
593ReadOnlySpan<byte> headerValueSpan = _headerValueRange == null
603ReadOnlySpan<byte> headerNameSpan = _headerNameRange == null
687private bool TryDecodeInteger(ReadOnlySpan<byte> data, ref int currentIndex, out int result)
Microsoft.AspNetCore.SignalR.Client.Tests (3)
Microsoft.AspNetCore.SignalR.Common (7)
Microsoft.AspNetCore.SignalR.Common.Tests (2)
Microsoft.AspNetCore.SignalR.Core (8)
Microsoft.AspNetCore.SignalR.Microbenchmarks (3)
Microsoft.AspNetCore.SignalR.Protocols.Json (3)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (5)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (5)
Microsoft.AspNetCore.SignalR.Specification.Tests (2)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
Microsoft.AspNetCore.TestHost (1)
Microsoft.AspNetCore.WebSockets (10)
Microsoft.AspNetCore.WebUtilities (35)
Microsoft.AspNetCore.WebUtilities.Tests (3)
Microsoft.Build.Framework (2)
Microsoft.Build.Tasks.CodeAnalysis (2)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (2)
Microsoft.Cci.Extensions (8)
Microsoft.CodeAnalysis (105)
Microsoft.CodeAnalysis.Analyzers (59)
Microsoft.CodeAnalysis.AnalyzerUtilities (59)
Microsoft.CodeAnalysis.BannedApiAnalyzers (59)
Microsoft.CodeAnalysis.CodeStyle (52)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.Collections.Package (3)
Microsoft.CodeAnalysis.CSharp (33)
Parser\LanguageParser_InterpolatedString.cs (15)
44var originalTextSpan = originalText.AsSpan();
94CodeAnalysis.Syntax.InternalSyntax.SyntaxList<InterpolatedStringContentSyntax> getContent(ReadOnlySpan<char> originalTextSpan)
99var indentationWhitespace = needsDedentation ? getIndentationWhitespace(originalTextSpan) : default;
135ReadOnlySpan<char> getIndentationWhitespace(ReadOnlySpan<char> originalTextSpan)
139var closeQuoteText = originalTextSpan[closeQuoteRange];
152ReadOnlySpan<char> indentationWhitespace, StringBuilder content, bool isFirst, bool isLast, ReadOnlySpan<char> text)
185var currentLineWhitespace = text[lineStartPosition..currentIndex];
278ReadOnlySpan<char> indentationWhitespace,
294ReadOnlySpan<char> currentLineWhitespace,
295ReadOnlySpan<char> indentationLineWhitespace,
324private static int SkipWhitespace(ReadOnlySpan<char> text, int currentIndex)
331private static int ConsumeRemainingContentThroughNewLine(StringBuilder content, ReadOnlySpan<char> text, int currentIndex)
347var slice = text[start..currentIndex];
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
45nameof(ReadOnlySpan<>),
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.Features (9)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
45nameof(ReadOnlySpan<>),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (9)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Microsoft.CodeAnalysis.EditorFeatures (7)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (10)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (9)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Microsoft.CodeAnalysis.Extensions.Package (10)
Microsoft.CodeAnalysis.ExternalAccess.Razor.UnitTests (1)
Microsoft.CodeAnalysis.Features (17)
EmbeddedLanguages\RegularExpressions\RegexCharClass.cs (1)
205ReadOnlySpan<byte> asciiLookup = [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x03, 0xFE, 0xFF, 0xFF, 0x87, 0xFE, 0xFF, 0xFF, 0x07];
Microsoft.CodeAnalysis.Features.Test.Utilities (3)
Microsoft.CodeAnalysis.InteractiveHost (12)
Microsoft.CodeAnalysis.LanguageServer.Protocol (5)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (59)
Microsoft.CodeAnalysis.PublicApiAnalyzers (59)
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (59)
Microsoft.CodeAnalysis.Test.Utilities (10)
Assert\AssertEx.cs (8)
164public static void Equal<T>(ReadOnlySpan<T> expected, T[] actual) =>
250ReadOnlySpan<T> expected,
251ReadOnlySpan<T> actual,
366private static bool SequenceEqual<T>(ReadOnlySpan<T> expected, ReadOnlySpan<T> actual, IEqualityComparer<T> comparer = null)
760ReadOnlySpan<T> expected,
761ReadOnlySpan<T> actual,
824static string join(string itemSeparator, ReadOnlySpan<T> items, Func<T, string> itemInspector)
Microsoft.CodeAnalysis.Threading.Package (5)
Microsoft.CodeAnalysis.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces (59)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (37)
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
Microsoft.CSharp (2)
Microsoft.Data.Analysis (994)
Computations\Arithmetic.cs (60)
18public void HandleOperation(BinaryOperation operation, ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination)
49public void HandleOperation(BinaryOperation operation, ReadOnlySpan<T> x, T y, Span<T> destination)
80public void HandleOperation(BinaryOperation operation, T x, ReadOnlySpan<T> y, Span<T> destination)
125public void HandleOperation(BinaryIntOperation operation, ReadOnlySpan<T> x, int y, Span<T> destination)
141public void HandleOperation(ComparisonOperation operation, ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<bool> destination)
166public void HandleOperation(ComparisonOperation operation, ReadOnlySpan<T> x, T y, Span<bool> destination)
194protected virtual void Add(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
195protected virtual void Add(ReadOnlySpan<T> x, T y, Span<T> destination) => throw new NotSupportedException();
196protected virtual void Add(T x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
197protected virtual void Subtract(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
198protected virtual void Subtract(ReadOnlySpan<T> x, T y, Span<T> destination) => throw new NotSupportedException();
199protected virtual void Subtract(T x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
200protected virtual void Multiply(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
201protected virtual void Multiply(ReadOnlySpan<T> x, T y, Span<T> destination) => throw new NotSupportedException();
202protected virtual void Multiply(T x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
203protected virtual void Divide(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
204protected virtual void Divide(ReadOnlySpan<T> x, T y, Span<T> destination) => throw new NotSupportedException();
205protected virtual void Divide(T x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
206protected virtual void Modulo(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
207protected virtual void Modulo(ReadOnlySpan<T> x, T y, Span<T> destination) => throw new NotSupportedException();
208protected virtual void Modulo(T x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
213protected virtual void And(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
214protected virtual void And(ReadOnlySpan<T> x, T y, Span<T> destination) => throw new NotSupportedException();
215protected virtual void And(T x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
216protected virtual void Or(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
217protected virtual void Or(ReadOnlySpan<T> x, T y, Span<T> destination) => throw new NotSupportedException();
218protected virtual void Or(T x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
219protected virtual void Xor(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
220protected virtual void Xor(ReadOnlySpan<T> x, T y, Span<T> destination) => throw new NotSupportedException();
221protected virtual void Xor(T x, ReadOnlySpan<T> y, Span<T> destination) => throw new NotSupportedException();
223protected virtual void LeftShift(ReadOnlySpan<T> x, int y, Span<T> destination) => throw new NotSupportedException();
224protected virtual void RightShift(ReadOnlySpan<T> x, int y, Span<T> destination) => throw new NotSupportedException();
226protected virtual void ElementwiseEquals(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<bool> destination) => throw new NotSupportedException();
227protected virtual void ElementwiseEquals(ReadOnlySpan<T> x, T y, Span<bool> destination) => throw new NotSupportedException();
228protected virtual void ElementwiseNotEquals(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<bool> destination) => throw new NotSupportedException();
229protected virtual void ElementwiseNotEquals(ReadOnlySpan<T> x, T y, Span<bool> destination) => throw new NotSupportedException();
230protected virtual void ElementwiseGreaterThanOrEqual(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<bool> destination) => throw new NotSupportedException();
231protected virtual void ElementwiseGreaterThanOrEqual(ReadOnlySpan<T> x, T y, Span<bool> destination) => throw new NotSupportedException();
232protected virtual void ElementwiseLessThanOrEqual(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<bool> destination) => throw new NotSupportedException();
233protected virtual void ElementwiseLessThanOrEqual(ReadOnlySpan<T> x, T y, Span<bool> destination) => throw new NotSupportedException();
234protected virtual void ElementwiseGreaterThan(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<bool> destination) => throw new NotSupportedException();
235protected virtual void ElementwiseGreaterThan(ReadOnlySpan<T> x, T y, Span<bool> destination) => throw new NotSupportedException();
236protected virtual void ElementwiseLessThan(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<bool> destination) => throw new NotSupportedException();
237protected virtual void ElementwiseLessThan(ReadOnlySpan<T> x, T y, Span<bool> destination) => throw new NotSupportedException();
Computations\Arithmetic.netstandard.cs (606)
28protected override void And(ReadOnlySpan<bool> x, ReadOnlySpan<bool> y, Span<bool> destination)
39protected override void And(ReadOnlySpan<bool> x, bool y, Span<bool> destination)
50protected override void And(bool x, ReadOnlySpan<bool> y, Span<bool> destination)
61protected override void Or(ReadOnlySpan<bool> x, ReadOnlySpan<bool> y, Span<bool> destination)
72protected override void Or(ReadOnlySpan<bool> x, bool y, Span<bool> destination)
83protected override void Or(bool x, ReadOnlySpan<bool> y, Span<bool> destination)
94protected override void Xor(ReadOnlySpan<bool> x, ReadOnlySpan<bool> y, Span<bool> destination)
105protected override void Xor(ReadOnlySpan<bool> x, bool y, Span<bool> destination)
116protected override void Xor(bool x, ReadOnlySpan<bool> y, Span<bool> destination)
127protected override void ElementwiseEquals(ReadOnlySpan<bool> x, ReadOnlySpan<bool> y, Span<bool> destination)
135protected override void ElementwiseEquals(ReadOnlySpan<bool> x, bool y, Span<bool> destination)
143protected override void ElementwiseNotEquals(ReadOnlySpan<bool> x, ReadOnlySpan<bool> y, Span<bool> destination)
151protected override void ElementwiseNotEquals(ReadOnlySpan<bool> x, bool y, Span<bool> destination)
162protected override void Add(ReadOnlySpan<byte> x, ReadOnlySpan<byte> y, Span<byte> destination)
194protected override void Add(ReadOnlySpan<byte> x, byte y, Span<byte> destination)
205protected override void Add(byte x, ReadOnlySpan<byte> y, Span<byte> destination)
216protected override void Subtract(ReadOnlySpan<byte> x, ReadOnlySpan<byte> y, Span<byte> destination)
248protected override void Subtract(ReadOnlySpan<byte> x, byte y, Span<byte> destination)
259protected override void Subtract(byte x, ReadOnlySpan<byte> y, Span<byte> destination)
270protected override void Multiply(ReadOnlySpan<byte> x, ReadOnlySpan<byte> y, Span<byte> destination)
302protected override void Multiply(ReadOnlySpan<byte> x, byte y, Span<byte> destination)
313protected override void Multiply(byte x, ReadOnlySpan<byte> y, Span<byte> destination)
329protected override void Divide(ReadOnlySpan<byte> x, ReadOnlySpan<byte> y, Span<byte> destination)
361protected override void Divide(ReadOnlySpan<byte> x, byte y, Span<byte> destination)
372protected override void Divide(byte x, ReadOnlySpan<byte> y, Span<byte> destination)
388protected override void Modulo(ReadOnlySpan<byte> x, ReadOnlySpan<byte> y, Span<byte> destination)
399protected override void Modulo(ReadOnlySpan<byte> x, byte y, Span<byte> destination)
410protected override void Modulo(byte x, ReadOnlySpan<byte> y, Span<byte> destination)
421protected override void And(ReadOnlySpan<byte> x, ReadOnlySpan<byte> y, Span<byte> destination)
432protected override void And(ReadOnlySpan<byte> x, byte y, Span<byte> destination)
443protected override void And(byte x, ReadOnlySpan<byte> y, Span<byte> destination)
454protected override void Or(ReadOnlySpan<byte> x, ReadOnlySpan<byte> y, Span<byte> destination)
465protected override void Or(ReadOnlySpan<byte> x, byte y, Span<byte> destination)
476protected override void Or(byte x, ReadOnlySpan<byte> y, Span<byte> destination)
487protected override void Xor(ReadOnlySpan<byte> x, ReadOnlySpan<byte> y, Span<byte> destination)
498protected override void Xor(ReadOnlySpan<byte> x, byte y, Span<byte> destination)
509protected override void Xor(byte x, ReadOnlySpan<byte> y, Span<byte> destination)
520protected override void LeftShift(ReadOnlySpan<byte> x, int y, Span<byte> destination)
526protected override void RightShift(ReadOnlySpan<byte> x, int y, Span<byte> destination)
532protected override void ElementwiseEquals(ReadOnlySpan<byte> x, ReadOnlySpan<byte> y, Span<bool> destination)
540protected override void ElementwiseEquals(ReadOnlySpan<byte> x, byte y, Span<bool> destination)
548protected override void ElementwiseNotEquals(ReadOnlySpan<byte> x, ReadOnlySpan<byte> y, Span<bool> destination)
556protected override void ElementwiseNotEquals(ReadOnlySpan<byte> x, byte y, Span<bool> destination)
564protected override void ElementwiseGreaterThanOrEqual(ReadOnlySpan<byte> x, ReadOnlySpan<byte> y, Span<bool> destination)
572protected override void ElementwiseGreaterThanOrEqual(ReadOnlySpan<byte> x, byte y, Span<bool> destination)
580protected override void ElementwiseLessThanOrEqual(ReadOnlySpan<byte> x, ReadOnlySpan<byte> y, Span<bool> destination)
588protected override void ElementwiseLessThanOrEqual(ReadOnlySpan<byte> x, byte y, Span<bool> destination)
596protected override void ElementwiseGreaterThan(ReadOnlySpan<byte> x, ReadOnlySpan<byte> y, Span<bool> destination)
604protected override void ElementwiseGreaterThan(ReadOnlySpan<byte> x, byte y, Span<bool> destination)
612protected override void ElementwiseLessThan(ReadOnlySpan<byte> x, ReadOnlySpan<byte> y, Span<bool> destination)
620protected override void ElementwiseLessThan(ReadOnlySpan<byte> x, byte y, Span<bool> destination)
631protected override void Add(ReadOnlySpan<char> x, ReadOnlySpan<char> y, Span<char> destination)
663protected override void Add(ReadOnlySpan<char> x, char y, Span<char> destination)
674protected override void Add(char x, ReadOnlySpan<char> y, Span<char> destination)
685protected override void Subtract(ReadOnlySpan<char> x, ReadOnlySpan<char> y, Span<char> destination)
717protected override void Subtract(ReadOnlySpan<char> x, char y, Span<char> destination)
728protected override void Subtract(char x, ReadOnlySpan<char> y, Span<char> destination)
739protected override void Multiply(ReadOnlySpan<char> x, ReadOnlySpan<char> y, Span<char> destination)
771protected override void Multiply(ReadOnlySpan<char> x, char y, Span<char> destination)
782protected override void Multiply(char x, ReadOnlySpan<char> y, Span<char> destination)
798protected override void Divide(ReadOnlySpan<char> x, ReadOnlySpan<char> y, Span<char> destination)
830protected override void Divide(ReadOnlySpan<char> x, char y, Span<char> destination)
841protected override void Divide(char x, ReadOnlySpan<char> y, Span<char> destination)
857protected override void Modulo(ReadOnlySpan<char> x, ReadOnlySpan<char> y, Span<char> destination)
868protected override void Modulo(ReadOnlySpan<char> x, char y, Span<char> destination)
879protected override void Modulo(char x, ReadOnlySpan<char> y, Span<char> destination)
890protected override void And(ReadOnlySpan<char> x, ReadOnlySpan<char> y, Span<char> destination)
901protected override void And(ReadOnlySpan<char> x, char y, Span<char> destination)
912protected override void And(char x, ReadOnlySpan<char> y, Span<char> destination)
923protected override void Or(ReadOnlySpan<char> x, ReadOnlySpan<char> y, Span<char> destination)
934protected override void Or(ReadOnlySpan<char> x, char y, Span<char> destination)
945protected override void Or(char x, ReadOnlySpan<char> y, Span<char> destination)
956protected override void Xor(ReadOnlySpan<char> x, ReadOnlySpan<char> y, Span<char> destination)
967protected override void Xor(ReadOnlySpan<char> x, char y, Span<char> destination)
978protected override void Xor(char x, ReadOnlySpan<char> y, Span<char> destination)
989protected override void LeftShift(ReadOnlySpan<char> x, int y, Span<char> destination)
995protected override void RightShift(ReadOnlySpan<char> x, int y, Span<char> destination)
1001protected override void ElementwiseEquals(ReadOnlySpan<char> x, ReadOnlySpan<char> y, Span<bool> destination)
1009protected override void ElementwiseEquals(ReadOnlySpan<char> x, char y, Span<bool> destination)
1017protected override void ElementwiseNotEquals(ReadOnlySpan<char> x, ReadOnlySpan<char> y, Span<bool> destination)
1025protected override void ElementwiseNotEquals(ReadOnlySpan<char> x, char y, Span<bool> destination)
1033protected override void ElementwiseGreaterThanOrEqual(ReadOnlySpan<char> x, ReadOnlySpan<char> y, Span<bool> destination)
1041protected override void ElementwiseGreaterThanOrEqual(ReadOnlySpan<char> x, char y, Span<bool> destination)
1049protected override void ElementwiseLessThanOrEqual(ReadOnlySpan<char> x, ReadOnlySpan<char> y, Span<bool> destination)
1057protected override void ElementwiseLessThanOrEqual(ReadOnlySpan<char> x, char y, Span<bool> destination)
1065protected override void ElementwiseGreaterThan(ReadOnlySpan<char> x, ReadOnlySpan<char> y, Span<bool> destination)
1073protected override void ElementwiseGreaterThan(ReadOnlySpan<char> x, char y, Span<bool> destination)
1081protected override void ElementwiseLessThan(ReadOnlySpan<char> x, ReadOnlySpan<char> y, Span<bool> destination)
1089protected override void ElementwiseLessThan(ReadOnlySpan<char> x, char y, Span<bool> destination)
1100protected override void Add(ReadOnlySpan<decimal> x, ReadOnlySpan<decimal> y, Span<decimal> destination)
1111protected override void Add(ReadOnlySpan<decimal> x, decimal y, Span<decimal> destination)
1122protected override void Add(decimal x, ReadOnlySpan<decimal> y, Span<decimal> destination)
1133protected override void Subtract(ReadOnlySpan<decimal> x, ReadOnlySpan<decimal> y, Span<decimal> destination)
1144protected override void Subtract(ReadOnlySpan<decimal> x, decimal y, Span<decimal> destination)
1155protected override void Subtract(decimal x, ReadOnlySpan<decimal> y, Span<decimal> destination)
1166protected override void Multiply(ReadOnlySpan<decimal> x, ReadOnlySpan<decimal> y, Span<decimal> destination)
1177protected override void Multiply(ReadOnlySpan<decimal> x, decimal y, Span<decimal> destination)
1188protected override void Multiply(decimal x, ReadOnlySpan<decimal> y, Span<decimal> destination)
1204protected override void Divide(ReadOnlySpan<decimal> x, ReadOnlySpan<decimal> y, Span<decimal> destination)
1215protected override void Divide(ReadOnlySpan<decimal> x, decimal y, Span<decimal> destination)
1226protected override void Divide(decimal x, ReadOnlySpan<decimal> y, Span<decimal> destination)
1242protected override void Modulo(ReadOnlySpan<decimal> x, ReadOnlySpan<decimal> y, Span<decimal> destination)
1253protected override void Modulo(ReadOnlySpan<decimal> x, decimal y, Span<decimal> destination)
1264protected override void Modulo(decimal x, ReadOnlySpan<decimal> y, Span<decimal> destination)
1275protected override void ElementwiseEquals(ReadOnlySpan<decimal> x, ReadOnlySpan<decimal> y, Span<bool> destination)
1283protected override void ElementwiseEquals(ReadOnlySpan<decimal> x, decimal y, Span<bool> destination)
1291protected override void ElementwiseNotEquals(ReadOnlySpan<decimal> x, ReadOnlySpan<decimal> y, Span<bool> destination)
1299protected override void ElementwiseNotEquals(ReadOnlySpan<decimal> x, decimal y, Span<bool> destination)
1307protected override void ElementwiseGreaterThanOrEqual(ReadOnlySpan<decimal> x, ReadOnlySpan<decimal> y, Span<bool> destination)
1315protected override void ElementwiseGreaterThanOrEqual(ReadOnlySpan<decimal> x, decimal y, Span<bool> destination)
1323protected override void ElementwiseLessThanOrEqual(ReadOnlySpan<decimal> x, ReadOnlySpan<decimal> y, Span<bool> destination)
1331protected override void ElementwiseLessThanOrEqual(ReadOnlySpan<decimal> x, decimal y, Span<bool> destination)
1339protected override void ElementwiseGreaterThan(ReadOnlySpan<decimal> x, ReadOnlySpan<decimal> y, Span<bool> destination)
1347protected override void ElementwiseGreaterThan(ReadOnlySpan<decimal> x, decimal y, Span<bool> destination)
1355protected override void ElementwiseLessThan(ReadOnlySpan<decimal> x, ReadOnlySpan<decimal> y, Span<bool> destination)
1363protected override void ElementwiseLessThan(ReadOnlySpan<decimal> x, decimal y, Span<bool> destination)
1374protected override void Add(ReadOnlySpan<double> x, ReadOnlySpan<double> y, Span<double> destination)
1406protected override void Add(ReadOnlySpan<double> x, double y, Span<double> destination)
1417protected override void Add(double x, ReadOnlySpan<double> y, Span<double> destination)
1428protected override void Subtract(ReadOnlySpan<double> x, ReadOnlySpan<double> y, Span<double> destination)
1460protected override void Subtract(ReadOnlySpan<double> x, double y, Span<double> destination)
1471protected override void Subtract(double x, ReadOnlySpan<double> y, Span<double> destination)
1482protected override void Multiply(ReadOnlySpan<double> x, ReadOnlySpan<double> y, Span<double> destination)
1514protected override void Multiply(ReadOnlySpan<double> x, double y, Span<double> destination)
1525protected override void Multiply(double x, ReadOnlySpan<double> y, Span<double> destination)
1541protected override void Divide(ReadOnlySpan<double> x, ReadOnlySpan<double> y, Span<double> destination)
1573protected override void Divide(ReadOnlySpan<double> x, double y, Span<double> destination)
1584protected override void Divide(double x, ReadOnlySpan<double> y, Span<double> destination)
1600protected override void Modulo(ReadOnlySpan<double> x, ReadOnlySpan<double> y, Span<double> destination)
1611protected override void Modulo(ReadOnlySpan<double> x, double y, Span<double> destination)
1622protected override void Modulo(double x, ReadOnlySpan<double> y, Span<double> destination)
1633protected override void ElementwiseEquals(ReadOnlySpan<double> x, ReadOnlySpan<double> y, Span<bool> destination)
1641protected override void ElementwiseEquals(ReadOnlySpan<double> x, double y, Span<bool> destination)
1649protected override void ElementwiseNotEquals(ReadOnlySpan<double> x, ReadOnlySpan<double> y, Span<bool> destination)
1657protected override void ElementwiseNotEquals(ReadOnlySpan<double> x, double y, Span<bool> destination)
1665protected override void ElementwiseGreaterThanOrEqual(ReadOnlySpan<double> x, ReadOnlySpan<double> y, Span<bool> destination)
1673protected override void ElementwiseGreaterThanOrEqual(ReadOnlySpan<double> x, double y, Span<bool> destination)
1681protected override void ElementwiseLessThanOrEqual(ReadOnlySpan<double> x, ReadOnlySpan<double> y, Span<bool> destination)
1689protected override void ElementwiseLessThanOrEqual(ReadOnlySpan<double> x, double y, Span<bool> destination)
1697protected override void ElementwiseGreaterThan(ReadOnlySpan<double> x, ReadOnlySpan<double> y, Span<bool> destination)
1705protected override void ElementwiseGreaterThan(ReadOnlySpan<double> x, double y, Span<bool> destination)
1713protected override void ElementwiseLessThan(ReadOnlySpan<double> x, ReadOnlySpan<double> y, Span<bool> destination)
1721protected override void ElementwiseLessThan(ReadOnlySpan<double> x, double y, Span<bool> destination)
1732protected override void Add(ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<float> destination)
1764protected override void Add(ReadOnlySpan<float> x, float y, Span<float> destination)
1775protected override void Add(float x, ReadOnlySpan<float> y, Span<float> destination)
1786protected override void Subtract(ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<float> destination)
1818protected override void Subtract(ReadOnlySpan<float> x, float y, Span<float> destination)
1829protected override void Subtract(float x, ReadOnlySpan<float> y, Span<float> destination)
1840protected override void Multiply(ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<float> destination)
1872protected override void Multiply(ReadOnlySpan<float> x, float y, Span<float> destination)
1883protected override void Multiply(float x, ReadOnlySpan<float> y, Span<float> destination)
1899protected override void Divide(ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<float> destination)
1931protected override void Divide(ReadOnlySpan<float> x, float y, Span<float> destination)
1942protected override void Divide(float x, ReadOnlySpan<float> y, Span<float> destination)
1958protected override void Modulo(ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<float> destination)
1969protected override void Modulo(ReadOnlySpan<float> x, float y, Span<float> destination)
1980protected override void Modulo(float x, ReadOnlySpan<float> y, Span<float> destination)
1991protected override void ElementwiseEquals(ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<bool> destination)
1999protected override void ElementwiseEquals(ReadOnlySpan<float> x, float y, Span<bool> destination)
2007protected override void ElementwiseNotEquals(ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<bool> destination)
2015protected override void ElementwiseNotEquals(ReadOnlySpan<float> x, float y, Span<bool> destination)
2023protected override void ElementwiseGreaterThanOrEqual(ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<bool> destination)
2031protected override void ElementwiseGreaterThanOrEqual(ReadOnlySpan<float> x, float y, Span<bool> destination)
2039protected override void ElementwiseLessThanOrEqual(ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<bool> destination)
2047protected override void ElementwiseLessThanOrEqual(ReadOnlySpan<float> x, float y, Span<bool> destination)
2055protected override void ElementwiseGreaterThan(ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<bool> destination)
2063protected override void ElementwiseGreaterThan(ReadOnlySpan<float> x, float y, Span<bool> destination)
2071protected override void ElementwiseLessThan(ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<bool> destination)
2079protected override void ElementwiseLessThan(ReadOnlySpan<float> x, float y, Span<bool> destination)
2090protected override void Add(ReadOnlySpan<int> x, ReadOnlySpan<int> y, Span<int> destination)
2122protected override void Add(ReadOnlySpan<int> x, int y, Span<int> destination)
2133protected override void Add(int x, ReadOnlySpan<int> y, Span<int> destination)
2144protected override void Subtract(ReadOnlySpan<int> x, ReadOnlySpan<int> y, Span<int> destination)
2176protected override void Subtract(ReadOnlySpan<int> x, int y, Span<int> destination)
2187protected override void Subtract(int x, ReadOnlySpan<int> y, Span<int> destination)
2198protected override void Multiply(ReadOnlySpan<int> x, ReadOnlySpan<int> y, Span<int> destination)
2230protected override void Multiply(ReadOnlySpan<int> x, int y, Span<int> destination)
2241protected override void Multiply(int x, ReadOnlySpan<int> y, Span<int> destination)
2257protected override void Divide(ReadOnlySpan<int> x, ReadOnlySpan<int> y, Span<int> destination)
2289protected override void Divide(ReadOnlySpan<int> x, int y, Span<int> destination)
2300protected override void Divide(int x, ReadOnlySpan<int> y, Span<int> destination)
2316protected override void Modulo(ReadOnlySpan<int> x, ReadOnlySpan<int> y, Span<int> destination)
2327protected override void Modulo(ReadOnlySpan<int> x, int y, Span<int> destination)
2338protected override void Modulo(int x, ReadOnlySpan<int> y, Span<int> destination)
2349protected override void And(ReadOnlySpan<int> x, ReadOnlySpan<int> y, Span<int> destination)
2360protected override void And(ReadOnlySpan<int> x, int y, Span<int> destination)
2371protected override void And(int x, ReadOnlySpan<int> y, Span<int> destination)
2382protected override void Or(ReadOnlySpan<int> x, ReadOnlySpan<int> y, Span<int> destination)
2393protected override void Or(ReadOnlySpan<int> x, int y, Span<int> destination)
2404protected override void Or(int x, ReadOnlySpan<int> y, Span<int> destination)
2415protected override void Xor(ReadOnlySpan<int> x, ReadOnlySpan<int> y, Span<int> destination)
2426protected override void Xor(ReadOnlySpan<int> x, int y, Span<int> destination)
2437protected override void Xor(int x, ReadOnlySpan<int> y, Span<int> destination)
2448protected override void LeftShift(ReadOnlySpan<int> x, int y, Span<int> destination)
2454protected override void RightShift(ReadOnlySpan<int> x, int y, Span<int> destination)
2460protected override void ElementwiseEquals(ReadOnlySpan<int> x, ReadOnlySpan<int> y, Span<bool> destination)
2468protected override void ElementwiseEquals(ReadOnlySpan<int> x, int y, Span<bool> destination)
2476protected override void ElementwiseNotEquals(ReadOnlySpan<int> x, ReadOnlySpan<int> y, Span<bool> destination)
2484protected override void ElementwiseNotEquals(ReadOnlySpan<int> x, int y, Span<bool> destination)
2492protected override void ElementwiseGreaterThanOrEqual(ReadOnlySpan<int> x, ReadOnlySpan<int> y, Span<bool> destination)
2500protected override void ElementwiseGreaterThanOrEqual(ReadOnlySpan<int> x, int y, Span<bool> destination)
2508protected override void ElementwiseLessThanOrEqual(ReadOnlySpan<int> x, ReadOnlySpan<int> y, Span<bool> destination)
2516protected override void ElementwiseLessThanOrEqual(ReadOnlySpan<int> x, int y, Span<bool> destination)
2524protected override void ElementwiseGreaterThan(ReadOnlySpan<int> x, ReadOnlySpan<int> y, Span<bool> destination)
2532protected override void ElementwiseGreaterThan(ReadOnlySpan<int> x, int y, Span<bool> destination)
2540protected override void ElementwiseLessThan(ReadOnlySpan<int> x, ReadOnlySpan<int> y, Span<bool> destination)
2548protected override void ElementwiseLessThan(ReadOnlySpan<int> x, int y, Span<bool> destination)
2559protected override void Add(ReadOnlySpan<long> x, ReadOnlySpan<long> y, Span<long> destination)
2591protected override void Add(ReadOnlySpan<long> x, long y, Span<long> destination)
2602protected override void Add(long x, ReadOnlySpan<long> y, Span<long> destination)
2613protected override void Subtract(ReadOnlySpan<long> x, ReadOnlySpan<long> y, Span<long> destination)
2645protected override void Subtract(ReadOnlySpan<long> x, long y, Span<long> destination)
2656protected override void Subtract(long x, ReadOnlySpan<long> y, Span<long> destination)
2667protected override void Multiply(ReadOnlySpan<long> x, ReadOnlySpan<long> y, Span<long> destination)
2699protected override void Multiply(ReadOnlySpan<long> x, long y, Span<long> destination)
2710protected override void Multiply(long x, ReadOnlySpan<long> y, Span<long> destination)
2726protected override void Divide(ReadOnlySpan<long> x, ReadOnlySpan<long> y, Span<long> destination)
2758protected override void Divide(ReadOnlySpan<long> x, long y, Span<long> destination)
2769protected override void Divide(long x, ReadOnlySpan<long> y, Span<long> destination)
2785protected override void Modulo(ReadOnlySpan<long> x, ReadOnlySpan<long> y, Span<long> destination)
2796protected override void Modulo(ReadOnlySpan<long> x, long y, Span<long> destination)
2807protected override void Modulo(long x, ReadOnlySpan<long> y, Span<long> destination)
2818protected override void And(ReadOnlySpan<long> x, ReadOnlySpan<long> y, Span<long> destination)
2829protected override void And(ReadOnlySpan<long> x, long y, Span<long> destination)
2840protected override void And(long x, ReadOnlySpan<long> y, Span<long> destination)
2851protected override void Or(ReadOnlySpan<long> x, ReadOnlySpan<long> y, Span<long> destination)
2862protected override void Or(ReadOnlySpan<long> x, long y, Span<long> destination)
2873protected override void Or(long x, ReadOnlySpan<long> y, Span<long> destination)
2884protected override void Xor(ReadOnlySpan<long> x, ReadOnlySpan<long> y, Span<long> destination)
2895protected override void Xor(ReadOnlySpan<long> x, long y, Span<long> destination)
2906protected override void Xor(long x, ReadOnlySpan<long> y, Span<long> destination)
2917protected override void LeftShift(ReadOnlySpan<long> x, int y, Span<long> destination)
2923protected override void RightShift(ReadOnlySpan<long> x, int y, Span<long> destination)
2929protected override void ElementwiseEquals(ReadOnlySpan<long> x, ReadOnlySpan<long> y, Span<bool> destination)
2937protected override void ElementwiseEquals(ReadOnlySpan<long> x, long y, Span<bool> destination)
2945protected override void ElementwiseNotEquals(ReadOnlySpan<long> x, ReadOnlySpan<long> y, Span<bool> destination)
2953protected override void ElementwiseNotEquals(ReadOnlySpan<long> x, long y, Span<bool> destination)
2961protected override void ElementwiseGreaterThanOrEqual(ReadOnlySpan<long> x, ReadOnlySpan<long> y, Span<bool> destination)
2969protected override void ElementwiseGreaterThanOrEqual(ReadOnlySpan<long> x, long y, Span<bool> destination)
2977protected override void ElementwiseLessThanOrEqual(ReadOnlySpan<long> x, ReadOnlySpan<long> y, Span<bool> destination)
2985protected override void ElementwiseLessThanOrEqual(ReadOnlySpan<long> x, long y, Span<bool> destination)
2993protected override void ElementwiseGreaterThan(ReadOnlySpan<long> x, ReadOnlySpan<long> y, Span<bool> destination)
3001protected override void ElementwiseGreaterThan(ReadOnlySpan<long> x, long y, Span<bool> destination)
3009protected override void ElementwiseLessThan(ReadOnlySpan<long> x, ReadOnlySpan<long> y, Span<bool> destination)
3017protected override void ElementwiseLessThan(ReadOnlySpan<long> x, long y, Span<bool> destination)
3028protected override void Add(ReadOnlySpan<sbyte> x, ReadOnlySpan<sbyte> y, Span<sbyte> destination)
3060protected override void Add(ReadOnlySpan<sbyte> x, sbyte y, Span<sbyte> destination)
3071protected override void Add(sbyte x, ReadOnlySpan<sbyte> y, Span<sbyte> destination)
3082protected override void Subtract(ReadOnlySpan<sbyte> x, ReadOnlySpan<sbyte> y, Span<sbyte> destination)
3114protected override void Subtract(ReadOnlySpan<sbyte> x, sbyte y, Span<sbyte> destination)
3125protected override void Subtract(sbyte x, ReadOnlySpan<sbyte> y, Span<sbyte> destination)
3136protected override void Multiply(ReadOnlySpan<sbyte> x, ReadOnlySpan<sbyte> y, Span<sbyte> destination)
3168protected override void Multiply(ReadOnlySpan<sbyte> x, sbyte y, Span<sbyte> destination)
3179protected override void Multiply(sbyte x, ReadOnlySpan<sbyte> y, Span<sbyte> destination)
3195protected override void Divide(ReadOnlySpan<sbyte> x, ReadOnlySpan<sbyte> y, Span<sbyte> destination)
3227protected override void Divide(ReadOnlySpan<sbyte> x, sbyte y, Span<sbyte> destination)
3238protected override void Divide(sbyte x, ReadOnlySpan<sbyte> y, Span<sbyte> destination)
3254protected override void Modulo(ReadOnlySpan<sbyte> x, ReadOnlySpan<sbyte> y, Span<sbyte> destination)
3265protected override void Modulo(ReadOnlySpan<sbyte> x, sbyte y, Span<sbyte> destination)
3276protected override void Modulo(sbyte x, ReadOnlySpan<sbyte> y, Span<sbyte> destination)
3287protected override void And(ReadOnlySpan<sbyte> x, ReadOnlySpan<sbyte> y, Span<sbyte> destination)
3298protected override void And(ReadOnlySpan<sbyte> x, sbyte y, Span<sbyte> destination)
3309protected override void And(sbyte x, ReadOnlySpan<sbyte> y, Span<sbyte> destination)
3320protected override void Or(ReadOnlySpan<sbyte> x, ReadOnlySpan<sbyte> y, Span<sbyte> destination)
3331protected override void Or(ReadOnlySpan<sbyte> x, sbyte y, Span<sbyte> destination)
3342protected override void Or(sbyte x, ReadOnlySpan<sbyte> y, Span<sbyte> destination)
3353protected override void Xor(ReadOnlySpan<sbyte> x, ReadOnlySpan<sbyte> y, Span<sbyte> destination)
3364protected override void Xor(ReadOnlySpan<sbyte> x, sbyte y, Span<sbyte> destination)
3375protected override void Xor(sbyte x, ReadOnlySpan<sbyte> y, Span<sbyte> destination)
3386protected override void LeftShift(ReadOnlySpan<sbyte> x, int y, Span<sbyte> destination)
3392protected override void RightShift(ReadOnlySpan<sbyte> x, int y, Span<sbyte> destination)
3398protected override void ElementwiseEquals(ReadOnlySpan<sbyte> x, ReadOnlySpan<sbyte> y, Span<bool> destination)
3406protected override void ElementwiseEquals(ReadOnlySpan<sbyte> x, sbyte y, Span<bool> destination)
3414protected override void ElementwiseNotEquals(ReadOnlySpan<sbyte> x, ReadOnlySpan<sbyte> y, Span<bool> destination)
3422protected override void ElementwiseNotEquals(ReadOnlySpan<sbyte> x, sbyte y, Span<bool> destination)
3430protected override void ElementwiseGreaterThanOrEqual(ReadOnlySpan<sbyte> x, ReadOnlySpan<sbyte> y, Span<bool> destination)
3438protected override void ElementwiseGreaterThanOrEqual(ReadOnlySpan<sbyte> x, sbyte y, Span<bool> destination)
3446protected override void ElementwiseLessThanOrEqual(ReadOnlySpan<sbyte> x, ReadOnlySpan<sbyte> y, Span<bool> destination)
3454protected override void ElementwiseLessThanOrEqual(ReadOnlySpan<sbyte> x, sbyte y, Span<bool> destination)
3462protected override void ElementwiseGreaterThan(ReadOnlySpan<sbyte> x, ReadOnlySpan<sbyte> y, Span<bool> destination)
3470protected override void ElementwiseGreaterThan(ReadOnlySpan<sbyte> x, sbyte y, Span<bool> destination)
3478protected override void ElementwiseLessThan(ReadOnlySpan<sbyte> x, ReadOnlySpan<sbyte> y, Span<bool> destination)
3486protected override void ElementwiseLessThan(ReadOnlySpan<sbyte> x, sbyte y, Span<bool> destination)
3497protected override void Add(ReadOnlySpan<short> x, ReadOnlySpan<short> y, Span<short> destination)
3529protected override void Add(ReadOnlySpan<short> x, short y, Span<short> destination)
3540protected override void Add(short x, ReadOnlySpan<short> y, Span<short> destination)
3551protected override void Subtract(ReadOnlySpan<short> x, ReadOnlySpan<short> y, Span<short> destination)
3583protected override void Subtract(ReadOnlySpan<short> x, short y, Span<short> destination)
3594protected override void Subtract(short x, ReadOnlySpan<short> y, Span<short> destination)
3605protected override void Multiply(ReadOnlySpan<short> x, ReadOnlySpan<short> y, Span<short> destination)
3637protected override void Multiply(ReadOnlySpan<short> x, short y, Span<short> destination)
3648protected override void Multiply(short x, ReadOnlySpan<short> y, Span<short> destination)
3664protected override void Divide(ReadOnlySpan<short> x, ReadOnlySpan<short> y, Span<short> destination)
3696protected override void Divide(ReadOnlySpan<short> x, short y, Span<short> destination)
3707protected override void Divide(short x, ReadOnlySpan<short> y, Span<short> destination)
3723protected override void Modulo(ReadOnlySpan<short> x, ReadOnlySpan<short> y, Span<short> destination)
3734protected override void Modulo(ReadOnlySpan<short> x, short y, Span<short> destination)
3745protected override void Modulo(short x, ReadOnlySpan<short> y, Span<short> destination)
3756protected override void And(ReadOnlySpan<short> x, ReadOnlySpan<short> y, Span<short> destination)
3767protected override void And(ReadOnlySpan<short> x, short y, Span<short> destination)
3778protected override void And(short x, ReadOnlySpan<short> y, Span<short> destination)
3789protected override void Or(ReadOnlySpan<short> x, ReadOnlySpan<short> y, Span<short> destination)
3800protected override void Or(ReadOnlySpan<short> x, short y, Span<short> destination)
3811protected override void Or(short x, ReadOnlySpan<short> y, Span<short> destination)
3822protected override void Xor(ReadOnlySpan<short> x, ReadOnlySpan<short> y, Span<short> destination)
3833protected override void Xor(ReadOnlySpan<short> x, short y, Span<short> destination)
3844protected override void Xor(short x, ReadOnlySpan<short> y, Span<short> destination)
3855protected override void LeftShift(ReadOnlySpan<short> x, int y, Span<short> destination)
3861protected override void RightShift(ReadOnlySpan<short> x, int y, Span<short> destination)
3867protected override void ElementwiseEquals(ReadOnlySpan<short> x, ReadOnlySpan<short> y, Span<bool> destination)
3875protected override void ElementwiseEquals(ReadOnlySpan<short> x, short y, Span<bool> destination)
3883protected override void ElementwiseNotEquals(ReadOnlySpan<short> x, ReadOnlySpan<short> y, Span<bool> destination)
3891protected override void ElementwiseNotEquals(ReadOnlySpan<short> x, short y, Span<bool> destination)
3899protected override void ElementwiseGreaterThanOrEqual(ReadOnlySpan<short> x, ReadOnlySpan<short> y, Span<bool> destination)
3907protected override void ElementwiseGreaterThanOrEqual(ReadOnlySpan<short> x, short y, Span<bool> destination)
3915protected override void ElementwiseLessThanOrEqual(ReadOnlySpan<short> x, ReadOnlySpan<short> y, Span<bool> destination)
3923protected override void ElementwiseLessThanOrEqual(ReadOnlySpan<short> x, short y, Span<bool> destination)
3931protected override void ElementwiseGreaterThan(ReadOnlySpan<short> x, ReadOnlySpan<short> y, Span<bool> destination)
3939protected override void ElementwiseGreaterThan(ReadOnlySpan<short> x, short y, Span<bool> destination)
3947protected override void ElementwiseLessThan(ReadOnlySpan<short> x, ReadOnlySpan<short> y, Span<bool> destination)
3955protected override void ElementwiseLessThan(ReadOnlySpan<short> x, short y, Span<bool> destination)
3966protected override void Add(ReadOnlySpan<uint> x, ReadOnlySpan<uint> y, Span<uint> destination)
3998protected override void Add(ReadOnlySpan<uint> x, uint y, Span<uint> destination)
4009protected override void Add(uint x, ReadOnlySpan<uint> y, Span<uint> destination)
4020protected override void Subtract(ReadOnlySpan<uint> x, ReadOnlySpan<uint> y, Span<uint> destination)
4052protected override void Subtract(ReadOnlySpan<uint> x, uint y, Span<uint> destination)
4063protected override void Subtract(uint x, ReadOnlySpan<uint> y, Span<uint> destination)
4074protected override void Multiply(ReadOnlySpan<uint> x, ReadOnlySpan<uint> y, Span<uint> destination)
4106protected override void Multiply(ReadOnlySpan<uint> x, uint y, Span<uint> destination)
4117protected override void Multiply(uint x, ReadOnlySpan<uint> y, Span<uint> destination)
4133protected override void Divide(ReadOnlySpan<uint> x, ReadOnlySpan<uint> y, Span<uint> destination)
4165protected override void Divide(ReadOnlySpan<uint> x, uint y, Span<uint> destination)
4176protected override void Divide(uint x, ReadOnlySpan<uint> y, Span<uint> destination)
4192protected override void Modulo(ReadOnlySpan<uint> x, ReadOnlySpan<uint> y, Span<uint> destination)
4203protected override void Modulo(ReadOnlySpan<uint> x, uint y, Span<uint> destination)
4214protected override void Modulo(uint x, ReadOnlySpan<uint> y, Span<uint> destination)
4225protected override void And(ReadOnlySpan<uint> x, ReadOnlySpan<uint> y, Span<uint> destination)
4236protected override void And(ReadOnlySpan<uint> x, uint y, Span<uint> destination)
4247protected override void And(uint x, ReadOnlySpan<uint> y, Span<uint> destination)
4258protected override void Or(ReadOnlySpan<uint> x, ReadOnlySpan<uint> y, Span<uint> destination)
4269protected override void Or(ReadOnlySpan<uint> x, uint y, Span<uint> destination)
4280protected override void Or(uint x, ReadOnlySpan<uint> y, Span<uint> destination)
4291protected override void Xor(ReadOnlySpan<uint> x, ReadOnlySpan<uint> y, Span<uint> destination)
4302protected override void Xor(ReadOnlySpan<uint> x, uint y, Span<uint> destination)
4313protected override void Xor(uint x, ReadOnlySpan<uint> y, Span<uint> destination)
4324protected override void LeftShift(ReadOnlySpan<uint> x, int y, Span<uint> destination)
4330protected override void RightShift(ReadOnlySpan<uint> x, int y, Span<uint> destination)
4336protected override void ElementwiseEquals(ReadOnlySpan<uint> x, ReadOnlySpan<uint> y, Span<bool> destination)
4344protected override void ElementwiseEquals(ReadOnlySpan<uint> x, uint y, Span<bool> destination)
4352protected override void ElementwiseNotEquals(ReadOnlySpan<uint> x, ReadOnlySpan<uint> y, Span<bool> destination)
4360protected override void ElementwiseNotEquals(ReadOnlySpan<uint> x, uint y, Span<bool> destination)
4368protected override void ElementwiseGreaterThanOrEqual(ReadOnlySpan<uint> x, ReadOnlySpan<uint> y, Span<bool> destination)
4376protected override void ElementwiseGreaterThanOrEqual(ReadOnlySpan<uint> x, uint y, Span<bool> destination)
4384protected override void ElementwiseLessThanOrEqual(ReadOnlySpan<uint> x, ReadOnlySpan<uint> y, Span<bool> destination)
4392protected override void ElementwiseLessThanOrEqual(ReadOnlySpan<uint> x, uint y, Span<bool> destination)
4400protected override void ElementwiseGreaterThan(ReadOnlySpan<uint> x, ReadOnlySpan<uint> y, Span<bool> destination)
4408protected override void ElementwiseGreaterThan(ReadOnlySpan<uint> x, uint y, Span<bool> destination)
4416protected override void ElementwiseLessThan(ReadOnlySpan<uint> x, ReadOnlySpan<uint> y, Span<bool> destination)
4424protected override void ElementwiseLessThan(ReadOnlySpan<uint> x, uint y, Span<bool> destination)
4435protected override void Add(ReadOnlySpan<ulong> x, ReadOnlySpan<ulong> y, Span<ulong> destination)
4467protected override void Add(ReadOnlySpan<ulong> x, ulong y, Span<ulong> destination)
4478protected override void Add(ulong x, ReadOnlySpan<ulong> y, Span<ulong> destination)
4489protected override void Subtract(ReadOnlySpan<ulong> x, ReadOnlySpan<ulong> y, Span<ulong> destination)
4521protected override void Subtract(ReadOnlySpan<ulong> x, ulong y, Span<ulong> destination)
4532protected override void Subtract(ulong x, ReadOnlySpan<ulong> y, Span<ulong> destination)
4543protected override void Multiply(ReadOnlySpan<ulong> x, ReadOnlySpan<ulong> y, Span<ulong> destination)
4575protected override void Multiply(ReadOnlySpan<ulong> x, ulong y, Span<ulong> destination)
4586protected override void Multiply(ulong x, ReadOnlySpan<ulong> y, Span<ulong> destination)
4602protected override void Divide(ReadOnlySpan<ulong> x, ReadOnlySpan<ulong> y, Span<ulong> destination)
4634protected override void Divide(ReadOnlySpan<ulong> x, ulong y, Span<ulong> destination)
4645protected override void Divide(ulong x, ReadOnlySpan<ulong> y, Span<ulong> destination)
4661protected override void Modulo(ReadOnlySpan<ulong> x, ReadOnlySpan<ulong> y, Span<ulong> destination)
4672protected override void Modulo(ReadOnlySpan<ulong> x, ulong y, Span<ulong> destination)
4683protected override void Modulo(ulong x, ReadOnlySpan<ulong> y, Span<ulong> destination)
4694protected override void And(ReadOnlySpan<ulong> x, ReadOnlySpan<ulong> y, Span<ulong> destination)
4705protected override void And(ReadOnlySpan<ulong> x, ulong y, Span<ulong> destination)
4716protected override void And(ulong x, ReadOnlySpan<ulong> y, Span<ulong> destination)
4727protected override void Or(ReadOnlySpan<ulong> x, ReadOnlySpan<ulong> y, Span<ulong> destination)
4738protected override void Or(ReadOnlySpan<ulong> x, ulong y, Span<ulong> destination)
4749protected override void Or(ulong x, ReadOnlySpan<ulong> y, Span<ulong> destination)
4760protected override void Xor(ReadOnlySpan<ulong> x, ReadOnlySpan<ulong> y, Span<ulong> destination)
4771protected override void Xor(ReadOnlySpan<ulong> x, ulong y, Span<ulong> destination)
4782protected override void Xor(ulong x, ReadOnlySpan<ulong> y, Span<ulong> destination)
4793protected override void LeftShift(ReadOnlySpan<ulong> x, int y, Span<ulong> destination)
4799protected override void RightShift(ReadOnlySpan<ulong> x, int y, Span<ulong> destination)
4805protected override void ElementwiseEquals(ReadOnlySpan<ulong> x, ReadOnlySpan<ulong> y, Span<bool> destination)
4813protected override void ElementwiseEquals(ReadOnlySpan<ulong> x, ulong y, Span<bool> destination)
4821protected override void ElementwiseNotEquals(ReadOnlySpan<ulong> x, ReadOnlySpan<ulong> y, Span<bool> destination)
4829protected override void ElementwiseNotEquals(ReadOnlySpan<ulong> x, ulong y, Span<bool> destination)
4837protected override void ElementwiseGreaterThanOrEqual(ReadOnlySpan<ulong> x, ReadOnlySpan<ulong> y, Span<bool> destination)
4845protected override void ElementwiseGreaterThanOrEqual(ReadOnlySpan<ulong> x, ulong y, Span<bool> destination)
4853protected override void ElementwiseLessThanOrEqual(ReadOnlySpan<ulong> x, ReadOnlySpan<ulong> y, Span<bool> destination)
4861protected override void ElementwiseLessThanOrEqual(ReadOnlySpan<ulong> x, ulong y, Span<bool> destination)
4869protected override void ElementwiseGreaterThan(ReadOnlySpan<ulong> x, ReadOnlySpan<ulong> y, Span<bool> destination)
4877protected override void ElementwiseGreaterThan(ReadOnlySpan<ulong> x, ulong y, Span<bool> destination)
4885protected override void ElementwiseLessThan(ReadOnlySpan<ulong> x, ReadOnlySpan<ulong> y, Span<bool> destination)
4893protected override void ElementwiseLessThan(ReadOnlySpan<ulong> x, ulong y, Span<bool> destination)
4904protected override void Add(ReadOnlySpan<ushort> x, ReadOnlySpan<ushort> y, Span<ushort> destination)
4936protected override void Add(ReadOnlySpan<ushort> x, ushort y, Span<ushort> destination)
4947protected override void Add(ushort x, ReadOnlySpan<ushort> y, Span<ushort> destination)
4958protected override void Subtract(ReadOnlySpan<ushort> x, ReadOnlySpan<ushort> y, Span<ushort> destination)
4990protected override void Subtract(ReadOnlySpan<ushort> x, ushort y, Span<ushort> destination)
5001protected override void Subtract(ushort x, ReadOnlySpan<ushort> y, Span<ushort> destination)
5012protected override void Multiply(ReadOnlySpan<ushort> x, ReadOnlySpan<ushort> y, Span<ushort> destination)
5044protected override void Multiply(ReadOnlySpan<ushort> x, ushort y, Span<ushort> destination)
5055protected override void Multiply(ushort x, ReadOnlySpan<ushort> y, Span<ushort> destination)
5071protected override void Divide(ReadOnlySpan<ushort> x, ReadOnlySpan<ushort> y, Span<ushort> destination)
5103protected override void Divide(ReadOnlySpan<ushort> x, ushort y, Span<ushort> destination)
5114protected override void Divide(ushort x, ReadOnlySpan<ushort> y, Span<ushort> destination)
5130protected override void Modulo(ReadOnlySpan<ushort> x, ReadOnlySpan<ushort> y, Span<ushort> destination)
5141protected override void Modulo(ReadOnlySpan<ushort> x, ushort y, Span<ushort> destination)
5152protected override void Modulo(ushort x, ReadOnlySpan<ushort> y, Span<ushort> destination)
5163protected override void And(ReadOnlySpan<ushort> x, ReadOnlySpan<ushort> y, Span<ushort> destination)
5174protected override void And(ReadOnlySpan<ushort> x, ushort y, Span<ushort> destination)
5185protected override void And(ushort x, ReadOnlySpan<ushort> y, Span<ushort> destination)
5196protected override void Or(ReadOnlySpan<ushort> x, ReadOnlySpan<ushort> y, Span<ushort> destination)
5207protected override void Or(ReadOnlySpan<ushort> x, ushort y, Span<ushort> destination)
5218protected override void Or(ushort x, ReadOnlySpan<ushort> y, Span<ushort> destination)
5229protected override void Xor(ReadOnlySpan<ushort> x, ReadOnlySpan<ushort> y, Span<ushort> destination)
5240protected override void Xor(ReadOnlySpan<ushort> x, ushort y, Span<ushort> destination)
5251protected override void Xor(ushort x, ReadOnlySpan<ushort> y, Span<ushort> destination)
5262protected override void LeftShift(ReadOnlySpan<ushort> x, int y, Span<ushort> destination)
5268protected override void RightShift(ReadOnlySpan<ushort> x, int y, Span<ushort> destination)
5274protected override void ElementwiseEquals(ReadOnlySpan<ushort> x, ReadOnlySpan<ushort> y, Span<bool> destination)
5282protected override void ElementwiseEquals(ReadOnlySpan<ushort> x, ushort y, Span<bool> destination)
5290protected override void ElementwiseNotEquals(ReadOnlySpan<ushort> x, ReadOnlySpan<ushort> y, Span<bool> destination)
5298protected override void ElementwiseNotEquals(ReadOnlySpan<ushort> x, ushort y, Span<bool> destination)
5306protected override void ElementwiseGreaterThanOrEqual(ReadOnlySpan<ushort> x, ReadOnlySpan<ushort> y, Span<bool> destination)
5314protected override void ElementwiseGreaterThanOrEqual(ReadOnlySpan<ushort> x, ushort y, Span<bool> destination)
5322protected override void ElementwiseLessThanOrEqual(ReadOnlySpan<ushort> x, ReadOnlySpan<ushort> y, Span<bool> destination)
5330protected override void ElementwiseLessThanOrEqual(ReadOnlySpan<ushort> x, ushort y, Span<bool> destination)
5338protected override void ElementwiseGreaterThan(ReadOnlySpan<ushort> x, ReadOnlySpan<ushort> y, Span<bool> destination)
5346protected override void ElementwiseGreaterThan(ReadOnlySpan<ushort> x, ushort y, Span<bool> destination)
5354protected override void ElementwiseLessThan(ReadOnlySpan<ushort> x, ReadOnlySpan<ushort> y, Span<bool> destination)
5362protected override void ElementwiseLessThan(ReadOnlySpan<ushort> x, ushort y, Span<bool> destination)
5373protected override void ElementwiseEquals(ReadOnlySpan<DateTime> x, ReadOnlySpan<DateTime> y, Span<bool> destination)
5381protected override void ElementwiseEquals(ReadOnlySpan<DateTime> x, DateTime y, Span<bool> destination)
5389protected override void ElementwiseNotEquals(ReadOnlySpan<DateTime> x, ReadOnlySpan<DateTime> y, Span<bool> destination)
5397protected override void ElementwiseNotEquals(ReadOnlySpan<DateTime> x, DateTime y, Span<bool> destination)
Computations\IArithmetic.cs (8)
15void HandleOperation(BinaryOperation operation, ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination);
16void HandleOperation(BinaryOperation operation, ReadOnlySpan<T> x, T y, Span<T> destination);
17void HandleOperation(BinaryOperation operation, T x, ReadOnlySpan<T> y, Span<T> destination);
22void HandleOperation(BinaryIntOperation operation, ReadOnlySpan<T> x, int y, Span<T> destination);
25void HandleOperation(ComparisonOperation operation, ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<bool> destination);
26void HandleOperation(ComparisonOperation operation, ReadOnlySpan<T> x, T y, Span<bool> destination);
DataFrameColumn.cs (8)
539ReadOnlySpan<T> span,
549ReadOnlySpan<T> span,
597ReadOnlySpan<TKey> span, int lo, int hi,
655ReadOnlySpan<TKey> span, int lo, int hi,
677ReadOnlySpan<TKey> span, int i, int n, int lo,
710ReadOnlySpan<TKey> span, int lo, int hi,
738ReadOnlySpan<TKey> span, int i, int j, int k,
749ReadOnlySpan<TKey> span, int i, int j,
Microsoft.Data.Analysis.Tests (1)
Microsoft.DotNet.Build.Tasks.Installers (4)
Microsoft.DotNet.StrongName (1)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (8)
Microsoft.DotNet.XUnitAssert.Tests (2)
Microsoft.Extensions.AI (6)
Microsoft.Extensions.AI.Abstractions (14)
Microsoft.Extensions.AI.AzureAIInference (1)
Microsoft.Extensions.AI.Evaluation.NLP (8)
Microsoft.Extensions.AI.Evaluation.NLP.Tests (2)
Microsoft.Extensions.AI.Evaluation.Quality (4)
Microsoft.Extensions.AI.Integration.Tests (2)
Microsoft.Extensions.AI.OpenAI (17)
Microsoft.Extensions.AI.Templates.Tests (3)
Microsoft.Extensions.AI.Tests (2)
Microsoft.Extensions.Caching.Abstractions (2)
Microsoft.Extensions.Caching.Hybrid (9)
Microsoft.Extensions.Caching.Hybrid.Tests (3)
Microsoft.Extensions.Caching.Memory (5)
Microsoft.Extensions.Compliance.Abstractions (9)
Microsoft.Extensions.Compliance.Abstractions.Tests (2)
Microsoft.Extensions.Compliance.Redaction (5)
Microsoft.Extensions.Compliance.Redaction.Tests (2)
Microsoft.Extensions.Compliance.Testing (2)
Microsoft.Extensions.Configuration (6)
Microsoft.Extensions.DependencyModel (2)
Microsoft.Extensions.Diagnostics (2)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Microsoft.Extensions.Diagnostics.Testing (2)
Microsoft.Extensions.Http (1)
Microsoft.Extensions.Http.Diagnostics (7)
Microsoft.Extensions.Identity.Core (2)
Microsoft.Extensions.Logging (3)
Microsoft.Extensions.Logging.Abstractions (6)
Microsoft.Extensions.Logging.Console (5)
Microsoft.Extensions.Logging.Generators (12)
Microsoft.Extensions.Options.SourceGeneration (1)
Microsoft.Extensions.Primitives (14)
Microsoft.Extensions.Resilience.PerformanceTests (1)
Microsoft.Extensions.ServiceDiscovery (1)
Microsoft.Extensions.ServiceDiscovery.Dns (3)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests.Fuzzing (4)
Microsoft.Extensions.Telemetry (13)
Microsoft.Extensions.Telemetry.Abstractions (3)
Microsoft.Extensions.Telemetry.Tests (9)
Microsoft.Gen.ContextualOptions.Unit.Tests (2)
Microsoft.Gen.Logging (1)
Microsoft.Gen.Logging.Generated.Tests (2)
Microsoft.Gen.Metrics (1)
Microsoft.Interop.ComInterfaceGenerator (2)
Microsoft.Interop.LibraryImportGenerator (1)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
Microsoft.Interop.SourceGeneration (1)
Microsoft.JSInterop (1)
Microsoft.Maui (2)
Microsoft.Maui.Controls.BindingSourceGen (1)
Microsoft.Maui.Controls.Xaml (1)
Microsoft.Maui.Essentials (3)
Microsoft.Maui.Graphics (38)
Color.cs (38)
340 static Color FromRgba(ReadOnlySpan<char> colorAsHex)
390 static Color FromArgb(ReadOnlySpan<char> colorAsHex)
592 static bool TryParse(ReadOnlySpan<char> value, out Color color)
613 out ReadOnlySpan<char> quad0,
614 out ReadOnlySpan<char> quad1,
615 out ReadOnlySpan<char> quad2,
616 out ReadOnlySpan<char> quad3))
636 out ReadOnlySpan<char> triplet0,
637 out ReadOnlySpan<char> triplet1,
638 out ReadOnlySpan<char> triplet2))
657 out ReadOnlySpan<char> quad0,
658 out ReadOnlySpan<char> quad1,
659 out ReadOnlySpan<char> quad2,
660 out ReadOnlySpan<char> quad3))
680 out ReadOnlySpan<char> triplet0,
681 out ReadOnlySpan<char> triplet1,
682 out ReadOnlySpan<char> triplet2))
701 out ReadOnlySpan<char> quad0,
702 out ReadOnlySpan<char> quad1,
703 out ReadOnlySpan<char> quad2,
704 out ReadOnlySpan<char> quad3))
724 out ReadOnlySpan<char> triplet0,
725 out ReadOnlySpan<char> triplet1,
726 out ReadOnlySpan<char> triplet2))
755 static Color GetNamedColor(ReadOnlySpan<char> value)
919 ReadOnlySpan<char> value,
920 out ReadOnlySpan<char> quad0,
921 out ReadOnlySpan<char> quad1,
922 out ReadOnlySpan<char> quad2,
923 out ReadOnlySpan<char> quad3)
962 ReadOnlySpan<char> value,
963 out ReadOnlySpan<char> triplet0,
964 out ReadOnlySpan<char> triplet1,
965 out ReadOnlySpan<char> triplet2)
997 static bool TryParseColorValue(ReadOnlySpan<char> elem, int maxValue, bool acceptPercent, out double value)
1014 static bool TryParseOpacity(ReadOnlySpan<char> elem, out double value)
1024 static bool TryParseDouble(ReadOnlySpan<char> s, out double value) =>
1033 static int ParseInt(ReadOnlySpan<char> s) =>
Microsoft.Maui.Graphics.Skia (1)
Microsoft.ML.Core (93)
Utilities\DoubleParser.cs (9)
91public static bool TryParse(ReadOnlySpan<char> span, out Single value, OptionFlags flags = OptionFlags.Default)
101public static bool TryParse(ReadOnlySpan<char> span, out Double value, OptionFlags flags = OptionFlags.Default)
108public static Result Parse(ReadOnlySpan<char> span, out Single value, OptionFlags flags = OptionFlags.Default)
160public static Result Parse(ReadOnlySpan<char> span, out Double value, OptionFlags flags = OptionFlags.Default)
212public static bool TryParse(ReadOnlySpan<char> span, out Single value, out int ichEnd, OptionFlags flags = OptionFlags.Default)
301public static bool TryParse(ReadOnlySpan<char> span, out Double value, out int ichEnd, OptionFlags flags = OptionFlags.Default)
484private static bool TryParseSpecial(ReadOnlySpan<char> span, ref int ich, out Double value)
492private static bool TryParseSpecial(ReadOnlySpan<char> span, ref int ich, out Single value)
549private static bool TryParseCore(ReadOnlySpan<char> span, ref int ich, ref bool neg, ref ulong num, ref long exp, OptionFlags flags = OptionFlags.Default)
Utilities\Stream.cs (12)
66public static void WriteIntArray(this BinaryWriter writer, ReadOnlySpan<int> values)
78public static void WriteIntsNoCount(this BinaryWriter writer, ReadOnlySpan<int> values)
89public static void WriteUIntArray(this BinaryWriter writer, ReadOnlySpan<uint> values)
101public static void WriteUIntsNoCount(this BinaryWriter writer, ReadOnlySpan<uint> values)
132public static void WriteByteArray(this BinaryWriter writer, ReadOnlySpan<byte> values)
170public static void WriteSingleArray(this BinaryWriter writer, ReadOnlySpan<float> values)
201public static void WriteSinglesNoCount(this BinaryWriter writer, ReadOnlySpan<float> values)
212public static void WriteDoubleArray(this BinaryWriter writer, ReadOnlySpan<double> values)
224public static void WriteDoublesNoCount(this BinaryWriter writer, ReadOnlySpan<double> values)
235public static void WriteBoolByteArray(this BinaryWriter writer, ReadOnlySpan<bool> values)
247public static void WriteBoolBytesNoCount(this BinaryWriter writer, ReadOnlySpan<bool> values)
258public static void WriteCharArray(this BinaryWriter writer, ReadOnlySpan<char> values)
Utilities\Utils.cs (6)
251public static bool TryFindIndexSorted(ReadOnlySpan<int> input, int min, int lim, int value, out int index)
274public static int FindIndexSorted(this ReadOnlySpan<int> input, int min, int lim, int value)
676public static bool IsIncreasing(int min, ReadOnlySpan<int> values, int lim)
698public static bool IsIncreasing(int min, ReadOnlySpan<int> values, int len, int lim)
1267public static int Count<TSource>(this ReadOnlySpan<TSource> source, Func<TSource, bool> predicate)
1280public static bool All<TSource>(this ReadOnlySpan<TSource> source, Func<TSource, bool> predicate)
Microsoft.ML.Core.Tests (6)
Microsoft.ML.CpuMath (92)
AvxIntrinsics.cs (29)
245public static unsafe void MatMulP(AlignedArray mat, ReadOnlySpan<int> rgposSrc, AlignedArray src,
568public static unsafe void ScaleSrcU(float scale, ReadOnlySpan<float> src, Span<float> dst, int count)
663public static unsafe void AddScaleU(float scale, ReadOnlySpan<float> src, Span<float> dst, int count)
717public static unsafe void AddScaleCopyU(float scale, ReadOnlySpan<float> src, ReadOnlySpan<float> dst, Span<float> result, int count)
774public static unsafe void AddScaleSU(float scale, ReadOnlySpan<float> src, ReadOnlySpan<int> idx, Span<float> dst, int count)
825public static unsafe void AddU(ReadOnlySpan<float> src, Span<float> dst, int count)
874public static unsafe void AddSU(ReadOnlySpan<float> src, ReadOnlySpan<int> idx, Span<float> dst, int count)
922public static unsafe void MulElementWiseU(ReadOnlySpan<float> src1, ReadOnlySpan<float> src2, Span<float> dst, int count)
974public static unsafe float Sum(ReadOnlySpan<float> src)
1062public static unsafe float SumSqU(ReadOnlySpan<float> src)
1106public static unsafe float SumSqDiffU(float mean, ReadOnlySpan<float> src)
1154public static unsafe float SumAbsU(ReadOnlySpan<float> src)
1198public static unsafe float SumAbsDiffU(float mean, ReadOnlySpan<float> src)
1247public static unsafe float MaxAbsU(ReadOnlySpan<float> src)
1291public static unsafe float MaxAbsDiffU(float mean, ReadOnlySpan<float> src)
1340public static unsafe float DotU(ReadOnlySpan<float> src, ReadOnlySpan<float> dst, int count)
1394public static unsafe float DotSU(ReadOnlySpan<float> src, ReadOnlySpan<float> dst, ReadOnlySpan<int> idx, int count)
1451public static unsafe float Dist2(ReadOnlySpan<float> src, ReadOnlySpan<float> dst, int count)
1505public static unsafe void SdcaL1UpdateU(float primalUpdate, int count, ReadOnlySpan<float> src, float threshold, Span<float> v, Span<float> w)
1565public static unsafe void SdcaL1UpdateSU(float primalUpdate, int count, ReadOnlySpan<float> src, ReadOnlySpan<int> indices, float threshold, Span<float> v, Span<float> w)
CpuMathUtils.cs (12)
48public static void Scale(float value, ReadOnlySpan<float> source, Span<float> destination, int count)
67public static void AddScale(float scale, ReadOnlySpan<float> source, Span<float> destination, int count)
87public static void AddScaleCopy(float scale, ReadOnlySpan<float> source, ReadOnlySpan<float> destination, Span<float> result, int count)
107public static void Add(ReadOnlySpan<float> source, Span<float> destination, int count)
126public static void MulElementWise(ReadOnlySpan<float> left, ReadOnlySpan<float> right, Span<float> destination, int count)
145public static float Sum(ReadOnlySpan<float> source)
158public static float SumSq(ReadOnlySpan<float> source)
171public static float SumAbs(ReadOnlySpan<float> source)
186public static float DotProductDense(ReadOnlySpan<float> left, ReadOnlySpan<float> right, int count)
CpuMathUtils.netcoreapp.cs (17)
114public static void MatrixTimesSource(AlignedArray matrix, ReadOnlySpan<int> rgposSrc, AlignedArray sourceValues,
197public static void AddScale(float scale, ReadOnlySpan<float> source, ReadOnlySpan<int> indices, Span<float> destination, int count)
233public static void Add(ReadOnlySpan<float> source, ReadOnlySpan<int> indices, Span<float> destination, int count)
268public static float SumSq(float mean, ReadOnlySpan<float> source)
298public static float SumAbs(float mean, ReadOnlySpan<float> source)
327public static float MaxAbs(ReadOnlySpan<float> source)
361public static float MaxAbsDiff(float mean, ReadOnlySpan<float> source)
397public static float DotProductSparse(ReadOnlySpan<float> left, ReadOnlySpan<float> right, ReadOnlySpan<int> indices, int count)
435public static float L2DistSquared(ReadOnlySpan<float> left, ReadOnlySpan<float> right, int count)
529public static void SdcaL1UpdateDense(float primalUpdate, int count, ReadOnlySpan<float> source, float threshold, Span<float> v, Span<float> w)
569public static void SdcaL1UpdateSparse(float primalUpdate, int count, ReadOnlySpan<float> source, ReadOnlySpan<int> indices, float threshold, Span<float> v, Span<float> w)
SseIntrinsics.cs (29)
202public static unsafe void MatMulP(AlignedArray mat, ReadOnlySpan<int> rgposSrc, AlignedArray src,
487public static unsafe void ScaleSrcU(float scale, ReadOnlySpan<float> src, Span<float> dst, int count)
557public static unsafe void AddScaleU(float scale, ReadOnlySpan<float> src, Span<float> dst, int count)
598public static unsafe void AddScaleCopyU(float scale, ReadOnlySpan<float> src, ReadOnlySpan<float> dst, Span<float> result, int count)
642public static unsafe void AddScaleSU(float scale, ReadOnlySpan<float> src, ReadOnlySpan<int> idx, Span<float> dst, int count)
681public static unsafe void AddU(ReadOnlySpan<float> src, Span<float> dst, int count)
718public static unsafe void AddSU(ReadOnlySpan<float> src, ReadOnlySpan<int> idx, Span<float> dst, int count)
754public static unsafe void MulElementWiseU(ReadOnlySpan<float> src1, ReadOnlySpan<float> src2, Span<float> dst, int count)
794public static unsafe float Sum(ReadOnlySpan<float> src)
879public static unsafe float SumSqU(ReadOnlySpan<float> src)
910public static unsafe float SumSqDiffU(float mean, ReadOnlySpan<float> src)
944public static unsafe float SumAbsU(ReadOnlySpan<float> src)
975public static unsafe float SumAbsDiffU(float mean, ReadOnlySpan<float> src)
1009public static unsafe float MaxAbsU(ReadOnlySpan<float> src)
1040public static unsafe float MaxAbsDiffU(float mean, ReadOnlySpan<float> src)
1074public static unsafe float DotU(ReadOnlySpan<float> src, ReadOnlySpan<float> dst, int count)
1115public static unsafe float DotSU(ReadOnlySpan<float> src, ReadOnlySpan<float> dst, ReadOnlySpan<int> idx, int count)
1159public static unsafe float Dist2(ReadOnlySpan<float> src, ReadOnlySpan<float> dst, int count)
1199public static unsafe void SdcaL1UpdateU(float primalUpdate, int count, ReadOnlySpan<float> src, float threshold, Span<float> v, Span<float> w)
1244public static unsafe void SdcaL1UpdateSU(float primalUpdate, int count, ReadOnlySpan<float> src, ReadOnlySpan<int> indices, float threshold, Span<float> v, Span<float> w)
Microsoft.ML.Data (196)
DataLoadSave\Binary\UnsafeTypeOps.cs (13)
21public abstract void Apply(ReadOnlySpan<T> array, Action<IntPtr> func);
55public override unsafe void Apply(ReadOnlySpan<sbyte> array, Action<IntPtr> func)
67public override unsafe void Apply(ReadOnlySpan<Byte> array, Action<IntPtr> func)
79public override unsafe void Apply(ReadOnlySpan<short> array, Action<IntPtr> func)
91public override unsafe void Apply(ReadOnlySpan<UInt16> array, Action<IntPtr> func)
103public override unsafe void Apply(ReadOnlySpan<int> array, Action<IntPtr> func)
115public override unsafe void Apply(ReadOnlySpan<UInt32> array, Action<IntPtr> func)
127public override unsafe void Apply(ReadOnlySpan<long> array, Action<IntPtr> func)
139public override unsafe void Apply(ReadOnlySpan<UInt64> array, Action<IntPtr> func)
151public override unsafe void Apply(ReadOnlySpan<Single> array, Action<IntPtr> func)
163public override unsafe void Apply(ReadOnlySpan<Double> array, Action<IntPtr> func)
175public override unsafe void Apply(ReadOnlySpan<TimeSpan> array, Action<IntPtr> func)
192public override unsafe void Apply(ReadOnlySpan<DataViewRowId> array, Action<IntPtr> func)
Deprecated\Vector\VectorUtils.cs (27)
33var bValues = b.GetValues();
45var aValues = a.GetValues();
46var bValues = b.GetValues();
81var aValues = a.GetValues();
82var aIndices = a.GetIndices();
173private static float L2DistSquaredSparse(ReadOnlySpan<float> valuesA, ReadOnlySpan<int> indicesA, ReadOnlySpan<float> valuesB, ReadOnlySpan<int> indicesB)
222private static float L2DistSquaredHalfSparse(ReadOnlySpan<float> valuesA, ReadOnlySpan<float> valuesB, ReadOnlySpan<int> indicesB)
233private static float L2DiffSquaredDense(ReadOnlySpan<float> valuesA, ReadOnlySpan<float> valuesB, int length)
256var aValues = a.GetValues();
257var bValues = b.GetValues();
269var aIndices = a.GetIndices();
278var bIndices = b.GetIndices();
308var bValues = b.GetValues();
317private static float DotProductSparse(ReadOnlySpan<float> aValues, ReadOnlySpan<int> aIndices, int ia, int iaLim, ReadOnlySpan<float> bValues, ReadOnlySpan<int> bIndices, int ib, int ibLim)
446var srcValues = src.GetValues();
454var srcIndices = src.GetIndices();
474var srcValues = src.GetValues();
485var srcIndices = src.GetIndices();
Microsoft.ML.DataView (8)
VBuffer.cs (7)
53/// Note that if this vector <see cref="IsDense"/>, then this will be the same as the <see cref="ReadOnlySpan{T}.Length"/>
55/// this is a sparse representation, then that <see cref="ReadOnlySpan{T}.Length"/> will be somewhat shorter, as this
61/// The explicitly represented values. When this <see cref="IsDense"/>, the <see cref="ReadOnlySpan{T}.Length"/>
65public ReadOnlySpan<T> GetValues() => _values.AsSpan(0, _count);
80public ReadOnlySpan<int> GetIndices() => IsDense ? default : _indices.AsSpan(0, _count);
364/// items, which is to say, the <see cref="ReadOnlySpan{Int32}.Length"/> of the return value of <see cref="GetIndices"/>.
366/// For that reason, a single completely isolated lookup, since constructing <see cref="ReadOnlySpan{T}"/> as
Microsoft.ML.Ensemble (2)
Microsoft.ML.EntryPoints (1)
Microsoft.ML.FastTree (18)
Microsoft.ML.ImageAnalytics (4)
Microsoft.ML.IntegrationTests (1)
Microsoft.ML.KMeansClustering (4)
Microsoft.ML.LightGbm (12)
LightGbmTrainerBase.cs (12)
846private void GetFeatureValueDense(IChannel ch, FloatLabelCursor cursor, CategoricalMetaData catMetaData, Random rand, out ReadOnlySpan<float> featureValues)
884CategoricalMetaData catMetaData, Random rand, out ReadOnlySpan<int> indices,
885out ReadOnlySpan<float> featureValues, out int cnt)
968GetFeatureValueDense(ch, cursor, catMetaData, rand, out ReadOnlySpan<float> featureValues);
992GetFeatureValueSparse(ch, cursor, catMetaData, rand, out ReadOnlySpan<int> featureIndices, out ReadOnlySpan<float> featureValues, out int cnt);
1140GetFeatureValueDense(ch, cursor, catMetaData, rand, out ReadOnlySpan<float> featureValues);
1147GetFeatureValueSparse(ch, cursor, catMetaData, rand, out ReadOnlySpan<int> indices, out ReadOnlySpan<float> featureValues, out int cnt);
1182GetFeatureValueDense(ch, cursor, catMetaData, rand, out ReadOnlySpan<float> featureValues);
1195GetFeatureValueSparse(ch, cursor, catMetaData, rand, out ReadOnlySpan<int> featureIndices, out ReadOnlySpan<float> featureValues, out int cnt);
Microsoft.ML.Mkl.Components (9)
VectorWhitening.cs (5)
523float[] a, int lda, ReadOnlySpan<float> x, int incx, float beta, Span<float> y, int incy)
682var values = src.GetValues();
695var indices = src.GetIndices();
709private static float DotProduct(float[] a, int aOffset, ReadOnlySpan<float> b, ReadOnlySpan<int> indices, int count)
Microsoft.ML.OnnxTransformer (1)
Microsoft.ML.PCA (1)
Microsoft.ML.Predictor.Tests (2)
Microsoft.ML.Samples (11)
Microsoft.ML.StandardTrainers (25)
Microsoft.ML.TensorFlow.Tests (20)
Microsoft.ML.TestFrameworkCommon (4)
Microsoft.ML.Tests (26)
Microsoft.ML.TimeSeries (2)
Microsoft.ML.Tokenizers (254)
Model\BertTokenizer.cs (10)
142EncodeToIds(text, ReadOnlySpan<char>.Empty, addSpecialTokens: true, considerPreTokenization, considerNormalization);
151public new IReadOnlyList<int> EncodeToIds(ReadOnlySpan<char> text, bool considerPreTokenization = true, bool considerNormalization = true) =>
163EncodeToIds(text, ReadOnlySpan<char>.Empty, addSpecialTokens, considerPreTokenization, considerNormalization);
173public IReadOnlyList<int> EncodeToIds(ReadOnlySpan<char> text, bool addSpecialTokens, bool considerPreTokenization = true, bool considerNormalization = true) =>
187EncodeToIds(text, ReadOnlySpan<char>.Empty, maxTokenCount, addSpecialTokens: true, out normalizedText, out charsConsumed, considerPreTokenization, considerNormalization);
199public new IReadOnlyList<int> EncodeToIds(ReadOnlySpan<char> text, int maxTokenCount, out string? normalizedText, out int charsConsumed, bool considerPreTokenization = true, bool considerNormalization = true) =>
214EncodeToIds(text, ReadOnlySpan<char>.Empty, maxTokenCount, addSpecialTokens, out normalizedText, out charsConsumed, considerPreTokenization, considerNormalization);
227public IReadOnlyList<int> EncodeToIds(ReadOnlySpan<char> text, int maxTokenCount, bool addSpecialTokens, out string? normalizedText, out int charsConsumed, bool considerPreTokenization = true, bool considerNormalization = true) =>
230private IReadOnlyList<int> EncodeToIds(string? text, ReadOnlySpan<char> textSpan, int maxTokenCount, bool addSpecialTokens, out string? normalizedText, out int charsConsumed, bool considerPreTokenization = true, bool considerNormalization = true)
261private IReadOnlyList<int> EncodeToIds(string? text, ReadOnlySpan<char> textSpan, bool addSpecialTokens, bool considerPreTokenization = true, bool considerNormalization = true)
Model\BPETokenizer.cs (25)
431protected override EncodeResults<EncodedToken> EncodeToTokens(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings)
446out ReadOnlySpan<char> textSpanToEncode,
484protected override EncodeResults<int> EncodeToIds(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings)
505out ReadOnlySpan<char> textSpanToEncode,
551protected override int CountTokens(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings)
572out ReadOnlySpan<char> textSpanToEncode,
621protected override int GetIndexByTokenCount(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings, bool fromEnd, out string? normalizedText, out int tokenCount)
632private int CountTokens(string? text, ReadOnlySpan<char> textSpan, bool considerPreTokenization, bool considerNormalization, out string? normalizedText, out int charsConsumed, int maxTokenCount = int.MaxValue)
654out ReadOnlySpan<char> textSpanToEncode,
685private int LastIndexOf(string? text, ReadOnlySpan<char> textSpan, int maxTokenCount, bool considerPreTokenization, bool considerNormalization, out string? normalizedText, out int tokenCount)
707out ReadOnlySpan<char> textSpanToEncode,
741private int? MapTokenToId(ReadOnlySpan<char> token) => _vocab.TryGetValue(token, out int value) ? value : null;
853ReadOnlySpan<char> span = s.AsSpan();
943ReadOnlySpan<char> sSpan = s.AsSpan();
1011ReadOnlySpan<char> specialTokenSpan = specialToken.AsSpan();
1029ReadOnlySpan<char> span = s.AsSpan();
1186internal Word MergeWord(ReadOnlySpan<char> w, ref PriorityQueue<Merge>? priorityQueue)
1193scoped ReadOnlySpan<char> s;
1301internal void WordToTokens(ref Word word, List<EncodedToken> tokens, int offset, ReadOnlySpan<int> mapping) => word.ToTokens(VocabReverse, tokens, offset, mapping);
1303internal void EncodeWithCache(ReadOnlySpan<char> text, List<EncodedToken> tokens, int offset, ref PriorityQueue<Merge>? priorityQueue)
1311scoped ReadOnlySpan<char> textSpan = text;
1412private int EncodeToIdsWithCache(ReadOnlySpan<char> text, List<int>? accumulatedIds, int maxTokens, out int charsConsumed, ref PriorityQueue<Merge>? priorityQueue)
1423scoped ReadOnlySpan<char> textSpan = text;
1492internal int EncodeToIdsFromEndWithCache(ReadOnlySpan<char> text, IList<int>? accumulatedIds, int maxTokens, out int textIndex, ref PriorityQueue<Merge>? priorityQueue)
1503scoped ReadOnlySpan<char> textSpan = text;
Model\CodeGenTokenizer.cs (35)
288protected override EncodeResults<EncodedToken> EncodeToTokens(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings)
304EncodeResults<EncodedToken> result = EncodeToTokens(text, ReadOnlySpan<char>.Empty, addPrefixSpace, addBeginningOfSentence, addEndOfSentence, considerPreTokenization, considerNormalization);
320public IReadOnlyList<EncodedToken> EncodeToTokens(ReadOnlySpan<char> text, bool addPrefixSpace, bool addBeginningOfSentence, bool addEndOfSentence, out string? normalizedText, bool considerPreTokenization = true, bool considerNormalization = true)
327private EncodeResults<EncodedToken> EncodeToTokens(string? text, scoped ReadOnlySpan<char> textSpan, bool addPrefixSpace, bool addBos, bool addEos, bool considerPreTokenization, bool considerNormalization)
338scoped ReadOnlySpan<char> textSpanToEncode;
344ReadOnlySpan<char> span = text is null ? textSpan : text.AsSpan();
425private void EncodeInternal(string? text, scoped ReadOnlySpan<char> textSpan, List<EncodedToken> tokens, bool addPrefixSpace, int offset, PriorityQueue<SymbolPair> agenda)
491protected override EncodeResults<int> EncodeToIds(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings)
514return EncodeToIds(text, ReadOnlySpan<char>.Empty, addPrefixSpace, addBeginningOfSentence, addEndOfSentence, considerPreTokenization, considerNormalization, out _, out _);
527public IReadOnlyList<int> EncodeToIds(ReadOnlySpan<char> text, bool addPrefixSpace, bool addBeginningOfSentence, bool addEndOfSentence, bool considerPreTokenization = true, bool considerNormalization = true)
547return EncodeToIds(text, ReadOnlySpan<char>.Empty, addPrefixSpace, addBeginningOfSentence, addEndOfSentence, considerPreTokenization, considerNormalization, out normalizedText, out charsConsumed, maxTokenCount);
563public IReadOnlyList<int> EncodeToIds(ReadOnlySpan<char> text, int maxTokenCount, bool addPrefixSpace, bool addBeginningOfSentence, bool addEndOfSentence, out string? normalizedText, out int charsConsumed, bool considerPreTokenization = true, bool considerNormalization = true)
570scoped ReadOnlySpan<char> textSpan,
597scoped ReadOnlySpan<char> textSpanToEncode;
601ReadOnlySpan<char> span = text is null ? textSpan : text.AsSpan();
674protected override int CountTokens(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings)
700public int CountTokens(ReadOnlySpan<char> text, bool addPrefixSpace, bool addBeginningOfSentence, bool addEndOfSentence, bool considerPreTokenization = true, bool considerNormalization = true)
719protected override int GetIndexByTokenCount(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings, bool fromEnd, out string? normalizedText, out int tokenCount)
772ReadOnlySpan<char> text,
788scoped ReadOnlySpan<char> textSpan,
816scoped ReadOnlySpan<char> textSpanToEncode;
820ReadOnlySpan<char> span = text is null ? textSpan : text.AsSpan();
921public int GetIndexByTokenCountFromEnd(ReadOnlySpan<char> text, int maxTokenCount, bool addPrefixSpace, bool addBeginningOfSentence, bool addEndOfSentence, out string? normalizedText, out int tokenCount, bool considerPreTokenization = true, bool considerNormalization = true)
926scoped ReadOnlySpan<char> textSpan,
953scoped ReadOnlySpan<char> textSpanToEncode;
957ReadOnlySpan<char> span = text is null ? textSpan : text.AsSpan();
1104private int EncodeToIdsInternal(string? text, scoped ReadOnlySpan<char> textSpan, IList<int>? accumulatedIds, PriorityQueue<SymbolPair> agenda, out int charsConsumed, int maxTokens)
1168private int EncodeToIdsFromEndInternal(string? text, scoped ReadOnlySpan<char> textSpan, IList<int>? accumulatedIds, PriorityQueue<SymbolPair> agenda, out int textIndex, int maxTokens)
1307ReadOnlySpan<char> span = firstToken && hasPrefixSpace && s.Length > 0 && s[0] == _transformedSpace ? s.AsSpan(1) : s.AsSpan();
1446ReadOnlySpan<char> specialTokenSpan = specialToken.AsSpan();
1469ReadOnlySpan<char> span = firstToken && hasPrefixSpace && s.Length > 0 && s[0] == _transformedSpace ? s.AsSpan(1) : s.AsSpan();
1552private int? MapTokenToId(ReadOnlySpan<char> token)
1598private List<EncodedToken> EncodeToTokens(Span<char> text, Span<int> mapping, ReadOnlySpan<char> originalText, PriorityQueue<SymbolPair> agenda)
1680static EncodedToken GetToken(int id, string token, int index, int length, ReadOnlySpan<char> originalText, Span<int> mapping)
1686void TryMerge(int left, int right, ReadOnlySpan<char> textSpan)
Model\EnglishRobertaTokenizer.cs (15)
314protected override EncodeResults<EncodedToken> EncodeToTokens(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings)
329out ReadOnlySpan<char> textSpanToEncode,
356private IReadOnlyList<EncodedToken> EncodeInternal(ReadOnlySpan<char> text)
407protected override EncodeResults<int> EncodeToIds(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings)
410private EncodeResults<int> EncodeToIds(string? text, ReadOnlySpan<char> textSpan, bool considerPreTokenization, bool considerNormalization, int maxTokenCount = int.MaxValue)
430out ReadOnlySpan<char> textSpanToEncode,
465protected override int CountTokens(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings)
484protected override int GetIndexByTokenCount(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings, bool fromEnd, out string? normalizedText, out int tokenCount)
495private int CountTokens(string? text, ReadOnlySpan<char> textSpan, bool considerPreTokenization, bool considerNormalization, out string? normalizedText, out int charsConsumed, int maxTokenCount = int.MaxValue)
517out ReadOnlySpan<char> textSpanToEncode,
542private int LastIndexOf(string? text, ReadOnlySpan<char> textSpan, int maxTokenCount, bool considerPreTokenization, bool considerNormalization, out string? normalizedText, out int tokenCount)
564out ReadOnlySpan<char> textSpanToEncode,
662private int EncodeToIdsInternal(ReadOnlySpan<char> text, IList<int>? accumulatedIds, out int charsConsumed, int maxTokens)
707private int EncodeToIdsFromEndInternal(ReadOnlySpan<char> text, IList<int>? accumulatedIds, out int textIndex, int maxTokens)
757private int? MapTokenToId(ReadOnlySpan<char> token) => _vocab.TryGetValue(token, out int value) ? value : null;
Model\SentencePieceBpeModel.cs (29)
67public override IReadOnlyList<EncodedToken> EncodeToTokens(string? text, ReadOnlySpan<char> textSpan, out string? normalizedText, bool addBeginningOfSentence, bool addEndOfSentence, bool considerNormalization)
75ReadOnlySpan<char> textToEncode = text is null ? textSpan : text.AsSpan();
105private void EncodeWithSpecialTokens(ReadOnlySpan<char> text, bool addBeginOfSentence, bool addEndOfSentence, List<EncodedToken> tokens)
150private void EncodeInternal(ReadOnlySpan<char> text, bool addBeginOfSentence, bool addEndOfSentence, List<EncodedToken> tokens)
209void EncodeAsBytes(ReadOnlySpan<char> text, int index)
260void Segment((int Index, int Length) pieceSpan, ReadOnlySpan<char> text)
281public override IReadOnlyList<int> EncodeToIds(string? text, ReadOnlySpan<char> textSpan, bool addBeginningOfSentence, bool addEndOfSentence, bool considerNormalization,
310private IReadOnlyList<int> EncodeToIds(ReadOnlySpan<char> text, bool addBeginningOfSentence, bool addEndOfSentence, bool considerNormalization,
325ReadOnlySpan<char> textToEncode;
357private int EncodeToIdsWithAddedToken(ReadOnlySpan<char> text, bool addBeginOfSentence, bool addEndOfSentence, IList<int> accumulatedIds, out int charsConsumed, int maxTokens = int.MaxValue)
419private int EncodeToIds(ReadOnlySpan<char> text, bool addBeginOfSentence, bool addEndOfSentence, IList<int> accumulatedIds, out int charsConsumed, int maxTokens = int.MaxValue)
505bool EncodeAsBytes(ReadOnlySpan<char> text, int index, ref int charsConsumed)
566bool Segment((int Index, int Length) pieceSpan, ReadOnlySpan<char> text, ref int charsConsumed)
596ReadOnlySpan<char> textSpan,
618ReadOnlySpan<char> textToEncode;
635private int CountTokensWithSpecialTokens(ReadOnlySpan<char> text, bool addBeginOfSentence, bool addEndOfSentence, out int charsConsumed, int maxTokens = int.MaxValue)
693private int CountTokens(ReadOnlySpan<char> text, bool addBeginOfSentence, bool addEndOfSentence, out int charsConsumed, int maxTokens = int.MaxValue)
769bool EncodeAsBytes(ReadOnlySpan<char> text, int index, ref int charsConsumed)
825bool Segment((int Index, int Length) pieceSpan, ReadOnlySpan<char> text, ref int charsConsumed)
852public override int GetIndexByTokenCountFromEnd(string? text, ReadOnlySpan<char> textSpan, bool addBeginningOfSentence, bool addEndOfSentence, int maxTokenCount, bool considerNormalization, out string? normalizedText, out int tokenCount)
868ReadOnlySpan<char> textToEncode;
893private int CountTokensFromEndWithSpecialTokens(ReadOnlySpan<char> text, bool addBeginOfSentence, bool addEndOfSentence, out int textIndex, int maxTokens)
917ReadOnlySpan<char> splitText;
962private int CountTokensFromEnd(ReadOnlySpan<char> text, bool addBeginOfSentence, bool addEndOfSentence, out int textIndex, int maxTokens = int.MaxValue)
1045bool EncodeAsBytesFromEnd(ReadOnlySpan<char> text, int index, ref int textIndex)
1101bool SegmentFromEnd((int Index, int Length) pieceSpan, ReadOnlySpan<char> text, ref int textIndex)
1129private Dictionary<(int Index, int Len), (int LeftIndex, int LeftLen, int RightIndex, int RightLen)>? Encode(ReadOnlySpan<char> text, BpeSymbol[] symbols)
1190void TryMerge(int left, int right, ReadOnlySpan<char> textSpan)
1217private string GetTokenString(int id, int index, int length, ReadOnlySpan<char> text)
Model\SentencePieceTokenizer.cs (15)
119protected override EncodeResults<EncodedToken> EncodeToTokens(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings)
152public IReadOnlyList<EncodedToken> EncodeToTokens(ReadOnlySpan<char> text, out string? normalizedText, bool addBeginningOfSentence, bool addEndOfSentence, bool considerPreTokenization = true, bool considerNormalization = true)
163protected override EncodeResults<int> EncodeToIds(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings)
194public IReadOnlyList<int> EncodeToIds(ReadOnlySpan<char> text, bool addBeginningOfSentence, bool addEndOfSentence, bool considerPreTokenization = true, bool considerNormalization = true)
224public IReadOnlyList<int> EncodeToIds(ReadOnlySpan<char> text, bool addBeginningOfSentence, bool addEndOfSentence, int maxTokenCount, out string? normalizedText, out int charsConsumed, bool considerPreTokenization = true, bool considerNormalization = true)
234protected override int CountTokens(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings)
247=> _model.CountTokens(text, ReadOnlySpan<char>.Empty, addBeginningOfSentence, addEndOfSentence, considerNormalization, out _, out _, int.MaxValue);
258public int CountTokens(ReadOnlySpan<char> text, bool addBeginningOfSentence, bool addEndOfSentence, bool considerPreTokenization = true, bool considerNormalization = true)
274=> _model.CountTokens(text, ReadOnlySpan<char>.Empty, addBeginningOfSentence, addEndOfSentence, considerNormalization, out normalizedText, out charsConsumed, maxTokenCount);
288public int CountTokens(ReadOnlySpan<char> text, bool addBeginningOfSentence, bool addEndOfSentence, bool considerPreTokenization, bool considerNormalization, out string? normalizedText, out int charsConsumed, int maxTokenCount = int.MaxValue)
307protected override int GetIndexByTokenCount(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings, bool fromEnd, out string? normalizedText, out int tokenCount)
336tokenCount = _model.CountTokens(text, ReadOnlySpan<char>.Empty, addBeginningOfSentence, addEndOfSentence, considerNormalization, out normalizedText, out int charsConsumed, maxTokenCount);
356public int GetIndexByTokenCount(ReadOnlySpan<char> text, bool addBeginningOfSentence, bool addEndOfSentence, int maxTokenCount, out string? normalizedText, out int tokenCount, bool considerPreTokenization = true, bool considerNormalization = true)
377=> _model.GetIndexByTokenCountFromEnd(text, ReadOnlySpan<char>.Empty, addBeginningOfSentence, addEndOfSentence, maxTokenCount, considerNormalization, out normalizedText, out tokenCount);
393public int GetIndexByTokenCountFromEnd(ReadOnlySpan<char> text, bool addBeginningOfSentence, bool addEndOfSentence, int maxTokenCount, bool considerNormalization, out string? normalizedText, out int tokenCount)
Model\SentencePieceUnigramModel.cs (30)
100public override IReadOnlyList<EncodedToken> EncodeToTokens(string? text, ReadOnlySpan<char> textSpan, out string? normalizedText, bool addBeginningOfSentence, bool addEndOfSentence, bool considerNormalization)
102ReadOnlySpan<char> textToEncode = string.IsNullOrEmpty(text) ? textSpan : text.AsSpan();
144private void StoreNormalizedTextFromEnd(ReadOnlySpan<char> text, ref char[] normalizedString, ref int normalizedStringCountFromEnd)
159private void StoreNormalizedTextFromEnd(ReadOnlySpan<byte> utf8Bytes, ref char[] normalizedString, ref int normalizedStringCountFromEnd)
179private void StoreNormalizedText(ReadOnlySpan<char> text, ref char[] normalizedString, ref int normalizedStringIndex)
193private void StoreNormalizedText(ReadOnlySpan<byte> normalizationSpan, ref char[] normalizedString, ref int normalizedStringIndex)
208ReadOnlySpan<char> text,
260ReadOnlySpan<char> text,
288ReadOnlySpan<char> text,
327ReadOnlySpan<char> text,
412private void FallbackToByteEncoding(ReadOnlySpan<char> normalizationSpan, List<EncodedToken> tokens, int insertionStartPosition)
471private void Encode(ReadOnlySpan<byte> normalized, Span<BestPathNode> bestPathEndsAt)
553ReadOnlySpan<char> textSpan,
561ReadOnlySpan<char> textToEncode = string.IsNullOrEmpty(text) ? textSpan : text.AsSpan();
613private void StoreNormalizedText(ReadOnlySpan<char> text, bool considerNormalization, int[] buffer, ref char[]? normalizedString, ref int normalizedStringIndex)
633ReadOnlySpan<char> text,
705ReadOnlySpan<char> text,
726private void FallbackToByteEncoding(List<int> ids, ReadOnlySpan<byte> normalizationSpan, (int IdsIndex, int Utf8Index, int Utf8Length)[] unknownTokensTracking, int unknownTokensCount)
761ReadOnlySpan<char> text,
887ReadOnlySpan<byte> utf8UnknownBytes = normalizationSpan.Slice(unknownTokensTracking![j].Utf8Index, unknownTokensTracking![j].Utf8Length);
942ReadOnlySpan<char> textSpan,
950ReadOnlySpan<char> textToEncode = string.IsNullOrEmpty(text) ? textSpan : text.AsSpan();
1004ReadOnlySpan<char> text,
1075ReadOnlySpan<char> text,
1097ReadOnlySpan<char> text,
1212ReadOnlySpan<char> textSpan,
1220ReadOnlySpan<char> textToEncode = string.IsNullOrEmpty(text) ? textSpan : text.AsSpan();
1268ReadOnlySpan<char> text,
1330ReadOnlySpan<char> text,
1348ReadOnlySpan<char> text,
Model\TiktokenTokenizer.cs (14)
258protected override EncodeResults<EncodedToken> EncodeToTokens(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings)
273out ReadOnlySpan<char> textSpanToEncode,
299private void EncodeToTokens(ReadOnlySpan<char> text, List<EncodedToken> tokens, int offset)
362protected override EncodeResults<int> EncodeToIds(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings)
383out ReadOnlySpan<char> textSpanToEncode,
418private int EncodeToIds(ReadOnlySpan<char> text, IList<int> accumulatedIds, out int charsConsumed, int maxTokenCount = int.MaxValue)
528protected override int CountTokens(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings)
531private int CountTokens(string? text, ReadOnlySpan<char> textSpan, bool considerPreTokenization, bool considerNormalization, out string? normalizedText, out int charsConsumed, int maxTokenCount = int.MaxValue)
552out ReadOnlySpan<char> textSpanToEncode,
584private int CountTokens(ReadOnlySpan<char> text, out int charsConsumed, int maxTokens = int.MaxValue)
646protected override int GetIndexByTokenCount(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings, bool fromEnd, out string? normalizedText, out int tokenCount)
657private int LastIndexOf(string? text, ReadOnlySpan<char> textSpan, int maxTokenCount, bool considerPreTokenization, bool considerNormalization, out string? normalizedText, out int tokenCount)
679out ReadOnlySpan<char> textSpanToEncode,
710private int CountTokensFromEnd(ReadOnlySpan<char> text, out int textIndex, int maxTokens = int.MaxValue)
Model\WordPieceTokenizer.cs (12)
272protected override EncodeResults<EncodedToken> EncodeToTokens(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings)
287out ReadOnlySpan<char> textSpanToEncode,
313private void EncodeToTokens(ReadOnlySpan<char> text, List<EncodedToken> tokens, int offset)
341scoped ReadOnlySpan<char> subStr = text.Slice(start, end - start);
389protected override EncodeResults<int> EncodeToIds(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings)
410out ReadOnlySpan<char> textSpanToEncode,
446private int EncodeToIds(ReadOnlySpan<char> text, List<int>? accumulatedIds, out int charsConsumed, int maxTokenCount = int.MaxValue)
482scoped ReadOnlySpan<char> subStr = text.Slice(start, end - start);
541protected override int CountTokens(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings)
562out ReadOnlySpan<char> textSpanToEncode,
602protected override int GetIndexByTokenCount(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings, bool fromEnd, out string? normalizedText, out int tokenCount)
624out ReadOnlySpan<char> textSpanToEncode,
Normalizer\SentencePieceNormalizer.cs (8)
41ReadOnlySpan<byte> precompiledCharsMap,
104public override string Normalize(ReadOnlySpan<char> original)
201private void InsertDummyPrefix(ReadOnlySpan<char> original, ref int startIndex, int endIndex, Span<char> span, ref int bufferIndex)
273private int NormalizePrefix(ReadOnlySpan<byte> input, out Memory<byte> normalizedPrefix)
335internal int Normalize(ReadOnlySpan<byte> input, ref Span<byte> normalized, ref byte[]? poolArray)
358ReadOnlySpan<byte> normalizedByte = normalizedPrefix.Length == 0 ? input.Slice(0, p) : normalizedPrefix.Span;
389ReadOnlySpan<byte> sp = normalizedPrefix.Length == 0 ? input.Slice(0, p) : normalizedPrefix.Span;
486private unsafe void DecodePrecompiledCharsMap(ReadOnlySpan<byte> blob, out DoubleArrayUnit[]? trieBlob, out byte[]? normalized)
Tokenizer.cs (15)
40/// By default, it uses <see cref="EncodeToTokens(string?, ReadOnlySpan{char}, EncodeSettings)"/>.
42protected virtual EncodeResults<int> EncodeToIds(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings)
77public IReadOnlyList<int> EncodeToIds(ReadOnlySpan<char> text, bool considerPreTokenization = true, bool considerNormalization = true)
116public IReadOnlyList<int> EncodeToIds(ReadOnlySpan<char> text, int maxTokenCount, out string? normalizedText, out int charsConsumed, bool considerPreTokenization = true, bool considerNormalization = true)
138protected abstract EncodeResults<EncodedToken> EncodeToTokens(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings);
164public IReadOnlyList<EncodedToken> EncodeToTokens(ReadOnlySpan<char> text, out string? normalizedText, bool considerPreTokenization = true, bool considerNormalization = true)
181/// By default, it uses <see cref="EncodeToTokens(string?, ReadOnlySpan{char}, EncodeSettings)"/>.
183protected virtual int CountTokens(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings)
203public int CountTokens(ReadOnlySpan<char> text, bool considerPreTokenization = true, bool considerNormalization = true)
224/// By default, it uses <see cref="EncodeToTokens(string?, ReadOnlySpan{char}, EncodeSettings)"/>.
226protected virtual int GetIndexByTokenCount(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings, bool fromEnd, out string? normalizedText, out int tokenCount)
298public int GetIndexByTokenCount(ReadOnlySpan<char> text, int maxTokenCount, out string? normalizedText, out int tokenCount, bool considerPreTokenization = true, bool considerNormalization = true)
344public int GetIndexByTokenCountFromEnd(ReadOnlySpan<char> text, int maxTokenCount, out string? normalizedText, out int tokenCount, bool considerPreTokenization = true, bool considerNormalization = true)
429ReadOnlySpan<char> textSpan,
435out ReadOnlySpan<char> textSpanToEncode,
Utils\Helpers.cs (8)
53internal static int GetUtf16LengthFromUtf8Bytes(ReadOnlySpan<byte> utf8Bytes)
67internal static int EncodeToUtf8(ReadOnlySpan<char> text, Span<byte> destination, Span<int> indexMapping)
121internal static int EncodeNextUtf8(ReadOnlySpan<char> text, Span<byte> destination)
159internal static int EncodeToUtf8AndTransform(ReadOnlySpan<char> text, Span<char> destination, Span<int> indexMapping)
214internal static void AppendToBytesArray(ReadOnlySpan<char> text, ref byte[] bytes, ref int bytesIndex)
235public static bool ConvertUtf8ToUtf16(ReadOnlySpan<byte> utf8Bytes, Span<char> utf16Chars, out int bytesConsumed, out int charsWritten)
319internal static int DecodeUtf8(ReadOnlySpan<byte> input, out int encodedLength)
368internal static bool IsValidDecodeUtf8(ReadOnlySpan<byte> input, out int encodedLength)
Utils\Helpers.netstandard.cs (7)
60internal static int GetHashCode(ReadOnlySpan<char> span)
71internal static unsafe int GetUtf8Bytes(ReadOnlySpan<char> source, Span<byte> destination)
80internal static unsafe bool TryGetUtf8Bytes(ReadOnlySpan<char> source, Span<byte> destination, out int bytesWritten)
96internal static unsafe string GetString(ReadOnlySpan<byte> utf8Bytes)
104internal static unsafe int GetChars(ReadOnlySpan<byte> bytes, Span<char> chars)
120internal static void Replace(ReadOnlySpan<char> source, Span<char> destination, char oldValue, char newValue)
138internal static int EncodeCodePointToUtf8(ReadOnlySpan<char> text, int textIndex, ref byte[] destination, ref int bytesIndex)
Microsoft.ML.Tokenizers.Tests (23)
src\Microsoft.ML.Tokenizers\Utils\Helpers.cs (8)
53internal static int GetUtf16LengthFromUtf8Bytes(ReadOnlySpan<byte> utf8Bytes)
67internal static int EncodeToUtf8(ReadOnlySpan<char> text, Span<byte> destination, Span<int> indexMapping)
121internal static int EncodeNextUtf8(ReadOnlySpan<char> text, Span<byte> destination)
159internal static int EncodeToUtf8AndTransform(ReadOnlySpan<char> text, Span<char> destination, Span<int> indexMapping)
214internal static void AppendToBytesArray(ReadOnlySpan<char> text, ref byte[] bytes, ref int bytesIndex)
235public static bool ConvertUtf8ToUtf16(ReadOnlySpan<byte> utf8Bytes, Span<char> utf16Chars, out int bytesConsumed, out int charsWritten)
319internal static int DecodeUtf8(ReadOnlySpan<byte> input, out int encodedLength)
368internal static bool IsValidDecodeUtf8(ReadOnlySpan<byte> input, out int encodedLength)
src\Microsoft.ML.Tokenizers\Utils\Helpers.netcoreapp.cs (7)
53internal static int GetHashCode(ReadOnlySpan<char> span) => string.GetHashCode(span);
55internal static unsafe int GetUtf8Bytes(ReadOnlySpan<char> source, Span<byte> destination)
58internal static unsafe bool TryGetUtf8Bytes(ReadOnlySpan<char> source, Span<byte> destination, out int bytesWritten)
61internal static string GetString(ReadOnlySpan<byte> utf8Bytes)
64internal static int GetChars(ReadOnlySpan<byte> bytes, Span<char> chars)
69internal static void Replace(ReadOnlySpan<char> source, Span<char> destination, char oldValue, char newValue) => source.Replace(destination, oldValue, newValue);
79internal static int EncodeCodePointToUtf8(ReadOnlySpan<char> text, int textIndex, ref byte[] destination, ref int bytesIndex)
Microsoft.ML.TorchSharp (11)
Microsoft.ML.Transforms (78)
Microsoft.Net.Http.Headers (6)
Microsoft.NET.StringTools (12)
Microsoft.VisualStudio.LanguageServices (2)
mscorlib (1)
netstandard (1)
PresentationBuildTasks (18)
PresentationCore (36)
src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_exports.cs (1)
340internal static ReadOnlySpan<byte> GUID_VendorMicrosoft => [0xca, 0x49, 0xe7, 0xf0, 0xef, 0xed, 0x89, 0x45, 0xa7, 0x3a, 0xee, 0xe, 0x62, 0x6a, 0x2a, 0x2b];
PresentationFramework (112)
MS\Internal\Generated\AvTraceMessages.cs (12)
1336public static void Trace(TraceEventType type, AvTraceDetails traceDetails, params ReadOnlySpan<object> parameters)
1342public static void TraceActivityItem(AvTraceDetails traceDetails, params ReadOnlySpan<object> parameters)
1427public static void Trace(TraceEventType type, AvTraceDetails traceDetails, params ReadOnlySpan<object> parameters)
1433public static void TraceActivityItem(AvTraceDetails traceDetails, params ReadOnlySpan<object> parameters)
1630public static void Trace(TraceEventType type, AvTraceDetails traceDetails, params ReadOnlySpan<object> parameters)
1636public static void TraceActivityItem(AvTraceDetails traceDetails, params ReadOnlySpan<object> parameters)
1889public static void Trace(TraceEventType type, AvTraceDetails traceDetails, params ReadOnlySpan<object> parameters)
1895public static void TraceActivityItem(AvTraceDetails traceDetails, params ReadOnlySpan<object> parameters)
1938public static void Trace(TraceEventType type, AvTraceDetails traceDetails, params ReadOnlySpan<object> parameters)
1944public static void TraceActivityItem(AvTraceDetails traceDetails, params ReadOnlySpan<object> parameters)
2063public static void Trace(TraceEventType type, AvTraceDetails traceDetails, params ReadOnlySpan<object> parameters)
2069public static void TraceActivityItem(AvTraceDetails traceDetails, params ReadOnlySpan<object> parameters)
MS\Internal\PtsHost\ListMarkerSourceInfo.cs (1)
397private static ReadOnlySpan<int> RomanNumericSizeIncrements => [1, 2, 3, 8, 18, 28, 38, 88, 188, 288, 388, 888];
PresentationUI (3)
ReachFramework (2)
Replay (1)
ResultsOfTGenerator (1)
Roslyn.Diagnostics.Analyzers (59)
Roslyn.Diagnostics.CSharp.Analyzers (2)
Roslyn.Test.PdbUtilities (8)
Writer\DelegatingSymUnmanagedWriter.cs (4)
41public override int DefineDocument(string name, Guid language, Guid vendor, Guid type, Guid algorithmId, ReadOnlySpan<byte> checksum, ReadOnlySpan<byte> source)
71public override void SetAsyncInfo(int moveNextMethodToken, int kickoffMethodToken, int catchHandlerOffset, ReadOnlySpan<int> yieldOffsets, ReadOnlySpan<int> resumeOffsets)
Writer\MockSymUnmanagedWriter.cs (4)
46public override int DefineDocument(string name, Guid language, Guid vendor, Guid type, Guid algorithmId, ReadOnlySpan<byte> checksum, ReadOnlySpan<byte> source)
96public override void SetAsyncInfo(int moveNextMethodToken, int kickoffMethodToken, int catchHandlerOffset, ReadOnlySpan<int> yieldOffsets, ReadOnlySpan<int> resumeOffsets)
Shared (17)
System.Collections (3)
System.Collections.Concurrent (1)
System.Collections.Immutable (149)
System\Collections\Frozen\String\KeyAnalyzer.cs (8)
32ReadOnlySpan<string> uniqueStrings, bool ignoreCase, int minLength, int maxLength)
48private static bool TryUseSubstring(ReadOnlySpan<string> uniqueStrings, bool allUniqueStringsAreConfirmedAscii, bool ignoreCase, int minLength, int maxLength, out AnalysisResults results)
127ReadOnlySpan<string> uniqueStrings, bool allUniqueStringsAreConfirmedAscii, bool ignoreCase, int minLength, int maxLength, int index, int count, GetSpan getHashString)
187private delegate ReadOnlySpan<char> GetSpan(string s, int index, int count);
189private static bool AreAllAscii(ReadOnlySpan<string> strings)
202internal static unsafe bool IsAllAscii(ReadOnlySpan<char> s)
244internal static bool ContainsAnyAsciiLetters(ReadOnlySpan<char> s)
263internal static bool HasSufficientUniquenessFactor(HashSet<string> set, ReadOnlySpan<string> uniqueStrings, int acceptableNonUniqueCount)
System.Collections.Specialized (1)
System.ComponentModel.Annotations (7)
System.ComponentModel.TypeConverter (7)
System.Configuration.ConfigurationManager (2)
System.Console (23)
System\ConsolePal.Unix.cs (6)
616static void ReadRowOrCol(int startExclusive, int endExclusive, StdInReader reader, ReadOnlySpan<byte> source, ref int result)
644static void TransferBytes(ReadOnlySpan<byte> src, StdInReader dst)
808ReadOnlySpan<byte> consoleColorToAnsiCode =
948internal static void WriteToTerminal(ReadOnlySpan<byte> buffer, SafeFileHandle? handle = null, bool mayChangeCursorPosition = true)
959internal static unsafe void WriteFromConsoleStream(SafeFileHandle fd, ReadOnlySpan<byte> buffer)
973private static unsafe void Write(SafeFileHandle fd, ReadOnlySpan<byte> buffer, bool mayChangeCursorPosition = true)
System.Data.Common (28)
System\Data\SQLTypes\SQLDateTime.cs (3)
52private static ReadOnlySpan<int> DaysToMonth365 => [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365];
53private static ReadOnlySpan<int> DaysToMonth366 => [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366];
101ReadOnlySpan<int> days = IsLeapYear(year) ?
System\Data\SQLTypes\SQLDecimal.cs (17)
74private static ReadOnlySpan<uint> RgulShiftBase => // 9
134private static ReadOnlySpan<uint> DecimalHelpersLo =>
176private static ReadOnlySpan<uint> DecimalHelpersMid =>
218private static ReadOnlySpan<uint> DecimalHelpersHi =>
260private static ReadOnlySpan<uint> DecimalHelpersHiHi =>
321ReadOnlySpan<uint> decimalHelpers;
783private SqlDecimal(ReadOnlySpan<uint> rglData, byte bLen, byte bPrec, byte bScale, bool fPositive)
1482ReadOnlySpan<uint> rglData1 = [x._data1, x._data2, x._data3, x._data4];
1483ReadOnlySpan<uint> rglData2 = [y._data1, y._data2, y._data3, y._data4];
1824ReadOnlySpan<uint> rglData = [_data1, _data2, _data3, _data4];
1910private static ReadOnlySpan<byte> RgCLenFromPrec =>
2441ReadOnlySpan<uint> rglData1 = [_data1, _data2, _data3, _data4];
2442ReadOnlySpan<uint> rglData2 = [snumOp._data1, snumOp._data2, snumOp._data3, snumOp._data4];
2463ReadOnlySpan<uint> rgulS, // In | Source number
2493ReadOnlySpan<uint> rgulU, // In | Number
2600ReadOnlySpan<uint> rgulU, // In | U
3030private void StoreFromWorkingArray(ReadOnlySpan<uint> rguiData)
System\Data\SQLTypes\SQLGuid.cs (1)
116ReadOnlySpan<byte> rgiGuidOrder = [10, 11, 12, 13, 14, 15, 8, 9, 6, 7, 4, 5, 0, 1, 2, 3];
System.Diagnostics.DiagnosticSource (77)
src\libraries\Common\src\System\HexConverter.cs (9)
185public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper)
202public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper)
219public static string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper)
249public ReadOnlySpan<byte> Bytes { get; set; }
281public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
293public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
461private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
496private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
603public static ReadOnlySpan<byte> CharToHexLookup =>
System\Diagnostics\Metrics\AggregatorStore.cs (7)
70public TAggregator? GetAggregator(ReadOnlySpan<KeyValuePair<string, object?>> labels)
83private TAggregator? GetAggregatorSlow(ReadOnlySpan<KeyValuePair<string, object?>> labels)
323internal delegate bool AggregatorLookupFunc<TAggregator>(ReadOnlySpan<KeyValuePair<string, object?>> labels, out TAggregator? aggregator);
331ReadOnlySpan<KeyValuePair<string, object?>> labels)
341return (ReadOnlySpan<KeyValuePair<string, object?>> l, out TAggregator? aggregator) =>
396private static LabelInstruction[] Compile(ReadOnlySpan<KeyValuePair<string, object?>> labels)
434ReadOnlySpan<KeyValuePair<string, object?>> labels,
System.Diagnostics.FileVersionInfo (2)
System.Diagnostics.Process (24)
System.Diagnostics.TextWriterTraceListener (1)
System.Drawing.Common (114)
System\Drawing\Drawing2D\GraphicsPath.cs (25)
41GraphicsPath(ReadOnlySpan<PointF> pts, ReadOnlySpan<byte> types, FillMode fillMode = FillMode.Alternate)
77GraphicsPath(ReadOnlySpan<Point> pts, ReadOnlySpan<byte> types, FillMode fillMode = FillMode.Alternate)
332void AddLines(params ReadOnlySpan<PointF> points)
359void AddLines(params ReadOnlySpan<Point> points)
409void AddBeziers(params ReadOnlySpan<PointF> points)
433void AddBeziers(params ReadOnlySpan<Point> points)
483public void AddCurve(params ReadOnlySpan<PointF> points) => AddCurve(points, 0.5f);
492void AddCurve(ReadOnlySpan<PointF> points, float tension)
531public void AddCurve(ReadOnlySpan<Point> points) => AddCurve(points, 0.5f);
540void AddCurve(ReadOnlySpan<Point> points, float tension)
562public void AddClosedCurve(params ReadOnlySpan<PointF> points) => AddClosedCurve(points, 0.5f);
571void AddClosedCurve(ReadOnlySpan<PointF> points, float tension)
592public void AddClosedCurve(params ReadOnlySpan<Point> points) => AddClosedCurve(points, 0.5f);
601void AddClosedCurve(ReadOnlySpan<Point> points, float tension)
630void AddRectangles(params ReadOnlySpan<RectangleF> rects)
650void AddRectangles(params ReadOnlySpan<Rectangle> rects)
739void AddPolygon(params ReadOnlySpan<PointF> points)
760void AddPolygon(params ReadOnlySpan<Point> points)
864/// <inheritdoc cref="Warp(ReadOnlySpan{PointF}, RectangleF, Matrix?, WarpMode, float)"/>
867/// <inheritdoc cref="Warp(ReadOnlySpan{PointF}, RectangleF, Matrix?, WarpMode, float)"/>
871/// <inheritdoc cref="Warp(ReadOnlySpan{PointF}, RectangleF, Matrix?, WarpMode, float)"/>
875/// <inheritdoc cref="Warp(ReadOnlySpan{PointF}, RectangleF, Matrix?, WarpMode, float)"/>
903ReadOnlySpan<PointF> destPoints,
System\Drawing\Graphics.cs (51)
764void DrawRectangles(Pen pen, params ReadOnlySpan<RectangleF> rects)
789void DrawRectangles(Pen pen, params ReadOnlySpan<Rectangle> rects)
863void DrawPolygon(Pen pen, params ReadOnlySpan<PointF> points)
888void DrawPolygon(Pen pen, params ReadOnlySpan<Point> points)
923void DrawCurve(Pen pen, params ReadOnlySpan<PointF> points)
945void DrawCurve(Pen pen, ReadOnlySpan<PointF> points, float tension)
967public void DrawCurve(Pen pen, ReadOnlySpan<PointF> points, int offset, int numberOfSegments) =>
981void DrawCurve(Pen pen, ReadOnlySpan<PointF> points, int offset, int numberOfSegments, float tension)
1008void DrawCurve(Pen pen, params ReadOnlySpan<Point> points)
1030void DrawCurve(Pen pen, ReadOnlySpan<Point> points, float tension)
1063void DrawCurve(Pen pen, ReadOnlySpan<Point> points, int offset, int numberOfSegments, float tension)
1091void DrawClosedCurve(Pen pen, params ReadOnlySpan<PointF> points)
1122void DrawClosedCurve(Pen pen, ReadOnlySpan<PointF> points, float tension, FillMode fillmode)
1147void DrawClosedCurve(Pen pen, params ReadOnlySpan<Point> points)
1173void DrawClosedCurve(Pen pen, ReadOnlySpan<Point> points, float tension, FillMode fillmode)
1260void FillRectangles(Brush brush, params ReadOnlySpan<RectangleF> rects)
1282void FillRectangles(Brush brush, params ReadOnlySpan<Rectangle> rects)
1299public void FillPolygon(Brush brush, params ReadOnlySpan<PointF> points) => FillPolygon(brush, points, FillMode.Alternate);
1312void FillPolygon(Brush brush, ReadOnlySpan<PointF> points, FillMode fillMode)
1333public void FillPolygon(Brush brush, params ReadOnlySpan<Point> points) => FillPolygon(brush, points, FillMode.Alternate);
1351void FillPolygon(Brush brush, ReadOnlySpan<Point> points, FillMode fillMode)
1454void FillClosedCurve(Brush brush, params ReadOnlySpan<PointF> points)
1475public void FillClosedCurve(Brush brush, ReadOnlySpan<PointF> points, FillMode fillmode) =>
1495void FillClosedCurve(Brush brush, ReadOnlySpan<PointF> points, FillMode fillmode, float tension)
1522void FillClosedCurve(Brush brush, params ReadOnlySpan<Point> points)
1543public void FillClosedCurve(Brush brush, ReadOnlySpan<Point> points, FillMode fillmode) =>
1558void FillClosedCurve(Brush brush, ReadOnlySpan<Point> points, FillMode fillmode, float tension)
1592public void DrawString(ReadOnlySpan<char> s, Font font, Brush brush, float x, float y) =>
1612public void DrawString(ReadOnlySpan<char> s, Font font, Brush brush, PointF point) =>
1637public void DrawString(ReadOnlySpan<char> s, Font font, Brush brush, float x, float y, StringFormat? format) =>
1661public void DrawString(ReadOnlySpan<char> s, Font font, Brush brush, PointF point, StringFormat? format) =>
1694/// <see cref="DrawString(ReadOnlySpan{char}, Font, Brush, RectangleF, StringFormat?)"/> overload that takes
1699public void DrawString(ReadOnlySpan<char> s, Font font, Brush brush, RectangleF layoutRectangle) =>
1730public void DrawString(ReadOnlySpan<char> s, Font font, Brush brush, RectangleF layoutRectangle, StringFormat? format) =>
1734private void DrawStringInternal(ReadOnlySpan<char> s, Font font, Brush brush, RectangleF layoutRectangle, StringFormat? format)
1776ReadOnlySpan<char> text,
1786ReadOnlySpan<char> text,
1833public SizeF MeasureString(ReadOnlySpan<char> text, Font font, PointF origin, StringFormat? stringFormat)
1842public SizeF MeasureString(ReadOnlySpan<char> text, Font font, SizeF layoutArea) => MeasureString(text, font, layoutArea, null);
1857public SizeF MeasureString(ReadOnlySpan<char> text, Font font, SizeF layoutArea, StringFormat? stringFormat) =>
1889public SizeF MeasureString(ReadOnlySpan<char> text, Font font) => MeasureString(text, font, new SizeF(0, 0));
1898public SizeF MeasureString(ReadOnlySpan<char> text, Font font, int width) =>
1911public SizeF MeasureString(ReadOnlySpan<char> text, Font font, int width, StringFormat? format) =>
1941public Region[] MeasureCharacterRanges(ReadOnlySpan<char> text, Font font, RectangleF layoutRect, StringFormat? stringFormat) =>
1946ReadOnlySpan<char> text,
2371void DrawLines(Pen pen, params ReadOnlySpan<PointF> points)
2418void DrawLines(Pen pen, params ReadOnlySpan<Point> points)
2597void TransformPoints(Drawing2DCoordinateSpace destSpace, Drawing2DCoordinateSpace srcSpace, params ReadOnlySpan<PointF> pts)
2623void TransformPoints(Drawing2DCoordinateSpace destSpace, Drawing2DCoordinateSpace srcSpace, params ReadOnlySpan<Point> pts)
2798void DrawBeziers(Pen pen, params ReadOnlySpan<PointF> points)
2829void DrawBeziers(Pen pen, params ReadOnlySpan<Point> points)
System\Drawing\Imaging\ImageAttributes.cs (10)
323/// <inheritdoc cref="SetRemapTable(ColorAdjustType, ReadOnlySpan{ColorMap})"/>
335public void SetRemapTable(params ReadOnlySpan<ColorMap> map) => SetRemapTable(ColorAdjustType.Default, map);
338public void SetRemapTable(params ReadOnlySpan<(Color OldColor, Color NewColor)> map) => SetRemapTable(ColorAdjustType.Default, map);
355void SetRemapTable(ColorAdjustType type, params ReadOnlySpan<ColorMap> map)
382/// <inheritdoc cref="SetRemapTable(ColorAdjustType, ReadOnlySpan{ColorMap})"/>
383public void SetRemapTable(ColorAdjustType type, params ReadOnlySpan<(Color OldColor, Color NewColor)> map)
430/// <inheritdoc cref="SetRemapTable(ColorAdjustType, ReadOnlySpan{ColorMap})"/>
431public void SetBrushRemapTable(params ReadOnlySpan<ColorMap> map) => SetRemapTable(ColorAdjustType.Brush, map);
433/// <inheritdoc cref="SetRemapTable(ColorAdjustType, ReadOnlySpan{ColorMap})"/>
434public void SetBrushRemapTable(params ReadOnlySpan<(Color OldColor, Color NewColor)> map) => SetRemapTable(ColorAdjustType.Brush, map);
System.Drawing.Common.Tests (2)
System.Drawing.Primitives (6)
System.Formats.Asn1 (185)
System.Formats.Cbor (54)
System.Formats.Nrbf (7)
System.Formats.Tar (60)
System.IO.Compression (35)
System\IO\Compression\DeflateManaged\InflaterManaged.cs (5)
13private static ReadOnlySpan<byte> ExtraLengthBits =>
21private static ReadOnlySpan<byte> LengthBase =>
29private static ReadOnlySpan<ushort> DistanceBasePosition =>
36private static ReadOnlySpan<byte> CodeOrder => [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
38private static ReadOnlySpan<byte> StaticDistanceTreeTable =>
System\IO\Compression\ZipBlocks.cs (17)
45public static bool TryReadBlock(ReadOnlySpan<byte> bytes, out int bytesConsumed, out ZipGenericExtraField field)
70public static List<ZipGenericExtraField> ParseExtraField(ReadOnlySpan<byte> extraFieldData, out ReadOnlySpan<byte> trailingExtraFieldData)
104public static void WriteAllBlocks(List<ZipGenericExtraField>? fields, ReadOnlySpan<byte> trailingExtraFieldData, Stream stream)
189public static Zip64ExtraField GetJustZip64Block(ReadOnlySpan<byte> extraFieldData,
239ReadOnlySpan<byte> data = extraField.Data;
471public static ReadOnlySpan<byte> SignatureConstantBytes => [0x50, 0x4B, 0x06, 0x06];
561public static ReadOnlySpan<byte> DataDescriptorSignatureConstantBytes => [0x50, 0x4B, 0x07, 0x08];
562public static ReadOnlySpan<byte> SignatureConstantBytes => [0x50, 0x4B, 0x03, 0x04];
580List<ZipGenericExtraField> list = ZipGenericExtraField.ParseExtraField(extraFieldBuffer, out ReadOnlySpan<byte> trailingDataSpan);
679public static ReadOnlySpan<byte> SignatureConstantBytes => [0x50, 0x4B, 0x01, 0x02];
708private static bool TryReadBlockInitialize(ReadOnlySpan<byte> buffer, [NotNullWhen(returnValue: true)] out ZipCentralDirectoryFileHeader? header, out int bytesRead, out uint compressedSizeSmall, out uint uncompressedSizeSmall, out ushort diskNumberStartSmall, out uint relativeOffsetOfLocalHeaderSmall)
748private static void TryReadBlockFinalize(ZipCentralDirectoryFileHeader header, ReadOnlySpan<byte> dynamicHeader, int dynamicHeaderSize, uint uncompressedSizeSmall, uint compressedSizeSmall, ushort diskNumberStartSmall, uint relativeOffsetOfLocalHeaderSmall, bool saveExtraFieldsAndComments, ref int bytesRead, out Zip64ExtraField zip64)
757ReadOnlySpan<byte> zipExtraFields = dynamicHeader.Slice(header.FilenameLength, header.ExtraFieldLength);
761header.ExtraFields = ZipGenericExtraField.ParseExtraField(zipExtraFields, out ReadOnlySpan<byte> trailingDataSpan);
788public static bool TryReadBlock(ReadOnlySpan<byte> buffer, Stream furtherReads, bool saveExtraFieldsAndComments, out int bytesRead, [NotNullWhen(returnValue: true)] out ZipCentralDirectoryFileHeader? header)
803scoped ReadOnlySpan<byte> dynamicHeader;
System.IO.Compression.Brotli (10)
System\IO\Compression\enc\BrotliEncoder.cs (5)
129public OperationStatus Flush(Span<byte> destination, out int bytesWritten) => Compress(ReadOnlySpan<byte>.Empty, destination, out _, out bytesWritten, BrotliEncoderOperation.Flush);
140public OperationStatus Compress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesConsumed, out int bytesWritten, bool isFinalBlock) => Compress(source, destination, out bytesConsumed, out bytesWritten, isFinalBlock ? BrotliEncoderOperation.Finish : BrotliEncoderOperation.Process);
142internal OperationStatus Compress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesConsumed, out int bytesWritten, BrotliEncoderOperation operation)
192public static bool TryCompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) => TryCompress(source, destination, out bytesWritten, BrotliUtils.Quality_Default, BrotliUtils.WindowBits_Default);
201public static bool TryCompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, int quality, int window)
System.IO.Compression.ZipFile (1)
System.IO.FileSystem.DriveInfo (10)
System.IO.FileSystem.Watcher (25)
System.IO.Hashing (61)
System.IO.IsolatedStorage (2)
System.IO.Packaging (7)
System.IO.Pipelines (1)
System.IO.Pipes (2)
System.IO.Ports (1)
System.Linq (57)
System\Linq\ToCollection.cs (4)
165ReadOnlySpan<TSource> span = CollectionsMarshal.AsSpan(list);
179private static Dictionary<TKey, TSource> SpanToDictionary<TSource, TKey>(ReadOnlySpan<TSource> source, Func<TSource, TKey> keySelector, IEqualityComparer<TKey>? comparer) where TKey : notnull
223ReadOnlySpan<TSource> span = CollectionsMarshal.AsSpan(list);
237private static Dictionary<TKey, TElement> SpanToDictionary<TSource, TKey, TElement>(ReadOnlySpan<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector, IEqualityComparer<TKey>? comparer) where TKey : notnull
System\Linq\Where.SpeedOpt.cs (11)
173public static int GetCount(bool onlyIfCheap, ReadOnlySpan<TSource> source, Func<TSource, bool> predicate)
198public static TSource[] ToArray(ReadOnlySpan<TSource> source, Func<TSource, bool> predicate)
219public static List<TSource> ToList(ReadOnlySpan<TSource> source, Func<TSource, bool> predicate)
341ReadOnlySpan<TSource> source = CollectionsMarshal.AsSpan(_source);
402public static int GetCount(bool onlyIfCheap, ReadOnlySpan<TSource> source, Func<TSource, bool> predicate, Func<TSource, TResult> selector)
431public static TResult[] ToArray(ReadOnlySpan<TSource> source, Func<TSource, bool> predicate, Func<TSource, TResult> selector)
452public static List<TResult> ToList(ReadOnlySpan<TSource> source, Func<TSource, bool> predicate, Func<TSource, TResult> selector)
473public static TResult? TryGetFirst(ReadOnlySpan<TSource> source, Func<TSource, bool> predicate, Func<TSource, TResult> selector, out bool found)
490public static TResult? TryGetLast(ReadOnlySpan<TSource> source, Func<TSource, bool> predicate, Func<TSource, TResult> selector, out bool found)
507public static TResult? TryGetElementAt(ReadOnlySpan<TSource> source, Func<TSource, bool> predicate, Func<TSource, TResult> selector, int index, out bool found)
532public static bool Contains(ReadOnlySpan<TSource> source, Func<TSource, bool> predicate, Func<TSource, TResult> selector, TResult value)
System.Memory (73)
System\Buffers\SequenceReader.Search.cs (31)
18public bool TryReadTo(out ReadOnlySpan<T> span, T delimiter, bool advancePastDelimiter = true)
20ReadOnlySpan<T> remaining = UnreadSpan;
33private bool TryReadToSlow(out ReadOnlySpan<T> span, T delimiter, bool advancePastDelimiter)
54public bool TryReadTo(out ReadOnlySpan<T> span, T delimiter, T delimiterEscape, bool advancePastDelimiter = true)
56ReadOnlySpan<T> remaining = UnreadSpan;
70private bool TryReadToSlow(out ReadOnlySpan<T> span, T delimiter, T delimiterEscape, int index, bool advancePastDelimiter)
87ReadOnlySpan<T> remaining = UnreadSpan;
199ReadOnlySpan<T> remaining = UnreadSpan;
243ReadOnlySpan<T> remaining = UnreadSpan;
328public bool TryReadToAny(out ReadOnlySpan<T> span, scoped ReadOnlySpan<T> delimiters, bool advancePastDelimiter = true)
330ReadOnlySpan<T> remaining = UnreadSpan;
345private bool TryReadToAnySlow(out ReadOnlySpan<T> span, scoped ReadOnlySpan<T> delimiters, bool advancePastDelimiter)
364public bool TryReadToAny(out ReadOnlySequence<T> sequence, scoped ReadOnlySpan<T> delimiters, bool advancePastDelimiter = true)
369private bool TryReadToAnyInternal(out ReadOnlySequence<T> sequence, scoped ReadOnlySpan<T> delimiters, bool advancePastDelimiter, int skip = 0)
374ReadOnlySpan<T> remaining = UnreadSpan;
415public bool TryReadTo(out ReadOnlySpan<T> span, scoped ReadOnlySpan<T> delimiter, bool advancePastDelimiter = true)
417ReadOnlySpan<T> remaining = UnreadSpan;
431private bool TryReadToSlow(out ReadOnlySpan<T> span, scoped ReadOnlySpan<T> delimiter, bool advancePastDelimiter)
451public bool TryReadTo(out ReadOnlySequence<T> sequence, scoped ReadOnlySpan<T> delimiter, bool advancePastDelimiter = true)
539ReadOnlySpan<T> remaining = UnreadSpan;
556public bool TryAdvanceToAny(scoped ReadOnlySpan<T> delimiters, bool advancePastDelimiter = true)
558ReadOnlySpan<T> remaining = UnreadSpan;
605public long AdvancePastAny(scoped ReadOnlySpan<T> values)
788public bool IsNext(scoped ReadOnlySpan<T> next, bool advancePast = false)
790ReadOnlySpan<T> unread = UnreadSpan;
804private bool IsNextSlow(scoped ReadOnlySpan<T> next, bool advancePast)
806ReadOnlySpan<T> currentSpan = UnreadSpan;
System\Text\EncodingExtensions.cs (17)
26/// Encodes the specified <see cref="ReadOnlySpan{Char}"/> to <see langword="byte"/>s using the specified <see cref="Encoding"/>
30/// <param name="chars">The <see cref="ReadOnlySpan{Char}"/> to encode to <see langword="byte"/>s.</param>
34public static long GetBytes(this Encoding encoding, ReadOnlySpan<char> chars, IBufferWriter<byte> writer)
122remainingChars.GetFirstSpan(out ReadOnlySpan<char> firstSpan, out SequencePosition next);
150ReadOnlySpan<char> span = chars.FirstSpan;
174remainingChars.GetFirstSpan(out ReadOnlySpan<char> firstSpan, out SequencePosition next);
216/// Decodes the specified <see cref="ReadOnlySpan{Byte}"/> to <see langword="char"/>s using the specified <see cref="Encoding"/>
220/// <param name="bytes">The <see cref="ReadOnlySpan{Byte}"/> whose bytes should be decoded.</param>
225public static long GetChars(this Encoding encoding, ReadOnlySpan<byte> bytes, IBufferWriter<char> writer)
313remainingBytes.GetFirstSpan(out ReadOnlySpan<byte> firstSpan, out SequencePosition next);
361remainingBytes.GetFirstSpan(out ReadOnlySpan<byte> firstSpan, out SequencePosition next);
401/// Converts a <see cref="ReadOnlySpan{Char}"/> to bytes using <paramref name="encoder"/> and writes the result to <paramref name="writer"/>.
414public static void Convert(this Encoder encoder, ReadOnlySpan<char> chars, IBufferWriter<byte> writer, bool flush, out long bytesUsed, out bool completed)
480remainingChars.GetFirstSpan(out ReadOnlySpan<char> firstSpan, out SequencePosition next);
494/// Converts a <see cref="ReadOnlySpan{Byte}"/> to chars using <paramref name="decoder"/> and writes the result to <paramref name="writer"/>.
507public static void Convert(this Decoder decoder, ReadOnlySpan<byte> bytes, IBufferWriter<char> writer, bool flush, out long charsUsed, out bool completed)
574remainingBytes.GetFirstSpan(out ReadOnlySpan<byte> firstSpan, out SequencePosition next);
System.Memory.Data (6)
System.Net.Http (200)
src\libraries\Common\src\System\HexConverter.cs (9)
185public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper)
202public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper)
219public static string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper)
249public ReadOnlySpan<byte> Bytes { get; set; }
281public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
293public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
461private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
496private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
603public static ReadOnlySpan<byte> CharToHexLookup =>
src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HPackDecoder.cs (18)
136public void Decode(ReadOnlySpan<byte> data, bool endHeaders, IHttpStreamHeadersHandler handler)
142private void DecodeInternal(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler)
198ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length);
204private void ParseDynamicTableSizeUpdate(ReadOnlySpan<byte> data, ref int currentIndex)
213private void ParseHeaderValueLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
243private void ParseHeaderNameLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
256private void ParseHeaderValueLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
268private void ParseHeaderFieldIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
276private void ParseHeaderNameIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
285private void ParseHeaderNameLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
311private void Parse(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
395private void ParseLiteralHeaderField(ReadOnlySpan<byte> data, ref int currentIndex, byte b, byte mask, byte indexPrefix, bool index, IHttpStreamHeadersHandler handler)
422private void ParseHeaderName(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
460private void ParseHeaderValue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
504private void ProcessHeaderValue(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler)
506ReadOnlySpan<byte> headerValueSpan = _headerValueRange == null
521ReadOnlySpan<byte> headerNameSpan = _headerNameRange == null
638private bool TryDecodeInteger(ReadOnlySpan<byte> data, ref int currentIndex, out int result)
src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HPackEncoder.cs (4)
63var statusBytes = StatusCodes.ToStatusBytes(statusCode);
288public static bool EncodeLiteralHeaderFieldWithoutIndexingNewName(string name, ReadOnlySpan<string> values, byte[] separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten)
410public static bool EncodeStringLiteral(ReadOnlySpan<byte> value, Span<byte> destination, out int bytesWritten)
513public static bool EncodeStringLiterals(ReadOnlySpan<string> values, byte[]? separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten)
src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\QPack\QPackDecoder.cs (21)
175public void Decode(ReadOnlySpan<byte> data, bool endHeaders, IHttpStreamHeadersHandler handler)
181private void DecodeInternal(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler)
249ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length);
255private void ParseHeaderNameIndexPostBase(ReadOnlySpan<byte> data, ref int currentIndex)
263private void ParsePostBaseIndex(ReadOnlySpan<byte> data, ref int currentIndex)
271private void ParseHeaderNameLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
284private void ParseHeaderName(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
323private void ParseHeaderFieldIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
331private void ParseHeaderNameIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
340private void ParseHeaderValueLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
370private void ParseHeaderValue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
407private void ParseHeaderValueLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
424private void ParseCompressedHeaders(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
523private void ParseRequiredInsertCountContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
532private void ParseBase(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
552private void ParseBaseContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
561private void ParseRequiredInsertCount(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
591private void ProcessHeaderValue(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler)
593ReadOnlySpan<byte> headerValueSpan = _headerValueRange == null
603ReadOnlySpan<byte> headerNameSpan = _headerNameRange == null
687private bool TryDecodeInteger(ReadOnlySpan<byte> data, ref int currentIndex, out int result)
System\Net\Http\HttpContent.cs (11)
33private static ReadOnlySpan<byte> UTF8Preamble => [0xEF, 0xBB, 0xBF];
34private static ReadOnlySpan<byte> UTF32Preamble => [0xFF, 0xFE, 0x00, 0x00];
35private static ReadOnlySpan<byte> UnicodePreamble => [0xFF, 0xFE];
36private static ReadOnlySpan<byte> BigEndianUnicodePreamble => [0xFE, 0xFF];
52private static void AssertEncodingConstants(Encoding encoding, int codePage, ReadOnlySpan<byte> preamble)
116ReadOnlySpan<byte> firstBuffer = stream.GetFirstBuffer();
702private static int GetPreambleLength(ReadOnlySpan<byte> data, Encoding encoding)
726private static bool TryDetectEncoding(ReadOnlySpan<byte> data, [NotNullWhen(true)] out Encoding? encoding, out int preambleLength)
871public ReadOnlySpan<byte> GetFirstBuffer()
902public override void Write(ReadOnlySpan<byte> buffer)
924private void GrowAndWrite(ReadOnlySpan<byte> buffer)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (19)
23private static ReadOnlySpan<byte> ProtocolLiteralHeaderBytes => [0x0, 0x9, 0x3a, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c];
83private static ReadOnlySpan<byte> Http2ConnectionPreface => "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n"u8;
702void IHttpStreamHeadersHandler.OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) { }
705void IHttpStreamHeadersHandler.OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value) { }
706void IHttpStreamHeadersHandler.OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) { }
709private static ReadOnlySpan<byte> GetFrameData(ReadOnlySpan<byte> frameData, bool hasPad, bool hasPriority)
755ReadOnlySpan<byte> span = _incomingBuffer.ActiveSpan.Slice(0, frameHeader.PayloadLength);
788ReadOnlySpan<byte> frameData = GetFrameData(_incomingBuffer.ActiveSpan.Slice(0, frameHeader.PayloadLength), hasPad: frameHeader.PaddedFlag, hasPriority: false);
842ReadOnlySpan<byte> settings = _incomingBuffer.ActiveSpan.Slice(0, frameHeader.PayloadLength);
996ReadOnlySpan<byte> pingContent = _incomingBuffer.ActiveSpan.Slice(0, FrameHeader.PingLength);
1377private void WriteLiteralHeader(string name, ReadOnlySpan<string> values, Encoding? valueEncoding, ref ArrayBuffer headerBuffer)
1390private void WriteLiteralHeaderValues(ReadOnlySpan<string> values, byte[]? separator, Encoding? valueEncoding, ref ArrayBuffer headerBuffer)
1416private void WriteBytes(ReadOnlySpan<byte> bytes, ref ArrayBuffer headerBuffer)
1433ReadOnlySpan<HeaderEntry> entries = headers.GetEntries();
1440ReadOnlySpan<string> headerValues = tmpHeaderValuesArray.AsSpan(0, headerValuesCount);
1930public static FrameHeader ReadFrom(ReadOnlySpan<byte> buffer)
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (10)
31private static ReadOnlySpan<byte> StatusHeaderName => ":status"u8;
500private static ReadOnlySpan<int> HpackStaticStatusCodeTable => [200, 204, 206, 304, 400, 404, 500];
576void IHttpStreamHeadersHandler.OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value)
599void IHttpStreamHeadersHandler.OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
677private void OnHeader(HeaderDescriptor descriptor, ReadOnlySpan<byte> value)
729public void OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
867public void OnResponseData(ReadOnlySpan<byte> buffer, bool endStream)
1504public override void Write(ReadOnlySpan<byte> buffer) => throw new NotSupportedException(SR.net_http_content_readonly_stream);
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (11)
779ReadOnlySpan<HeaderEntry> entries = headers.GetEntries();
786ReadOnlySpan<string> headerValues = _headerValues.AsSpan(0, headerValuesCount);
855private void BufferLiteralHeaderWithoutNameReference(string name, ReadOnlySpan<string> values, byte[] separator, Encoding? valueEncoding)
875private void BufferLiteralHeaderValues(ReadOnlySpan<string> values, byte[]? separator, Encoding? valueEncoding)
895private void BufferBytes(ReadOnlySpan<byte> span)
1005void IHttpStreamHeadersHandler.OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
1022void IHttpStreamHeadersHandler.OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value)
1028void IHttpStreamHeadersHandler.OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
1047private void OnHeader(int? staticIndex, HeaderDescriptor descriptor, string? staticValue, ReadOnlySpan<byte> literalValue)
System.Net.HttpListener (22)
src\libraries\Common\src\System\HexConverter.cs (9)
185public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper)
202public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper)
219public static string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper)
249public ReadOnlySpan<byte> Bytes { get; set; }
281public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
293public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
461private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
496private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
603public static ReadOnlySpan<byte> CharToHexLookup =>
System.Net.Mail (70)
src\libraries\Common\src\System\HexConverter.cs (9)
185public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper)
202public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper)
219public static string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper)
249public ReadOnlySpan<byte> Bytes { get; set; }
281public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
293public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
461private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
496private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
603public static ReadOnlySpan<byte> CharToHexLookup =>
System.Net.NameResolution (4)
System.Net.NetworkInformation (23)
System.Net.Ping (10)
System.Net.Primitives (81)
src\libraries\Common\src\System\HexConverter.cs (9)
185public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper)
202public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper)
219public static string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper)
249public ReadOnlySpan<byte> Bytes { get; set; }
281public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
293public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
461private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
496private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
603public static ReadOnlySpan<byte> CharToHexLookup =>
System\Net\IPAddress.cs (22)
140public IPAddress(ReadOnlySpan<byte> address, long scopeid)
155internal IPAddress(ReadOnlySpan<ushort> numbers, uint scopeid)
182public IPAddress(ReadOnlySpan<byte> address)
199private static ushort[] ReadUInt16NumbersFromBytes(ReadOnlySpan<byte> address)
229public static bool IsValid(ReadOnlySpan<char> ipSpan) => IPAddressParser.IsValid(ipSpan);
233public static bool IsValidUtf8(ReadOnlySpan<byte> utf8Text) => IPAddressParser.IsValid(utf8Text);
258public static bool TryParse(ReadOnlySpan<byte> utf8Text, [NotNullWhen(true)] out IPAddress? result)
264public static bool TryParse(ReadOnlySpan<char> ipSpan, [NotNullWhen(true)] out IPAddress? address)
271static bool IUtf8SpanParsable<IPAddress>.TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, [NotNullWhen(true)] out IPAddress? result) =>
280static bool ISpanParsable<IPAddress>.TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, [NotNullWhen(true)] out IPAddress? result) =>
296public static IPAddress Parse(ReadOnlySpan<byte> utf8Text)
301public static IPAddress Parse(ReadOnlySpan<char> ipSpan)
307static IPAddress IUtf8SpanParsable<IPAddress>.Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) =>
312static IPAddress ISpanParsable<IPAddress>.Parse(ReadOnlySpan<char> s, IFormatProvider? provider) =>
490bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) =>
495bool IUtf8SpanFormattable.TryFormat(Span<byte> utf8Destination, out int bytesWritten, ReadOnlySpan<char> format, IFormatProvider? provider) =>
644return !IsIPv4 && _numbers.AsSpan(0, 6).SequenceEqual((ReadOnlySpan<ushort>)[0, 0, 0, 0, 0, 0xFFFF]);
704ReadOnlySpan<ushort> left = _numbers.AsSpan(0, IPAddressParserStatics.IPv6AddressShorts);
705ReadOnlySpan<ushort> right = comparand._numbers.AsSpan(0, IPAddressParserStatics.IPv6AddressShorts);
721ReadOnlySpan<byte> numbers = MemoryMarshal.AsBytes<ushort>(_numbers);
779public ReadOnlyIPAddress(ReadOnlySpan<byte> newAddress) : base(newAddress)
782public ReadOnlyIPAddress(ReadOnlySpan<byte> address, long scopeid) : base(address, scopeid)
System\Net\IPAddressParser.cs (8)
19public static unsafe bool IsValid<TChar>(ReadOnlySpan<TChar> ipSpan)
37internal static IPAddress? Parse<TChar>(ReadOnlySpan<TChar> ipSpan, bool tryParse)
66private static unsafe bool TryParseIpv4<TChar>(ReadOnlySpan<TChar> ipSpan, out long address)
90private static unsafe bool TryParseIPv6<TChar>(ReadOnlySpan<TChar> ipSpan, Span<ushort> numbers, int numbersLength, out uint scope)
105IPv6AddressHelper.Parse(ipSpan, numbers, out ReadOnlySpan<TChar> scopeIdSpan);
115ReadOnlySpan<byte> castScopeIdSpan = MemoryMarshal.Cast<TChar, byte>(scopeIdSpan);
121ReadOnlySpan<char> castScopeIdSpan = MemoryMarshal.Cast<TChar, char>(scopeIdSpan);
238static void AppendSections(ReadOnlySpan<ushort> address, Span<TChar> destination, ref int offset)
System\Net\IPNetwork.cs (14)
130public static IPNetwork Parse(ReadOnlySpan<char> s)
146public static IPNetwork Parse(ReadOnlySpan<byte> utf8Text)
179public static bool TryParse(ReadOnlySpan<char> s, out IPNetwork result)
184ReadOnlySpan<char> ipAddressSpan = s.Slice(0, separatorIndex);
185ReadOnlySpan<char> prefixLengthSpan = s.Slice(separatorIndex + 1);
207public static bool TryParse(ReadOnlySpan<byte> utf8Text, out IPNetwork result)
212ReadOnlySpan<byte> ipAddressSpan = utf8Text.Slice(0, separatorIndex);
213ReadOnlySpan<byte> prefixLengthSpan = utf8Text.Slice(separatorIndex + 1);
350bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) =>
355bool IUtf8SpanFormattable.TryFormat(Span<byte> utf8Destination, out int bytesWritten, ReadOnlySpan<char> format, IFormatProvider? provider) =>
366static IPNetwork ISpanParsable<IPNetwork>.Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s);
369static IPNetwork IUtf8SpanParsable<IPNetwork>.Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text);
372static bool ISpanParsable<IPNetwork>.TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out IPNetwork result) => TryParse(s, out result);
375static bool IUtf8SpanParsable<IPNetwork>.TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out IPNetwork result) => TryParse(utf8Text, out result);
System.Net.Quic (43)
src\libraries\Common\src\System\HexConverter.cs (9)
185public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper)
202public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper)
219public static string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper)
249public ReadOnlySpan<byte> Bytes { get; set; }
281public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
293public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
461private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
496private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
603public static ReadOnlySpan<byte> CharToHexLookup =>
System.Net.Requests (4)
System.Net.Security (210)
src\libraries\Common\src\System\HexConverter.cs (9)
185public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper)
202public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper)
219public static string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper)
249public ReadOnlySpan<byte> Bytes { get; set; }
281public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
293public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
461private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
496private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
603public static ReadOnlySpan<byte> CharToHexLookup =>
System\Net\NegotiateAuthenticationPal.ManagedNtlm.cs (32)
49private static ReadOnlySpan<byte> NtlmHeader => "NTLMSSP\0"u8;
51private static ReadOnlySpan<byte> ClientSigningKeyMagic => "session key to client-to-server signing key magic constant\0"u8;
52private static ReadOnlySpan<byte> ServerSigningKeyMagic => "session key to server-to-client signing key magic constant\0"u8;
53private static ReadOnlySpan<byte> ClientSealingKeyMagic => "session key to client-to-server sealing key magic constant\0"u8;
54private static ReadOnlySpan<byte> ServerSealingKeyMagic => "session key to server-to-client sealing key magic constant\0"u8;
264public override unsafe byte[]? GetOutgoingBlob(ReadOnlySpan<byte> incomingBlob, out NegotiateAuthenticationStatusCode statusCode)
311ReadOnlySpan<byte> span = new ReadOnlySpan<byte>(&field, sizeof(MessageField));
317ReadOnlySpan<byte> span = new ReadOnlySpan<byte>(&field, sizeof(MessageField));
321private static ReadOnlySpan<byte> GetField(MessageField field, ReadOnlySpan<byte> payload)
328return ReadOnlySpan<byte>.Empty;
347private static void AddToPayload(ref MessageField field, ReadOnlySpan<byte> data, Span<byte> payload, ref int offset)
354private static void AddToPayload(ref MessageField field, ReadOnlySpan<char> data, Span<byte> payload, ref int offset)
365private static void makeNtlm2Hash(string domain, string userName, ReadOnlySpan<char> password, Span<byte> hash)
398private unsafe void makeNtlm2ChallengeResponse(DateTime time, ReadOnlySpan<byte> ntlm2hash, ReadOnlySpan<byte> serverChallenge, Span<byte> clientChallenge, ReadOnlySpan<byte> serverInfo, ref MessageField field, Span<byte> payload, ref int payloadOffset)
457private byte[] ProcessTargetInfo(ReadOnlySpan<byte> targetInfo, out DateTime time, out bool hasNbNames)
474ReadOnlySpan<byte> info = targetInfo;
552private static byte[] DeriveKey(ReadOnlySpan<byte> exportedSessionKey, ReadOnlySpan<byte> magic)
563private unsafe byte[]? ProcessChallenge(ReadOnlySpan<byte> blob, out NegotiateAuthenticationStatusCode statusCode)
578ReadOnlySpan<byte> targetName = GetField(challengeMessage.TargetName, blob);
597ReadOnlySpan<byte> targetInfo = GetField(challengeMessage.TargetInfo, blob);
648ReadOnlySpan<byte> serverChallenge = blob.Slice(24, 8);
714ReadOnlySpan<byte> message,
716ReadOnlySpan<byte> signingKey,
732public override bool VerifyMIC(ReadOnlySpan<byte> message, ReadOnlySpan<byte> signature)
751public override void GetMIC(ReadOnlySpan<byte> message, IBufferWriter<byte> signature)
762public override NegotiateAuthenticationStatusCode Wrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, bool _/*requestEncryption*/, out bool isEncrypted)
780public override NegotiateAuthenticationStatusCode Unwrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, out bool wasEncrypted)
System\Net\NegotiateAuthenticationPal.ManagedSpnego.cs (8)
97public override unsafe byte[]? GetOutgoingBlob(ReadOnlySpan<byte> incomingBlob, out NegotiateAuthenticationStatusCode statusCode)
140private byte[]? CreateSpNegoNegotiateMessage(ReadOnlySpan<byte> incomingBlob, out NegotiateAuthenticationStatusCode statusCode)
216private byte[]? ProcessSpNegoChallenge(ReadOnlySpan<byte> challenge, out NegotiateAuthenticationStatusCode statusCode)
404public override NegotiateAuthenticationStatusCode Wrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, bool requestEncryption, out bool isEncrypted)
414public override NegotiateAuthenticationStatusCode Unwrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, out bool wasEncrypted)
434public override bool VerifyMIC(ReadOnlySpan<byte> message, ReadOnlySpan<byte> signature)
444public override void GetMIC(ReadOnlySpan<byte> message, IBufferWriter<byte> signature)
System\Net\NegotiateAuthenticationPal.Unix.cs (10)
267public override byte[]? GetOutgoingBlob(ReadOnlySpan<byte> incomingBlob, out NegotiateAuthenticationStatusCode statusCode)
332public override NegotiateAuthenticationStatusCode Wrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, bool requestEncryption, out bool isEncrypted)
363public override NegotiateAuthenticationStatusCode Unwrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, out bool wasEncrypted)
422public override unsafe void GetMIC(ReadOnlySpan<byte> message, IBufferWriter<byte> signature)
448public override unsafe bool VerifyMIC(ReadOnlySpan<byte> message, ReadOnlySpan<byte> signature)
487ReadOnlySpan<char> domain = credential.Domain;
532ReadOnlySpan<byte> tokenBytes = token.Span;
554ReadOnlySpan<byte> incomingBlob,
679ReadOnlySpan<byte> incomingBlob,
System\Net\Security\TlsFrameHelper.cs (35)
152public delegate bool HelloExtensionCallback(ref TlsFrameInfo info, ExtensionType type, ReadOnlySpan<byte> extensionsData);
171public static bool TryGetFrameHeader(ReadOnlySpan<byte> frame, ref TlsFrameHeader header)
227public static bool TryGetFrameInfo(ReadOnlySpan<byte> frame, ref TlsFrameInfo info, ProcessingOptions options = ProcessingOptions.All, HelloExtensionCallback? callback = null)
292public static string? GetServerName(ReadOnlySpan<byte> frame)
304public static bool TryGetAlertInfo(ReadOnlySpan<byte> frame, ref TlsAlertLevel level, ref TlsAlertDescription description)
365private static bool TryParseHelloFrame(ReadOnlySpan<byte> sslHandshake, ref TlsFrameInfo info, ProcessingOptions options, HelloExtensionCallback? callback)
390ReadOnlySpan<byte> helloData = sslHandshake.Slice(HelloOffset);
408private static bool TryParseClientHello(ReadOnlySpan<byte> clientHello, ref TlsFrameInfo info, ProcessingOptions options, HelloExtensionCallback? callback)
421ReadOnlySpan<byte> p = SkipBytes(clientHello, ProtocolVersionSize + RandomSize);
449private static bool TryParseServerHello(ReadOnlySpan<byte> serverHello, ref TlsFrameInfo info, ProcessingOptions options, HelloExtensionCallback? callback)
465ReadOnlySpan<byte> p = SkipBytes(serverHello, ProtocolVersionSize + RandomSize);
488private static bool TryParseHelloExtensions(ReadOnlySpan<byte> extensions, ref TlsFrameInfo info, ProcessingOptions options, HelloExtensionCallback? callback)
506ReadOnlySpan<byte> extensionData = extensions.Slice(0, extensionLength);
553private static bool TryGetSniFromServerNameList(ReadOnlySpan<byte> serverNameListExtension, out string? sni)
569ReadOnlySpan<byte> serverNameList = serverNameListExtension.Slice(ServerNameListOffset);
576ReadOnlySpan<byte> serverName = serverNameList.Slice(0, serverNameListLength);
582private static string? GetSniFromServerName(ReadOnlySpan<byte> serverName, out bool invalid)
602ReadOnlySpan<byte> hostNameStruct = serverName.Slice(HostNameStructOffset);
612private static string? GetSniFromHostNameStruct(ReadOnlySpan<byte> hostNameStruct, out bool invalid)
620ReadOnlySpan<byte> hostName = hostNameStruct.Slice(HostNameOffset);
631private static bool TryGetSupportedVersionsFromExtension(ReadOnlySpan<byte> extensionData, out SslProtocols protocols)
670private static bool TryGetApplicationProtocolsFromExtension(ReadOnlySpan<byte> extensionData, out ApplicationProtocolInfo alpn)
690ReadOnlySpan<byte> alpnList = extensionData.Slice(AlpnListOffset);
704ReadOnlySpan<byte> protocol = alpnList.Slice(1, protocolLength);
749private static string? DecodeString(ReadOnlySpan<byte> bytes)
788private static int ReadUInt24BigEndian(ReadOnlySpan<byte> bytes)
793private static ReadOnlySpan<byte> SkipBytes(ReadOnlySpan<byte> bytes, int numberOfBytesToSkip)
795return (numberOfBytesToSkip < bytes.Length) ? bytes.Slice(numberOfBytesToSkip) : ReadOnlySpan<byte>.Empty;
803private static ReadOnlySpan<byte> SkipOpaqueType1(ReadOnlySpan<byte> bytes)
808return ReadOnlySpan<byte>.Empty;
817private static ReadOnlySpan<byte> SkipOpaqueType2(ReadOnlySpan<byte> bytes)
822return ReadOnlySpan<byte>.Empty;
System.Net.ServerSentEvents (16)
System.Net.Sockets (58)
System\Net\Sockets\Socket.cs (13)
1227public int Send(ReadOnlySpan<byte> buffer) => Send(buffer, SocketFlags.None);
1229public int Send(ReadOnlySpan<byte> buffer, SocketFlags socketFlags)
1239public int Send(ReadOnlySpan<byte> buffer, SocketFlags socketFlags, out SocketError errorCode)
1270SendFile(fileName, ReadOnlySpan<byte>.Empty, ReadOnlySpan<byte>.Empty, TransmitFileOptions.UseDefaultWorkerThread);
1309/// A <see cref="ReadOnlySpan{T}"/> that contains data to be sent before the file is sent. This buffer can be empty.
1312/// A <see cref="ReadOnlySpan{T}"/> that contains data to be sent after the file is sent. This buffer can be empty.
1322public void SendFile(string? fileName, ReadOnlySpan<byte> preBuffer, ReadOnlySpan<byte> postBuffer, TransmitFileOptions flags)
1409public int SendTo(ReadOnlySpan<byte> buffer, EndPoint remoteEP)
1426public int SendTo(ReadOnlySpan<byte> buffer, SocketFlags socketFlags, EndPoint remoteEP)
1469public int SendTo(ReadOnlySpan<byte> buffer, SocketFlags socketFlags, SocketAddress socketAddress)
2167public void SetRawSocketOption(int optionLevel, int optionName, ReadOnlySpan<byte> optionValue)
System\Net\Sockets\SocketAsyncContext.Unix.cs (3)
402return SocketPal.TryCompleteSendTo(context._socket, default(ReadOnlySpan<byte>), Buffers, ref BufferIndex, ref Offset, ref Count, Flags, SocketAddress.Span, ref BytesTransferred, out ErrorCode);
1933public SocketError Send(ReadOnlySpan<byte> buffer, SocketFlags flags, int timeout, out int bytesSent) =>
1979public unsafe SocketError SendTo(ReadOnlySpan<byte> buffer, SocketFlags flags, Memory<byte> socketAddress, int timeout, out int bytesSent)
System\Net\Sockets\SocketPal.Unix.cs (21)
185private static unsafe int SysWrite(SafeSocketHandle handle, ReadOnlySpan<byte> buffer, ref int offset, ref int count, out Interop.Error errno)
211private static ReadOnlySpan<byte> AvoidNullReference(ReadOnlySpan<byte> buffer) =>
214private static unsafe int SysSend(SafeSocketHandle socket, SocketFlags flags, ReadOnlySpan<byte> buffer, ref int offset, ref int count, out Interop.Error errno)
241private static unsafe int SysSend(SafeSocketHandle socket, SocketFlags flags, ReadOnlySpan<byte> buffer, ref int offset, ref int count, ReadOnlySpan<byte> socketAddress, out Interop.Error errno)
285private static unsafe int SysSend(SafeSocketHandle socket, SocketFlags flags, IList<ArraySegment<byte>> buffers, ref int bufferIndex, ref int offset, ReadOnlySpan<byte> socketAddress, out Interop.Error errno)
949public static bool TryCompleteSendTo(SafeSocketHandle socket, Span<byte> buffer, ref int offset, ref int count, SocketFlags flags, ReadOnlySpan<byte> socketAddress, ref int bytesSent, out SocketError errorCode)
955public static bool TryCompleteSendTo(SafeSocketHandle socket, ReadOnlySpan<byte> buffer, SocketFlags flags, ReadOnlySpan<byte> socketAddress, ref int bytesSent, out SocketError errorCode)
961public static bool TryCompleteSendTo(SafeSocketHandle socket, IList<ArraySegment<byte>> buffers, ref int bufferIndex, ref int offset, SocketFlags flags, ReadOnlySpan<byte> socketAddress, ref int bytesSent, out SocketError errorCode)
964return TryCompleteSendTo(socket, default(ReadOnlySpan<byte>), buffers, ref bufferIndex, ref offset, ref count, flags, socketAddress, ref bytesSent, out errorCode);
967public static bool TryCompleteSendTo(SafeSocketHandle socket, ReadOnlySpan<byte> buffer, IList<ArraySegment<byte>>? buffers, ref int bufferIndex, ref int offset, ref int count, SocketFlags flags, ReadOnlySpan<byte> socketAddress, ref int bytesSent, out SocketError errorCode)
1120public static SocketError Bind(SafeSocketHandle handle, ProtocolType socketProtocolType, ReadOnlySpan<byte> buffer)
1190TryCompleteSendTo(handle, bufferList, ref bufferIndex, ref offset, socketFlags, ReadOnlySpan<byte>.Empty, ref bytesTransferred, out errorCode);
1203TryCompleteSendTo(handle, buffer, ref offset, ref count, socketFlags, ReadOnlySpan<byte>.Empty, ref bytesTransferred, out errorCode);
1207public static SocketError Send(SafeSocketHandle handle, ReadOnlySpan<byte> buffer, SocketFlags socketFlags, out int bytesTransferred)
1216TryCompleteSendTo(handle, buffer, socketFlags, ReadOnlySpan<byte>.Empty, ref bytesTransferred, out errorCode);
1249public static SocketError SendTo(SafeSocketHandle handle, ReadOnlySpan<byte> buffer, SocketFlags socketFlags, Memory<byte> socketAddress, out int bytesTransferred)
1511public static unsafe SocketError SetRawSockOpt(SafeSocketHandle handle, int optionLevel, int optionName, ReadOnlySpan<byte> optionValue)
System.Net.WebClient (13)
src\libraries\Common\src\System\HexConverter.cs (9)
185public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper)
202public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper)
219public static string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper)
249public ReadOnlySpan<byte> Bytes { get; set; }
281public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
293public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
461private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
496private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
603public static ReadOnlySpan<byte> CharToHexLookup =>
System.Net.WebHeaderCollection (3)
System.Net.WebSockets (9)
System\Net\WebSockets\ManagedWebSocket.cs (4)
634private int WriteFrameToSendBuffer(MessageOpcode opcode, bool endOfMessage, bool disableCompression, ReadOnlySpan<byte> payloadBuffer)
685private static int WriteHeader(MessageOpcode opcode, byte[] sendBuffer, ReadOnlySpan<byte> payload, bool endOfMessage, bool useMask, bool compressed)
1634private static int CombineMaskBytes(ReadOnlySpan<byte> buffer, int maskOffset) =>
1750private static bool TryValidateUtf8(ReadOnlySpan<byte> span, bool endOfMessage, Utf8MessageState state)
System.Net.WebSockets.Client (4)
System.Numerics.Tensors (1060)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.ITernaryOperator.cs (8)
43ReadOnlySpan<T> x, ReadOnlySpan<T> y, ReadOnlySpan<T> z, Span<T> destination)
1520ReadOnlySpan<T> x, ReadOnlySpan<T> y, T z, Span<T> destination)
2999ReadOnlySpan<T> x, T y, ReadOnlySpan<T> z, Span<T> destination)
3013ReadOnlySpan<T> x, T y, T z, Span<T> destination)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryInputBinaryOutput.cs (5)
48ReadOnlySpan<T> x, Span<T> destination1, Span<T> destination2)
175ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination1, Span<T> destination2)
364ReadOnlySpan<T> x, T y, Span<T> destination1, Span<T> destination2)
546T x, ReadOnlySpan<T> y, Span<T> destination1, Span<T> destination2)
System\Numerics\Tensors\netcore\ITensor_1.cs (25)
28static abstract TSelf CreateFromShape(scoped ReadOnlySpan<nint> lengths, bool pinned = false);
38static abstract TSelf CreateFromShape(scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned = false);
47static abstract TSelf CreateFromShapeUninitialized(scoped ReadOnlySpan<nint> lengths, bool pinned = false);
57static abstract TSelf CreateFromShapeUninitialized(scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned = false);
59/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.this[ReadOnlySpan{nint}]" />
60new ref T this[params scoped ReadOnlySpan<nint> indexes] { get; }
62/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.this[ReadOnlySpan{NIndex}]" />
63new ref T this[params scoped ReadOnlySpan<NIndex> indexes] { get; }
69new TSelf this[params scoped ReadOnlySpan<NRange> ranges] { get; set; }
78TensorSpan<T> AsTensorSpan(params scoped ReadOnlySpan<nint> startIndexes);
80/// <inheritdoc cref="AsTensorSpan(ReadOnlySpan{nint})" />
81TensorSpan<T> AsTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes);
86TensorSpan<T> AsTensorSpan(params scoped ReadOnlySpan<NRange> ranges);
97/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.GetSpan(ReadOnlySpan{nint}, int)" />
98new Span<T> GetSpan(scoped ReadOnlySpan<nint> startIndexes, int length);
100/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.GetSpan(ReadOnlySpan{NIndex}, int)" />
101new Span<T> GetSpan(scoped ReadOnlySpan<NIndex> startIndexes, int length);
103/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.TryGetSpan(ReadOnlySpan{nint}, int, out ReadOnlySpan{T})" />
104bool TryGetSpan(scoped ReadOnlySpan<nint> startIndexes, int length, out Span<T> span);
106/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.TryGetSpan(ReadOnlySpan{NIndex}, int, out ReadOnlySpan{T})" />
107bool TryGetSpan(scoped ReadOnlySpan<NIndex> startIndexes, int length, out Span<T> span);
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (55)
59public ReadOnlyTensorSpan(T[]? array, scoped ReadOnlySpan<nint> lengths)
76public ReadOnlyTensorSpan(T[]? array, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides)
100public ReadOnlyTensorSpan(T[]? array, int start, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides)
111public ReadOnlyTensorSpan(ReadOnlySpan<T> span)
126public ReadOnlyTensorSpan(ReadOnlySpan<T> span, scoped ReadOnlySpan<nint> lengths)
141public ReadOnlyTensorSpan(ReadOnlySpan<T> span, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides)
181public ReadOnlyTensorSpan(Array? array, scoped ReadOnlySpan<int> start, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides)
215public unsafe ReadOnlyTensorSpan(T* data, nint dataLength, scoped ReadOnlySpan<nint> lengths)
235public unsafe ReadOnlyTensorSpan(T* data, nint dataLength, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides)
241internal ReadOnlyTensorSpan(ref readonly T data, nint dataLength, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned)
253/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.this[ReadOnlySpan{nint}]" />
254public ref readonly T this[params scoped ReadOnlySpan<nint> indexes]
259/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.this[ReadOnlySpan{NIndex}]" />
260public ref readonly T this[params scoped ReadOnlySpan<NIndex> indexes]
265/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.this[ReadOnlySpan{NRange}]" />
266public ReadOnlyTensorSpan<T> this[params scoped ReadOnlySpan<NRange> ranges]
288public ReadOnlySpan<nint> Lengths => _shape.Lengths;
295public ReadOnlySpan<nint> Strides => _shape.Strides;
385/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.GetSpan(ReadOnlySpan{nint}, int)" />
386public ReadOnlySpan<T> GetSpan(scoped ReadOnlySpan<nint> startIndexes, int length)
388if (!TryGetSpan(startIndexes, length, out ReadOnlySpan<T> span))
395/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.GetSpan(ReadOnlySpan{NIndex}, int)" />
396public ReadOnlySpan<T> GetSpan(scoped ReadOnlySpan<NIndex> startIndexes, int length)
398if (!TryGetSpan(startIndexes, length, out ReadOnlySpan<T> span))
405/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.Slice(ReadOnlySpan{nint})" />
406public ReadOnlyTensorSpan<T> Slice(params scoped ReadOnlySpan<nint> startIndexes)
415/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.Slice(ReadOnlySpan{NIndex})" />
416public ReadOnlyTensorSpan<T> Slice(params scoped ReadOnlySpan<NIndex> startIndexes)
425/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.Slice(ReadOnlySpan{NRange})" />
426public ReadOnlyTensorSpan<T> Slice(params scoped ReadOnlySpan<NRange> ranges)
448public string ToString(params scoped ReadOnlySpan<nint> maximumLengths) => Tensor.ToString(this, maximumLengths, "System.Numerics.Tensors.ReadOnlyTensorSpan");
472/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.TryGetSpan(ReadOnlySpan{nint}, int, out ReadOnlySpan{T})" />
473public bool TryGetSpan(scoped ReadOnlySpan<nint> startIndexes, int length, out ReadOnlySpan<T> span)
488/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.TryGetSpan(ReadOnlySpan{NIndex}, int, out ReadOnlySpan{T})" />
489public bool TryGetSpan(scoped ReadOnlySpan<NIndex> startIndexes, int length, out ReadOnlySpan<T> span)
509object? IReadOnlyTensor.this[params scoped ReadOnlySpan<NIndex> indexes] => this[indexes];
511object? IReadOnlyTensor.this[params scoped ReadOnlySpan<nint> indexes] => this[indexes];
519ReadOnlyTensorSpan<T> IReadOnlyTensor<ReadOnlyTensorSpan<T>, T>.AsReadOnlyTensorSpan(params scoped ReadOnlySpan<nint> startIndexes) => Slice(startIndexes);
521ReadOnlyTensorSpan<T> IReadOnlyTensor<ReadOnlyTensorSpan<T>, T>.AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes) => Slice(startIndexes);
523ReadOnlyTensorSpan<T> IReadOnlyTensor<ReadOnlyTensorSpan<T>, T>.AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NRange> ranges) => Slice(ranges);
System\Numerics\Tensors\netcore\Tensor.cs (74)
21/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" />
22public static ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan<T>(this T[]? array, scoped ReadOnlySpan<nint> lengths)
25/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" />
26public static ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan<T>(this T[]? array, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides)
29/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" />
30public static ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan<T>(this T[]? array, int start, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides)
37/// <inheritdoc cref="TensorSpan{T}.TensorSpan(T[], ReadOnlySpan{nint})" />
38public static TensorSpan<T> AsTensorSpan<T>(this T[]? array, scoped ReadOnlySpan<nint> lengths)
41/// <inheritdoc cref="TensorSpan{T}.TensorSpan(T[], ReadOnlySpan{nint} , ReadOnlySpan{nint})" />
42public static TensorSpan<T> AsTensorSpan<T>(this T[]? array, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides)
45/// <inheritdoc cref="TensorSpan{T}.TensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" />
46public static TensorSpan<T> AsTensorSpan<T>(this T[]? array, int start, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides) => new TensorSpan<T>(array, start, lengths, strides);
65/// <param name="lengths"><see cref="ReadOnlySpan{T}"/> of the desired new shape.</param>
67public static Tensor<T> Broadcast<T>(scoped in ReadOnlyTensorSpan<T> source, scoped ReadOnlySpan<nint> lengths)
116public static Tensor<T> Concatenate<T>(params scoped ReadOnlySpan<Tensor<T>> tensors)
126public static Tensor<T> ConcatenateOnDimension<T>(int dimension, params scoped ReadOnlySpan<Tensor<T>> tensors)
187public static ref readonly TensorSpan<T> Concatenate<T>(scoped ReadOnlySpan<Tensor<T>> tensors, in TensorSpan<T> destination)
199public static ref readonly TensorSpan<T> ConcatenateOnDimension<T>(int dimension, scoped ReadOnlySpan<Tensor<T>> tensors, in TensorSpan<T> destination)
279private static nint CalculateCopyLength(ReadOnlySpan<nint> lengths, int startingAxis)
299/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" />
301public static Tensor<T> Create<T>(T[] array, scoped ReadOnlySpan<nint> lengths)
304/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" />
306public static Tensor<T> Create<T>(T[] array, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides)
309/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" />
311public static Tensor<T> Create<T>(T[] array, int start, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides)
316/// <inheritdoc cref="ITensor{TSelf, T}.CreateFromShape(ReadOnlySpan{nint}, bool)" />
318public static Tensor<T> CreateFromShape<T>(scoped ReadOnlySpan<nint> lengths, bool pinned = false)
321/// <inheritdoc cref="ITensor{TSelf, T}.CreateFromShape(ReadOnlySpan{nint}, ReadOnlySpan{nint}, bool)" />
323public static Tensor<T> CreateFromShape<T>(scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned = false)
326/// <inheritdoc cref="ITensor{TSelf, T}.CreateFromShapeUninitialized(ReadOnlySpan{nint}, bool)" />
327public static Tensor<T> CreateFromShapeUninitialized<T>(scoped ReadOnlySpan<nint> lengths, bool pinned = false)
330/// <inheritdoc cref="ITensor{TSelf, T}.CreateFromShapeUninitialized(ReadOnlySpan{nint}, ReadOnlySpan{nint}, bool)" />
331public static Tensor<T> CreateFromShapeUninitialized<T>(scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned = false)
1267/// <param name="dimensions"><see cref="ReadOnlySpan{T}"/> with the new axis ordering.</param>
1268public static Tensor<T> PermuteDimensions<T>(this Tensor<T> tensor, ReadOnlySpan<int> dimensions)
1321/// <param name="lengths"><see cref="ReadOnlySpan{T}"/> with the new dimensions.</param>
1322public static Tensor<T> Reshape<T>(this Tensor<T> tensor, ReadOnlySpan<nint> lengths)
1394/// <param name="lengths"><see cref="ReadOnlySpan{T}"/> with the new dimensions.</param>
1395public static TensorSpan<T> Reshape<T>(this scoped in TensorSpan<T> tensor, scoped ReadOnlySpan<nint> lengths)
1470/// <param name="lengths"><see cref="ReadOnlySpan{T}"/> with the new dimensions.</param>
1471public static ReadOnlyTensorSpan<T> Reshape<T>(this scoped in ReadOnlyTensorSpan<T> tensor, scoped ReadOnlySpan<nint> lengths)
1546/// <param name="lengths"><see cref="ReadOnlySpan{T}"/> of the desired new shape.</param>
1547public static Tensor<T> Resize<T>(Tensor<T> tensor, ReadOnlySpan<nint> lengths)
1552ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref Unsafe.Add(ref tensor.AsTensorSpan()._reference, tensor._start), tensor._values.Length - tensor._start);
1592ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref tensor._reference, (int)tensor._shape.LinearLength);
1713public static Tensor<T> SetSlice<T>(this Tensor<T> tensor, in ReadOnlyTensorSpan<T> values, params ReadOnlySpan<NRange> ranges)
1725public static ref readonly TensorSpan<T> SetSlice<T>(this in TensorSpan<T> tensor, scoped in ReadOnlyTensorSpan<T> values, params scoped ReadOnlySpan<NRange> ranges)
1991public static Tensor<T> Stack<T>(params ReadOnlySpan<Tensor<T>> tensors)
2001public static Tensor<T> StackAlongDimension<T>(int dimension, params ReadOnlySpan<Tensor<T>> tensors)
2030public static ref readonly TensorSpan<T> Stack<T>(scoped in ReadOnlySpan<Tensor<T>> tensors, in TensorSpan<T> destination)
2041public static ref readonly TensorSpan<T> StackAlongDimension<T>(scoped ReadOnlySpan<Tensor<T>> tensors, in TensorSpan<T> destination, int dimension)
2067internal static string ToString<T>(in ReadOnlyTensorSpan<T> tensor, ReadOnlySpan<nint> maximumLengths, string typeName)
2104private static void ToString<T>(in ReadOnlyTensorSpan<T> tensor, ReadOnlySpan<nint> maximumLengths, StringBuilder sb, int indentLevel = 0)
2185private static StringBuilder AppendJoin<T>(this StringBuilder sb, string separator, ReadOnlySpan<T> values)
3531ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape.LinearLength);
3543ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape.LinearLength);
3554ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape.LinearLength);
3567ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape.LinearLength);
System\Numerics\Tensors\netcore\Tensor_1.cs (66)
27internal Tensor(scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned)
41internal Tensor(T[]? array, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides)
48internal Tensor(T[]? array, int start, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides)
80/// <inheritdoc cref="TensorSpan{T}.this[ReadOnlySpan{nint}]" />
81public ref T this[params scoped ReadOnlySpan<nint> indexes]
86/// <inheritdoc cref="TensorSpan{T}.this[ReadOnlySpan{NIndex}]" />
87public ref T this[params scoped ReadOnlySpan<NIndex> indexes]
92/// <inheritdoc cref="TensorSpan{T}.this[ReadOnlySpan{NRange}]" />
93public Tensor<T> this[params ReadOnlySpan<NRange> ranges]
115public ReadOnlySpan<nint> Lengths => _shape.Lengths;
121public ReadOnlySpan<nint> Strides => _shape.Strides;
139/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.AsReadOnlyTensorSpan(ReadOnlySpan{nint})" />
140public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<nint> startIndexes) => AsReadOnlyTensorSpan().Slice(startIndexes);
142/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.AsReadOnlyTensorSpan(ReadOnlySpan{NIndex})" />
143public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes) => AsReadOnlyTensorSpan().Slice(startIndexes);
145/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.AsReadOnlyTensorSpan(ReadOnlySpan{NRange})" />
146public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NRange> ranges) => AsReadOnlyTensorSpan().Slice(ranges);
151/// <inheritdoc cref="ITensor{TSelf, T}.AsTensorSpan(ReadOnlySpan{nint})" />
152public TensorSpan<T> AsTensorSpan(params scoped ReadOnlySpan<nint> startIndexes) => AsTensorSpan().Slice(startIndexes);
154/// <inheritdoc cref="ITensor{TSelf, T}.AsTensorSpan(ReadOnlySpan{NIndex})" />
155public TensorSpan<T> AsTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes) => AsTensorSpan().Slice(startIndexes);
157/// <inheritdoc cref="ITensor{TSelf, T}.AsTensorSpan(ReadOnlySpan{NRange})" />
158public TensorSpan<T> AsTensorSpan(params scoped ReadOnlySpan<NRange> ranges) => AsTensorSpan().Slice(ranges);
200/// <inheritdoc cref="ITensor{TSelf, T}.GetSpan(ReadOnlySpan{nint}, int)" />
201public Span<T> GetSpan(scoped ReadOnlySpan<nint> startIndexes, int length) => AsTensorSpan().GetSpan(startIndexes, length);
203/// <inheritdoc cref="ITensor{TSelf, T}.GetSpan(ReadOnlySpan{NIndex}, int)" />
204public Span<T> GetSpan(scoped ReadOnlySpan<NIndex> startIndexes, int length) => AsTensorSpan().GetSpan(startIndexes, length);
214/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.Slice(ReadOnlySpan{nint})" />
215public Tensor<T> Slice(params ReadOnlySpan<nint> startIndexes)
229/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.Slice(ReadOnlySpan{NIndex})" />
230public Tensor<T> Slice(params ReadOnlySpan<NIndex> startIndexes)
244/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.Slice(ReadOnlySpan{NRange})" />
245public Tensor<T> Slice(params ReadOnlySpan<NRange> ranges)
279/// <inheritdoc cref="ITensor{TSelf, T}.TryGetSpan(ReadOnlySpan{nint}, int, out Span{T})" />
280public bool TryGetSpan(scoped ReadOnlySpan<nint> startIndexes, int length, out Span<T> span) => AsTensorSpan().TryGetSpan(startIndexes, length, out span);
282/// <inheritdoc cref="ITensor{TSelf, T}.TryGetSpan(ReadOnlySpan{NIndex}, int, out Span{T})" />
283public bool TryGetSpan(scoped ReadOnlySpan<NIndex> startIndexes, int length, out Span<T> span) => AsTensorSpan().TryGetSpan(startIndexes, length, out span);
285/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.TryGetSpan(ReadOnlySpan{nint}, int, out ReadOnlySpan{T})" />
286public bool TryGetSpan(scoped ReadOnlySpan<nint> startIndexes, int length, out ReadOnlySpan<T> span) => AsReadOnlyTensorSpan().TryGetSpan(startIndexes, length, out span);
288/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.TryGetSpan(ReadOnlySpan{NIndex}, int, out ReadOnlySpan{T})" />
289public bool TryGetSpan(scoped ReadOnlySpan<NIndex> startIndexes, int length, out ReadOnlySpan<T> span) => AsReadOnlyTensorSpan().TryGetSpan(startIndexes, length, out span);
294/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ToString(ReadOnlySpan{nint})" />
295public string ToString(params scoped ReadOnlySpan<nint> maximumLengths) => Tensor.ToString(AsReadOnlyTensorSpan(), maximumLengths, "System.Numerics.Tensors.Tensor");
313object? IReadOnlyTensor.this[params scoped ReadOnlySpan<NIndex> indexes] => this[indexes];
315object? IReadOnlyTensor.this[params scoped ReadOnlySpan<nint> indexes] => this[indexes];
321ref readonly T IReadOnlyTensor<Tensor<T>, T>.this[params ReadOnlySpan<nint> indexes] => ref this[indexes];
323ref readonly T IReadOnlyTensor<Tensor<T>, T>.this[params ReadOnlySpan<NIndex> indexes] => ref this[indexes];
329ReadOnlySpan<T> IReadOnlyTensor<Tensor<T>, T>.GetSpan(scoped ReadOnlySpan<nint> startIndexes, int length) => AsReadOnlyTensorSpan().GetSpan(startIndexes, length);
331ReadOnlySpan<T> IReadOnlyTensor<Tensor<T>, T>.GetSpan(scoped ReadOnlySpan<NIndex> startIndexes, int length) => AsReadOnlyTensorSpan().GetSpan(startIndexes, length);
339object? ITensor.this[params scoped ReadOnlySpan<NIndex> indexes]
349object? ITensor.this[params scoped ReadOnlySpan<nint> indexes]
365static Tensor<T> ITensor<Tensor<T>, T>.CreateFromShape(scoped ReadOnlySpan<nint> lengths, bool pinned) => Tensor.CreateFromShape<T>(lengths, pinned);
367static Tensor<T> ITensor<Tensor<T>, T>.CreateFromShape(scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned) => Tensor.CreateFromShape<T>(lengths, strides, pinned);
369static Tensor<T> ITensor<Tensor<T>, T>.CreateFromShapeUninitialized(scoped ReadOnlySpan<nint> lengths, bool pinned) => Tensor.CreateFromShapeUninitialized<T>(lengths, pinned);
371static Tensor<T> ITensor<Tensor<T>, T>.CreateFromShapeUninitialized(scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned) => Tensor.CreateFromShapeUninitialized<T>(lengths, strides, pinned);
System\Numerics\Tensors\netcore\TensorOperation.cs (190)
321public static void ValidateCompatibility<TArg>(in ReadOnlyTensorSpan<TArg> x, in ReadOnlySpan<nint> lengths)
400public static void Invoke(ReadOnlySpan<T> source, Span<T> destination)
421public static void Invoke(ReadOnlySpan<T> left, T right, Span<bool> destination)
429public static void Invoke(ReadOnlySpan<T> left, ReadOnlySpan<T> right, Span<bool> destination)
458public static void Invoke(ReadOnlySpan<T> left, T right, Span<bool> destination)
476public static void Invoke(ReadOnlySpan<T> left, ReadOnlySpan<T> right, Span<bool> destination)
505public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
520public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
535public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
550public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
566public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination)
576public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination)
591public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
606public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
621public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
636public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
652public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination)
665public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination)
681public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination)
694public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination)
709public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
724public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
740public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination)
750public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination)
766public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination)
776public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination)
791public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
806public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
822public static void Invoke(ReadOnlySpan<TFrom> x, Span<TTo> destination)
838public static void Invoke(ReadOnlySpan<TFrom> x, Span<TTo> destination)
854public static void Invoke(ReadOnlySpan<TFrom> x, Span<TTo> destination)
870public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination)
880public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination)
895public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
910public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
929public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<(T, T, T)> destination)
946public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
962public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
977public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
994public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination)
1004public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination)
1013public static void Invoke(T x, ReadOnlySpan<T> y, Span<T> destination)
1028public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination)
1043public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
1058public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
1073public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
1088public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
1103public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
1118public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
1133public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
1148public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination)
1165public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination)
1175public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination)
1184public static void Invoke(T x, ReadOnlySpan<T> y, Span<T> destination)
1199public static void Invoke(ReadOnlySpan<T> x, Span<int> destination)
1215public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
1230public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
1247public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
1257public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination)
1267public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination)
1282public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
1297public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
1312public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
1327public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
1342public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
1359public static void Invoke(ReadOnlySpan<T> x, ref T destination)
1369public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination)
1379public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination)
1396public static void Invoke(ReadOnlySpan<T> x, ref T destination)
1406public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination)
1416public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination)
1433public static void Invoke(ReadOnlySpan<T> x, ref T destination)
1443public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination)
1453public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination)
1470public static void Invoke(ReadOnlySpan<T> x, ref T destination)
1480public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination)
1490public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination)
1507public static void Invoke(ReadOnlySpan<T> x, ref T destination)
1517public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination)
1527public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination)
1544public static void Invoke(ReadOnlySpan<T> x, ref T destination)
1554public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination)
1564public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination)
1581public static void Invoke(ReadOnlySpan<T> x, ref T destination)
1591public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination)
1601public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination)
1618public static void Invoke(ReadOnlySpan<T> x, ref T destination)
1628public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination)
1638public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination)
1654public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination)
1664public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination)
1679public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
1694public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
1709public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
1726public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination)
1736public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination)
1746public static void Invoke(T x, ReadOnlySpan<T> y, Span<T> destination)
1761public static void Invoke(ReadOnlySpan<T> x, ref T destination)
1776public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
1791public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
1806public static void Invoke(ReadOnlySpan<T> x, int y, Span<T> destination)
1820public static void Invoke(ReadOnlySpan<T> x, int y, Span<T> destination)
1834public static void Invoke(ReadOnlySpan<T> x, int y, Span<T> destination)
1850public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
1860public static void Invoke(ReadOnlySpan<T> x, Tuple<int, MidpointRounding> y, Span<T> destination)
1875public static void Invoke(ReadOnlySpan<T> x, int shiftAmount, Span<T> destination)
1890public static void Invoke(ReadOnlySpan<T> x, int shiftAmount, Span<T> destination)
1905public static void Invoke(ReadOnlySpan<T> x, int shiftAmount, Span<T> destination)
1920public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
1935public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
1950public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
1965public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
1981public static void Invoke(ReadOnlySpan<T> x, ref T destination)
1999public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination)
2017public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
2034public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination)
2044public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination)
2054public static void Invoke(T x, ReadOnlySpan<T> y, Span<T> destination)
2069public static void Invoke(ReadOnlySpan<T> x, ref T destination)
2084public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination)
2097public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination)
2114public static void Invoke(ReadOnlySpan<T> x, ref T destination)
2129public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
2144public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
2159public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
2174public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
2189public static void Invoke(ReadOnlySpan<T> x, Span<T> destination)
2205public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination)
2215public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination)
2248public static void Invoke(ReadOnlySpan<bool> x, ReadOnlySpan<T> y, Span<T> destination)
2267public static void Invoke(ReadOnlySpan<bool> x, T y, Span<T> destination)
2294public static void Invoke(ReadOnlySpan<T> left, T right, Span<bool> destination)
2302public static void Invoke(ReadOnlySpan<T> left, ReadOnlySpan<T> right, Span<bool> destination)
2331public static void Invoke(ReadOnlySpan<T> left, T right, Span<bool> destination)
2349public static void Invoke(ReadOnlySpan<T> left, ReadOnlySpan<T> right, Span<bool> destination)
2383public static void Invoke(ReadOnlySpan<T> left, T right, Span<bool> destination)
2391public static void Invoke(ReadOnlySpan<T> left, ReadOnlySpan<T> right, Span<bool> destination)
2420public static void Invoke(ReadOnlySpan<T> left, T right, Span<bool> destination)
2438public static void Invoke(ReadOnlySpan<T> left, ReadOnlySpan<T> right, Span<bool> destination)
2472public static void Invoke(ReadOnlySpan<T> left, T right, Span<bool> destination)
2480public static void Invoke(ReadOnlySpan<T> left, ReadOnlySpan<T> right, Span<bool> destination)
2509public static void Invoke(ReadOnlySpan<T> left, T right, Span<bool> destination)
2527public static void Invoke(ReadOnlySpan<T> left, ReadOnlySpan<T> right, Span<bool> destination)
2561public static void Invoke(ReadOnlySpan<T> left, T right, Span<bool> destination)
2569public static void Invoke(ReadOnlySpan<T> left, ReadOnlySpan<T> right, Span<bool> destination)
2598public static void Invoke(ReadOnlySpan<T> left, T right, Span<bool> destination)
2616public static void Invoke(ReadOnlySpan<T> left, ReadOnlySpan<T> right, Span<bool> destination)
2648static abstract void Invoke(ReadOnlySpan<T1> x, T2 y, Span<TResult> destination);
2654static abstract void Invoke(T1 x, ReadOnlySpan<T2> y, Span<TResult> destination);
2660static abstract void Invoke(ReadOnlySpan<T1> x, ReadOnlySpan<T2> y, Span<TResult> destination);
2683static abstract void Invoke(ReadOnlySpan<T> x, Span<TResult> destination);
2689static abstract void Invoke(ReadOnlySpan<T> x, ref TResult destination);
2694public static Span<T> Create<T>(int rank, ReadOnlySpan<nint> strides, out nint linearOffset, [UnscopedRef] out RentedBuffer<T> rentedBuffer)
System\Numerics\Tensors\netcore\TensorPrimitives.Clamp.cs (12)
30public static void Clamp<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> min, ReadOnlySpan<T> max, Span<T> destination)
59public static void Clamp<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> min, T max, Span<T> destination)
88public static void Clamp<T>(ReadOnlySpan<T> x, T min, ReadOnlySpan<T> max, Span<T> destination)
117public static void Clamp<T>(T x, ReadOnlySpan<T> min, ReadOnlySpan<T> max, Span<T> destination)
144public static void Clamp<T>(ReadOnlySpan<T> x, T min, T max, Span<T> destination)
176public static void Clamp<T>(T x, ReadOnlySpan<T> min, T max, Span<T> destination)
203public static void Clamp<T>(T x, T min, ReadOnlySpan<T> max, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Half.cs (24)
27public static void ConvertToHalf(ReadOnlySpan<float> source, Span<Half> destination) =>
45public static void ConvertToSingle(ReadOnlySpan<Half> source, Span<float> destination) =>
49private static bool TryUnaryInvokeHalfAsInt16<T, TOp>(ReadOnlySpan<T> x, Span<T> destination)
66private static bool TryUnaryBitwiseInvokeHalfAsInt16<T, TOp>(ReadOnlySpan<T> x, Span<T> destination)
83private static bool TryBinaryInvokeHalfAsInt16<T, TOp>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination)
101private static bool TryBinaryInvokeHalfAsInt16<T, TOp>(ReadOnlySpan<T> x, T y, Span<T> destination)
119private static bool TryBinaryInvokeHalfAsInt16<T, TOp>(T x, ReadOnlySpan<T> y, Span<T> destination)
137private static bool TryBinaryBitwiseInvokeHalfAsInt16<T, TOp>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination)
155private static bool TryBinaryBitwiseInvokeHalfAsInt16<T, TOp>(ReadOnlySpan<T> x, T y, Span<T> destination)
173private static bool TryAggregateInvokeHalfAsInt16<T, TOp>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination)
191private static bool TryAggregateInvokeHalfAsInt16<T, TOp>(ReadOnlySpan<T> x, T y, Span<T> destination)
209private static bool TryMinMaxHalfAsInt16<T, TOp>(ReadOnlySpan<T> x, out T result)
225private static bool TryTernaryInvokeHalfAsInt16<T, TOp>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, ReadOnlySpan<T> z, Span<T> destination)
244private static bool TryTernaryInvokeHalfAsInt16<T, TOp>(ReadOnlySpan<T> x, T y, ReadOnlySpan<T> z, Span<T> destination)
263private static bool TryTernaryInvokeHalfAsInt16<T, TOp>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, T z, Span<T> destination)
282private static bool TryTernaryInvokeHalfAsInt16<T, TOp>(ReadOnlySpan<T> x, T y, T z, Span<T> destination)
305private static bool IsVectorizable(ReadOnlySpan<Half> source) =>
System\Numerics\Tensors\netcore\TensorPrimitives.MultiplyAddEstimate.cs (21)
31/// Behaves the same as either <see cref="MultiplyAdd{T}(ReadOnlySpan{T}, ReadOnlySpan{T}, ReadOnlySpan{T}, Span{T})"/> or
32/// <see cref="FusedMultiplyAdd{T}(ReadOnlySpan{T}, ReadOnlySpan{T}, ReadOnlySpan{T}, Span{T})"/> depending on the current machine's capabilities.
35public static void MultiplyAddEstimate<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, ReadOnlySpan<T> addend, Span<T> destination)
64/// Behaves the same as either <see cref="MultiplyAdd{T}(ReadOnlySpan{T}, ReadOnlySpan{T}, T, Span{T})"/> or
65/// <see cref="FusedMultiplyAdd{T}(ReadOnlySpan{T}, ReadOnlySpan{T}, T, Span{T})"/> depending on the current machine's capabilities.
68public static void MultiplyAddEstimate<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, T addend, Span<T> destination)
96/// Behaves the same as either <see cref="MultiplyAdd{T}(ReadOnlySpan{T}, T, ReadOnlySpan{T}, Span{T})"/> or
97/// <see cref="FusedMultiplyAdd{T}(ReadOnlySpan{T}, T, ReadOnlySpan{T}, Span{T})"/> depending on the current machine's capabilities.
100public static void MultiplyAddEstimate<T>(ReadOnlySpan<T> x, T y, ReadOnlySpan<T> addend, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Round.cs (7)
22public static void Round<T>(ReadOnlySpan<T> x, Span<T> destination)
44public static void Round<T>(ReadOnlySpan<T> x, MidpointRounding mode, Span<T> destination)
90public static void Round<T>(ReadOnlySpan<T> x, int digits, Span<T> destination) where T : IFloatingPoint<T> =>
107public static void Round<T>(ReadOnlySpan<T> x, int digits, MidpointRounding mode, Span<T> destination)
115ReadOnlySpan<T> roundPower10;
118ReadOnlySpan<float> roundPower10Single = [1e0f, 1e1f, 1e2f, 1e3f, 1e4f, 1e5f, 1e6f];
124ReadOnlySpan<double> roundPower10Double = [1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13, 1e14, 1e15];
System\Numerics\Tensors\netcore\TensorPrimitives.Single.netcore.cs (16)
41ReadOnlySpan<float> x, Span<float> destination)
46ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<float> destination)
51ReadOnlySpan<float> x, float y, Span<float> destination)
56ReadOnlySpan<float> x, float y, Span<float> destination)
62ReadOnlySpan<float> x, ReadOnlySpan<float> y, ReadOnlySpan<float> z, Span<float> destination)
67ReadOnlySpan<float> x, ReadOnlySpan<float> y, float z, Span<float> destination)
72ReadOnlySpan<float> x, float y, ReadOnlySpan<float> z, Span<float> destination)
77ReadOnlySpan<float> x)
83ReadOnlySpan<float> x, ReadOnlySpan<float> y)
88private static float MinMaxCore<TSingleMinMaxOperator>(ReadOnlySpan<float> x)
System\Numerics\Tensors\netcore\TensorShape.cs (54)
68private TensorShape(nint linearLength, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, TensorFlags flags)
279private TensorShape(nint flattenedLength, nint linearLength, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, TensorFlags flags)
329public ReadOnlySpan<nint> Lengths
335return ((ReadOnlySpan<nint>)_inlineLengths)[.._rank];
348public ReadOnlySpan<nint> Strides
354return ((ReadOnlySpan<nint>)_inlineStrides)[.._rank];
383ReadOnlySpan<nint> leftLengths = left.Lengths;
384ReadOnlySpan<nint> leftStrides = left.Strides;
386ReadOnlySpan<nint> rightLengths = right.Lengths;
387ReadOnlySpan<nint> rightStrides = right.Strides;
412ReadOnlySpan<nint> lengths = Lengths;
413ReadOnlySpan<nint> strides = Strides;
415ReadOnlySpan<nint> destinationLengths = destinationShape.Lengths;
477ReadOnlySpan<nint> lengths = Lengths;
478ReadOnlySpan<nint> strides = Strides;
480ReadOnlySpan<nint> destinationLengths = destinationShape.Lengths;
537public static bool AdjustToNextIndex(Span<NRange> ranges, int dimension, ReadOnlySpan<nint> lengths)
593ReadOnlySpan<nint> lengths1 = shape1.Lengths[rankDelta..];
594ReadOnlySpan<nint> lengths2 = shape2.Lengths;
623ReadOnlySpan<nint> strides1 = shape1.Strides[rankDelta..];
624ReadOnlySpan<nint> strides2 = shape2.Strides;
641public static bool AreCompatible(in ReadOnlySpan<nint> shape1Lengths, in TensorShape shape2)
664ReadOnlySpan<nint> lengths1 = shape1Lengths[rankDelta..];
665ReadOnlySpan<nint> lengths2 = shape2.Lengths;
692public static bool AreLengthsTheSame(ReadOnlySpan<nint> lengths1, ReadOnlySpan<nint> lengths2)
740public static TensorShape Create(Array? array, scoped ReadOnlySpan<int> start, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, out nint linearOffset)
845public static TensorShape Create(scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned)
867public static TensorShape Create<T>(T[]? array, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides)
881public static TensorShape Create<T>(T[]? array, int start, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides)
929public static TensorShape Create<T>(ref readonly T reference, nint linearLength, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned)
951public static unsafe TensorShape Create<T>(T* address, nint linearLength, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides = default)
981public nint GetLinearOffset<TGetOffsetAndLength, T>(ReadOnlySpan<T> state)
984ReadOnlySpan<nint> lengths = Lengths;
985ReadOnlySpan<nint> strides = Strides;
1006ReadOnlySpan<nint> lengths = Lengths;
1007ReadOnlySpan<nint> strides = Strides;
1029public nint GetLongestContiguousLength<TGetOffsetAndLength, T>(ReadOnlySpan<T> state, out nint linearOffset)
1034ReadOnlySpan<nint> lengths = Lengths;
1035ReadOnlySpan<nint> strides = Strides;
1089public TensorShape Slice<TGetOffsetAndLength, T>(ReadOnlySpan<T> state, out nint linearOffset)
1119ReadOnlySpan<nint> previousLengths = Lengths;
1120ReadOnlySpan<nint> previousStrides = Strides;
1222private static bool CalculateHasAnyDenseDimensions(ReadOnlySpan<nint> lengths, ReadOnlySpan<nint> strides)
System\Numerics\Tensors\netcore\TensorSpan_1.cs (90)
47/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" />
49public TensorSpan(T[]? array, scoped ReadOnlySpan<nint> lengths)
52/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" />
54public TensorSpan(T[]? array, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides)
64/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" />
66public TensorSpan(T[]? array, int start, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides)
76/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(ReadOnlySpan{T})" />
84/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(ReadOnlySpan{T}, ReadOnlySpan{nint})" />
85public TensorSpan(Span<T> span, scoped ReadOnlySpan<nint> lengths)
88/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(ReadOnlySpan{T}, ReadOnlySpan{nint}, ReadOnlySpan{nint})" />
89public TensorSpan(Span<T> span, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides)
108/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(Array, ReadOnlySpan{int}, ReadOnlySpan{nint}, ReadOnlySpan{nint})" />
110public TensorSpan(Array? array, scoped ReadOnlySpan<int> start, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides)
128/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T*, nint, ReadOnlySpan{nint})" />
130public unsafe TensorSpan(T* data, nint dataLength, scoped ReadOnlySpan<nint> lengths)
133/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T*, nint, ReadOnlySpan{nint}, ReadOnlySpan{nint})" />
135public unsafe TensorSpan(T* data, nint dataLength, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides)
141internal TensorSpan(ref T data, nint dataLength, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned)
153/// <inheritdoc cref="ITensor{TSelf, T}.this[ReadOnlySpan{nint}]" />
154public ref T this[params scoped ReadOnlySpan<nint> indexes]
159/// <inheritdoc cref="ITensor{TSelf, T}.this[ReadOnlySpan{NIndex}]" />
160public ref T this[params scoped ReadOnlySpan<NIndex> indexes]
165/// <inheritdoc cref="ITensor{TSelf, T}.this[ReadOnlySpan{NRange}]" />
166public TensorSpan<T> this[params scoped ReadOnlySpan<NRange> ranges]
189public ReadOnlySpan<nint> Lengths => _shape.Lengths;
196public ReadOnlySpan<nint> Strides => _shape.Strides;
220/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.AsReadOnlyTensorSpan(ReadOnlySpan{nint})" />
221public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<nint> startIndexes) => AsReadOnlyTensorSpan().Slice(startIndexes);
223/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.AsReadOnlyTensorSpan(ReadOnlySpan{NIndex})" />
224public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes) => AsReadOnlyTensorSpan().Slice(startIndexes);
226/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.AsReadOnlyTensorSpan(ReadOnlySpan{NRange})" />
227public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NRange> ranges) => AsReadOnlyTensorSpan().Slice(ranges);
281/// <inheritdoc cref="ITensor{TSelf, T}.GetSpan(ReadOnlySpan{nint}, int)" />
282public Span<T> GetSpan(scoped ReadOnlySpan<nint> startIndexes, int length)
291/// <inheritdoc cref="ITensor{TSelf, T}.GetSpan(ReadOnlySpan{NIndex}, int)" />
292public Span<T> GetSpan(scoped ReadOnlySpan<NIndex> startIndexes, int length)
301/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.Slice(ReadOnlySpan{nint})" />
302public TensorSpan<T> Slice(params scoped ReadOnlySpan<nint> startIndexes)
311/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.Slice(ReadOnlySpan{NIndex})" />
312public TensorSpan<T> Slice(params scoped ReadOnlySpan<NIndex> startIndexes)
321/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.Slice(ReadOnlySpan{NRange})" />
322public TensorSpan<T> Slice(params scoped ReadOnlySpan<NRange> ranges)
334/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ToString(ReadOnlySpan{nint})" />
335public string ToString(params scoped ReadOnlySpan<nint> maximumLengths) => Tensor.ToString(AsReadOnlyTensorSpan(), maximumLengths, "System.Numerics.Tensors.TensorSpan");
343/// <inheritdoc cref="ITensor{TSelf, T}.TryGetSpan(ReadOnlySpan{nint}, int, out Span{T})" />
344public bool TryGetSpan(scoped ReadOnlySpan<nint> startIndexes, int length, out Span<T> span)
359/// <inheritdoc cref="ITensor{TSelf, T}.TryGetSpan(ReadOnlySpan{NIndex}, int, out Span{T})" />
360public bool TryGetSpan(scoped ReadOnlySpan<NIndex> startIndexes, int length, out Span<T> span)
375/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.TryGetSpan(ReadOnlySpan{nint}, int, out ReadOnlySpan{T})" />
376public bool TryGetSpan(scoped ReadOnlySpan<nint> startIndexes, int length, out ReadOnlySpan<T> span) => AsReadOnlyTensorSpan().TryGetSpan(startIndexes, length, out span);
378/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.TryGetSpan(ReadOnlySpan{NIndex}, int, out ReadOnlySpan{T})" />
379public bool TryGetSpan(scoped ReadOnlySpan<NIndex> startIndexes, int length, out ReadOnlySpan<T> span) => AsReadOnlyTensorSpan().TryGetSpan(startIndexes, length, out span);
386object? IReadOnlyTensor.this[params scoped ReadOnlySpan<NIndex> indexes] => this[indexes];
388object? IReadOnlyTensor.this[params scoped ReadOnlySpan<nint> indexes] => this[indexes];
394ref readonly T IReadOnlyTensor<TensorSpan<T>, T>.this[params scoped ReadOnlySpan<NIndex> indexes] => ref this[indexes];
396ref readonly T IReadOnlyTensor<TensorSpan<T>, T>.this[params scoped ReadOnlySpan<nint> indexes] => ref this[indexes];
402ReadOnlySpan<T> IReadOnlyTensor<TensorSpan<T>, T>.GetSpan(scoped ReadOnlySpan<nint> startIndexes, int length) => AsReadOnlyTensorSpan().GetSpan(startIndexes, length);
404ReadOnlySpan<T> IReadOnlyTensor<TensorSpan<T>, T>.GetSpan(scoped ReadOnlySpan<NIndex> startIndexes, int length) => AsReadOnlyTensorSpan().GetSpan(startIndexes, length);
425object? ITensor.this[params scoped ReadOnlySpan<NIndex> indexes]
435object? ITensor.this[params scoped ReadOnlySpan<nint> indexes]
451static TensorSpan<T> ITensor<TensorSpan<T>, T>.CreateFromShape(scoped ReadOnlySpan<nint> lengths, bool pinned) => Tensor.CreateFromShape<T>(lengths, pinned);
453static TensorSpan<T> ITensor<TensorSpan<T>, T>.CreateFromShape(scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned) => Tensor.CreateFromShape<T>(lengths, strides, pinned);
455static TensorSpan<T> ITensor<TensorSpan<T>, T>.CreateFromShapeUninitialized(scoped ReadOnlySpan<nint> lengths, bool pinned) => Tensor.CreateFromShapeUninitialized<T>(lengths, pinned);
457static TensorSpan<T> ITensor<TensorSpan<T>, T>.CreateFromShapeUninitialized(scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned) => Tensor.CreateFromShapeUninitialized<T>(lengths, strides, pinned);
461TensorSpan<T> ITensor<TensorSpan<T>, T>.AsTensorSpan(params scoped ReadOnlySpan<nint> startIndexes) => Slice(startIndexes);
463TensorSpan<T> ITensor<TensorSpan<T>, T>.AsTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes) => Slice(startIndexes);
465TensorSpan<T> ITensor<TensorSpan<T>, T>.AsTensorSpan(params scoped ReadOnlySpan<NRange> ranges) => Slice(ranges);
System\Numerics\Tensors\TensorPrimitives.Single.cs (67)
26public static void Abs(ReadOnlySpan<float> x, Span<float> destination) =>
45public static void Add(ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<float> destination) =>
62public static void Add(ReadOnlySpan<float> x, float y, Span<float> destination) =>
83public static void AddMultiply(ReadOnlySpan<float> x, ReadOnlySpan<float> y, ReadOnlySpan<float> multiplier, Span<float> destination) =>
103public static void AddMultiply(ReadOnlySpan<float> x, ReadOnlySpan<float> y, float multiplier, Span<float> destination) =>
123public static void AddMultiply(ReadOnlySpan<float> x, float y, ReadOnlySpan<float> multiplier, Span<float> destination) =>
147public static void Cosh(ReadOnlySpan<float> x, Span<float> destination) =>
169public static float CosineSimilarity(ReadOnlySpan<float> x, ReadOnlySpan<float> y) =>
196public static float Distance(ReadOnlySpan<float> x, ReadOnlySpan<float> y)
222public static void Divide(ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<float> destination) =>
239public static void Divide(ReadOnlySpan<float> x, float y, Span<float> destination) =>
265public static float Dot(ReadOnlySpan<float> x, ReadOnlySpan<float> y) =>
286public static void Exp(ReadOnlySpan<float> x, Span<float> destination) =>
302public static int IndexOfMax(ReadOnlySpan<float> x) =>
319public static int IndexOfMaxMagnitude(ReadOnlySpan<float> x) =>
335public static int IndexOfMin(ReadOnlySpan<float> x) =>
352public static int IndexOfMinMagnitude(ReadOnlySpan<float> x) =>
375public static void Log(ReadOnlySpan<float> x, Span<float> destination) =>
398public static void Log2(ReadOnlySpan<float> x, Span<float> destination) =>
415public static float Max(ReadOnlySpan<float> x) =>
439public static void Max(ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<float> destination) =>
457public static float MaxMagnitude(ReadOnlySpan<float> x) =>
475public static void MaxMagnitude(ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<float> destination) =>
492public static float Min(ReadOnlySpan<float> x) =>
516public static void Min(ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<float> destination) =>
534public static float MinMagnitude(ReadOnlySpan<float> x) =>
557public static void MinMagnitude(ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<float> destination) =>
576public static void Multiply(ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<float> destination) =>
594public static void Multiply(ReadOnlySpan<float> x, float y, Span<float> destination) =>
615public static void MultiplyAdd(ReadOnlySpan<float> x, ReadOnlySpan<float> y, ReadOnlySpan<float> addend, Span<float> destination) =>
636public static void MultiplyAdd(ReadOnlySpan<float> x, ReadOnlySpan<float> y, float addend, Span<float> destination) =>
656public static void MultiplyAdd(ReadOnlySpan<float> x, float y, ReadOnlySpan<float> addend, Span<float> destination) =>
672public static void Negate(ReadOnlySpan<float> x, Span<float> destination) =>
692public static float Norm(ReadOnlySpan<float> x) =>
708public static float Product(ReadOnlySpan<float> x)
739public static float ProductOfDifferences(ReadOnlySpan<float> x, ReadOnlySpan<float> y)
770public static float ProductOfSums(ReadOnlySpan<float> x, ReadOnlySpan<float> y)
795public static void Sigmoid(ReadOnlySpan<float> x, Span<float> destination)
826public static void Sinh(ReadOnlySpan<float> x, Span<float> destination) =>
845public static void SoftMax(ReadOnlySpan<float> x, Span<float> destination)
880public static void Subtract(ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<float> destination) =>
897public static void Subtract(ReadOnlySpan<float> x, float y, Span<float> destination) =>
912public static float Sum(ReadOnlySpan<float> x) =>
933public static float SumOfMagnitudes(ReadOnlySpan<float> x) =>
954public static float SumOfSquares(ReadOnlySpan<float> x) =>
979public static void Tanh(ReadOnlySpan<float> x, Span<float> destination) =>
System.Private.CoreLib (3061)
src\libraries\Common\src\System\HexConverter.cs (17)
118private static void EncodeTo_Vector128<TChar>(ReadOnlySpan<byte> source, Span<TChar> destination, Casing casing)
185public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper)
202public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper)
219public static string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper)
249public ReadOnlySpan<byte> Bytes { get; set; }
281public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
293public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
299return TryDecodeFrom_Vector128(Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<ushort>>(source), destination, out charsProcessed);
309public static bool TryDecodeFrom_Vector128<TChar>(ReadOnlySpan<TChar> source, Span<byte> destination, out int elementsProcessed)
448fallbackResult = TryDecodeFromUtf8_Scalar(Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(source.Slice((int)offset)), destination.Slice((int)(offset / 2)), out elementsProcessed);
453fallbackResult = TryDecodeFromUtf16_Scalar(Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<char>>(source.Slice((int)offset)), destination.Slice((int)(offset / 2)), out elementsProcessed);
461private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
496private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
603public static ReadOnlySpan<byte> CharToHexLookup =>
src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.ReadBigEndian.cs (26)
21public static double ReadDoubleBigEndian(ReadOnlySpan<byte> source)
38public static Half ReadHalfBigEndian(ReadOnlySpan<byte> source)
55public static short ReadInt16BigEndian(ReadOnlySpan<byte> source)
72public static int ReadInt32BigEndian(ReadOnlySpan<byte> source)
89public static long ReadInt64BigEndian(ReadOnlySpan<byte> source)
106public static Int128 ReadInt128BigEndian(ReadOnlySpan<byte> source)
123public static nint ReadIntPtrBigEndian(ReadOnlySpan<byte> source)
140public static float ReadSingleBigEndian(ReadOnlySpan<byte> source)
158public static ushort ReadUInt16BigEndian(ReadOnlySpan<byte> source)
176public static uint ReadUInt32BigEndian(ReadOnlySpan<byte> source)
194public static ulong ReadUInt64BigEndian(ReadOnlySpan<byte> source)
212public static UInt128 ReadUInt128BigEndian(ReadOnlySpan<byte> source)
230public static nuint ReadUIntPtrBigEndian(ReadOnlySpan<byte> source)
247public static bool TryReadDoubleBigEndian(ReadOnlySpan<byte> source, out double value)
269public static bool TryReadHalfBigEndian(ReadOnlySpan<byte> source, out Half value)
291public static bool TryReadInt16BigEndian(ReadOnlySpan<byte> source, out short value)
313public static bool TryReadInt32BigEndian(ReadOnlySpan<byte> source, out int value)
335public static bool TryReadInt64BigEndian(ReadOnlySpan<byte> source, out long value)
357public static bool TryReadInt128BigEndian(ReadOnlySpan<byte> source, out Int128 value)
379public static bool TryReadIntPtrBigEndian(ReadOnlySpan<byte> source, out nint value)
400public static bool TryReadSingleBigEndian(ReadOnlySpan<byte> source, out float value)
423public static bool TryReadUInt16BigEndian(ReadOnlySpan<byte> source, out ushort value)
446public static bool TryReadUInt32BigEndian(ReadOnlySpan<byte> source, out uint value)
469public static bool TryReadUInt64BigEndian(ReadOnlySpan<byte> source, out ulong value)
492public static bool TryReadUInt128BigEndian(ReadOnlySpan<byte> source, out UInt128 value)
516public static bool TryReadUIntPtrBigEndian(ReadOnlySpan<byte> source, out nuint value)
src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.ReadLittleEndian.cs (26)
21public static double ReadDoubleLittleEndian(ReadOnlySpan<byte> source)
38public static Half ReadHalfLittleEndian(ReadOnlySpan<byte> source)
55public static short ReadInt16LittleEndian(ReadOnlySpan<byte> source)
72public static int ReadInt32LittleEndian(ReadOnlySpan<byte> source)
89public static long ReadInt64LittleEndian(ReadOnlySpan<byte> source)
106public static Int128 ReadInt128LittleEndian(ReadOnlySpan<byte> source)
123public static nint ReadIntPtrLittleEndian(ReadOnlySpan<byte> source)
140public static float ReadSingleLittleEndian(ReadOnlySpan<byte> source)
158public static ushort ReadUInt16LittleEndian(ReadOnlySpan<byte> source)
176public static uint ReadUInt32LittleEndian(ReadOnlySpan<byte> source)
194public static ulong ReadUInt64LittleEndian(ReadOnlySpan<byte> source)
212public static UInt128 ReadUInt128LittleEndian(ReadOnlySpan<byte> source)
230public static nuint ReadUIntPtrLittleEndian(ReadOnlySpan<byte> source)
247public static bool TryReadDoubleLittleEndian(ReadOnlySpan<byte> source, out double value)
269public static bool TryReadHalfLittleEndian(ReadOnlySpan<byte> source, out Half value)
291public static bool TryReadInt16LittleEndian(ReadOnlySpan<byte> source, out short value)
313public static bool TryReadInt32LittleEndian(ReadOnlySpan<byte> source, out int value)
335public static bool TryReadInt64LittleEndian(ReadOnlySpan<byte> source, out long value)
357public static bool TryReadInt128LittleEndian(ReadOnlySpan<byte> source, out Int128 value)
379public static bool TryReadIntPtrLittleEndian(ReadOnlySpan<byte> source, out nint value)
400public static bool TryReadSingleLittleEndian(ReadOnlySpan<byte> source, out float value)
423public static bool TryReadUInt16LittleEndian(ReadOnlySpan<byte> source, out ushort value)
446public static bool TryReadUInt32LittleEndian(ReadOnlySpan<byte> source, out uint value)
469public static bool TryReadUInt64LittleEndian(ReadOnlySpan<byte> source, out ulong value)
492public static bool TryReadUInt128LittleEndian(ReadOnlySpan<byte> source, out UInt128 value)
515public static bool TryReadUIntPtrLittleEndian(ReadOnlySpan<byte> source, out nuint value)
src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.ReverseEndianness.cs (20)
201public static void ReverseEndianness(ReadOnlySpan<ushort> source, Span<ushort> destination) =>
204/// <inheritdoc cref="ReverseEndianness(ReadOnlySpan{ushort}, Span{ushort})" />
205public static void ReverseEndianness(ReadOnlySpan<short> source, Span<short> destination) =>
208/// <inheritdoc cref="ReverseEndianness(ReadOnlySpan{ushort}, Span{ushort})" />
210public static void ReverseEndianness(ReadOnlySpan<uint> source, Span<uint> destination) =>
213/// <inheritdoc cref="ReverseEndianness(ReadOnlySpan{ushort}, Span{ushort})" />
214public static void ReverseEndianness(ReadOnlySpan<int> source, Span<int> destination) =>
217/// <inheritdoc cref="ReverseEndianness(ReadOnlySpan{ushort}, Span{ushort})" />
219public static void ReverseEndianness(ReadOnlySpan<ulong> source, Span<ulong> destination) =>
222/// <inheritdoc cref="ReverseEndianness(ReadOnlySpan{ushort}, Span{ushort})" />
223public static void ReverseEndianness(ReadOnlySpan<long> source, Span<long> destination) =>
226/// <inheritdoc cref="ReverseEndianness(ReadOnlySpan{ushort}, Span{ushort})" />
228public static void ReverseEndianness(ReadOnlySpan<nuint> source, Span<nuint> destination) =>
235/// <inheritdoc cref="ReverseEndianness(ReadOnlySpan{ushort}, Span{ushort})" />
236public static void ReverseEndianness(ReadOnlySpan<nint> source, Span<nint> destination) =>
285private static void ReverseEndianness<T, TReverser>(ReadOnlySpan<T> source, Span<T> destination)
373/// <inheritdoc cref="ReverseEndianness(ReadOnlySpan{ushort}, Span{ushort})" />
375public static void ReverseEndianness(ReadOnlySpan<UInt128> source, Span<UInt128> destination) =>
378/// <inheritdoc cref="ReverseEndianness(ReadOnlySpan{ushort}, Span{ushort})" />
379public static void ReverseEndianness(ReadOnlySpan<Int128> source, Span<Int128> destination)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64DecoderHelper.cs (15)
17internal static unsafe OperationStatus DecodeFrom<TBase64Decoder, T>(TBase64Decoder decoder, ReadOnlySpan<T> source, Span<byte> bytes,
266static OperationStatus InvalidDataFallback(TBase64Decoder decoder, ReadOnlySpan<T> source, Span<byte> bytes, ref int bytesConsumed, ref int bytesWritten, bool isFinalBlock)
449internal static OperationStatus DecodeWithWhiteSpaceBlockwise<TBase64Decoder>(TBase64Decoder decoder, ReadOnlySpan<byte> source, Span<byte> bytes, ref int bytesConsumed, ref int bytesWritten, bool isFinalBlock = true)
1184public ReadOnlySpan<sbyte> DecodingMap =>
1204public ReadOnlySpan<uint> VbmiLookup0 =>
1212public ReadOnlySpan<uint> VbmiLookup1 =>
1220public ReadOnlySpan<sbyte> Avx2LutHigh =>
1232public ReadOnlySpan<sbyte> Avx2LutLow =>
1244public ReadOnlySpan<sbyte> Avx2LutShift =>
1258public ReadOnlySpan<int> Vector128LutHigh => [0x02011010, 0x08040804, 0x10101010, 0x10101010];
1260public ReadOnlySpan<int> Vector128LutLow => [0x11111115, 0x11111111, 0x1A131111, 0x1A1B1B1B];
1262public ReadOnlySpan<uint> Vector128LutShift => [0x04131000, 0xb9b9bfbf, 0x00000000, 0x00000000];
1264public ReadOnlySpan<uint> AdvSimdLutOne3 => [0xFFFFFFFF, 0xFFFFFFFF, 0x3EFFFFFF, 0x3FFFFFFF];
1451public int IndexOfAnyExceptWhiteSpace(ReadOnlySpan<byte> span)
1465public OperationStatus DecodeWithWhiteSpaceBlockwiseWrapper<TBase64Decoder>(TBase64Decoder decoder, ReadOnlySpan<byte> utf8,
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Url\Base64UrlDecoder.cs (33)
66public static OperationStatus DecodeFromUtf8(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesConsumed, out int bytesWritten, bool isFinalBlock = true) =>
115public static int DecodeFromUtf8(ReadOnlySpan<byte> source, Span<byte> destination)
142public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)
162public static byte[] DecodeFromUtf8(ReadOnlySpan<byte> source)
200public static OperationStatus DecodeFromChars(ReadOnlySpan<char> source, Span<byte> destination,
206ReadOnlySpan<ushort> source, Span<byte> bytes, ref int bytesConsumed, ref int bytesWritten, bool isFinalBlock = true)
332public static int DecodeFromChars(ReadOnlySpan<char> source, Span<byte> destination)
359public static bool TryDecodeFromChars(ReadOnlySpan<char> source, Span<byte> destination, out int bytesWritten)
378public static byte[] DecodeFromChars(ReadOnlySpan<char> source)
400public ReadOnlySpan<sbyte> DecodingMap =>
420public ReadOnlySpan<uint> VbmiLookup0 =>
428public ReadOnlySpan<uint> VbmiLookup1 =>
436public ReadOnlySpan<sbyte> Avx2LutHigh =>
448public ReadOnlySpan<sbyte> Avx2LutLow =>
460public ReadOnlySpan<sbyte> Avx2LutShift =>
474public ReadOnlySpan<int> Vector128LutHigh => [0x392d0000, 0x7a6f5a4f, 0x00000000, 0x00000000];
476public ReadOnlySpan<int> Vector128LutLow => [0x302d0101, 0x70615041, 0x01010101, 0x01010101];
478public ReadOnlySpan<uint> Vector128LutShift => [0x04110000, 0xb9b9bfbf, 0x00000000, 0x00000000];
480public ReadOnlySpan<uint> AdvSimdLutOne3 => [0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFF3EFF];
602public int IndexOfAnyExceptWhiteSpace(ReadOnlySpan<byte> span) => default(Base64DecoderByte).IndexOfAnyExceptWhiteSpace(span);
605public OperationStatus DecodeWithWhiteSpaceBlockwiseWrapper<TBase64Decoder>(TBase64Decoder decoder, ReadOnlySpan<byte> utf8, Span<byte> bytes,
612public ReadOnlySpan<sbyte> DecodingMap => default(Base64UrlDecoderByte).DecodingMap;
614public ReadOnlySpan<uint> VbmiLookup0 => default(Base64UrlDecoderByte).VbmiLookup0;
616public ReadOnlySpan<uint> VbmiLookup1 => default(Base64UrlDecoderByte).VbmiLookup1;
618public ReadOnlySpan<sbyte> Avx2LutHigh => default(Base64UrlDecoderByte).Avx2LutHigh;
620public ReadOnlySpan<sbyte> Avx2LutLow => default(Base64UrlDecoderByte).Avx2LutLow;
622public ReadOnlySpan<sbyte> Avx2LutShift => default(Base64UrlDecoderByte).Avx2LutShift;
626public ReadOnlySpan<int> Vector128LutHigh => default(Base64UrlDecoderByte).Vector128LutHigh;
628public ReadOnlySpan<int> Vector128LutLow => default(Base64UrlDecoderByte).Vector128LutLow;
630public ReadOnlySpan<uint> Vector128LutShift => default(Base64UrlDecoderByte).Vector128LutShift;
632public ReadOnlySpan<uint> AdvSimdLutOne3 => default(Base64UrlDecoderByte).AdvSimdLutOne3;
839public int IndexOfAnyExceptWhiteSpace(ReadOnlySpan<ushort> span)
853public OperationStatus DecodeWithWhiteSpaceBlockwiseWrapper<TBase64Decoder>(TBase64Decoder decoder, ReadOnlySpan<ushort> source, Span<byte> bytes,
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Url\Base64UrlValidator.cs (12)
15/// If the method returns <see langword="true"/>, the same text passed to <see cref="Base64Url.DecodeFromChars(ReadOnlySpan{char})"/> and
16/// <see cref="Base64Url.TryDecodeFromChars(ReadOnlySpan{char}, Span{byte}, out int)"/> would successfully decode (in the case
17/// of <see cref="Base64Url.TryDecodeFromChars(ReadOnlySpan{char}, Span{byte}, out int)"/> assuming sufficient output space).
20public static bool IsValid(ReadOnlySpan<char> base64UrlText) =>
28/// If the method returns <see langword="true"/>, the same text passed to <see cref="Base64Url.DecodeFromChars(ReadOnlySpan{char})"/> and
29/// <see cref="Base64Url.TryDecodeFromChars(ReadOnlySpan{char}, Span{byte}, out int)"/> would successfully decode (in the case
30/// of <see cref="Base64Url.TryDecodeFromChars(ReadOnlySpan{char}, Span{byte}, out int)"/> assuming sufficient output space).
33public static bool IsValid(ReadOnlySpan<char> base64UrlText, out int decodedLength) =>
42public static bool IsValid(ReadOnlySpan<byte> utf8Base64UrlText) =>
52public static bool IsValid(ReadOnlySpan<byte> utf8Base64UrlText, out int decodedLength) =>
62public int IndexOfAnyExcept(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(s_validBase64UrlChars);
88public int IndexOfAnyExcept(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(s_validBase64UrlChars);
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Float.cs (4)
30public static unsafe bool TryParse(ReadOnlySpan<byte> source, out float value, out int bytesConsumed, char standardFormat = default)
63public static unsafe bool TryParse(ReadOnlySpan<byte> source, out double value, out int bytesConsumed, char standardFormat = default)
79private static bool TryParseNormalAsFloatingPoint(ReadOnlySpan<byte> source, ref Number.NumberBuffer number, out int bytesConsumed, char standardFormat)
113private static bool TryParseAsSpecialFloatingPoint<T>(ReadOnlySpan<byte> source, T positiveInfinity, T negativeInfinity, T nan, out T value, out int bytesConsumed) where T : struct
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Signed.cs (4)
35public static bool TryParse(ReadOnlySpan<byte> source, out sbyte value, out int bytesConsumed, char standardFormat = default)
87public static bool TryParse(ReadOnlySpan<byte> source, out short value, out int bytesConsumed, char standardFormat = default)
139public static bool TryParse(ReadOnlySpan<byte> source, out int value, out int bytesConsumed, char standardFormat = default)
191public static bool TryParse(ReadOnlySpan<byte> source, out long value, out int bytesConsumed, char standardFormat = default)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Unsigned.cs (4)
29public static bool TryParse(ReadOnlySpan<byte> source, out byte value, out int bytesConsumed, char standardFormat = default)
81public static bool TryParse(ReadOnlySpan<byte> source, out ushort value, out int bytesConsumed, char standardFormat = default)
133public static bool TryParse(ReadOnlySpan<byte> source, out uint value, out int bytesConsumed, char standardFormat = default)
185public static bool TryParse(ReadOnlySpan<byte> source, out ulong value, out int bytesConsumed, char standardFormat = default)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (22)
108public static byte Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null)
116public static bool TryParse(ReadOnlySpan<char> s, out byte result) => TryParse(s, NumberStyles.Integer, provider: null, out result);
122public static bool TryParse(ReadOnlySpan<byte> utf8Text, out byte result) => TryParse(utf8Text, NumberStyles.Integer, provider: null, out result);
136public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out byte result)
162public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
168public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
296/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
297static bool IBinaryInteger<byte>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out byte value)
329/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
330static bool IBinaryInteger<byte>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out byte value)
1130/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" />
1131public static byte Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Integer, provider);
1133/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
1134public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out byte result) => TryParse(s, NumberStyles.Integer, provider, out result);
1167/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" />
1168public static byte Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null)
1174/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
1175public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out byte result)
1181/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" />
1182public static byte Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Integer, provider);
1184/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" />
1185public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out byte result) => TryParse(utf8Text, NumberStyles.Integer, provider, out result);
src\libraries\System.Private.CoreLib\src\System\Char.cs (17)
59private static ReadOnlySpan<byte> Latin1CharInfo =>
178bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider)
192bool IUtf8SpanFormattable.TryFormat(Span<byte> utf8Destination, out int bytesWritten, ReadOnlySpan<char> format, IFormatProvider? provider) =>
203internal static char Parse(ReadOnlySpan<char> s)
222internal static bool TryParse(ReadOnlySpan<char> s, out char result)
234/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" />
235static char IUtf8SpanParsable<char>.Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider)
251/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" />
252static bool IUtf8SpanParsable<char>.TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out char result)
1210/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
1211static bool IBinaryInteger<char>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out char value)
1260/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
1261static bool IBinaryInteger<char>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out char value)
1540static char INumberBase<char>.Parse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider) => Parse(s);
1954static bool INumberBase<char>.TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out char result) => TryParse(s, out result);
1981static char ISpanParsable<char>.Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s);
1983static bool ISpanParsable<char>.TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out char result) => TryParse(s, out result);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\NonRandomizedStringEqualityComparer.cs (14)
77private sealed class OrdinalComparer : NonRandomizedStringEqualityComparer, IAlternateEqualityComparer<ReadOnlySpan<char>, string?>
91int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.GetHashCode(ReadOnlySpan<char> span) =>
94bool IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Equals(ReadOnlySpan<char> span, string? target)
105string IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Create(ReadOnlySpan<char> span) =>
109private sealed class OrdinalIgnoreCaseComparer : NonRandomizedStringEqualityComparer, IAlternateEqualityComparer<ReadOnlySpan<char>, string?>
123int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.GetHashCode(ReadOnlySpan<char> span) =>
126bool IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Equals(ReadOnlySpan<char> span, string? target)
137string IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Create(ReadOnlySpan<char> span) =>
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\RandomizedStringEqualityComparer.cs (14)
50private sealed class OrdinalComparer : RandomizedStringEqualityComparer, IAlternateEqualityComparer<ReadOnlySpan<char>, string?>
57string IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Create(ReadOnlySpan<char> span) =>
62bool IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Equals(ReadOnlySpan<char> alternate, string? other)
88int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.GetHashCode(ReadOnlySpan<char> alternate) =>
95private sealed class OrdinalIgnoreCaseComparer : RandomizedStringEqualityComparer, IAlternateEqualityComparer<ReadOnlySpan<char>, string?>
102string IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Create(ReadOnlySpan<char> span) =>
107bool IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Equals(ReadOnlySpan<char> alternate, string? other)
133int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.GetHashCode(ReadOnlySpan<char> alternate) =>
src\libraries\System.Private.CoreLib\src\System\Convert.cs (15)
2343public static string ToBase64String(ReadOnlySpan<byte> bytes, Base64FormattingOptions options = Base64FormattingOptions.None)
2429public static unsafe bool TryToBase64Chars(ReadOnlySpan<byte> bytes, Span<char> chars, out int charsWritten, Base64FormattingOptions options = Base64FormattingOptions.None)
2473private static void ToBase64CharsLargeNoLineBreaks(ReadOnlySpan<byte> bytes, Span<char> chars, int charLengthRequired)
2669public static bool TryFromBase64Chars(ReadOnlySpan<char> chars, Span<byte> bytes, out int bytesWritten)
2763private static void CopyToTempBufferWithoutWhiteSpace(ReadOnlySpan<char> chars, Span<char> tempBuffer, out int consumed, out int charsWritten)
2938public static byte[] FromHexString(ReadOnlySpan<char> chars)
2964public static byte[] FromHexString(ReadOnlySpan<byte> utf8Source)
3012public static OperationStatus FromHexString(ReadOnlySpan<char> source, Span<byte> destination, out int charsConsumed, out int bytesWritten)
3068public static OperationStatus FromHexString(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesConsumed, out int bytesWritten)
3152public static string ToHexString(ReadOnlySpan<byte> bytes)
3168public static bool TryToHexString(ReadOnlySpan<byte> source, Span<char> destination, out int charsWritten)
3191public static bool TryToHexString(ReadOnlySpan<byte> source, Span<byte> utf8Destination, out int bytesWritten)
3247public static string ToHexStringLower(ReadOnlySpan<byte> bytes)
3263public static bool TryToHexStringLower(ReadOnlySpan<byte> source, Span<char> destination, out int charsWritten)
3286public static bool TryToHexStringLower(ReadOnlySpan<byte> source, Span<byte> utf8Destination, out int bytesWritten)
src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (25)
287public static DateOnly Parse(ReadOnlySpan<char> s, IFormatProvider? provider = default, DateTimeStyles style = DateTimeStyles.None)
310public static DateOnly ParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] ReadOnlySpan<char> format, IFormatProvider? provider = default, DateTimeStyles style = DateTimeStyles.None)
329public static DateOnly ParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] string[] formats) => ParseExact(s, formats, null, DateTimeStyles.None);
340public static DateOnly ParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] string[] formats, IFormatProvider? provider, DateTimeStyles style = DateTimeStyles.None)
426public static bool TryParse(ReadOnlySpan<char> s, out DateOnly result) => TryParse(s, null, DateTimeStyles.None, out result);
436public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, DateTimeStyles style, out DateOnly result) => TryParseInternal(s, provider, style, out result) == ParseFailureKind.None;
438private static ParseFailureKind TryParseInternal(ReadOnlySpan<char> s, IFormatProvider? provider, DateTimeStyles style, out DateOnly result)
473public static bool TryParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] ReadOnlySpan<char> format, out DateOnly result) => TryParseExact(s, format, null, DateTimeStyles.None, out result);
485public static bool TryParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] ReadOnlySpan<char> format, IFormatProvider? provider, DateTimeStyles style, out DateOnly result) =>
487private static ParseFailureKind TryParseExactInternal(ReadOnlySpan<char> s, ReadOnlySpan<char> format, IFormatProvider? provider, DateTimeStyles style, out DateOnly result)
538public static bool TryParseExact(ReadOnlySpan<char> s, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] string?[]? formats, out DateOnly result) => TryParseExact(s, formats, null, DateTimeStyles.None, out result);
549public static bool TryParseExact(ReadOnlySpan<char> s, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] string?[]? formats, IFormatProvider? provider, DateTimeStyles style, out DateOnly result) =>
552private static ParseFailureKind TryParseExactInternal(ReadOnlySpan<char> s, string?[]? formats, IFormatProvider? provider, DateTimeStyles style, out DateOnly result)
690private static void ThrowOnError(ParseFailureKind result, ReadOnlySpan<char> s)
784public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) =>
788public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) =>
791private bool TryFormatCore<TChar>(Span<TChar> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] ReadOnlySpan<char> format, IFormatProvider? provider = null)
842/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" />
843public static DateOnly Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, provider, DateTimeStyles.None);
845/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
846public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out DateOnly result) => TryParse(s, provider, DateTimeStyles.None, out result);
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (22)
108internal static ReadOnlySpan<uint> DaysToMonth365 => [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365];
109internal static ReadOnlySpan<uint> DaysToMonth366 => [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366];
111private static ReadOnlySpan<byte> DaysInMonth365 => [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
112private static ReadOnlySpan<byte> DaysInMonth366 => [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
971ReadOnlySpan<uint> daysTo = IsLeapYear(y) ? DaysToMonth366 : DaysToMonth365;
1090ReadOnlySpan<uint> days = RuntimeHelpers.IsKnownConstant(month) && month == 1 || IsLeapYear(year) ? DaysToMonth366 : DaysToMonth365;
1602public static DateTime Parse(ReadOnlySpan<char> s, IFormatProvider? provider = null, DateTimeStyles styles = DateTimeStyles.None)
1631public static DateTime ParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.DateTimeFormat)] ReadOnlySpan<char> format, IFormatProvider? provider, DateTimeStyles style = DateTimeStyles.None)
1644public static DateTime ParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.DateTimeFormat)] string[] formats, IFormatProvider? provider, DateTimeStyles style = DateTimeStyles.None)
1773public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.DateTimeFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) =>
1777public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.DateTimeFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) =>
1793public static bool TryParse(ReadOnlySpan<char> s, out DateTime result)
1811public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, DateTimeStyles styles, out DateTime result)
1830public static bool TryParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.DateTimeFormat)] ReadOnlySpan<char> format, IFormatProvider? provider, DateTimeStyles style, out DateTime result)
1849public static bool TryParseExact(ReadOnlySpan<char> s, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.DateTimeFormat)] string?[]? formats, IFormatProvider? provider, DateTimeStyles style, out DateTime result)
1994ReadOnlySpan<uint> days = IsLeapYear(year) ? DaysToMonth366 : DaysToMonth365;
2038/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" />
2039public static DateTime Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, provider, DateTimeStyles.None);
2041/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
2042public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out DateTime result) => TryParse(s, provider, DateTimeStyles.None, out result);
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (15)
680public static DateTimeOffset Parse(ReadOnlySpan<char> input, IFormatProvider? formatProvider = null, DateTimeStyles styles = DateTimeStyles.None)
712public static DateTimeOffset ParseExact(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.DateTimeFormat)] ReadOnlySpan<char> format, IFormatProvider? formatProvider, DateTimeStyles styles = DateTimeStyles.None)
732public static DateTimeOffset ParseExact(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.DateTimeFormat)] string[] formats, IFormatProvider? formatProvider, DateTimeStyles styles = DateTimeStyles.None)
804public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.DateTimeFormat)] ReadOnlySpan<char> format = default, IFormatProvider? formatProvider = null) =>
808public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.DateTimeFormat)] ReadOnlySpan<char> format = default, IFormatProvider? formatProvider = null) =>
824public static bool TryParse(ReadOnlySpan<char> input, out DateTimeOffset result)
849public static bool TryParse(ReadOnlySpan<char> input, IFormatProvider? formatProvider, DateTimeStyles styles, out DateTimeOffset result)
878ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.DateTimeFormat)] ReadOnlySpan<char> format, IFormatProvider? formatProvider, DateTimeStyles styles, out DateTimeOffset result)
907ReadOnlySpan<char> input, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.DateTimeFormat)] string?[]? formats, IFormatProvider? formatProvider, DateTimeStyles styles, out DateTimeOffset result)
1040/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" />
1041public static DateTimeOffset Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, provider, DateTimeStyles.None);
1043/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
1044public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out DateTimeOffset result) => TryParse(s, provider, DateTimeStyles.None, out result);
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (21)
282this((ReadOnlySpan<int>)(bits ?? throw new ArgumentNullException(nameof(bits))))
291public Decimal(ReadOnlySpan<int> bits)
502public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
508public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
535public static decimal Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Number, IFormatProvider? provider = null)
543public static bool TryParse(ReadOnlySpan<char> s, out decimal result) => TryParse(s, NumberStyles.Number, provider: null, out result);
549public static bool TryParse(ReadOnlySpan<byte> utf8Text, out decimal result) => TryParse(utf8Text, NumberStyles.Number, provider: null, out result);
563public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out decimal result)
638internal static decimal ToDecimal(ReadOnlySpan<byte> span)
1823/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" />
1824public static decimal Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Number, provider);
1826/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
1827public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out decimal result) => TryParse(s, NumberStyles.Number, provider, out result);
1833/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" />
1834public static decimal Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Number, IFormatProvider? provider = null)
1840/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
1841public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out decimal result)
1847/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" />
1848public static decimal Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Number, provider);
1850/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" />
1851public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out decimal result) => TryParse(utf8Text, NumberStyles.Number, provider, out result);
src\libraries\System.Private.CoreLib\src\System\Double.cs (19)
375public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
381public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
409public static double Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Float | NumberStyles.AllowThousands, IFormatProvider? provider = null)
417public static bool TryParse(ReadOnlySpan<char> s, out double result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider: null, out result);
421/// <param name="result">When this method returns, contains a double-precision floating-point number equivalent of the numeric value or symbol contained in <paramref name="utf8Text" /> if the conversion succeeded or zero if the conversion failed. The conversion fails if the <paramref name="utf8Text" /> is <see cref="ReadOnlySpan{T}.Empty" /> or is not in a valid format. This parameter is passed uninitialized; any value originally supplied in result will be overwritten.</param>
423public static bool TryParse(ReadOnlySpan<byte> utf8Text, out double result) => TryParse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider: null, out result);
437public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out double result)
1786/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" />
1787public static double Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider);
1789/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
1790public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out double result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider, out result);
2262/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" />
2263public static double Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Float | NumberStyles.AllowThousands, IFormatProvider? provider = null)
2269/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
2270public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out double result)
2276/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" />
2277public static double Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider);
2279/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" />
2280public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out double result) => TryParse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider, out result);
src\libraries\System.Private.CoreLib\src\System\Enum.cs (23)
533ReadOnlySpan<TStorage> span = values;
560public static object Parse(Type enumType, ReadOnlySpan<char> value) =>
601public static object Parse(Type enumType, ReadOnlySpan<char> value, bool ignoreCase)
624public static TEnum Parse<TEnum>(ReadOnlySpan<char> value) where TEnum : struct =>
660public static TEnum Parse<TEnum>(ReadOnlySpan<char> value, bool ignoreCase) where TEnum : struct
680public static bool TryParse(Type enumType, ReadOnlySpan<char> value, [NotNullWhen(true)] out object? result) =>
712public static bool TryParse(Type enumType, ReadOnlySpan<char> value, bool ignoreCase, [NotNullWhen(true)] out object? result) =>
716private static unsafe bool TryParse(Type enumType, ReadOnlySpan<char> value, bool ignoreCase, bool throwOnFailure, [NotNullWhen(true)] out object? result)
774static bool TryParseRareTypes(RuntimeType rt, ReadOnlySpan<char> value, bool ignoreCase, bool throwOnFailure, [NotNullWhen(true)] out long result)
842public static bool TryParse<TEnum>(ReadOnlySpan<char> value, out TEnum result) where TEnum : struct =>
876public static bool TryParse<TEnum>(ReadOnlySpan<char> value, bool ignoreCase, out TEnum result) where TEnum : struct =>
881private static bool TryParse<TEnum>(ReadOnlySpan<char> value, bool ignoreCase, bool throwOnFailure, out TEnum result) where TEnum : struct
915RuntimeType enumType, ReadOnlySpan<char> value, bool ignoreCase, bool throwOnFailure, out TUnderlying result)
973RuntimeType enumType, ReadOnlySpan<char> value, bool ignoreCase, bool throwOnFailure, out TUnderlying result)
1043private static bool TryParseByName<TStorage>(RuntimeType enumType, ReadOnlySpan<char> value, bool ignoreCase, bool throwOnFailure, out TStorage result)
1046ReadOnlySpan<char> originalValue = value;
1058ReadOnlySpan<char> subvalue;
1687bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider)
1747public static unsafe bool TryFormat<TEnum>(TEnum value, Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.EnumFormat)] ReadOnlySpan<char> format = default) where TEnum : struct
1803internal static unsafe bool TryFormatUnconstrained<TEnum>(TEnum value, Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.EnumFormat)] ReadOnlySpan<char> format = default)
1891private static bool TryFormatPrimitiveNonDefault<TUnderlying, TStorage>(RuntimeType enumType, TUnderlying value, Span<char> destination, out int charsWritten, ReadOnlySpan<char> format)
2107private static void WriteMultipleFoundFlagsNames(string[] names, ReadOnlySpan<int> foundItems, Span<char> destination)
2253ReadOnlySpan<byte> rawData = MemoryMarshal.AsBytes(new ReadOnlySpan<long>(ref value));
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendricalCalculationsHelper.cs (11)
23private static ReadOnlySpan<double> Coefficients1900to1987 => [-0.00002, 0.000297, 0.025184, -0.181133, 0.553040, -0.861938, 0.677066, -0.212591];
24private static ReadOnlySpan<double> Coefficients1800to1899 => [-0.000009, 0.003844, 0.083563, 0.865736, 4.867575, 15.845535, 31.332267, 38.291999, 28.316289, 11.636204, 2.043794];
25private static ReadOnlySpan<double> Coefficients1700to1799 => [8.118780842, -0.005092142, 0.003336121, -0.0000266484];
26private static ReadOnlySpan<double> Coefficients1620to1699 => [196.58333, -4.0675, 0.0219167];
27private static ReadOnlySpan<double> LambdaCoefficients => [280.46645, 36000.76983, 0.0003032];
28private static ReadOnlySpan<double> AnomalyCoefficients => [357.52910, 35999.05030, -0.0001559, -0.00000048];
29private static ReadOnlySpan<double> EccentricityCoefficients => [0.016708617, -0.000042037, -0.0000001236];
30private static ReadOnlySpan<double> CoefficientsA => [124.90, -1934.134, 0.002063];
31private static ReadOnlySpan<double> CoefficientsB => [201.11, 72001.5377, 0.00057];
32private static ReadOnlySpan<double> Coefficients => [23.43929111111111, -0.013004166666666667, -1.638888888888889E-07, 5.03611111111111E-07];
124private static double PolynomialSum(ReadOnlySpan<double> coefficients, double indeterminate)
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.cs (45)
139public static bool IsSortable(ReadOnlySpan<char> text)
289internal int CompareOptionIgnoreCase(ReadOnlySpan<char> string1, ReadOnlySpan<char> string2) =>
319ReadOnlySpan<char> span1 = default;
320ReadOnlySpan<char> span2 = default;
414public int Compare(ReadOnlySpan<char> string1, ReadOnlySpan<char> string2, CompareOptions options = CompareOptions.None)
488private int CompareStringCore(ReadOnlySpan<char> string1, ReadOnlySpan<char> string2, CompareOptions options) =>
528public unsafe bool IsPrefix(ReadOnlySpan<char> source, ReadOnlySpan<char> prefix, CompareOptions options = CompareOptions.None)
600public unsafe bool IsPrefix(ReadOnlySpan<char> source, ReadOnlySpan<char> prefix, CompareOptions options, out int matchLength)
630private unsafe bool StartsWithCore(ReadOnlySpan<char> source, ReadOnlySpan<char> prefix, CompareOptions options, int* matchLengthPtr) =>
671public unsafe bool IsSuffix(ReadOnlySpan<char> source, ReadOnlySpan<char> suffix, CompareOptions options = CompareOptions.None)
743public unsafe bool IsSuffix(ReadOnlySpan<char> source, ReadOnlySpan<char> suffix, CompareOptions options, out int matchLength)
778private unsafe bool EndsWithCore(ReadOnlySpan<char> source, ReadOnlySpan<char> suffix, CompareOptions options, int* matchLengthPtr) =>
873if (!source.TryGetSpan(startIndex, count, out ReadOnlySpan<char> sourceSpan))
907if (!source.TryGetSpan(startIndex, count, out ReadOnlySpan<char> sourceSpan))
943public unsafe int IndexOf(ReadOnlySpan<char> source, ReadOnlySpan<char> value, CompareOptions options = CompareOptions.None)
1013public unsafe int IndexOf(ReadOnlySpan<char> source, ReadOnlySpan<char> value, CompareOptions options, out int matchLength)
1034public int IndexOf(ReadOnlySpan<char> source, Rune value, CompareOptions options = CompareOptions.None)
1046private unsafe int IndexOf(ReadOnlySpan<char> source, ReadOnlySpan<char> value, int* matchLengthPtr, CompareOptions options, bool fromBeginning)
1111private unsafe int IndexOfCore(ReadOnlySpan<char> source, ReadOnlySpan<char> target, CompareOptions options, int* matchLengthPtr, bool fromBeginning) =>
1231if (!source.TryGetSpan(startIndex, count, out ReadOnlySpan<char> sourceSpan))
1291if (!source.TryGetSpan(startIndex, count, out ReadOnlySpan<char> sourceSpan))
1317public unsafe int LastIndexOf(ReadOnlySpan<char> source, ReadOnlySpan<char> value, CompareOptions options = CompareOptions.None)
1385public unsafe int LastIndexOf(ReadOnlySpan<char> source, ReadOnlySpan<char> value, CompareOptions options, out int matchLength)
1406public unsafe int LastIndexOf(ReadOnlySpan<char> source, Rune value, CompareOptions options = CompareOptions.None)
1458public int GetSortKey(ReadOnlySpan<char> source, Span<byte> destination, CompareOptions options = CompareOptions.None)
1475private int GetSortKeyCore(ReadOnlySpan<char> source, Span<byte> destination, CompareOptions options) =>
1491public int GetSortKeyLength(ReadOnlySpan<char> source, CompareOptions options = CompareOptions.None)
1508private int GetSortKeyLengthCore(ReadOnlySpan<char> source, CompareOptions options) =>
1540public int GetHashCode(ReadOnlySpan<char> source, CompareOptions options)
1576private int GetHashCodeOfStringCore(ReadOnlySpan<char> source, CompareOptions options) =>
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Icu.cs (26)
50private unsafe int IcuCompareString(ReadOnlySpan<char> string1, ReadOnlySpan<char> string2, CompareOptions options)
66private unsafe int IcuIndexOfCore(ReadOnlySpan<char> source, ReadOnlySpan<char> target, CompareOptions options, int* matchLengthPtr, bool fromBeginning)
104private unsafe int IndexOfOrdinalIgnoreCaseHelper(ReadOnlySpan<char> source, ReadOnlySpan<char> target, CompareOptions options, int* matchLengthPtr, bool fromBeginning)
196ReadOnlySpan<char> remainingSource = fromBeginning
219private unsafe int IndexOfOrdinalHelper(ReadOnlySpan<char> source, ReadOnlySpan<char> target, CompareOptions options, int* matchLengthPtr, bool fromBeginning)
314private unsafe bool IcuStartsWith(ReadOnlySpan<char> source, ReadOnlySpan<char> prefix, CompareOptions options, int* matchLengthPtr)
343private unsafe bool StartsWithOrdinalIgnoreCaseHelper(ReadOnlySpan<char> source, ReadOnlySpan<char> prefix, CompareOptions options, int* matchLengthPtr)
425private unsafe bool StartsWithOrdinalHelper(ReadOnlySpan<char> source, ReadOnlySpan<char> prefix, CompareOptions options, int* matchLengthPtr)
498private unsafe bool IcuEndsWith(ReadOnlySpan<char> source, ReadOnlySpan<char> suffix, CompareOptions options, int* matchLengthPtr)
527private unsafe bool EndsWithOrdinalIgnoreCaseHelper(ReadOnlySpan<char> source, ReadOnlySpan<char> suffix, CompareOptions options, int* matchLengthPtr)
610private unsafe bool EndsWithOrdinalHelper(ReadOnlySpan<char> source, ReadOnlySpan<char> suffix, CompareOptions options, int* matchLengthPtr)
741private unsafe int IcuGetSortKey(ReadOnlySpan<char> source, Span<byte> destination, CompareOptions options)
790private unsafe int IcuGetSortKeyLength(ReadOnlySpan<char> source, CompareOptions options)
820private static bool IcuIsSortable(ReadOnlySpan<char> text)
845private unsafe int IcuGetHashCodeOfString(ReadOnlySpan<char> source, CompareOptions options)
993private static ReadOnlySpan<bool> HighCharTable => // 0x80
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Nls.cs (18)
46ReadOnlySpan<char> source,
47ReadOnlySpan<char> value,
77internal static int NlsIndexOfOrdinalCore(ReadOnlySpan<char> source, ReadOnlySpan<char> value, bool ignoreCase, bool fromBeginning)
106private unsafe int NlsGetHashCodeOfString(ReadOnlySpan<char> source, CompareOptions options)
208private unsafe int NlsCompareString(ReadOnlySpan<char> string1, ReadOnlySpan<char> string2, CompareOptions options)
260ReadOnlySpan<char> lpStringSource,
261ReadOnlySpan<char> lpStringValue,
309private unsafe int NlsIndexOfCore(ReadOnlySpan<char> source, ReadOnlySpan<char> target, CompareOptions options, int* matchLengthPtr, bool fromBeginning)
320private unsafe bool NlsStartsWith(ReadOnlySpan<char> source, ReadOnlySpan<char> prefix, CompareOptions options, int* matchLengthPtr)
341private unsafe bool NlsEndsWith(ReadOnlySpan<char> source, ReadOnlySpan<char> suffix, CompareOptions options, int* matchLengthPtr)
423private unsafe int NlsGetSortKey(ReadOnlySpan<char> source, Span<byte> destination, CompareOptions options)
523private unsafe int NlsGetSortKeyLength(ReadOnlySpan<char> source, CompareOptions options)
566private static unsafe bool NlsIsSortable(ReadOnlySpan<char> text)
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (13)
197internal static int ParseRepeatPattern(ReadOnlySpan<char> format, int pos, char patternChar)
284internal static int ParseQuoteString<TChar>(scoped ReadOnlySpan<char> format, int pos, ref ValueListBuilder<TChar> result) where TChar : unmanaged, IUtfChar<TChar>
344internal static int ParseNextChar(ReadOnlySpan<char> format, int pos)
366private static bool IsUseGenitiveForm(ReadOnlySpan<char> format, int index, int tokenLen, char patternToMatch)
429DateTime dateTime, scoped ReadOnlySpan<char> format, DateTimeFormatInfo dtfi, TimeSpan offset, ref ValueListBuilder<TChar> result) where TChar : unmanaged, IUtfChar<TChar>
762private static void AppendString<TChar>(ref ValueListBuilder<TChar> result, scoped ReadOnlySpan<char> s) where TChar : unmanaged, IUtfChar<TChar>
766result.Append(Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(s));
775internal static void FormatFraction<TChar>(ref ValueListBuilder<TChar> result, int fraction, ReadOnlySpan<char> fractionFormat) where TChar : unmanaged, IUtfChar<TChar>
1029internal static bool TryFormat<TChar>(DateTime dateTime, Span<TChar> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) where TChar : unmanaged, IUtfChar<TChar> =>
1032internal static bool TryFormat<TChar>(DateTime dateTime, Span<TChar> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider, TimeSpan offset) where TChar : unmanaged, IUtfChar<TChar>
1176internal static bool IsValidCustomDateOnlyFormat(ReadOnlySpan<char> format, bool throwOnError)
1247internal static bool IsValidCustomTimeOnlyFormat(ReadOnlySpan<char> format, bool throwOnError)
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (27)
362internal ReadOnlySpan<TChar> AMDesignatorTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar>
366Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(AMDesignator) :
367Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(amDesignatorUtf8 ??= Encoding.UTF8.GetBytes(AMDesignator));
611internal ReadOnlySpan<TChar> DateSeparatorTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar>
615Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(DateSeparator) :
616Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(dateSeparatorUtf8 ??= Encoding.UTF8.GetBytes(DateSeparator));
814internal ReadOnlySpan<TChar> PMDesignatorTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar>
818Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(PMDesignator) :
819Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(pmDesignatorUtf8 ??= Encoding.UTF8.GetBytes(PMDesignator));
996internal ReadOnlySpan<TChar> TimeSeparatorTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar>
1000Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(TimeSeparator) :
1001Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(timeSeparatorUtf8 ??= Encoding.UTF8.GetBytes(TimeSeparator));
1696internal ReadOnlySpan<TChar> DecimalSeparatorTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar>
1700Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(DecimalSeparator) :
1701Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(_decimalSeparatorUtf8 ??= Encoding.UTF8.GetBytes(DecimalSeparator));
2026ReadOnlySpan<char> monthPostfix = dateWords[i].AsSpan(1);
2185private void AddMonthNames(TokenHashValue[] temp, ReadOnlySpan<char> monthPostfix = default)
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (44)
20internal static DateTime ParseExact(ReadOnlySpan<char> s, ReadOnlySpan<char> format, DateTimeFormatInfo dtfi, DateTimeStyles style)
34internal static DateTime ParseExact(ReadOnlySpan<char> s, ReadOnlySpan<char> format, DateTimeFormatInfo dtfi, DateTimeStyles style, out TimeSpan offset)
50internal static bool TryParseExact(ReadOnlySpan<char> s, ReadOnlySpan<char> format, DateTimeFormatInfo dtfi, DateTimeStyles style, out DateTime result)
65internal static bool TryParseExact(ReadOnlySpan<char> s, ReadOnlySpan<char> format, DateTimeFormatInfo dtfi, DateTimeStyles style, out DateTime result, out TimeSpan offset)
83internal static bool TryParseExact(ReadOnlySpan<char> s, ReadOnlySpan<char> format, DateTimeFormatInfo dtfi, DateTimeStyles style, scoped ref DateTimeResult result)
102internal static DateTime ParseExactMultiple(ReadOnlySpan<char> s, string[] formats,
117internal static DateTime ParseExactMultiple(ReadOnlySpan<char> s, string[] formats,
134internal static bool TryParseExactMultiple(ReadOnlySpan<char> s, string?[]? formats,
153internal static bool TryParseExactMultiple(ReadOnlySpan<char> s, string?[]? formats,
169internal static bool TryParseExactMultiple(ReadOnlySpan<char> s, string?[]? formats,
2423internal static DateTime Parse(ReadOnlySpan<char> s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
2437internal static DateTime Parse(ReadOnlySpan<char> s, DateTimeFormatInfo dtfi, DateTimeStyles styles, out TimeSpan offset)
2453internal static bool TryParse(ReadOnlySpan<char> s, DateTimeFormatInfo dtfi, DateTimeStyles styles, out DateTime result)
2468internal static bool TryParse(ReadOnlySpan<char> s, DateTimeFormatInfo dtfi, DateTimeStyles styles, out DateTime result, out TimeSpan offset)
2489internal static bool TryParse(ReadOnlySpan<char> s, DateTimeFormatInfo dtfi, DateTimeStyles styles, scoped ref DateTimeResult result)
3294private static bool FormatContainsDayOfMonthSpecifier(ReadOnlySpan<char> format)
3345private static bool MatchAbbreviatedMonthName(ref __DTString str, DateTimeFormatInfo dtfi, scoped ref int result, ReadOnlySpan<char> format)
3354ReadOnlySpan<char> span = str.Value.Slice(str.Index);
3446private static bool MatchMonthName(ref __DTString str, DateTimeFormatInfo dtfi, scoped ref int result, ReadOnlySpan<char> format)
3455ReadOnlySpan<char> span = str.Value.Slice(str.Index);
3556ReadOnlySpan<char> span = str.Value.Slice(str.Index);
3623ReadOnlySpan<char> span = str.Value.Slice(str.Index);
3675private static void SetIfStartsWith(ReadOnlySpan<char> span, [ConstantExpected] string match, int matchResult, scoped ref int result, ref int maxMatchStrLen)
4395ReadOnlySpan<char> quotedSpan = enquotedString.AsSpan();
4519internal static bool TryParseQuoteString(ReadOnlySpan<char> format, int pos, ref ValueStringBuilder result, out int returnValue)
4589ReadOnlySpan<char> s,
4590ReadOnlySpan<char> formatParam,
4788private static bool TryParseFormatR(ReadOnlySpan<char> source, scoped ref DateTimeResult result)
4983private static bool TryParseFormatO(ReadOnlySpan<char> source, scoped ref DateTimeResult result)
5336private static string Hex(string str) => Hex((ReadOnlySpan<char>)str);
5337private static string Hex(ReadOnlySpan<char> str)
5384internal ReadOnlySpan<char> Value;
5402internal __DTString(ReadOnlySpan<char> str, DateTimeFormatInfo dtfi, bool checkDigitToken) : this(str, dtfi)
5407internal __DTString(ReadOnlySpan<char> str, DateTimeFormatInfo dtfi)
5980internal ReadOnlySpan<char> s;
6111internal ReadOnlySpan<char> failureSpanArgument; // initially the original date time string, but may be overwritten
6114internal void Init(ReadOnlySpan<char> originalDateTimeString)
6133SetBadFormatSpecifierFailure(ReadOnlySpan<char>.Empty);
6136internal void SetBadFormatSpecifierFailure(ReadOnlySpan<char> failedFormatSpecifier)
src\libraries\System.Private.CoreLib\src\System\Globalization\EastAsianLunisolarCalendar.cs (3)
14private static ReadOnlySpan<int> DaysToMonth365 => [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334];
15private static ReadOnlySpan<int> DaysToMonth366 => [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335];
364ReadOnlySpan<int> days = isLeapYear ? DaysToMonth366 : DaysToMonth365;
src\libraries\System.Private.CoreLib\src\System\Globalization\GregorianCalendar.cs (5)
25internal static ReadOnlySpan<int> DaysToMonth365 => [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365];
27internal static ReadOnlySpan<int> DaysToMonth366 => [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366];
99ReadOnlySpan<int> days = (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0)) ? DaysToMonth366 : DaysToMonth365;
160ReadOnlySpan<int> daysArray = (y % 4 == 0 && (y % 100 != 0 || y % 400 == 0)) ? DaysToMonth366 : DaysToMonth365;
281ReadOnlySpan<int> days = (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0)) ? DaysToMonth366 : DaysToMonth365;
src\libraries\System.Private.CoreLib\src\System\Globalization\HijriCalendar.cs (1)
51private static ReadOnlySpan<int> HijriMonthDays => [0, 30, 59, 89, 118, 148, 177, 207, 236, 266, 295, 325, 355];
src\libraries\System.Private.CoreLib\src\System\Globalization\NumberFormatInfo.cs (70)
267internal ReadOnlySpan<TChar> CurrencyDecimalSeparatorTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar>
271Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_currencyDecimalSeparator) :
272Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(_currencyDecimalSeparatorUtf8 ??= Encoding.UTF8.GetBytes(_currencyDecimalSeparator));
359internal ReadOnlySpan<TChar> CurrencyGroupSeparatorTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar>
363Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_currencyGroupSeparator) :
364Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(_currencyGroupSeparatorUtf8 ??= Encoding.UTF8.GetBytes(_currencyGroupSeparator));
381internal ReadOnlySpan<TChar> CurrencySymbolTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar>
385Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_currencySymbol) :
386Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(_currencySymbolUtf8 ??= Encoding.UTF8.GetBytes(_currencySymbol));
427internal ReadOnlySpan<TChar> NaNSymbolTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar>
431Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_nanSymbol) :
432Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(_nanSymbolUtf8 ??= Encoding.UTF8.GetBytes(_nanSymbol));
512internal ReadOnlySpan<TChar> NegativeInfinitySymbolTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar>
516Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_negativeInfinitySymbol) :
517Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(_negativeInfinitySymbolUtf8 ??= Encoding.UTF8.GetBytes(_negativeInfinitySymbol));
535internal ReadOnlySpan<TChar> NegativeSignTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar>
539Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_negativeSign) :
540Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(_negativeSignUtf8 ??= Encoding.UTF8.GetBytes(_negativeSign));
571internal ReadOnlySpan<TChar> NumberDecimalSeparatorTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar>
575Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_numberDecimalSeparator) :
576Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(_numberDecimalSeparatorUtf8 ??= Encoding.UTF8.GetBytes(_numberDecimalSeparator));
592internal ReadOnlySpan<TChar> NumberGroupSeparatorTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar>
596Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_numberGroupSeparator) :
597Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(_numberGroupSeparatorUtf8 ??= Encoding.UTF8.GetBytes(_numberGroupSeparator));
629internal ReadOnlySpan<TChar> PositiveInfinitySymbolTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar>
633Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_positiveInfinitySymbol) :
634Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(_positiveInfinitySymbolUtf8 ??= Encoding.UTF8.GetBytes(_positiveInfinitySymbol));
652internal ReadOnlySpan<TChar> PositiveSignTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar>
656Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_positiveSign) :
657Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(_positiveSignUtf8 ??= Encoding.UTF8.GetBytes(_positiveSign));
688internal ReadOnlySpan<TChar> PercentDecimalSeparatorTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar>
692Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_percentDecimalSeparator) :
693Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(_percentDecimalSeparatorUtf8 ??= Encoding.UTF8.GetBytes(_percentDecimalSeparator));
709internal ReadOnlySpan<TChar> PercentGroupSeparatorTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar>
713Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_percentGroupSeparator) :
714Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(_percentGroupSeparatorUtf8 ??= Encoding.UTF8.GetBytes(_percentGroupSeparator));
730internal ReadOnlySpan<TChar> PercentSymbolTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar>
734Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_percentSymbol) :
735Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(_percentSymbolUtf8 ??= Encoding.UTF8.GetBytes(_percentSymbol));
752internal ReadOnlySpan<TChar> PerMilleSymbolTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar>
756Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_perMilleSymbol) :
757Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(_perMilleSymbolUtf8 ??= Encoding.UTF8.GetBytes(_perMilleSymbol));
src\libraries\System.Private.CoreLib\src\System\Globalization\PersianCalendar.cs (1)
33private static ReadOnlySpan<int> DaysToMonth => [0, 31, 62, 93, 124, 155, 186, 216, 246, 276, 306, 336, 366];
src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanFormat.cs (4)
51internal static bool TryFormat<TChar>(TimeSpan value, Span<TChar> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? formatProvider) where TChar : unmanaged, IUtfChar<TChar>
109internal static unsafe bool TryFormatStandard<TChar>(TimeSpan value, StandardFormat format, ReadOnlySpan<TChar> decimalSeparator, Span<TChar> destination, out int written) where TChar : unmanaged, IUtfChar<TChar>
297private static void FormatCustomized<TChar>(TimeSpan value, scoped ReadOnlySpan<char> format, DateTimeFormatInfo dtfi, ref ValueListBuilder<TChar> result) where TChar : unmanaged, IUtfChar<TChar>
499internal void Init(ReadOnlySpan<char> format, bool useInvariantFieldLengths)
src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanParse.cs (30)
91internal ReadOnlySpan<char> _sep; // Store the literal that we are parsing (if any)
99public TimeSpanToken(TTT type, int number, int leadingZeroes, ReadOnlySpan<char> separator)
167private readonly ReadOnlySpan<char> _value;
170internal TimeSpanTokenizer(ReadOnlySpan<char> input) : this(input, 0) { }
172internal TimeSpanTokenizer(ReadOnlySpan<char> input, int startPosition)
186ReadOnlySpan<char> value = _value;
403internal ReadOnlySpan<char> _literals0, _literals1, _literals2, _literals3, _literals4, _literals5; // MaxLiteralTokens=6
451private bool AddSep(ReadOnlySpan<char> sep, ref TimeSpanResult result)
497private readonly ReadOnlySpan<char> _originalTimeSpanString;
499internal TimeSpanResult(bool throwOnFailure, ReadOnlySpan<char> originalTimeSpanString)
580ReadOnlySpan<int> powersOfTen =
627internal static TimeSpan Parse(ReadOnlySpan<char> input, IFormatProvider? formatProvider)
635internal static bool TryParse(ReadOnlySpan<char> input, IFormatProvider? formatProvider, out TimeSpan result)
649internal static TimeSpan ParseExact(ReadOnlySpan<char> input, ReadOnlySpan<char> format, IFormatProvider? formatProvider, TimeSpanStyles styles)
657internal static bool TryParseExact(ReadOnlySpan<char> input, ReadOnlySpan<char> format, IFormatProvider? formatProvider, TimeSpanStyles styles, out TimeSpan result)
671internal static TimeSpan ParseExactMultiple(ReadOnlySpan<char> input, string?[]? formats, IFormatProvider? formatProvider, TimeSpanStyles styles)
679internal static bool TryParseExactMultiple(ReadOnlySpan<char> input, string?[]? formats, IFormatProvider? formatProvider, TimeSpanStyles styles, out TimeSpan result)
694private static bool TryParseTimeSpan(ReadOnlySpan<char> input, TimeSpanStandardStyles style, IFormatProvider? formatProvider, ref TimeSpanResult result)
1228private static bool TryParseExactTimeSpan(ReadOnlySpan<char> input, ReadOnlySpan<char> format, IFormatProvider? formatProvider, TimeSpanStyles styles, ref TimeSpanResult result)
1250private static bool TryParseByFormat(ReadOnlySpan<char> input, ReadOnlySpan<char> format, TimeSpanStyles styles, ref TimeSpanResult result)
1450ReadOnlySpan<char> span = enquotedString.AsSpan();
1466private static bool TryParseTimeSpanConstant(ReadOnlySpan<char> input, ref TimeSpanResult result) =>
1471private ReadOnlySpan<char> _str;
1477ReadOnlySpan<char> str = _str;
1496internal bool TryParse(ReadOnlySpan<char> input, ref TimeSpanResult result)
1662private static bool TryParseExactMultipleTimeSpan(ReadOnlySpan<char> input, string?[]? formats, IFormatProvider? formatProvider, TimeSpanStyles styles, ref TimeSpanResult result)
src\libraries\System.Private.CoreLib\src\System\Guid.cs (54)
65public Guid(ReadOnlySpan<byte> b)
82public Guid(ReadOnlySpan<byte> b, bool bigEndian)
336return Parse((ReadOnlySpan<char>)input);
339public static Guid Parse(ReadOnlySpan<char> input)
348public static Guid Parse(ReadOnlySpan<byte> utf8Text)
365return TryParse((ReadOnlySpan<char>)input, out result);
368public static bool TryParse(ReadOnlySpan<char> input, out Guid result)
383public static bool TryParse(ReadOnlySpan<byte> utf8Text, out Guid result)
403return ParseExact((ReadOnlySpan<char>)input, (ReadOnlySpan<char>)format);
406public static Guid ParseExact(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.GuidFormat)] ReadOnlySpan<char> format)
438return TryParseExact((ReadOnlySpan<char>)input, format, out result);
441public static bool TryParseExact(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.GuidFormat)] ReadOnlySpan<char> format, out Guid result)
473private static bool TryParseGuid<TChar>(ReadOnlySpan<TChar> guidString, ref GuidResult result) where TChar : unmanaged, IUtfChar<TChar>
495private static bool TryParseExactB<TChar>(ReadOnlySpan<TChar> guidString, ref GuidResult result) where TChar : unmanaged, IUtfChar<TChar>
508private static bool TryParseExactD<TChar>(ReadOnlySpan<TChar> guidString, ref GuidResult result) where TChar : unmanaged, IUtfChar<TChar>
563static bool TryCompatParsing(ReadOnlySpan<TChar> guidString, ref GuidResult result)
594private static bool TryParseExactN<TChar>(ReadOnlySpan<TChar> guidString, ref GuidResult result) where TChar : unmanaged, IUtfChar<TChar>
637private static bool TryParseExactP<TChar>(ReadOnlySpan<TChar> guidString, ref GuidResult result) where TChar : unmanaged, IUtfChar<TChar>
650private static bool TryParseExactX<TChar>(ReadOnlySpan<TChar> guidString, ref GuidResult result) where TChar : unmanaged, IUtfChar<TChar>
818ReadOnlySpan<byte> lookup = HexConverter.CharToHexLookup;
832private static bool TryParseHex<TChar>(ReadOnlySpan<TChar> guidString, out ushort result, ref bool overflow) where TChar : unmanaged, IUtfChar<TChar>
839private static bool TryParseHex<TChar>(ReadOnlySpan<TChar> guidString, out uint result) where TChar : unmanaged, IUtfChar<TChar>
845private static bool TryParseHex<TChar>(ReadOnlySpan<TChar> guidString, out uint result, ref bool overflow) where TChar : unmanaged, IUtfChar<TChar>
885private static ReadOnlySpan<TChar> EatAllWhitespace<TChar>(ReadOnlySpan<TChar> str, scoped ref GuidResult result) where TChar : unmanaged, IUtfChar<TChar>
889ReadOnlySpan<char> charSpan = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<char>>(str);
918return Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(new ReadOnlySpan<char>(chArr, 0, newLength));
924ReadOnlySpan<byte> srcUtf8Span = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(str);
933return ReadOnlySpan<TChar>.Empty;
964return ReadOnlySpan<TChar>.Empty;
977return Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(destUtf8Span.Slice(0, newLength));
981private static bool IsHexPrefix<TChar>(ReadOnlySpan<TChar> str, int i) where TChar : unmanaged, IUtfChar<TChar> =>
1244public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.GuidFormat)] ReadOnlySpan<char> format = default) =>
1247bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.GuidFormat)] ReadOnlySpan<char> format, IFormatProvider? provider) =>
1251public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.GuidFormat)] ReadOnlySpan<char> format = default) =>
1254bool IUtf8SpanFormattable.TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.GuidFormat)] ReadOnlySpan<char> format, IFormatProvider? provider) =>
1267private bool TryFormatCore<TChar>(Span<TChar> destination, out int charsWritten, ReadOnlySpan<char> format) where TChar : unmanaged, IUtfChar<TChar>
1834/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" />
1835public static Guid Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s);
1837/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
1838public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out Guid result) => TryParse(s, out result);
1848/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" />
1849public static Guid Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text);
1851/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" />
1852public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out Guid result) => TryParse(utf8Text, out result);
src\libraries\System.Private.CoreLib\src\System\Half.cs (22)
349/// Parses a <see cref="Half"/> from a <see cref="ReadOnlySpan{Char}"/> and <see cref="IFormatProvider"/>.
355public static Half Parse(ReadOnlySpan<char> s, NumberStyles style = DefaultParseStyle, IFormatProvider? provider = null)
370/// Tries to parse a <see cref="Half"/> from a <see cref="ReadOnlySpan{Char}"/> in the default parse style.
375public static bool TryParse(ReadOnlySpan<char> s, out Half result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider: null, out result);
379/// <param name="result">When this method returns, contains a half-precision floating-point number equivalent of the numeric value or symbol contained in <paramref name="utf8Text" /> if the conversion succeeded or zero if the conversion failed. The conversion fails if the <paramref name="utf8Text" /> is <see cref="ReadOnlySpan{T}.Empty" /> or is not in a valid format. This parameter is passed uninitialized; any value originally supplied in result will be overwritten.</param>
381public static bool TryParse(ReadOnlySpan<byte> utf8Text, out Half result) => TryParse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider: null, out result);
404/// Tries to parse a <see cref="Half"/> from a <see cref="ReadOnlySpan{Char}"/> with the given <see cref="NumberStyles"/> and <see cref="IFormatProvider"/>.
411public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out Half result)
543public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
549public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
2212/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" />
2213public static Half Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, DefaultParseStyle, provider);
2215/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
2216public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out Half result) => TryParse(s, DefaultParseStyle, provider, out result);
2315/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" />
2316public static Half Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Float | NumberStyles.AllowThousands, IFormatProvider? provider = null)
2322/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
2323public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out Half result)
2329/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" />
2330public static Half Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider);
2332/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" />
2333public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out Half result) => TryParse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider, out result);
src\libraries\System.Private.CoreLib\src\System\Int128.cs (22)
118public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
124public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
141public static Int128 Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null)
149public static bool TryParse(ReadOnlySpan<char> s, out Int128 result) => TryParse(s, NumberStyles.Integer, provider: null, out result);
155public static bool TryParse(ReadOnlySpan<byte> utf8Text, out Int128 result) => TryParse(utf8Text, NumberStyles.Integer, provider: null, out result);
169public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out Int128 result)
751/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
752static bool IBinaryInteger<Int128>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out Int128 value)
833/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
834static bool IBinaryInteger<Int128>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out Int128 value)
2047/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" />
2048public static Int128 Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Integer, provider);
2050/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
2051public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out Int128 result) => TryParse(s, NumberStyles.Integer, provider, out result);
2108/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" />
2109public static Int128 Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null)
2115/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
2116public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out Int128 result)
2122/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" />
2123public static Int128 Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Integer, provider);
2125/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" />
2126public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out Int128 result) => TryParse(utf8Text, NumberStyles.Integer, provider, out result);
src\libraries\System.Private.CoreLib\src\System\Int16.cs (22)
118public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
124public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
141public static short Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null)
149public static bool TryParse(ReadOnlySpan<char> s, out short result) => TryParse(s, NumberStyles.Integer, provider: null, out result);
155public static bool TryParse(ReadOnlySpan<byte> utf8Text, out short result) => TryParse(utf8Text, NumberStyles.Integer, provider: null, out result);
169public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out short result)
299/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
300static bool IBinaryInteger<short>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out short value)
374/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
375static bool IBinaryInteger<short>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out short value)
1334/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" />
1335public static short Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Integer, provider);
1337/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
1338public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out short result) => TryParse(s, NumberStyles.Integer, provider, out result);
1371/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" />
1372public static short Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null)
1378/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
1379public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out short result)
1385/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" />
1386public static short Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Integer, provider);
1388/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" />
1389public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out short result) => TryParse(utf8Text, NumberStyles.Integer, provider, out result);
src\libraries\System.Private.CoreLib\src\System\Int32.cs (22)
134public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
140public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
157public static int Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null)
165public static bool TryParse(ReadOnlySpan<char> s, out int result) => TryParse(s, NumberStyles.Integer, provider: null, out result);
171public static bool TryParse(ReadOnlySpan<byte> utf8Text, out int result) => TryParse(utf8Text, NumberStyles.Integer, provider: null, out result);
185public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out int result)
319/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
320static bool IBinaryInteger<int>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out int value)
401/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
402static bool IBinaryInteger<int>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out int value)
1400/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" />
1401public static int Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Integer, provider);
1403/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
1404public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out int result) => TryParse(s, NumberStyles.Integer, provider, out result);
1437/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" />
1438public static int Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null)
1444/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
1445public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out int result)
1451/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" />
1452public static int Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Integer, provider);
1454/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" />
1455public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out int result) => TryParse(utf8Text, NumberStyles.Integer, provider, out result);
src\libraries\System.Private.CoreLib\src\System\Int64.cs (22)
131public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
137public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
154public static long Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null)
162public static bool TryParse(ReadOnlySpan<char> s, out long result) => TryParse(s, NumberStyles.Integer, provider: null, out result);
168public static bool TryParse(ReadOnlySpan<byte> utf8Text, out long result) => TryParse(utf8Text, NumberStyles.Integer, provider: null, out result);
182public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out long result)
316/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
317static bool IBinaryInteger<long>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out long value)
398/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
399static bool IBinaryInteger<long>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out long value)
1403/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" />
1404public static long Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Integer, provider);
1406/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
1407public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out long result) => TryParse(s, NumberStyles.Integer, provider, out result);
1440/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" />
1441public static long Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null)
1447/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
1448public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out long result)
1454/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" />
1455public static long Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Integer, provider);
1457/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" />
1458public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out long result) => TryParse(utf8Text, NumberStyles.Integer, provider, out result);
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (20)
229public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) =>
233public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) =>
240public static nint Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => (nint)nint_t.Parse(s, provider);
241public static nint Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) => (nint)nint_t.Parse(s, style, provider);
262public static bool TryParse(ReadOnlySpan<char> s, out nint result)
272public static bool TryParse(ReadOnlySpan<byte> utf8Text, out nint result)
283public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out nint result)
289public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out nint result)
339/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
340static bool IBinaryInteger<nint>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out nint value)
421/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
422static bool IBinaryInteger<nint>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out nint value)
1430/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" />
1431public static nint Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) => (nint)nint_t.Parse(utf8Text, style, provider);
1433/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
1434public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out nint result)
1440/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" />
1441public static nint Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => (nint)nint_t.Parse(utf8Text, provider);
1443/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" />
1444public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out nint result)
src\libraries\System.Private.CoreLib\src\System\IO\File.cs (11)
656/// include a UTF-8 identifier, such as a byte order mark, at the beginning of a file, use the <see cref="WriteAllText(string, ReadOnlySpan{char}, Encoding)"/> method.
658public static void WriteAllText(string path, ReadOnlySpan<char> contents)
687public static void WriteAllText(string path, ReadOnlySpan<char> contents, Encoding encoding)
758public static void WriteAllBytes(string path, ReadOnlySpan<byte> bytes)
808public static void AppendAllBytes(string path, ReadOnlySpan<byte> bytes)
970public static void AppendAllText(string path, ReadOnlySpan<char> contents)
1003public static void AppendAllText(string path, ReadOnlySpan<char> contents, Encoding encoding)
1504private static void WriteToFile(string path, FileMode mode, ReadOnlySpan<char> contents, Encoding encoding)
1506ReadOnlySpan<byte> preamble = encoding.GetPreamble();
1540ReadOnlySpan<char> toEncode = contents.Slice(0, Math.Min(contents.Length, ChunkSize));
1611private static long GetPreallocationSize(FileMode mode, ReadOnlySpan<char> contents, Encoding encoding, int preambleSize)
src\libraries\System.Private.CoreLib\src\System\IO\FileStatus.Unix.cs (25)
148internal bool IsReadOnly(ReadOnlySpan<char> path, bool continueOnError = false)
154internal bool IsFileSystemEntryHidden(ReadOnlySpan<char> path, ReadOnlySpan<char> fileName)
171internal static bool IsNameHidden(ReadOnlySpan<char> fileName) => fileName.StartsWith('.');
175internal bool IsDirectory(ReadOnlySpan<char> path, bool continueOnError = false)
181internal bool IsSymbolicLink(ReadOnlySpan<char> path, bool continueOnError = false)
187internal FileAttributes GetAttributes(ReadOnlySpan<char> path, ReadOnlySpan<char> fileName, bool continueOnError = false)
193private FileAttributes GetAttributes(SafeFileHandle? handle, ReadOnlySpan<char> path, ReadOnlySpan<char> fileName, bool continueOnError = false)
285internal bool GetExists(ReadOnlySpan<char> path, bool asDirectory)
291internal DateTimeOffset GetCreationTime(ReadOnlySpan<char> path, bool continueOnError = false)
297private DateTimeOffset GetCreationTime(SafeFileHandle? handle, ReadOnlySpan<char> path, bool continueOnError = false)
315internal DateTimeOffset GetLastAccessTime(ReadOnlySpan<char> path, bool continueOnError = false)
321private DateTimeOffset GetLastAccessTime(SafeFileHandle? handle, ReadOnlySpan<char> path, bool continueOnError = false)
340internal DateTimeOffset GetLastWriteTime(ReadOnlySpan<char> path, bool continueOnError = false)
346private DateTimeOffset GetLastWriteTime(SafeFileHandle? handle, ReadOnlySpan<char> path, bool continueOnError = false)
446internal long GetLength(ReadOnlySpan<char> path, bool continueOnError = false)
455internal UnixFileMode GetUnixFileMode(ReadOnlySpan<char> path, bool continueOnError = false)
461private UnixFileMode GetUnixFileMode(SafeFileHandle? handle, ReadOnlySpan<char> path, bool continueOnError = false)
493internal void RefreshCaches(ReadOnlySpan<char> path)
498internal void RefreshCaches(SafeFileHandle? handle, ReadOnlySpan<char> path)
553internal void EnsureCachesInitialized(ReadOnlySpan<char> path, bool continueOnError = false)
558internal void EnsureCachesInitialized(SafeFileHandle? handle, ReadOnlySpan<char> path, bool continueOnError = false)
572private void ThrowOnCacheInitializationError(ReadOnlySpan<char> path)
src\libraries\System.Private.CoreLib\src\System\IO\Path.cs (59)
72ReadOnlySpan<char> subpath = path.AsSpan(0, subLength);
149public static ReadOnlySpan<char> GetDirectoryName(ReadOnlySpan<char> path)
152return ReadOnlySpan<char>.Empty;
155return end >= 0 ? path.Slice(0, end) : ReadOnlySpan<char>.Empty;
158internal static int GetDirectoryNameOffset(ReadOnlySpan<char> path)
195public static ReadOnlySpan<char> GetExtension(ReadOnlySpan<char> path)
207return ReadOnlySpan<char>.Empty;
212return ReadOnlySpan<char>.Empty;
226ReadOnlySpan<char> result = GetFileName(path.AsSpan());
236public static ReadOnlySpan<char> GetFileName(ReadOnlySpan<char> path)
256ReadOnlySpan<char> result = GetFileNameWithoutExtension(path.AsSpan());
266public static ReadOnlySpan<char> GetFileNameWithoutExtension(ReadOnlySpan<char> path)
268ReadOnlySpan<char> fileName = GetFileName(path);
311public static bool IsPathFullyQualified(ReadOnlySpan<char> path)
329public static bool HasExtension(ReadOnlySpan<char> path)
374return Combine((ReadOnlySpan<string>)paths);
382public static string Combine(params ReadOnlySpan<string> paths)
446public static string Join(ReadOnlySpan<char> path1, ReadOnlySpan<char> path2)
456public static string Join(ReadOnlySpan<char> path1, ReadOnlySpan<char> path2, ReadOnlySpan<char> path3)
470public static string Join(ReadOnlySpan<char> path1, ReadOnlySpan<char> path2, ReadOnlySpan<char> path3, ReadOnlySpan<char> path4)
532return Join((ReadOnlySpan<string?>)paths);
540public static string Join(params ReadOnlySpan<string?> paths)
583public static bool TryJoin(ReadOnlySpan<char> path1, ReadOnlySpan<char> path2, Span<char> destination, out int charsWritten)
591ref ReadOnlySpan<char> pathToUse = ref path1.Length == 0 ? ref path2 : ref path1;
617public static bool TryJoin(ReadOnlySpan<char> path1, ReadOnlySpan<char> path2, ReadOnlySpan<char> path3, Span<char> destination, out int charsWritten)
703private static string JoinInternal(ReadOnlySpan<char> first, ReadOnlySpan<char> second)
714private static string JoinInternal(ReadOnlySpan<char> first, ReadOnlySpan<char> second, ReadOnlySpan<char> third)
730private static unsafe string JoinInternal(ReadOnlySpan<char> first, ReadOnlySpan<char> second, ReadOnlySpan<char> third, ReadOnlySpan<char> fourth)
750ReadOnlySpan<char> first = *(ReadOnlySpan<char>*)state.ReadOnlySpanPtr1;
760ReadOnlySpan<char> second = *(ReadOnlySpan<char>*)state.ReadOnlySpanPtr2;
770ReadOnlySpan<char> third = *(ReadOnlySpan<char>*)state.ReadOnlySpanPtr3;
780ReadOnlySpan<char> fourth = *(ReadOnlySpan<char>*)state.ReadOnlySpanPtr4;
792private static ReadOnlySpan<byte> Base32Char => "abcdefghijklmnopqrstuvwxyz012345"u8;
957public static ReadOnlySpan<char> TrimEndingDirectorySeparator(ReadOnlySpan<char> path) => PathInternal.TrimEndingDirectorySeparator(path);
962public static bool EndsInDirectorySeparator(ReadOnlySpan<char> path) => PathInternal.EndsInDirectorySeparator(path);
src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.cs (14)
160public virtual void Write(ReadOnlySpan<char> buffer)
321/// Writes a formatted string to the text stream, using the same semantics as <see cref="string.Format(string, ReadOnlySpan{object?})"/>.
325public virtual void Write([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg)
364public virtual void WriteLine(ReadOnlySpan<char> buffer)
528/// Writes out a formatted string and a new line to the text stream, using the same semantics as <see cref="string.Format(string, ReadOnlySpan{object?})"/>.
532public virtual void WriteLine([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg)
707public override void Write(ReadOnlySpan<char> buffer) { }
723public override void Write([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg) { }
733public override void WriteLine(ReadOnlySpan<char> buffer) { }
749public override void WriteLine([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg) { }
815public override void Write(ReadOnlySpan<char> buffer) => _out.Write(buffer);
863public override void Write([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg) => _out.Write(format, arg);
881public override void WriteLine(ReadOnlySpan<char> buffer) => _out.WriteLine(buffer);
926public override void WriteLine([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg) => _out.WriteLine(format, arg);
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (315)
97public static ReadOnlySpan<char> AsSpan(this string? text)
114public static ReadOnlySpan<char> AsSpan(this string? text, int start)
129/// <summary>Creates a new <see cref="ReadOnlySpan{Char}"/> over a portion of the target string from a specified position to the end of the string.</summary>
134public static ReadOnlySpan<char> AsSpan(this string? text, Index startIndex)
155/// <summary>Creates a new <see cref="ReadOnlySpan{Char}"/> over a portion of a target string using the range start and end indexes.</summary>
162public static ReadOnlySpan<char> AsSpan(this string? text, Range range)
192public static ReadOnlySpan<char> AsSpan(this string? text, int start, int length)
315/// <inheritdoc cref="Contains{T}(ReadOnlySpan{T}, T)"/>
319Contains((ReadOnlySpan<T>)span, value);
328public static unsafe bool Contains<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>?
373public static bool Contains<T>(this ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer = null) =>
376/// <inheritdoc cref="ContainsAny{T}(ReadOnlySpan{T}, T, T)"/>
380ContainsAny((ReadOnlySpan<T>)span, value0, value1);
382/// <inheritdoc cref="ContainsAny{T}(ReadOnlySpan{T}, T, T, T)"/>
386ContainsAny((ReadOnlySpan<T>)span, value0, value1, value2);
388/// <inheritdoc cref="ContainsAny{T}(ReadOnlySpan{T}, ReadOnlySpan{T})"/>
391public static bool ContainsAny<T>(this Span<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>? =>
392ContainsAny((ReadOnlySpan<T>)span, values);
394/// <inheritdoc cref="ContainsAny{T}(ReadOnlySpan{T}, SearchValues{T})"/>
398ContainsAny((ReadOnlySpan<T>)span, values);
400/// <inheritdoc cref="ContainsAny(ReadOnlySpan{char}, SearchValues{string})"/>
404ContainsAny((ReadOnlySpan<char>)span, values);
406/// <inheritdoc cref="ContainsAnyExcept{T}(ReadOnlySpan{T}, T)"/>
410ContainsAnyExcept((ReadOnlySpan<T>)span, value);
412/// <inheritdoc cref="ContainsAnyExcept{T}(ReadOnlySpan{T}, T, T)"/>
416ContainsAnyExcept((ReadOnlySpan<T>)span, value0, value1);
418/// <inheritdoc cref="ContainsAnyExcept{T}(ReadOnlySpan{T}, T, T, T)"/>
422ContainsAnyExcept((ReadOnlySpan<T>)span, value0, value1, value2);
424/// <inheritdoc cref="ContainsAnyExcept{T}(ReadOnlySpan{T}, ReadOnlySpan{T})"/>
427public static bool ContainsAnyExcept<T>(this Span<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>? =>
428ContainsAnyExcept((ReadOnlySpan<T>)span, values);
430/// <inheritdoc cref="ContainsAnyExcept{T}(ReadOnlySpan{T}, SearchValues{T})"/>
434ContainsAnyExcept((ReadOnlySpan<T>)span, values);
436/// <inheritdoc cref="ContainsAnyInRange{T}(ReadOnlySpan{T}, T, T)"/>
440ContainsAnyInRange((ReadOnlySpan<T>)span, lowInclusive, highInclusive);
442/// <inheritdoc cref="ContainsAnyExceptInRange{T}(ReadOnlySpan{T}, T, T)"/>
446ContainsAnyExceptInRange((ReadOnlySpan<T>)span, lowInclusive, highInclusive);
455public static bool ContainsAny<T>(this ReadOnlySpan<T> span, T value0, T value1) where T : IEquatable<T>? =>
466public static bool ContainsAny<T>(this ReadOnlySpan<T> span, T value0, T value1, IEqualityComparer<T>? comparer = null) =>
477public static bool ContainsAny<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2) where T : IEquatable<T>? =>
489public static bool ContainsAny<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2, IEqualityComparer<T>? comparer = null) =>
498public static bool ContainsAny<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>? =>
508public static bool ContainsAny<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values, IEqualityComparer<T>? comparer = null) =>
517public static bool ContainsAny<T>(this ReadOnlySpan<T> span, SearchValues<T> values) where T : IEquatable<T>?
533public static bool ContainsAny(this ReadOnlySpan<char> span, SearchValues<string> values) =>
546public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>? =>
560public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer = null) =>
574public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1) where T : IEquatable<T>? =>
589public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, IEqualityComparer<T>? comparer = null) =>
604public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2) where T : IEquatable<T>? =>
620public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2, IEqualityComparer<T>? comparer = null) =>
633public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>? =>
647public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values, IEqualityComparer<T>? comparer = null) =>
660public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, SearchValues<T> values) where T : IEquatable<T>?
677public static bool ContainsAnyInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> =>
691public static bool ContainsAnyExceptInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> =>
702IndexOf((ReadOnlySpan<T>)span, value);
711public static int IndexOf<T>(this Span<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>? =>
712IndexOf((ReadOnlySpan<T>)span, value);
722LastIndexOf((ReadOnlySpan<T>)span, value);
731public static int LastIndexOf<T>(this Span<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>? =>
732LastIndexOf((ReadOnlySpan<T>)span, value);
744IndexOfAnyExcept((ReadOnlySpan<T>)span, value);
757IndexOfAnyExcept((ReadOnlySpan<T>)span, value0, value1);
771IndexOfAnyExcept((ReadOnlySpan<T>)span, value0, value1, value2);
782public static int IndexOfAnyExcept<T>(this Span<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>? =>
783IndexOfAnyExcept((ReadOnlySpan<T>)span, values);
796IndexOfAnyExcept((ReadOnlySpan<T>)span, values);
807public static unsafe int IndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>?
854public static unsafe int IndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer = null)
891static int IndexOfAnyExceptDefaultComparer(ReadOnlySpan<T> span, T value)
907static int IndexOfAnyExceptComparer(ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer)
934public static unsafe int IndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1) where T : IEquatable<T>?
970public static unsafe int IndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, IEqualityComparer<T>? comparer = null)
995static int IndexOfAnyExceptDefaultComparer(ReadOnlySpan<T> span, T value0, T value1)
1012static int IndexOfAnyExceptComparer(ReadOnlySpan<T> span, T value0, T value1, IEqualityComparer<T>? comparer)
1041public static unsafe int IndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2) where T : IEquatable<T>?
1080public static unsafe int IndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2, IEqualityComparer<T>? comparer = null)
1107static int IndexOfAnyExceptDefaultComparer(ReadOnlySpan<T> span, T value0, T value1, T value2)
1125static int IndexOfAnyExceptComparer(ReadOnlySpan<T> span, T value0, T value1, T value2, IEqualityComparer<T>? comparer)
1144private static unsafe int IndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2, T value3) where T : IEquatable<T>?
1181public static unsafe int IndexOfAnyExcept<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>?
1264public static int IndexOfAnyExcept<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values, IEqualityComparer<T>? comparer = null)
1302public static int IndexOfAnyExcept<T>(this ReadOnlySpan<T> span, SearchValues<T> values) where T : IEquatable<T>?
1322LastIndexOfAnyExcept((ReadOnlySpan<T>)span, value);
1335LastIndexOfAnyExcept((ReadOnlySpan<T>)span, value0, value1);
1349LastIndexOfAnyExcept((ReadOnlySpan<T>)span, value0, value1, value2);
1360public static int LastIndexOfAnyExcept<T>(this Span<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>? =>
1361LastIndexOfAnyExcept((ReadOnlySpan<T>)span, values);
1374LastIndexOfAnyExcept((ReadOnlySpan<T>)span, values);
1385public static unsafe int LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>?
1432public static unsafe int LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer = null)
1469static int LastIndexOfAnyExceptDefaultComparer(ReadOnlySpan<T> span, T value)
1485static int LastIndexOfAnyExceptComparer(ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer)
1512public static unsafe int LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1) where T : IEquatable<T>?
1548public static unsafe int LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, IEqualityComparer<T>? comparer = null)
1573static int LastIndexOfAnyExceptDefaultComparer(ReadOnlySpan<T> span, T value0, T value1)
1590static int LastIndexOfAnyExceptComparer(ReadOnlySpan<T> span, T value0, T value1, IEqualityComparer<T>? comparer)
1619public static unsafe int LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2) where T : IEquatable<T>?
1658public static unsafe int LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2, IEqualityComparer<T>? comparer = null)
1685static int LastIndexOfAnyExceptDefaultComparer(ReadOnlySpan<T> span, T value0, T value1, T value2)
1703static int LastIndexOfAnyExceptComparer(ReadOnlySpan<T> span, T value0, T value1, T value2, IEqualityComparer<T>? comparer)
1723private static unsafe int LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2, T value3) where T : IEquatable<T>?
1760public static unsafe int LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>?
1844public static int LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values, IEqualityComparer<T>? comparer = null)
1882public static int LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, SearchValues<T> values) where T : IEquatable<T>?
1892/// <inheritdoc cref="IndexOfAnyInRange{T}(ReadOnlySpan{T}, T, T)"/>
1896IndexOfAnyInRange((ReadOnlySpan<T>)span, lowInclusive, highInclusive);
1908public static int IndexOfAnyInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>
1957/// <inheritdoc cref="IndexOfAnyExceptInRange{T}(ReadOnlySpan{T}, T, T)"/>
1961IndexOfAnyExceptInRange((ReadOnlySpan<T>)span, lowInclusive, highInclusive);
1973public static int IndexOfAnyExceptInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>
2022/// <inheritdoc cref="LastIndexOfAnyInRange{T}(ReadOnlySpan{T}, T, T)"/>
2026LastIndexOfAnyInRange((ReadOnlySpan<T>)span, lowInclusive, highInclusive);
2038public static int LastIndexOfAnyInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>
2087/// <inheritdoc cref="LastIndexOfAnyExceptInRange{T}(ReadOnlySpan{T}, T, T)"/>
2091LastIndexOfAnyExceptInRange((ReadOnlySpan<T>)span, lowInclusive, highInclusive);
2103public static int LastIndexOfAnyExceptInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>
2166public static bool SequenceEqual<T>(this Span<T> span, ReadOnlySpan<T> other) where T : IEquatable<T>? =>
2167SequenceEqual((ReadOnlySpan<T>)span, other);
2173public static int SequenceCompareTo<T>(this Span<T> span, ReadOnlySpan<T> other) where T : IComparable<T>? =>
2174SequenceCompareTo((ReadOnlySpan<T>)span, other);
2182public static unsafe int IndexOf<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>?
2221public static unsafe int IndexOf<T>(this ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer = null)
2253static int IndexOfDefaultComparer(ReadOnlySpan<T> span, T value)
2269static int IndexOfComparer(ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer)
2291public static unsafe int IndexOf<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>?
2320public static unsafe int IndexOf<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value, IEqualityComparer<T>? comparer = null)
2340static int IndexOfComparer(ReadOnlySpan<T> span, ReadOnlySpan<T> value, IEqualityComparer<T>? comparer)
2377public static unsafe int LastIndexOf<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>?
2421public static unsafe int LastIndexOf<T>(this ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer = null)
2458static int LastIndexOfDefaultComparer(ReadOnlySpan<T> span, T value)
2474static int LastIndexOfComparer(ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer)
2497public static unsafe int LastIndexOf<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>?
2529public static unsafe int LastIndexOf<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value, IEqualityComparer<T>? comparer = null)
2552static int LastIndexOfComparer(ReadOnlySpan<T> span, ReadOnlySpan<T> value, IEqualityComparer<T>? comparer)
2589IndexOfAny((ReadOnlySpan<T>)span, value0, value1);
2601IndexOfAny((ReadOnlySpan<T>)span, value0, value1, value2);
2610public static int IndexOfAny<T>(this Span<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>? =>
2611IndexOfAny((ReadOnlySpan<T>)span, values);
2621IndexOfAny((ReadOnlySpan<T>)span, values);
2631IndexOfAny((ReadOnlySpan<char>)span, values);
2640public static unsafe int IndexOfAny<T>(this ReadOnlySpan<T> span, T value0, T value1) where T : IEquatable<T>?
2673public static unsafe int IndexOfAny<T>(this ReadOnlySpan<T> span, T value0, T value1, IEqualityComparer<T>? comparer = null)
2698static int IndexOfAnyDefaultComparer(ReadOnlySpan<T> span, T value0, T value1)
2715static int IndexOfAnyComparer(ReadOnlySpan<T> span, T value0, T value1, IEqualityComparer<T>? comparer)
2740public static unsafe int IndexOfAny<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2) where T : IEquatable<T>?
2776public static unsafe int IndexOfAny<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2, IEqualityComparer<T>? comparer = null)
2803static int IndexOfAnyDefaultComparer(ReadOnlySpan<T> span, T value0, T value1, T value2)
2821static int IndexOfAnyComparer(ReadOnlySpan<T> span, T value0, T value1, T value2, IEqualityComparer<T>? comparer)
2845public static unsafe int IndexOfAny<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>?
2945public static int IndexOfAny<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values, IEqualityComparer<T>? comparer = null)
2983public static int IndexOfAny<T>(this ReadOnlySpan<T> span, SearchValues<T> values) where T : IEquatable<T>?
3000public static int IndexOfAny(this ReadOnlySpan<char> span, SearchValues<string> values)
3019LastIndexOfAny((ReadOnlySpan<T>)span, value0, value1);
3031LastIndexOfAny((ReadOnlySpan<T>)span, value0, value1, value2);
3040public static int LastIndexOfAny<T>(this Span<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>? =>
3041LastIndexOfAny((ReadOnlySpan<T>)span, values);
3051LastIndexOfAny((ReadOnlySpan<T>)span, values);
3060public static unsafe int LastIndexOfAny<T>(this ReadOnlySpan<T> span, T value0, T value1) where T : IEquatable<T>?
3093public static unsafe int LastIndexOfAny<T>(this ReadOnlySpan<T> span, T value0, T value1, IEqualityComparer<T>? comparer = null)
3118static int LastIndexOfAnyDefaultComparer(ReadOnlySpan<T> span, T value0, T value1)
3135static int LastIndexOfAnyComparer(ReadOnlySpan<T> span, T value0, T value1, IEqualityComparer<T>? comparer)
3161public static unsafe int LastIndexOfAny<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2) where T : IEquatable<T>?
3197public static unsafe int LastIndexOfAny<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2, IEqualityComparer<T>? comparer = null)
3224static int LastIndexOfAnyDefaultComparer(ReadOnlySpan<T> span, T value0, T value1, T value2)
3242static int LastIndexOfAnyComparer(ReadOnlySpan<T> span, T value0, T value1, T value2, IEqualityComparer<T>? comparer)
3267public static unsafe int LastIndexOfAny<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>?
3367public static int LastIndexOfAny<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values, IEqualityComparer<T>? comparer = null)
3404public static int LastIndexOfAny<T>(this ReadOnlySpan<T> span, SearchValues<T> values) where T : IEquatable<T>?
3419public static unsafe bool SequenceEqual<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other) where T : IEquatable<T>?
3444public static bool SequenceEqual<T>(this Span<T> span, ReadOnlySpan<T> other, IEqualityComparer<T>? comparer = null) =>
3445SequenceEqual((ReadOnlySpan<T>)span, other, comparer);
3454public static unsafe bool SequenceEqual<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other, IEqualityComparer<T>? comparer = null)
3505public static int SequenceCompareTo<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other) where T : IComparable<T>?
3530public static int SequenceCompareTo<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other, IComparer<T>? comparer = null)
3553public static bool StartsWith<T>(this Span<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>? =>
3554StartsWith((ReadOnlySpan<T>)span, value);
3561public static unsafe bool StartsWith<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>?
3583public static bool StartsWith<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value, IEqualityComparer<T>? comparer = null) =>
3593public static bool EndsWith<T>(this Span<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>? =>
3594EndsWith((ReadOnlySpan<T>)span, value);
3601public static unsafe bool EndsWith<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>?
3628public static bool EndsWith<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value, IEqualityComparer<T>? comparer = null) =>
3640public static bool StartsWith<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>? =>
3652public static bool StartsWith<T>(this ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer = null) =>
3664public static bool EndsWith<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>? =>
3676public static bool EndsWith<T>(this ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer = null) =>
4076public static bool Overlaps<T>(this Span<T> span, ReadOnlySpan<T> other) =>
4077Overlaps((ReadOnlySpan<T>)span, other);
4084public static bool Overlaps<T>(this Span<T> span, ReadOnlySpan<T> other, out int elementOffset) =>
4085Overlaps((ReadOnlySpan<T>)span, other, out elementOffset);
4090public static unsafe bool Overlaps<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other)
4108public static unsafe bool Overlaps<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other, out int elementOffset)
4155BinarySearch((ReadOnlySpan<T>)span, comparable);
4179BinarySearch((ReadOnlySpan<T>)span, comparable);
4204BinarySearch((ReadOnlySpan<T>)span, value, comparer);
4207/// Searches an entire sorted <see cref="ReadOnlySpan{T}"/> for a value
4211/// <param name="span">The sorted <see cref="ReadOnlySpan{T}"/> to search.</param>
4217/// no larger element, the bitwise complement of <see cref="ReadOnlySpan{T}.Length"/>.
4224this ReadOnlySpan<T> span, IComparable<T> comparable) =>
4228/// Searches an entire sorted <see cref="ReadOnlySpan{T}"/> for a value
4233/// <param name="span">The sorted <see cref="ReadOnlySpan{T}"/> to search.</param>
4239/// no larger element, the bitwise complement of <see cref="ReadOnlySpan{T}.Length"/>.
4246this ReadOnlySpan<T> span, TComparable comparable)
4253/// Searches an entire sorted <see cref="ReadOnlySpan{T}"/> for the specified <paramref name="value"/>
4258/// <param name="span">The sorted <see cref="ReadOnlySpan{T}"/> to search.</param>
4265/// no larger element, the bitwise complement of <see cref="ReadOnlySpan{T}.Length"/>.
4272this ReadOnlySpan<T> span, T value, TComparer comparer)
4580public static unsafe void Replace<T>(this ReadOnlySpan<T> source, Span<T> destination, T oldValue, T newValue) where T : IEquatable<T>?
4664public static unsafe void Replace<T>(this ReadOnlySpan<T> source, Span<T> destination, T oldValue, T newValue, IEqualityComparer<T>? comparer = null)
4736static void ReplaceDefaultComparer(ReadOnlySpan<T> source, Span<T> destination, T oldValue, T newValue)
4747static void ReplaceComparer(ReadOnlySpan<T> source, Span<T> destination, T oldValue, T newValue, IEqualityComparer<T>? comparer)
4772public static void ReplaceAny<T>(this ReadOnlySpan<T> source, Span<T> destination, SearchValues<T> values, T newValue) where T : IEquatable<T>?
4822public static void ReplaceAnyExcept<T>(this ReadOnlySpan<T> source, Span<T> destination, SearchValues<T> values, T newValue) where T : IEquatable<T>?
4863public static int CommonPrefixLength<T>(this Span<T> span, ReadOnlySpan<T> other) =>
4864CommonPrefixLength((ReadOnlySpan<T>)span, other);
4873public static int CommonPrefixLength<T>(this Span<T> span, ReadOnlySpan<T> other, IEqualityComparer<T>? comparer) =>
4874CommonPrefixLength((ReadOnlySpan<T>)span, other, comparer);
4881public static unsafe int CommonPrefixLength<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other)
4929public static int CommonPrefixLength<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other, IEqualityComparer<T>? comparer)
4957private static void SliceLongerSpanToMatchShorterLength<T>(ref ReadOnlySpan<T> span, ref ReadOnlySpan<T> other)
4978public static SpanSplitEnumerator<T> Split<T>(this ReadOnlySpan<T> source, T separator) where T : IEquatable<T> =>
4989public static SpanSplitEnumerator<T> Split<T>(this ReadOnlySpan<T> source, ReadOnlySpan<T> separator) where T : IEquatable<T> =>
5004/// or when <see cref="SplitAny(ReadOnlySpan{char}, Span{Range}, ReadOnlySpan{char}, StringSplitOptions)"/>
5007public static SpanSplitEnumerator<T> SplitAny<T>(this ReadOnlySpan<T> source, [UnscopedRef] params ReadOnlySpan<T> separators) where T : IEquatable<T> =>
5019/// Unlike <see cref="SplitAny{T}(ReadOnlySpan{T}, ReadOnlySpan{T})"/>, the <paramref name="separators"/> is not checked for being empty.
5021/// whereas <see cref="SplitAny{T}(ReadOnlySpan{T}, ReadOnlySpan{T})"/> will use all Unicode whitespace characters as separators if <paramref name="separators"/> is
5024public static SpanSplitEnumerator<T> SplitAny<T>(this ReadOnlySpan<T> source, SearchValues<T> separators) where T : IEquatable<T> =>
5028/// Parses the source <see cref="ReadOnlySpan{Char}"/> for the specified <paramref name="separator"/>, populating the <paramref name="destination"/> span
5054public static int Split(this ReadOnlySpan<char> source, Span<Range> destination, char separator, StringSplitOptions options = StringSplitOptions.None)
5062/// Parses the source <see cref="ReadOnlySpan{Char}"/> for the specified <paramref name="separator"/>, populating the <paramref name="destination"/> span
5088public static int Split(this ReadOnlySpan<char> source, Span<Range> destination, ReadOnlySpan<char> separator, StringSplitOptions options = StringSplitOptions.None)
5118/// Parses the source <see cref="ReadOnlySpan{Char}"/> for one of the specified <paramref name="separators"/>, populating the <paramref name="destination"/> span
5144public static int SplitAny(this ReadOnlySpan<char> source, Span<Range> destination, ReadOnlySpan<char> separators, StringSplitOptions options = StringSplitOptions.None)
5159/// Parses the source <see cref="ReadOnlySpan{Char}"/> for one of the specified <paramref name="separators"/>, populating the <paramref name="destination"/> span
5185public static int SplitAny(this ReadOnlySpan<char> source, Span<Range> destination, ReadOnlySpan<string> separators, StringSplitOptions options = StringSplitOptions.None)
5209ReadOnlySpan<char> source, Span<Range> destination,
5210ReadOnlySpan<char> separatorOrSeparators, ReadOnlySpan<string?> stringSeparators, bool isAny,
5345private static (int StartInclusive, int EndExclusive) TrimSplitEntry(ReadOnlySpan<char> source, int startInclusive, int endExclusive)
5367Count((ReadOnlySpan<T>)span, value);
5375public static unsafe int Count<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>?
5422public static unsafe int Count<T>(this ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer = null)
5459static int CountDefaultComparer(ReadOnlySpan<T> span, T value)
5476static int CountComparer(ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer)
5500public static int Count<T>(this Span<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>? =>
5501Count((ReadOnlySpan<T>)span, value);
5508public static int Count<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>?
5538public static int Count<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value, IEqualityComparer<T>? comparer = null)
5569public static int CountAny<T>(this ReadOnlySpan<T> span, SearchValues<T> values) where T : IEquatable<T>?
5589public static int CountAny<T>(this ReadOnlySpan<T> span, params ReadOnlySpan<T> values) where T : IEquatable<T>?
5613public static int CountAny<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values, IEqualityComparer<T>? comparer = null)
5741return TryWrite(destination, provider, format, out charsWritten, (ReadOnlySpan<object?>)args);
5756public static bool TryWrite(this Span<char> destination, IFormatProvider? provider, CompositeFormat format, out int charsWritten, params ReadOnlySpan<object?> args)
5769private static bool TryWrite<TArg0, TArg1, TArg2>(Span<char> destination, IFormatProvider? provider, CompositeFormat format, out int charsWritten, TArg0 arg0, TArg1 arg1, TArg2 arg2, ReadOnlySpan<object?> args)
5820/// Enables enumerating each split within a <see cref="ReadOnlySpan{T}"/> that has been divided using one or more separators.
5826private readonly ReadOnlySpan<T> _source;
5834private readonly ReadOnlySpan<T> _separatorBuffer;
5852/// <returns>Returns the <see cref="ReadOnlySpan{T}"/> that was provided when creating this enumerator.</returns>
5853public readonly ReadOnlySpan<T> Source => _source;
5860internal SpanSplitEnumerator(ReadOnlySpan<T> source, SearchValues<T> searchValues)
5873internal SpanSplitEnumerator(ReadOnlySpan<T> source, ReadOnlySpan<T> separators)
5890internal SpanSplitEnumerator(ReadOnlySpan<T> source, ReadOnlySpan<T> separator, bool treatAsSingleSeparator)
5902internal SpanSplitEnumerator(ReadOnlySpan<T> source, T separator)
5996/// instance instead of in a <see cref="ReadOnlySpan{Char}"/>.
6240public bool AppendFormatted(scoped ReadOnlySpan<char> value)
6256public bool AppendFormatted(scoped ReadOnlySpan<char> value, int alignment = 0, string? format = null)
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Globalization.cs (29)
17public static bool IsWhiteSpace(this ReadOnlySpan<char> span)
33public static bool Contains(this ReadOnlySpan<char> span, ReadOnlySpan<char> value, StringComparison comparisonType)
46public static bool Equals(this ReadOnlySpan<char> span, ReadOnlySpan<char> other, StringComparison comparisonType)
70internal static bool EqualsOrdinal(this ReadOnlySpan<char> span, ReadOnlySpan<char> value)
80internal static bool EqualsOrdinalIgnoreCase(this ReadOnlySpan<char> span, ReadOnlySpan<char> value)
96public static int CompareTo(this ReadOnlySpan<char> span, ReadOnlySpan<char> other, StringComparison comparisonType)
127public static int IndexOf(this ReadOnlySpan<char> span, ReadOnlySpan<char> value, StringComparison comparisonType)
158public static int LastIndexOf(this ReadOnlySpan<char> span, ReadOnlySpan<char> value, StringComparison comparisonType)
197public static int ToLower(this ReadOnlySpan<char> source, Span<char> destination, CultureInfo? culture)
223public static int ToLowerInvariant(this ReadOnlySpan<char> source, Span<char> destination)
249public static int ToUpper(this ReadOnlySpan<char> source, Span<char> destination, CultureInfo? culture)
275public static int ToUpperInvariant(this ReadOnlySpan<char> source, Span<char> destination)
298public static bool EndsWith(this ReadOnlySpan<char> span, ReadOnlySpan<char> value, StringComparison comparisonType)
322internal static bool EndsWithOrdinalIgnoreCase(this ReadOnlySpan<char> span, ReadOnlySpan<char> value)
336public static bool StartsWith(this ReadOnlySpan<char> span, ReadOnlySpan<char> value, StringComparison comparisonType)
360internal static bool StartsWithOrdinalIgnoreCase(this ReadOnlySpan<char> span, ReadOnlySpan<char> value)
370public static SpanRuneEnumerator EnumerateRunes(this ReadOnlySpan<char> span)
395public static SpanLineEnumerator EnumerateLines(this ReadOnlySpan<char> span)
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Trim.cs (61)
18ReadOnlySpan<T> span = memory.Span;
47ReadOnlySpan<T> span = memory.Span;
102public static ReadOnlySpan<T> Trim<T>(this ReadOnlySpan<T> span, T trimElement) where T : IEquatable<T>?
114public static ReadOnlySpan<T> TrimStart<T>(this ReadOnlySpan<T> span, T trimElement) where T : IEquatable<T>?
122public static ReadOnlySpan<T> TrimEnd<T>(this ReadOnlySpan<T> span, T trimElement) where T : IEquatable<T>?
130private static int ClampStart<T>(ReadOnlySpan<T> span, T trimElement) where T : IEquatable<T>?
164private static int ClampEnd<T>(ReadOnlySpan<T> span, int start, T trimElement) where T : IEquatable<T>?
202public static Memory<T> Trim<T>(this Memory<T> memory, ReadOnlySpan<T> trimElements) where T : IEquatable<T>?
206ReadOnlySpan<T> span = memory.Span;
227public static Memory<T> TrimStart<T>(this Memory<T> memory, ReadOnlySpan<T> trimElements) where T : IEquatable<T>?
249public static Memory<T> TrimEnd<T>(this Memory<T> memory, ReadOnlySpan<T> trimElements) where T : IEquatable<T>?
271public static ReadOnlyMemory<T> Trim<T>(this ReadOnlyMemory<T> memory, ReadOnlySpan<T> trimElements) where T : IEquatable<T>?
275ReadOnlySpan<T> span = memory.Span;
296public static ReadOnlyMemory<T> TrimStart<T>(this ReadOnlyMemory<T> memory, ReadOnlySpan<T> trimElements) where T : IEquatable<T>?
318public static ReadOnlyMemory<T> TrimEnd<T>(this ReadOnlyMemory<T> memory, ReadOnlySpan<T> trimElements) where T : IEquatable<T>?
340public static Span<T> Trim<T>(this Span<T> span, ReadOnlySpan<T> trimElements) where T : IEquatable<T>?
364public static Span<T> TrimStart<T>(this Span<T> span, ReadOnlySpan<T> trimElements) where T : IEquatable<T>?
386public static Span<T> TrimEnd<T>(this Span<T> span, ReadOnlySpan<T> trimElements) where T : IEquatable<T>?
408public static ReadOnlySpan<T> Trim<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> trimElements) where T : IEquatable<T>?
432public static ReadOnlySpan<T> TrimStart<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> trimElements) where T : IEquatable<T>?
454public static ReadOnlySpan<T> TrimEnd<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> trimElements) where T : IEquatable<T>?
475private static int ClampStart<T>(ReadOnlySpan<T> span, ReadOnlySpan<T> trimElements) where T : IEquatable<T>?
496private static int ClampEnd<T>(ReadOnlySpan<T> span, int start, ReadOnlySpan<T> trimElements) where T : IEquatable<T>?
519ReadOnlySpan<char> span = memory.Span;
545ReadOnlySpan<char> span = memory.Span;
570public static ReadOnlySpan<char> Trim(this ReadOnlySpan<char> span)
581static ReadOnlySpan<char> TrimFallback(ReadOnlySpan<char> span)
608public static ReadOnlySpan<char> TrimStart(this ReadOnlySpan<char> span)
626public static ReadOnlySpan<char> TrimEnd(this ReadOnlySpan<char> span)
645public static ReadOnlySpan<char> Trim(this ReadOnlySpan<char> span, char trimChar)
673public static ReadOnlySpan<char> TrimStart(this ReadOnlySpan<char> span, char trimChar)
692public static ReadOnlySpan<char> TrimEnd(this ReadOnlySpan<char> span, char trimChar)
713public static ReadOnlySpan<char> Trim(this ReadOnlySpan<char> span, ReadOnlySpan<char> trimChars)
723public static ReadOnlySpan<char> TrimStart(this ReadOnlySpan<char> span, ReadOnlySpan<char> trimChars)
756public static ReadOnlySpan<char> TrimEnd(this ReadOnlySpan<char> span, ReadOnlySpan<char> trimChars)
839private static int ClampStart(ReadOnlySpan<char> span)
859private static int ClampEnd(ReadOnlySpan<char> span, int start)
src\libraries\System.Private.CoreLib\src\System\Number.Formatting.cs (27)
304private static ReadOnlySpan<byte> TwoDigitsCharsAsBytes =>
315private static ReadOnlySpan<byte> TwoDigitsBytes =>
333public static unsafe string FormatDecimal(decimal value, ReadOnlySpan<char> format, NumberFormatInfo info)
359public static unsafe bool TryFormatDecimal<TChar>(decimal value, ReadOnlySpan<char> format, NumberFormatInfo info, Span<TChar> destination, out int charsWritten) where TChar : unmanaged, IUtfChar<TChar>
538public static bool TryFormatFloat<TNumber, TChar>(TNumber value, ReadOnlySpan<char> format, NumberFormatInfo info, Span<TChar> destination, out int charsWritten)
561private static unsafe string? FormatFloat<TNumber, TChar>(ref ValueListBuilder<TChar> vlb, TNumber value, ReadOnlySpan<char> format, NumberFormatInfo info)
688ReadOnlySpan<char> formatSpan = format;
734public static bool TryFormatInt32<TChar>(int value, int hexMask, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten) where TChar : unmanaged, IUtfChar<TChar>
746static unsafe bool TryFormatInt32Slow(int value, int hexMask, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten)
804ReadOnlySpan<char> formatSpan = format;
848public static bool TryFormatUInt32<TChar>(uint value, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten) where TChar : unmanaged, IUtfChar<TChar>
860static unsafe bool TryFormatUInt32Slow(uint value, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten)
918ReadOnlySpan<char> formatSpan = format;
964public static bool TryFormatInt64<TChar>(long value, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten) where TChar : unmanaged, IUtfChar<TChar>
978static unsafe bool TryFormatInt64Slow(long value, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten)
1036ReadOnlySpan<char> formatSpan = format;
1080public static bool TryFormatUInt64<TChar>(ulong value, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten) where TChar : unmanaged, IUtfChar<TChar>
1092static unsafe bool TryFormatUInt64Slow(ulong value, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten)
1150ReadOnlySpan<char> formatSpan = format;
1197public static bool TryFormatInt128<TChar>(Int128 value, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten) where TChar : unmanaged, IUtfChar<TChar>
1211static unsafe bool TryFormatInt128Slow(Int128 value, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten)
1270ReadOnlySpan<char> formatSpan = format;
1315public static bool TryFormatUInt128<TChar>(UInt128 value, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten) where TChar : unmanaged, IUtfChar<TChar>
1327static unsafe bool TryFormatUInt128Slow(UInt128 value, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten)
1435internal static unsafe bool TryNegativeInt32ToDecStr<TChar>(int value, int digits, ReadOnlySpan<TChar> sNegative, Span<TChar> destination, out int charsWritten) where TChar : unmanaged, IUtfChar<TChar>
1868internal static unsafe bool TryNegativeInt64ToDecStr<TChar>(long value, int digits, ReadOnlySpan<TChar> sNegative, Span<TChar> destination, out int charsWritten) where TChar : unmanaged, IUtfChar<TChar>
2296private static unsafe bool TryNegativeInt128ToDecStr<TChar>(Int128 value, int digits, ReadOnlySpan<TChar> sNegative, Span<TChar> destination, out int charsWritten) where TChar : unmanaged, IUtfChar<TChar>
src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (61)
176internal static TInteger ParseBinaryInteger<TChar, TInteger>(ReadOnlySpan<TChar> value, NumberStyles styles, NumberFormatInfo info)
190internal static ParsingStatus TryParseBinaryInteger<TChar, TInteger>(ReadOnlySpan<TChar> value, NumberStyles styles, NumberFormatInfo info, out TInteger result)
213private static ParsingStatus TryParseBinaryIntegerNumber<TChar, TInteger>(ReadOnlySpan<TChar> value, NumberStyles styles, NumberFormatInfo info, out TInteger result)
234internal static ParsingStatus TryParseBinaryIntegerStyle<TChar, TInteger>(ReadOnlySpan<TChar> value, NumberStyles styles, NumberFormatInfo info, out TInteger result)
308ReadOnlySpan<TChar> positiveSign = info.PositiveSignTChar<TChar>();
309ReadOnlySpan<TChar> negativeSign = info.NegativeSignTChar<TChar>();
516internal static ParsingStatus TryParseBinaryIntegerHexNumberStyle<TChar, TInteger>(ReadOnlySpan<TChar> value, NumberStyles styles, out TInteger result)
554private static ParsingStatus TryParseBinaryIntegerHexOrBinaryNumberStyle<TChar, TInteger, TParser>(ReadOnlySpan<TChar> value, NumberStyles styles, out TInteger result)
720internal static decimal ParseDecimal<TChar>(ReadOnlySpan<TChar> value, NumberStyles styles, NumberFormatInfo info)
856internal static TFloat ParseFloat<TChar, TFloat>(ReadOnlySpan<TChar> value, NumberStyles styles, NumberFormatInfo info)
867internal static ParsingStatus TryParseDecimal<TChar>(ReadOnlySpan<TChar> value, NumberStyles styles, NumberFormatInfo info, out decimal result)
887internal static bool SpanStartsWith<TChar>(ReadOnlySpan<TChar> span, TChar c)
893internal static bool SpanStartsWith<TChar>(ReadOnlySpan<TChar> span, ReadOnlySpan<TChar> value, StringComparison comparisonType)
898ReadOnlySpan<char> typedSpan = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<char>>(span);
899ReadOnlySpan<char> typedValue = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<char>>(value);
906ReadOnlySpan<byte> typedSpan = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(span);
907ReadOnlySpan<byte> typedValue = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(value);
913internal static ReadOnlySpan<TChar> SpanTrim<TChar>(ReadOnlySpan<TChar> span)
918return Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<char>>(span).Trim());
924return Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(span).TrimUtf8());
929internal static bool SpanEqualsOrdinalIgnoreCase<TChar>(ReadOnlySpan<TChar> span, ReadOnlySpan<TChar> value)
934ReadOnlySpan<char> typedSpan = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<char>>(span);
935ReadOnlySpan<char> typedValue = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<char>>(value);
942ReadOnlySpan<byte> typedSpan = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(span);
943ReadOnlySpan<byte> typedValue = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(value);
948internal static bool TryParseFloat<TChar, TFloat>(ReadOnlySpan<TChar> value, NumberStyles styles, NumberFormatInfo info, out TFloat result)
956ReadOnlySpan<TChar> valueTrim = SpanTrim(value);
962ReadOnlySpan<TChar> positiveInfinitySymbol = info.PositiveInfinitySymbolTChar<TChar>();
976ReadOnlySpan<TChar> nanSymbol = info.NaNSymbolTChar<TChar>();
984var positiveSign = info.PositiveSignTChar<TChar>();
1005ReadOnlySpan<TChar> negativeSign = info.NegativeSignTChar<TChar>();
1031internal static void ThrowOverflowOrFormatException<TChar, TInteger>(ParsingStatus status, ReadOnlySpan<TChar> value)
1043internal static void ThrowFormatException<TChar>(ReadOnlySpan<TChar> value)
1056ReadOnlySpan<byte> bytes = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(value);
src\libraries\System.Private.CoreLib\src\System\Numerics\INumberBase.cs (7)
294static abstract TSelf Parse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider);
304static virtual TSelf Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider)
429static abstract bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, [MaybeNullWhen(false)] out TSelf result);
438static virtual bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, [MaybeNullWhen(false)] out TSelf result)
486bool IUtf8SpanFormattable.TryFormat(Span<byte> utf8Destination, out int bytesWritten, ReadOnlySpan<char> format, IFormatProvider? provider)
540static TSelf IUtf8SpanParsable<TSelf>.Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider)
587static bool IUtf8SpanParsable<TSelf>.TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, [MaybeNullWhen(returnValue: false)] out TSelf result)
src\libraries\System.Private.CoreLib\src\System\ParseNumbers.cs (7)
17public static long StringToLong(ReadOnlySpan<char> s, int radix, int flags)
23public static long StringToLong(ReadOnlySpan<char> s, int radix, int flags, ref int currPos)
104public static int StringToInt(ReadOnlySpan<char> s, int radix, int flags)
110public static int StringToInt(ReadOnlySpan<char> s, int radix, int flags, ref int currPos)
205private static void EatWhiteSpace(ReadOnlySpan<char> s, ref int i)
212private static long GrabLongs(int radix, ReadOnlySpan<char> s, ref int i, bool isUnsigned)
273private static int GrabInts(int radix, ReadOnlySpan<char> s, ref int i, bool isUnsigned)
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyNameHelpers.StrongName.cs (2)
47ReadOnlySpan<byte> publicKeyBlob = new ReadOnlySpan<byte>(publicKey);
101private static ReadOnlySpan<byte> EcmaKey => [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00];
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ReadOnlySpanMarshaller.cs (15)
12/// Supports marshalling a <see cref="ReadOnlySpan{T}"/> from managed value
18/// A <see cref="ReadOnlySpan{T}"/> marshalled with this marshaller will match the semantics of <see cref="MemoryMarshal.GetReference{T}(ReadOnlySpan{T})"/>.
22[CustomMarshaller(typeof(ReadOnlySpan<>), MarshalMode.ManagedToUnmanagedIn, typeof(ReadOnlySpanMarshaller<,>.ManagedToUnmanagedIn))]
23[CustomMarshaller(typeof(ReadOnlySpan<>), MarshalMode.ManagedToUnmanagedOut, typeof(ReadOnlySpanMarshaller<,>.ManagedToUnmanagedOut))]
24[CustomMarshaller(typeof(ReadOnlySpan<>), MarshalMode.UnmanagedToManagedOut, typeof(ReadOnlySpanMarshaller<,>.UnmanagedToManagedOut))]
40public static TUnmanagedElement* AllocateContainerForUnmanagedElements(ReadOnlySpan<T> managed, out int numElements)
62public static ReadOnlySpan<T> GetManagedValuesSource(ReadOnlySpan<T> managed)
91private ReadOnlySpan<T> _managedArray;
104public void FromManaged(ReadOnlySpan<T> managed, Span<TUnmanagedElement> buffer)
135public ReadOnlySpan<T> GetManagedValuesSource() => _managedArray;
170public static ref T GetPinnableReference(ReadOnlySpan<T> managed)
197public ReadOnlySpan<T> ToManaged()
207public ReadOnlySpan<TUnmanagedElement> GetUnmanagedValuesSource(int numElements)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (20)
685public static NFloat Parse(ReadOnlySpan<char> s, NumberStyles style = DefaultNumberStyles, IFormatProvider? provider = null)
703/// <param name="result">When this method returns, contains a floating-point number equivalent of the numeric value or symbol contained in <paramref name="s" /> if the conversion succeeded or zero if the conversion failed. The conversion fails if the <paramref name="s" /> is <see cref="ReadOnlySpan{T}.Empty" /> or is not in a valid format. This parameter is passed uninitialized; any value originally supplied in result will be overwritten.</param>
705public static bool TryParse(ReadOnlySpan<char> s, out NFloat result)
713/// <param name="result">When this method returns, contains a floating-point number equivalent of the numeric value or symbol contained in <paramref name="utf8Text" /> if the conversion succeeded or zero if the conversion failed. The conversion fails if the <paramref name="utf8Text" /> is <see cref="ReadOnlySpan{T}.Empty" /> or is not in a valid format. This parameter is passed uninitialized; any value originally supplied in result will be overwritten.</param>
715public static bool TryParse(ReadOnlySpan<byte> utf8Text, out NFloat result)
749public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out NFloat result)
860public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) => _value.TryFormat(destination, out charsWritten, format, provider);
863public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) => _value.TryFormat(utf8Destination, out bytesWritten, format, provider);
1830/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" />
1831public static NFloat Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider);
1833/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
1834public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out NFloat result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider, out result);
1912/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" />
1913public static NFloat Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Float | NumberStyles.AllowThousands, IFormatProvider? provider = null)
1919/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
1920public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out NFloat result)
1926/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" />
1927public static NFloat Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider);
1929/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" />
1930public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out NFloat result) => TryParse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider, out result);
src\libraries\System.Private.CoreLib\src\System\SByte.cs (22)
121public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
127public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
144public static sbyte Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null)
152public static bool TryParse(ReadOnlySpan<char> s, out sbyte result) => TryParse(s, NumberStyles.Integer, provider: null, out result);
158public static bool TryParse(ReadOnlySpan<byte> utf8Text, out sbyte result) => TryParse(utf8Text, NumberStyles.Integer, provider: null, out result);
172public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out sbyte result)
302/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
303static bool IBinaryInteger<sbyte>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out sbyte value)
355/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
356static bool IBinaryInteger<sbyte>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out sbyte value)
1297/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" />
1298public static sbyte Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Integer, provider);
1300/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
1301public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out sbyte result) => TryParse(s, NumberStyles.Integer, provider, out result);
1334/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" />
1335public static sbyte Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null)
1341/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
1342public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out sbyte result)
1348/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" />
1349public static sbyte Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Integer, provider);
1351/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" />
1352public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out sbyte result) => TryParse(utf8Text, NumberStyles.Integer, provider, out result);
src\libraries\System.Private.CoreLib\src\System\SearchValues\IndexOfAnyAsciiSearcher.cs (11)
45internal static unsafe void ComputeAnyByteState(ReadOnlySpan<byte> values, out AnyByteState state)
73internal static unsafe void ComputeAsciiState<T>(ReadOnlySpan<T> values, out AsciiState state)
98public static bool CanUseUniqueLowNibbleSearch<T>(ReadOnlySpan<T> values, int maxInclusive)
140public static void ComputeUniqueLowNibbleState<T>(ReadOnlySpan<T> values, out AsciiState state)
172private static unsafe bool TryComputeBitmap(ReadOnlySpan<char> values, byte* bitmap, out bool needleContainsZero)
192public static bool TryIndexOfAny(ref char searchSpace, int searchSpaceLength, ReadOnlySpan<char> asciiValues, out int index) =>
196public static bool TryIndexOfAnyExcept(ref char searchSpace, int searchSpaceLength, ReadOnlySpan<char> asciiValues, out int index) =>
200public static bool TryLastIndexOfAny(ref char searchSpace, int searchSpaceLength, ReadOnlySpan<char> asciiValues, out int index) =>
204public static bool TryLastIndexOfAnyExcept(ref char searchSpace, int searchSpaceLength, ReadOnlySpan<char> asciiValues, out int index) =>
208private static unsafe bool TryIndexOfAny<TNegator>(ref short searchSpace, int searchSpaceLength, ReadOnlySpan<char> asciiValues, out int index)
235private static unsafe bool TryLastIndexOfAny<TNegator>(ref short searchSpace, int searchSpaceLength, ReadOnlySpan<char> asciiValues, out int index)
src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticMap.cs (11)
44public ProbabilisticMap(ReadOnlySpan<char> values)
100internal static bool Contains(ref uint charMap, ReadOnlySpan<char> values, int ch) =>
106internal static bool Contains(ReadOnlySpan<char> values, char ch) =>
303var valuesSpan = new ReadOnlySpan<char>(ref values, valuesLength);
321var valuesSpan = new ReadOnlySpan<char>(ref values, valuesLength);
335var valuesSpan = new ReadOnlySpan<char>(ref values, valuesLength);
353var valuesSpan = new ReadOnlySpan<char>(ref values, valuesLength);
368var valuesSpan = new ReadOnlySpan<char>(ref values, valuesLength);
381var valuesSpan = new ReadOnlySpan<char>(ref values, valuesLength);
980internal static int IndexOfAnySimpleLoop<TNegator>(ref char searchSpace, int searchSpaceLength, ReadOnlySpan<char> values)
1001internal static int LastIndexOfAnySimpleLoop<TNegator>(ref char searchSpace, int searchSpaceLength, ReadOnlySpan<char> values)
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\AsciiStringSearchValuesTeddyBase.cs (15)
119protected AsciiStringSearchValuesTeddyBase(ReadOnlySpan<string> values, HashSet<string> uniqueValues, int n) : base(values, uniqueValues)
124ReadOnlySpan<object?>.CastUp(values).CopyTo(_buckets);
135protected AsciiStringSearchValuesTeddyBase(string[][] buckets, ReadOnlySpan<string> values, HashSet<string> uniqueValues, int n) : base(values, uniqueValues)
140((ReadOnlySpan<object?>)buckets).CopyTo(_buckets);
153protected int IndexOfAnyN2(ReadOnlySpan<char> span)
173protected int IndexOfAnyN3(ReadOnlySpan<char> span)
193private int IndexOfAnyN2Vector128(ReadOnlySpan<char> span)
248private int IndexOfAnyN2Avx2(ReadOnlySpan<char> span)
300private int IndexOfAnyN2Avx512(ReadOnlySpan<char> span)
353private int IndexOfAnyN3Vector128(ReadOnlySpan<char> span)
425private int IndexOfAnyN3Avx2(ReadOnlySpan<char> span)
480private int IndexOfAnyN3Avx512(ReadOnlySpan<char> span)
535private bool TryFindMatch(ReadOnlySpan<char> span, ref char searchSpace, Vector128<byte> result, int matchStartOffset, out int offsetFromStart)
583private bool TryFindMatch(ReadOnlySpan<char> span, ref char searchSpace, Vector256<byte> result, int matchStartOffset, out int offsetFromStart)
628private bool TryFindMatch(ReadOnlySpan<char> span, ref char searchSpace, Vector512<byte> result, int matchStartOffset, out int offsetFromStart)
src\libraries\System.Private.CoreLib\src\System\Single.cs (19)
370public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
376public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
404public static float Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Float | NumberStyles.AllowThousands, IFormatProvider? provider = null)
412public static bool TryParse(ReadOnlySpan<char> s, out float result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider: null, out result);
416/// <param name="result">When this method returns, contains a single-precision floating-point number equivalent of the numeric value or symbol contained in <paramref name="utf8Text" /> if the conversion succeeded or zero if the conversion failed. The conversion fails if the <paramref name="utf8Text" /> is <see cref="ReadOnlySpan{T}.Empty" /> or is not in a valid format. This parameter is passed uninitialized; any value originally supplied in result will be overwritten.</param>
418public static bool TryParse(ReadOnlySpan<byte> utf8Text, out float result) => TryParse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider: null, out result);
432public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out float result)
1702/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" />
1703public static float Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider);
1705/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
1706public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out float result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider, out result);
2178/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" />
2179public static float Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Float | NumberStyles.AllowThousands, IFormatProvider? provider = null)
2185/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
2186public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out float result)
2192/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" />
2193public static float Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider);
2195/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" />
2196public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out float result) => TryParse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider, out result);
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (71)
80return Concat((ReadOnlySpan<object?>)args);
88public static string Concat(params ReadOnlySpan<object?> args)
149JoinCore(ReadOnlySpan<char>.Empty, values);
287public static string Concat(ReadOnlySpan<char> str0, ReadOnlySpan<char> str1)
304public static string Concat(ReadOnlySpan<char> str0, ReadOnlySpan<char> str1, ReadOnlySpan<char> str2)
326public static string Concat(ReadOnlySpan<char> str0, ReadOnlySpan<char> str1, ReadOnlySpan<char> str2, ReadOnlySpan<char> str3)
351internal static string Concat(ReadOnlySpan<char> str0, ReadOnlySpan<char> str1, ReadOnlySpan<char> str2, ReadOnlySpan<char> str3, ReadOnlySpan<char> str4)
382return Concat((ReadOnlySpan<string?>)values);
390public static string Concat(params ReadOnlySpan<string?> values)
452return copiedLength == totalLength ? result : Concat((ReadOnlySpan<string?>)values.ToArray());
481return FormatHelper(null, format, (ReadOnlySpan<object?>)args);
490public static string Format([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> args)
521return FormatHelper(provider, format, (ReadOnlySpan<object?>)args);
532public static string Format(IFormatProvider? provider, [StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> args)
537private static string FormatHelper(IFormatProvider? provider, string format, ReadOnlySpan<object?> args)
622return Format(provider, format, (ReadOnlySpan<object?>)args);
635public static string Format(IFormatProvider? provider, CompositeFormat format, params ReadOnlySpan<object?> args)
648private static string Format<TArg0, TArg1, TArg2>(IFormatProvider? provider, CompositeFormat format, TArg0 arg0, TArg1 arg1, TArg2 arg2, ReadOnlySpan<object?> args)
739public static string Join(char separator, params ReadOnlySpan<string?> value)
764public static string Join(string? separator, params ReadOnlySpan<string?> value)
775private static string JoinCore(ReadOnlySpan<char> separator, string?[] value, int startIndex, int count)
840return JoinCore(new ReadOnlySpan<char>(in separator), (ReadOnlySpan<object?>)values);
853public static string Join(char separator, params ReadOnlySpan<object?> values) =>
863return JoinCore(separator.AsSpan(), (ReadOnlySpan<object?>)values);
876public static string Join(string? separator, params ReadOnlySpan<object?> values) =>
879private static string JoinCore(ReadOnlySpan<char> separator, ReadOnlySpan<object?> values)
916private static string JoinCore<T>(ReadOnlySpan<char> separator, IEnumerable<T> values)
1035private static string JoinCore(ReadOnlySpan<char> separator, ReadOnlySpan<string?> values)
1220private static string? ReplaceCore(ReadOnlySpan<char> searchSpace, ReadOnlySpan<char> oldValue, ReadOnlySpan<char> newValue, CompareInfo compareInfo, CompareOptions options)
1411private string ReplaceHelper(int oldValueLength, string newValue, ReadOnlySpan<int> indices)
1527ReadOnlySpan<char> firstSegment = this.AsSpan(0, idxOfFirstNewlineChar);
1528ReadOnlySpan<char> remaining = this.AsSpan(idxOfFirstNewlineChar + stride);
1547private static int IndexOfNewlineChar(ReadOnlySpan<char> text, string replacementText, out int stride)
1617ReadOnlySpan<char> remaining = this.AsSpan(idxOfFirstNewlineChar + stride);
1665public string[] Split(params ReadOnlySpan<char> separator)
1696private string[] SplitInternal(ReadOnlySpan<char> separators, int count, StringSplitOptions options)
1720ReadOnlySpan<int> sepList = sepListBuilder.AsSpan();
1769return SplitInternal(default(ReadOnlySpan<char>), count, options);
1797ReadOnlySpan<int> sepList = sepListBuilder.AsSpan();
1798ReadOnlySpan<int> lengthList = lengthListBuilder.AsSpan();
1843ReadOnlySpan<int> sepList = sepListBuilder.AsSpan();
1860private string[] SplitWithoutPostProcessing(ReadOnlySpan<int> sepList, ReadOnlySpan<int> lengthList, int defaultLength, int count)
1897private string[] SplitWithPostProcessing(ReadOnlySpan<int> sepList, ReadOnlySpan<int> lengthList, int defaultLength, int count, StringSplitOptions options)
1912ReadOnlySpan<char> thisEntry;
1974/// <param name="separators"><see cref="ReadOnlySpan{T}"/> of separator chars</param>
1976internal static void MakeSeparatorListAny(ReadOnlySpan<char> source, ReadOnlySpan<char> separators, ref ValueListBuilder<int> sepListBuilder)
2030private static void MakeSeparatorListVectorized(ReadOnlySpan<char> sourceSpan, ref ValueListBuilder<int> sepListBuilder, char c, char c2, char c3)
2148internal static void MakeSeparatorList(ReadOnlySpan<char> source, ReadOnlySpan<char> separator, ref ValueListBuilder<int> sepListBuilder)
2176internal static void MakeSeparatorListAny(ReadOnlySpan<char> source, ReadOnlySpan<string?> separators, ref ValueListBuilder<int> sepListBuilder, ref ValueListBuilder<int> lengthListBuilder)
2369public unsafe string Trim(params ReadOnlySpan<char> trimChars)
2410public unsafe string TrimStart(params ReadOnlySpan<char> trimChars)
2451public unsafe string TrimEnd(params ReadOnlySpan<char> trimChars)
src\libraries\System.Private.CoreLib\src\System\StringComparer.cs (28)
215public sealed class CultureAwareComparer : StringComparer, IAlternateEqualityComparer<ReadOnlySpan<char>, string?>, ISerializable
275int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.GetHashCode(ReadOnlySpan<char> span) =>
278bool IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Equals(ReadOnlySpan<char> span, string? target)
289string IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Create(ReadOnlySpan<char> span) =>
323public class OrdinalComparer : StringComparer, IAlternateEqualityComparer<ReadOnlySpan<char>, string?>
382bool IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Equals(ReadOnlySpan<char> span, string? target)
403int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.GetHashCode(ReadOnlySpan<char> span) =>
408string IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Create(ReadOnlySpan<char> span) =>
435internal sealed class OrdinalCaseSensitiveComparer : OrdinalComparer, ISerializable, IAlternateEqualityComparer<ReadOnlySpan<char>, string?>
456bool IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Equals(ReadOnlySpan<char> span, string? target)
467int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.GetHashCode(ReadOnlySpan<char> span) =>
470string IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Create(ReadOnlySpan<char> span) =>
481internal sealed class OrdinalIgnoreCaseComparer : OrdinalComparer, IAlternateEqualityComparer<ReadOnlySpan<char>, string?>, ISerializable
538bool IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Equals(ReadOnlySpan<char> span, string? target)
549int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.GetHashCode(ReadOnlySpan<char> span) =>
552string IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Create(ReadOnlySpan<char> span) =>
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.CaseConversion.cs (9)
27public static OperationStatus ToUpper(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)
40public static OperationStatus ToUpper(ReadOnlySpan<char> source, Span<char> destination, out int charsWritten)
52public static OperationStatus ToUpper(ReadOnlySpan<byte> source, Span<char> destination, out int charsWritten)
64public static OperationStatus ToUpper(ReadOnlySpan<char> source, Span<byte> destination, out int bytesWritten)
77public static OperationStatus ToLower(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)
90public static OperationStatus ToLower(ReadOnlySpan<char> source, Span<char> destination, out int charsWritten)
102public static OperationStatus ToLower(ReadOnlySpan<byte> source, Span<char> destination, out int charsWritten)
114public static OperationStatus ToLower(ReadOnlySpan<char> source, Span<byte> destination, out int bytesWritten)
157private static unsafe OperationStatus ChangeCase<TFrom, TTo, TCasing>(ReadOnlySpan<TFrom> source, Span<TTo> destination, out int destinationElementsWritten)
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Equality.cs (28)
24public static bool Equals(ReadOnlySpan<byte> left, ReadOnlySpan<byte> right)
28/// <inheritdoc cref="Equals(ReadOnlySpan{byte}, ReadOnlySpan{byte})"/>
29public static bool Equals(ReadOnlySpan<byte> left, ReadOnlySpan<char> right)
33/// <inheritdoc cref="Equals(ReadOnlySpan{byte}, ReadOnlySpan{char})"/>
34public static bool Equals(ReadOnlySpan<char> left, ReadOnlySpan<byte> right)
37/// <inheritdoc cref="Equals(ReadOnlySpan{byte}, ReadOnlySpan{char})"/>
38public static bool Equals(ReadOnlySpan<char> left, ReadOnlySpan<char> right)
175public static bool EqualsIgnoreCase(ReadOnlySpan<byte> left, ReadOnlySpan<byte> right)
179/// <inheritdoc cref="EqualsIgnoreCase(ReadOnlySpan{byte}, ReadOnlySpan{byte})"/>
180public static bool EqualsIgnoreCase(ReadOnlySpan<byte> left, ReadOnlySpan<char> right)
184/// <inheritdoc cref="EqualsIgnoreCase(ReadOnlySpan{byte}, ReadOnlySpan{byte})"/>
185public static bool EqualsIgnoreCase(ReadOnlySpan<char> left, ReadOnlySpan<byte> right)
188/// <inheritdoc cref="EqualsIgnoreCase(ReadOnlySpan{byte}, ReadOnlySpan{byte})"/>
189public static bool EqualsIgnoreCase(ReadOnlySpan<char> left, ReadOnlySpan<char> right)
src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (9)
140public override unsafe int GetByteCount(ReadOnlySpan<char> chars)
314public override unsafe int GetBytes(ReadOnlySpan<char> chars, Span<byte> bytes)
326public override unsafe bool TryGetBytes(ReadOnlySpan<char> chars, Span<byte> bytes, out int bytesWritten)
381private protected sealed override int GetBytesWithFallback(ReadOnlySpan<char> chars, int originalCharsLength, Span<byte> bytes, int originalBytesLength, EncoderNLS? encoder, bool throwForDestinationOverflow = true)
482public override unsafe int GetCharCount(ReadOnlySpan<byte> bytes)
605public override unsafe int GetChars(ReadOnlySpan<byte> bytes, Span<char> chars)
617public override unsafe bool TryGetChars(ReadOnlySpan<byte> bytes, Span<char> chars, out int charsWritten)
670private protected sealed override int GetCharsWithFallback(ReadOnlySpan<byte> bytes, int originalBytesLength, Span<char> chars, int originalCharsLength, DecoderNLS? decoder, bool throwForDestinationOverflow = true)
801internal sealed override OperationStatus DecodeFirstRune(ReadOnlySpan<byte> bytes, out Rune value, out int bytesConsumed)
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.Internal.cs (14)
73internal virtual OperationStatus DecodeFirstRune(ReadOnlySpan<byte> bytes, out Rune value, out int bytesConsumed)
246/// after data has been drained, then to call <see cref="GetByteCountWithFallback(ReadOnlySpan{char}, int, EncoderNLS)"/>.
263ReadOnlySpan<char> chars = new ReadOnlySpan<char>(pOriginalChars, originalCharCount).Slice(charsConsumedSoFar);
310private protected virtual unsafe int GetByteCountWithFallback(ReadOnlySpan<char> chars, int originalCharsLength, EncoderNLS? encoder)
512/// after data has been drained, then to call <see cref="GetBytesWithFallback(ReadOnlySpan{char}, int, Span{byte}, int, EncoderNLS, bool)"/>.
531ReadOnlySpan<char> chars = new ReadOnlySpan<char>(pOriginalChars, originalCharCount).Slice(charsConsumedSoFar);
586private protected virtual unsafe int GetBytesWithFallback(ReadOnlySpan<char> chars, int originalCharsLength, Span<byte> bytes, int originalBytesLength, EncoderNLS? encoder, bool throwForDestinationOverflow = true)
616chars = ReadOnlySpan<char>.Empty;
840/// after data has been drained, then to call <see cref="GetCharCountWithFallback(ReadOnlySpan{byte}, int, DecoderNLS)"/>.
857ReadOnlySpan<byte> bytes = new ReadOnlySpan<byte>(pOriginalBytes, originalByteCount).Slice(bytesConsumedSoFar);
910private unsafe int GetCharCountWithFallback(ReadOnlySpan<byte> bytes, int originalBytesLength, DecoderNLS? decoder)
1133ReadOnlySpan<byte> bytes = new ReadOnlySpan<byte>(pOriginalBytes, originalByteCount).Slice(bytesConsumedSoFar);
1187private protected virtual unsafe int GetCharsWithFallback(ReadOnlySpan<byte> bytes, int originalBytesLength, Span<char> chars, int originalCharsLength, DecoderNLS? decoder, bool throwForDestinationOverflow = true)
1218bytes = ReadOnlySpan<byte>.Empty;
src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (14)
55private static ReadOnlySpan<byte> AsciiCharInfo =>
323public static OperationStatus DecodeFromUtf16(ReadOnlySpan<char> source, out Rune result, out int charsConsumed)
407public static OperationStatus DecodeFromUtf8(ReadOnlySpan<byte> source, out Rune result, out int bytesConsumed)
570/// This method is very similar to <see cref="DecodeFromUtf16(ReadOnlySpan{char}, out Rune, out int)"/>, but it allows
575public static OperationStatus DecodeLastFromUtf16(ReadOnlySpan<char> source, out Rune result, out int charsConsumed)
630/// This method is very similar to <see cref="DecodeFromUtf8(ReadOnlySpan{byte}, out Rune, out int)"/>, but it allows
635public static OperationStatus DecodeLastFromUtf8(ReadOnlySpan<byte> source, out Rune value, out int bytesConsumed)
820internal static int ReadFirstRuneFromUtf16Buffer(ReadOnlySpan<char> input)
936bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) =>
939bool IUtf8SpanFormattable.TryFormat(Span<byte> utf8Destination, out int bytesWritten, ReadOnlySpan<char> format, IFormatProvider? provider) =>
942/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" />
943static bool IUtf8SpanParsable<Rune>.TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out Rune result)
958/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" />
959static Rune IUtf8SpanParsable<Rune>.Parse(ReadOnlySpan<byte> utf8Text, System.IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (36)
935private StringBuilder Insert(int index, ReadOnlySpan<char> value, int count)
1094public StringBuilder Append(ReadOnlySpan<char> value)
1144public StringBuilder AppendJoin(string? separator, params ReadOnlySpan<object?> values)
1179public StringBuilder AppendJoin(string? separator, params ReadOnlySpan<string?> values)
1192return AppendJoinCore(ref separator, 1, (ReadOnlySpan<object?>)values);
1202public StringBuilder AppendJoin(char separator, params ReadOnlySpan<object?> values) =>
1222return AppendJoinCore(ref separator, 1, (ReadOnlySpan<string?>)values);
1232public StringBuilder AppendJoin(char separator, params ReadOnlySpan<string?> values) =>
1267private StringBuilder AppendJoinCore<T>(ref char separator, int separatorLength, ReadOnlySpan<T> values)
1397public StringBuilder Insert(int index, ReadOnlySpan<char> value)
1435return AppendFormat(null, format, (ReadOnlySpan<object?>)two);
1441return AppendFormat(null, format, (ReadOnlySpan<object?>)three);
1470public StringBuilder AppendFormat([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> args)
1483return AppendFormat(provider, format, (ReadOnlySpan<object?>)two);
1489return AppendFormat(provider, format, (ReadOnlySpan<object?>)three);
1501return AppendFormat(provider, format, (ReadOnlySpan<object?>)args);
1519public StringBuilder AppendFormat(IFormatProvider? provider, [StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> args)
1546ReadOnlySpan<char> remainder = format.AsSpan(pos);
1584ReadOnlySpan<char> itemFormatSpan = default; // used if itemFormat is null
1866return AppendFormat(provider, format, (ReadOnlySpan<object?>)args);
1879public StringBuilder AppendFormat(IFormatProvider? provider, CompositeFormat format, params ReadOnlySpan<object?> args)
1892private StringBuilder AppendFormat<TArg0, TArg1, TArg2>(IFormatProvider? provider, CompositeFormat format, TArg0 arg0, TArg1 arg1, TArg2 arg2, ReadOnlySpan<object?> args)
1953public StringBuilder Replace(ReadOnlySpan<char> oldValue, ReadOnlySpan<char> newValue) => Replace(oldValue, newValue, 0, Length);
2020/// Determines if the contents of this builder are equal to the contents of <see cref="ReadOnlySpan{Char}"/>.
2022/// <param name="span">The <see cref="ReadOnlySpan{Char}"/>.</param>
2023public bool Equals(ReadOnlySpan<char> span)
2038ReadOnlySpan<char> chunk = new ReadOnlySpan<char>(sbChunk.m_ChunkChars, 0, chunk_length);
2080public StringBuilder Replace(ReadOnlySpan<char> oldValue, ReadOnlySpan<char> newValue, int startIndex, int count)
2109ReadOnlySpan<char> remainingChunk = chunk.m_ChunkChars.AsSpan(indexInChunk, Math.Min(chunk.m_ChunkLength - indexInChunk, count));
2357private void ReplaceAllInChunk(ReadOnlySpan<int> replacements, StringBuilder sourceChunk, int removeCount, ReadOnlySpan<char> value)
2421private bool StartsWith(StringBuilder chunk, int indexInChunk, int count, ReadOnlySpan<char> value)
3059public void AppendFormatted(ReadOnlySpan<char> value) => _stringBuilder.Append(value);
3065public void AppendFormatted(ReadOnlySpan<char> value, int alignment = 0, string? format = null)
src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8.cs (9)
45public static unsafe OperationStatus FromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsRead, out int bytesWritten, bool replaceInvalidSequences = true, bool isFinalBlock = true)
131public static unsafe OperationStatus ToUtf16(ReadOnlySpan<byte> source, Span<char> destination, out int bytesRead, out int charsWritten, bool replaceInvalidSequences = true, bool isFinalBlock = true)
218internal static unsafe OperationStatus ToUtf16PreservingReplacement(ReadOnlySpan<byte> source, Span<char> destination, out int bytesRead, out int charsWritten, bool replaceInvalidSequences = true, bool isFinalBlock = true)
572public bool AppendFormatted(scoped ReadOnlySpan<char> value)
587public bool AppendFormatted(scoped ReadOnlySpan<char> value, int alignment = 0, string? format = null)
600public bool AppendFormatted(scoped ReadOnlySpan<byte> utf8Value)
615public bool AppendFormatted(scoped ReadOnlySpan<byte> utf8Value, int alignment = 0, string? format = null)
824/// <param name="value">The <see cref="ReadOnlySpan{T}"/> string.</param>
826public static bool IsValid(ReadOnlySpan<byte> value) =>
src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (10)
64internal static ReadOnlySpan<byte> PreambleSpan => [0xEF, 0xBB, 0xBF];
190public override unsafe int GetByteCount(ReadOnlySpan<char> chars)
361public override unsafe int GetBytes(ReadOnlySpan<char> chars, Span<byte> bytes)
373public override unsafe bool TryGetBytes(ReadOnlySpan<char> chars, Span<byte> bytes, out int bytesWritten)
483public override unsafe int GetCharCount(ReadOnlySpan<byte> bytes)
556public override unsafe int GetChars(ReadOnlySpan<byte> bytes, Span<char> chars)
568public override unsafe bool TryGetChars(ReadOnlySpan<byte> bytes, Span<char> chars, out int charsWritten)
634private protected sealed override int GetCharsWithFallback(ReadOnlySpan<byte> bytes, int originalBytesLength, Span<char> chars, int originalCharsLength, DecoderNLS? decoder, bool throwForDestinationOverflow = true)
785internal sealed override OperationStatus DecodeFirstRune(ReadOnlySpan<byte> bytes, out Rune value, out int bytesConsumed)
872public override ReadOnlySpan<byte> Preamble =>
src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (27)
455/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" />
456public static TimeOnly Parse(ReadOnlySpan<char> s, IFormatProvider? provider = default, DateTimeStyles style = DateTimeStyles.None)
479public static TimeOnly ParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] ReadOnlySpan<char> format, IFormatProvider? provider = default, DateTimeStyles style = DateTimeStyles.None)
497public static TimeOnly ParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] string[] formats) => ParseExact(s, formats, null, DateTimeStyles.None);
508public static TimeOnly ParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] string[] formats, IFormatProvider? provider, DateTimeStyles style = DateTimeStyles.None)
594public static bool TryParse(ReadOnlySpan<char> s, out TimeOnly result) => TryParse(s, null, DateTimeStyles.None, out result);
604/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
605public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, DateTimeStyles style, out TimeOnly result) =>
607private static ParseFailureKind TryParseInternal(ReadOnlySpan<char> s, IFormatProvider? provider, DateTimeStyles style, out TimeOnly result)
643public static bool TryParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] ReadOnlySpan<char> format, out TimeOnly result) => TryParseExact(s, format, null, DateTimeStyles.None, out result);
655public static bool TryParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] ReadOnlySpan<char> format, IFormatProvider? provider, DateTimeStyles style, out TimeOnly result) =>
658private static ParseFailureKind TryParseExactInternal(ReadOnlySpan<char> s, ReadOnlySpan<char> format, IFormatProvider? provider, DateTimeStyles style, out TimeOnly result)
708public static bool TryParseExact(ReadOnlySpan<char> s, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] string?[]? formats, out TimeOnly result) => TryParseExact(s, formats, null, DateTimeStyles.None, out result);
719public static bool TryParseExact(ReadOnlySpan<char> s, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] string?[]? formats, IFormatProvider? provider, DateTimeStyles style, out TimeOnly result) =>
722private static ParseFailureKind TryParseExactInternal(ReadOnlySpan<char> s, string?[]? formats, IFormatProvider? provider, DateTimeStyles style, out TimeOnly result)
860private static void ThrowOnError(ParseFailureKind result, ReadOnlySpan<char> s)
957public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) =>
961public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) =>
964private bool TryFormatCore<TChar>(Span<TChar> destination, out int written, [StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] ReadOnlySpan<char> format, IFormatProvider? provider) where TChar : unmanaged, IUtfChar<TChar>
1012/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" />
1013public static TimeOnly Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, provider, DateTimeStyles.None);
1015/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
1016public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out TimeOnly result) => TryParse(s, provider, DateTimeStyles.None, out result);
src\libraries\System.Private.CoreLib\src\System\TimeSpan.cs (14)
736public static TimeSpan Parse(ReadOnlySpan<char> input, IFormatProvider? formatProvider = null) => TimeSpanParse.Parse(input, formatProvider);
759public static TimeSpan ParseExact(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.TimeSpanFormat)] ReadOnlySpan<char> format, IFormatProvider? formatProvider, TimeSpanStyles styles = TimeSpanStyles.None)
770public static TimeSpan ParseExact(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.TimeSpanFormat)] string[] formats, IFormatProvider? formatProvider, TimeSpanStyles styles = TimeSpanStyles.None)
784public static bool TryParse(ReadOnlySpan<char> s, out TimeSpan result) => TimeSpanParse.TryParse(s, null, out result);
795public static bool TryParse(ReadOnlySpan<char> input, IFormatProvider? formatProvider, out TimeSpan result) => TimeSpanParse.TryParse(input, formatProvider, out result);
806public static bool TryParseExact(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.TimeSpanFormat)] ReadOnlySpan<char> format, IFormatProvider? formatProvider, out TimeSpan result)
818public static bool TryParseExact(ReadOnlySpan<char> input, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.TimeSpanFormat)] string?[]? formats, IFormatProvider? formatProvider, out TimeSpan result)
833public static bool TryParseExact(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.TimeSpanFormat)] ReadOnlySpan<char> format, IFormatProvider? formatProvider, TimeSpanStyles styles, out TimeSpan result)
850public static bool TryParseExact(ReadOnlySpan<char> input, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.TimeSpanFormat)] string?[]? formats, IFormatProvider? formatProvider, TimeSpanStyles styles, out TimeSpan result)
859public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.TimeSpanFormat)] ReadOnlySpan<char> format = default, IFormatProvider? formatProvider = null)
863public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.TimeSpanFormat)] ReadOnlySpan<char> format = default, IFormatProvider? formatProvider = null)
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (40)
703out ReadOnlySpan<char> standardOffset,
704out ReadOnlySpan<char> daylightSavingsName,
705out ReadOnlySpan<char> daylightSavingsOffset,
706out ReadOnlySpan<char> start,
707out ReadOnlySpan<char> startTime,
708out ReadOnlySpan<char> end,
709out ReadOnlySpan<char> endTime))
771private static TimeSpan? TZif_ParseOffsetString(ReadOnlySpan<char> offset)
809private static DateTime ParseTimeOfDay(ReadOnlySpan<char> time)
840private static TransitionTime? TZif_CreateTransitionTimeFromPosixRule(ReadOnlySpan<char> date, ReadOnlySpan<char> time)
921private static void TZif_ParseJulianDay(ReadOnlySpan<char> date, out int month, out int day)
944ReadOnlySpan<int> days = GregorianCalendar.DaysToMonth365;
969private static bool TZif_ParseMDateRule(ReadOnlySpan<char> dateRule, out int month, out int week, out DayOfWeek dayOfWeek)
976ReadOnlySpan<char> weekDaySpan = dateRule.Slice(monthWeekDotIndex + 1);
998ReadOnlySpan<char> posixFormat,
999out ReadOnlySpan<char> standardName,
1000out ReadOnlySpan<char> standardOffset,
1001out ReadOnlySpan<char> daylightSavingsName,
1002out ReadOnlySpan<char> daylightSavingsOffset,
1003out ReadOnlySpan<char> start,
1004out ReadOnlySpan<char> startTime,
1005out ReadOnlySpan<char> end,
1006out ReadOnlySpan<char> endTime)
1039private static ReadOnlySpan<char> TZif_ParsePosixName(ReadOnlySpan<char> posixFormat, scoped ref int index)
1047ReadOnlySpan<char> result = TZif_ParsePosixString(posixFormat, ref index, c => c == '>');
1066private static ReadOnlySpan<char> TZif_ParsePosixOffset(ReadOnlySpan<char> posixFormat, scoped ref int index) =>
1069private static void TZif_ParsePosixDateTime(ReadOnlySpan<char> posixFormat, scoped ref int index, out ReadOnlySpan<char> date, out ReadOnlySpan<char> time)
1081private static ReadOnlySpan<char> TZif_ParsePosixDate(ReadOnlySpan<char> posixFormat, scoped ref int index) =>
1084private static ReadOnlySpan<char> TZif_ParsePosixTime(ReadOnlySpan<char> posixFormat, scoped ref int index) =>
1087private static ReadOnlySpan<char> TZif_ParsePosixString(ReadOnlySpan<char> posixFormat, scoped ref int index, Func<char, bool> breakCondition)
1114private static short TZif_ToInt16(ReadOnlySpan<byte> value)
1124private static int TZif_ToInt32(ReadOnlySpan<byte> value)
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (1)
54private static ReadOnlySpan<byte> AsciiBitmap => [0x00, 0x00, 0x00, 0x00, 0x00, 0xA8, 0xFF, 0x03, 0xFE, 0xFF, 0xFF, 0x87, 0xFE, 0xFF, 0xFF, 0x07];
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (24)
120public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
126public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
143public static UInt128 Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null)
151public static bool TryParse(ReadOnlySpan<char> s, out UInt128 result) => TryParse(s, NumberStyles.Integer, provider: null, out result);
157public static bool TryParse(ReadOnlySpan<byte> utf8Text, out UInt128 result) => TryParse(utf8Text, NumberStyles.Integer, provider: null, out result);
171public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out UInt128 result)
822/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
823static bool IBinaryInteger<UInt128>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out UInt128 value)
879/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
880static bool IBinaryInteger<UInt128>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out UInt128 value)
1092static uint AddDivisor(Span<uint> left, ReadOnlySpan<uint> right)
1262static uint SubtractDivisor(Span<uint> left, ReadOnlySpan<uint> right, ulong q)
2086/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" />
2087public static UInt128 Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Integer, provider);
2089/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
2090public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out UInt128 result) => TryParse(s, NumberStyles.Integer, provider, out result);
2143/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" />
2144public static UInt128 Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null)
2150/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
2151public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out UInt128 result)
2157/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" />
2158public static UInt128 Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Integer, provider);
2160/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" />
2161public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out UInt128 result) => TryParse(utf8Text, NumberStyles.Integer, provider, out result);
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (22)
113public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
119public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
136public static ushort Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null)
144public static bool TryParse(ReadOnlySpan<char> s, out ushort result) => TryParse(s, NumberStyles.Integer, provider: null, out result);
150public static bool TryParse(ReadOnlySpan<byte> utf8Text, out ushort result) => TryParse(utf8Text, NumberStyles.Integer, provider: null, out result);
164public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out ushort result)
293/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
294static bool IBinaryInteger<ushort>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out ushort value)
343/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
344static bool IBinaryInteger<ushort>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out ushort value)
1149/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" />
1150public static ushort Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Integer, provider);
1152/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
1153public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out ushort result) => TryParse(s, NumberStyles.Integer, provider, out result);
1186/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" />
1187public static ushort Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null)
1193/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
1194public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out ushort result)
1200/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" />
1201public static ushort Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Integer, provider);
1203/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" />
1204public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out ushort result) => TryParse(utf8Text, NumberStyles.Integer, provider, out result);
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (22)
129public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
135public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
152public static uint Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null)
160public static bool TryParse(ReadOnlySpan<char> s, out uint result) => TryParse(s, NumberStyles.Integer, provider: null, out result);
166public static bool TryParse(ReadOnlySpan<byte> utf8Text, out uint result) => TryParse(utf8Text, NumberStyles.Integer, provider: null, out result);
180public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out uint result)
314/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
315static bool IBinaryInteger<uint>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out uint value)
371/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
372static bool IBinaryInteger<uint>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out uint value)
1194/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" />
1195public static uint Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Integer, provider);
1197/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
1198public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out uint result) => TryParse(s, NumberStyles.Integer, provider, out result);
1231/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" />
1232public static uint Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null)
1238/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
1239public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out uint result)
1245/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" />
1246public static uint Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Integer, provider);
1248/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" />
1249public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out uint result) => TryParse(utf8Text, NumberStyles.Integer, provider, out result);
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (22)
128public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
134public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
151public static ulong Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null)
159public static bool TryParse(ReadOnlySpan<char> s, out ulong result) => TryParse(s, NumberStyles.Integer, provider: null, out result);
165public static bool TryParse(ReadOnlySpan<byte> utf8Text, out ulong result) => TryParse(utf8Text, NumberStyles.Integer, provider: null, out result);
179public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out ulong result)
313/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
314static bool IBinaryInteger<ulong>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out ulong value)
370/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
371static bool IBinaryInteger<ulong>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out ulong value)
1187/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" />
1188public static ulong Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Integer, provider);
1190/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
1191public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out ulong result) => TryParse(s, NumberStyles.Integer, provider, out result);
1224/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" />
1225public static ulong Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null)
1231/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
1232public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out ulong result)
1238/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" />
1239public static ulong Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Integer, provider);
1241/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" />
1242public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out ulong result) => TryParse(utf8Text, NumberStyles.Integer, provider, out result);
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (20)
225public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) =>
229public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) =>
236public static nuint Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => (nuint)nuint_t.Parse(s, provider);
237public static nuint Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) => (nuint)nuint_t.Parse(s, style, provider);
250public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out nuint result)
262public static bool TryParse(ReadOnlySpan<char> s, out nuint result)
272public static bool TryParse(ReadOnlySpan<byte> utf8Text, out nuint result)
285public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out nuint result)
335/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
336static bool IBinaryInteger<nuint>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out nuint value)
392/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
393static bool IBinaryInteger<nuint>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out nuint value)
1223/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" />
1224public static nuint Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) => (nuint)nuint_t.Parse(utf8Text, style, provider);
1226/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" />
1227public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out nuint result)
1233/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" />
1234public static nuint Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => (nuint)nuint_t.Parse(utf8Text, provider);
1236/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" />
1237public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out nuint result)
src\libraries\System.Private.CoreLib\src\System\Version.cs (12)
269bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) =>
274bool IUtf8SpanFormattable.TryFormat(Span<byte> utf8Destination, out int bytesWritten, ReadOnlySpan<char> format, IFormatProvider? provider) =>
290public static Version Parse(ReadOnlySpan<char> input) =>
293/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)"/>
294static Version IUtf8SpanParsable<Version>.Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider)
314public static Version Parse(ReadOnlySpan<byte> utf8Text) =>
329public static bool TryParse(ReadOnlySpan<char> input, [NotNullWhen(true)] out Version? result)
344public static bool TryParse(ReadOnlySpan<byte> utf8Text, [NotNullWhen(true)] out Version? result)
350/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)"/>
351static bool IUtf8SpanParsable<Version>.TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, [NotNullWhen(true)] out Version? result)
357private static Version? ParseVersion<TChar>(ReadOnlySpan<TChar> input, bool throwOnFailure)
429private static bool TryParseComponent<TChar>(ReadOnlySpan<TChar> component, string componentName, bool throwOnFailure, out int parsedComponent)
System.Private.CoreLib.Generators (5)
System.Private.DataContractSerialization (49)
src\libraries\Common\src\System\HexConverter.cs (9)
185public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper)
202public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper)
219public static string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper)
249public ReadOnlySpan<byte> Bytes { get; set; }
281public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
293public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
461private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
496private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
603public static ReadOnlySpan<byte> CharToHexLookup =>
System.Private.Uri (59)
src\libraries\Common\src\System\HexConverter.cs (9)
185public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper)
202public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper)
219public static string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper)
249public ReadOnlySpan<byte> Bytes { get; set; }
281public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
293public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
461private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
496private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
603public static ReadOnlySpan<byte> CharToHexLookup =>
System\Uri.cs (13)
1625ReadOnlySpan<char> result;
1691bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) =>
2568host = IPv6AddressHelper.ParseCanonicalName(str.AsSpan(idx), ref loopback, out ReadOnlySpan<char> scopeIdSpan);
2794scoped ReadOnlySpan<char> result = RecreateParts(ref dest, str, parts, nonCanonical, formatAs);
2811scoped ReadOnlySpan<char> result = RecreateParts(ref dest, str, parts, nonCanonical, formatAs);
2819private ReadOnlySpan<char> RecreateParts(scoped ref ValueStringBuilder dest, string str, UriComponents parts, ushort nonCanonical, UriFormat formatAs)
2841ReadOnlySpan<char> slice = str.AsSpan(_info.Offset.User, _info.Offset.Host - _info.Offset.User);
3406ReadOnlySpan<char> span = _originalUnicodeString.AsSpan(origIdx);
3752private static UriParser? CheckSchemeSyntax(ReadOnlySpan<char> scheme, ref ParsingError error)
4124ReadOnlySpan<char> host = new ReadOnlySpan<char>(pString + start, end - start);
4371ReadOnlySpan<char> str = _string;
4652ReadOnlySpan<char> share = basePart.GetParts(UriComponents.Path | UriComponents.KeepDelimiter, UriFormat.Unescaped);
4735ReadOnlySpan<char> extra = string.Empty;
System\UriHelper.cs (9)
15public static string SpanToLowerInvariantString(ReadOnlySpan<char> span)
24public static string NormalizeAndConcat(string? start, ReadOnlySpan<char> toNormalize)
136public static bool TryEscapeDataString(ReadOnlySpan<char> charsToEscape, Span<char> destination, out int charsWritten)
206public static string EscapeString(ReadOnlySpan<char> charsToEscape, bool checkExistingEscaped, SearchValues<char> noEscape, string? backingString)
232internal static void EscapeString(scoped ReadOnlySpan<char> stringToEscape, ref ValueStringBuilder dest,
252scoped ReadOnlySpan<char> stringToEscape, ref ValueStringBuilder vsb,
372internal static unsafe void UnescapeString(scoped ReadOnlySpan<char> input, scoped ref ValueStringBuilder dest,
611public static string StripBidiControlCharacters(ReadOnlySpan<char> strToClean, string? backingString = null)
623public static bool StripBidiControlCharacters(ReadOnlySpan<char> strToClean, [NotNullWhen(true)] out string? stripped)
System.Private.Windows.Core (43)
System\SpanReader.cs (14)
11/// Fast stack based <see cref="ReadOnlySpan{T}"/> reader.
23internal unsafe ref struct SpanReader<T>(ReadOnlySpan<T> span) where T : unmanaged, IEquatable<T>
25private ReadOnlySpan<T> _unread = span;
26public ReadOnlySpan<T> Span { get; } = span;
38/// <inheritdoc cref="TryReadTo(T, bool, out ReadOnlySpan{T})"/>
39public bool TryReadTo(T delimiter, out ReadOnlySpan<T> span) =>
49public bool TryReadTo(T delimiter, bool advancePastDelimiter, out ReadOnlySpan<T> span)
99public bool TryRead(int count, out ReadOnlySpan<T> span)
161/// This effectively does a <see cref="MemoryMarshal.Cast{TFrom, TTo}(ReadOnlySpan{TFrom})"/> and the same
165public bool TryRead<TValue>(int count, out ReadOnlySpan<TValue> value) where TValue : unmanaged
193public readonly bool IsNext(params ReadOnlySpan<T> next) => _unread.StartsWith(next);
200public bool TryAdvancePast(params ReadOnlySpan<T> next)
267private static void UncheckedSliceTo(ref ReadOnlySpan<T> span, int length)
277private static void UncheckedSlice(ref ReadOnlySpan<T> span, int start, int length)
System.Private.Windows.GdiPlus (1)
System.Private.Xml (66)
src\libraries\Common\src\System\HexConverter.cs (9)
185public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper)
202public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper)
219public static string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper)
249public ReadOnlySpan<byte> Bytes { get; set; }
281public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
293public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
461private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
496private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
603public static ReadOnlySpan<byte> CharToHexLookup =>
System\Xml\Schema\XsdDateTime.cs (4)
120private static ReadOnlySpan<int> DaysToMonth365 => [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365];
121private static ReadOnlySpan<int> DaysToMonth366 => [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366];
598ReadOnlySpan<int> days = leapYear ? DaysToMonth366 : DaysToMonth365;
916private static ReadOnlySpan<int> Power10 => [-1, 10, 100, 1000, 10000, 100000, 1000000];
System\Xml\XmlEncoding.cs (4)
329public override ReadOnlySpan<byte> Preamble => [0x00, 0x00, 0xfe, 0xff];
343public override ReadOnlySpan<byte> Preamble => [0xff, 0xfe, 0x00, 0x00];
357public override ReadOnlySpan<byte> Preamble => [0x00, 0x00, 0xff, 0xfe];
371public override ReadOnlySpan<byte> Preamble => [0xfe, 0xff, 0x00, 0x00];
System\Xml\Xsl\Runtime\NumberFormatter.cs (1)
110ReadOnlySpan<int> RomanDigitValue = [1, 4, 5, 9, 10, 40, 50, 90, 100, 400, 500, 900, 1000];
System.Private.Xml.Linq (1)
System.Reflection.Emit (20)
System.Reflection.Metadata (70)
System.Reflection.MetadataLoadContext (152)
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (8)
30public static bool IsCustomAttributeDefined(this CustomAttributeHandleCollection handles, ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, EcmaModule module)
35public static CustomAttributeData? TryFindCustomAttribute(this CustomAttributeHandleCollection handles, ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, EcmaModule module)
43private static CustomAttributeHandle FindCustomAttributeByName(this CustomAttributeHandleCollection handles, ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, EcmaModule module)
59public static bool TypeMatchesNameAndNamespace(this EntityHandle handle, ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, MetadataReader reader)
System.Resources.Extensions (15)
System.Runtime (1)
System.Runtime.InteropServices.JavaScript (2)
System.Runtime.Numerics (205)
System\Number.BigInteger.cs (30)
28private static ReadOnlySpan<uint> UInt32PowersOfTen => [1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000];
60internal static ParsingStatus TryParseBigInteger(ReadOnlySpan<char> value, NumberStyles style, NumberFormatInfo info, out BigInteger result)
80internal static unsafe ParsingStatus TryParseBigIntegerNumber(ReadOnlySpan<char> value, NumberStyles style, NumberFormatInfo info, out BigInteger result)
124internal static BigInteger ParseBigInteger(ReadOnlySpan<char> value, NumberStyles style, NumberFormatInfo info)
140internal static ParsingStatus TryParseBigIntegerHexOrBinaryNumberStyle<TParser, TChar>(ReadOnlySpan<TChar> value, NumberStyles style, out BigInteger result)
326ReadOnlySpan<byte> intDigits = number.Digits.Slice(0, Math.Min(number.Scale, number.DigitsCount));
331ReadOnlySpan<byte> fracDigitsSpan = number.Digits.Slice(intDigits.Length);
355ReadOnlySpan<byte> leadingDigits = intDigits[..(intDigits.Length % PowersOf1e9.MaxPartialDigits)];
402static void DivideAndConquer(ReadOnlySpan<uint> base1E9, int trailingZeroCount, scoped Span<uint> bits)
443static void Recursive(in PowersOf1e9 powersOf1e9, int powersOf1e9Index, ReadOnlySpan<uint> base1E9, Span<uint> bits)
460ReadOnlySpan<uint> multiplier = powersOf1e9.GetSpan(powersOf1e9Index);
475ReadOnlySpan<uint> buffer2 = buffer.Slice(0, BigIntegerCalculator.ActualLength(buffer));
492static void Naive(ReadOnlySpan<uint> base1E9, int trailingZeroCount, scoped Span<uint> bits)
520static int NaiveBase1E9ToBits(ReadOnlySpan<uint> base1E9, Span<uint> bits)
738internal static bool TryFormatBigInteger(BigInteger value, ReadOnlySpan<char> format, NumberFormatInfo info, Span<char> destination, out int charsWritten)
746string? formatString, ReadOnlySpan<char> formatSpan,
821ReadOnlySpan<uint> base1E9Value = base1E9Buffer[..cuDst];
923private static unsafe TChar* BigIntegerToDecChars<TChar>(TChar* bufferEnd, ReadOnlySpan<uint> base1E9Value, int digits)
941private readonly ReadOnlySpan<uint> pow1E9;
958private static ReadOnlySpan<int> Indexes =>
999private static ReadOnlySpan<uint> LeadingPowers1E9 =>
1065ReadOnlySpan<uint> src = pow1E9.Slice(Indexes[5], Indexes[6] - Indexes[5]);
1098public ReadOnlySpan<uint> GetSpan(int index)
1112public void MultiplyPowerOfTen(ReadOnlySpan<uint> left, int trailingZeroCount, Span<uint> bits)
1135ReadOnlySpan<uint> first = GetSpan(fi);
1156ReadOnlySpan<uint> power = GetSpan(fi);
1221static virtual bool TryParseUnalignedBlock(ReadOnlySpan<TChar> input, out uint result)
1232static virtual bool TryParseSingleBlock(ReadOnlySpan<TChar> input, out uint result)
1235static virtual bool TryParseWholeBlocks(ReadOnlySpan<TChar> input, Span<uint> destination)
1265public static bool TryParseWholeBlocks(ReadOnlySpan<TChar> input, Span<uint> destination)
System\Numerics\BigInteger.cs (26)
276public BigInteger(ReadOnlySpan<byte> value, bool isUnsigned = false, bool isBigEndian = false)
497internal BigInteger(ReadOnlySpan<uint> value, bool negative)
696public static BigInteger Parse(ReadOnlySpan<char> value, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null)
701public static bool TryParse(ReadOnlySpan<char> value, out BigInteger result)
706public static bool TryParse(ReadOnlySpan<char> value, NumberStyles style, IFormatProvider? provider, out BigInteger result)
915private static BigInteger GreatestCommonDivisor(ReadOnlySpan<uint> leftBits, ReadOnlySpan<uint> rightBits)
1455ReadOnlySpan<byte> srcBytes = MemoryMarshal.AsBytes(bits.AsSpan(..^1));
1666public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null)
1671private static BigInteger Add(ReadOnlySpan<uint> leftBits, int leftSign, ReadOnlySpan<uint> rightBits, int rightSign)
1749private static BigInteger Subtract(ReadOnlySpan<uint> leftBits, int leftSign, ReadOnlySpan<uint> rightBits, int rightSign)
2724private static BigInteger Multiply(ReadOnlySpan<uint> left, int leftSign, ReadOnlySpan<uint> right, int rightSign)
3272scoped ReadOnlySpan<uint> bits = value._bits;
3427scoped ReadOnlySpan<uint> bits = value._bits;
3594/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
3595static bool IBinaryInteger<BigInteger>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out BigInteger value)
3601/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" />
3602static bool IBinaryInteger<BigInteger>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out BigInteger value)
5303scoped ReadOnlySpan<uint> bits = value._bits;
5396/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" />
5397public static BigInteger Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Integer, provider);
5399/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
5400public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out BigInteger result) => TryParse(s, NumberStyles.Integer, provider, out result);
System\Numerics\BigIntegerCalculator.AddSub.cs (11)
14private static void CopyTail(ReadOnlySpan<uint> source, Span<uint> dest, int start)
19public static void Add(ReadOnlySpan<uint> left, uint right, Span<uint> bits)
27public static void Add(ReadOnlySpan<uint> left, ReadOnlySpan<uint> right, Span<uint> bits)
59public static void AddSelf(Span<uint> left, ReadOnlySpan<uint> right)
90public static void Subtract(ReadOnlySpan<uint> left, uint right, Span<uint> bits)
99public static void Subtract(ReadOnlySpan<uint> left, ReadOnlySpan<uint> right, Span<uint> bits)
132public static void SubtractSelf(Span<uint> left, ReadOnlySpan<uint> right)
168private static void Add(ReadOnlySpan<uint> left, Span<uint> bits, ref uint resultPtr, int startIndex, long initialCarry)
215private static void Subtract(ReadOnlySpan<uint> left, Span<uint> bits, ref uint resultPtr, int startIndex, long initialCarry)
System\Numerics\BigIntegerCalculator.DivRem.cs (30)
19public static void Divide(ReadOnlySpan<uint> left, uint right, Span<uint> quotient, out uint remainder)
27public static void Divide(ReadOnlySpan<uint> left, uint right, Span<uint> quotient)
34private static void Divide(ReadOnlySpan<uint> left, uint right, Span<uint> quotient, ref ulong carry)
53public static uint Remainder(ReadOnlySpan<uint> left, uint right)
68public static void Divide(ReadOnlySpan<uint> left, ReadOnlySpan<uint> right, Span<uint> quotient, Span<uint> remainder)
89public static void Divide(ReadOnlySpan<uint> left, ReadOnlySpan<uint> right, Span<uint> quotient)
121public static void Remainder(ReadOnlySpan<uint> left, ReadOnlySpan<uint> right, Span<uint> remainder)
159private static void DivRem(Span<uint> left, ReadOnlySpan<uint> right, Span<uint> quotient)
208private static void DivideGrammarSchool(Span<uint> left, ReadOnlySpan<uint> right, Span<uint> quotient)
293private static uint AddDivisor(Span<uint> left, ReadOnlySpan<uint> right)
312private static uint SubtractDivisor(Span<uint> left, ReadOnlySpan<uint> right, ulong q)
355private static void DivideBurnikelZiegler(ReadOnlySpan<uint> left, ReadOnlySpan<uint> right, Span<uint> quotient, Span<uint> remainder)
403static void Normalize(ReadOnlySpan<uint> src, int sigmaDigit, int sigmaSmall, Span<uint> bits)
518private static void BurnikelZieglerFallback(ReadOnlySpan<uint> left, ReadOnlySpan<uint> right, Span<uint> quotient, Span<uint> remainder)
592private static void BurnikelZieglerD2n1n(ReadOnlySpan<uint> left, ReadOnlySpan<uint> right, Span<uint> quotient, Span<uint> remainder)
621private static void BurnikelZieglerD3n2n(ReadOnlySpan<uint> left12, ReadOnlySpan<uint> left3, ReadOnlySpan<uint> right, Span<uint> quotient, Span<uint> remainder)
634ReadOnlySpan<uint> a1 = left12.Slice(n);
635ReadOnlySpan<uint> b1 = right.Slice(n);
636ReadOnlySpan<uint> b2 = right.Slice(0, n);
655ReadOnlySpan<uint> a2 = left12.Slice(0, n);
683static void MultiplyActual(ReadOnlySpan<uint> left, ReadOnlySpan<uint> right, Span<uint> bits)
System\Numerics\BigIntegerCalculator.FastReducer.cs (7)
18private readonly ReadOnlySpan<uint> _modulus;
19private readonly ReadOnlySpan<uint> _mu;
23public FastReducer(ReadOnlySpan<uint> modulus, Span<uint> r, Span<uint> mu, Span<uint> q1, Span<uint> q2)
68private static int DivMul(ReadOnlySpan<uint> left, ReadOnlySpan<uint> right, Span<uint> bits, int k)
102private static int SubMod(Span<uint> left, ReadOnlySpan<uint> right, ReadOnlySpan<uint> modulus, int k)
System\Numerics\BigIntegerCalculator.PowMod.cs (22)
21public static void Pow(ReadOnlySpan<uint> value, uint power, Span<uint> bits)
70private static int MultiplySelf(ref Span<uint> left, int leftLength, ReadOnlySpan<uint> right, ref Span<uint> temp)
139public static uint Pow(ReadOnlySpan<uint> value, uint power, uint modulus)
148public static uint Pow(uint value, ReadOnlySpan<uint> power, uint modulus)
156public static uint Pow(ReadOnlySpan<uint> value, ReadOnlySpan<uint> power, uint modulus)
165private static uint PowCore(ulong value, ReadOnlySpan<uint> power, uint modulus, ulong result)
203ReadOnlySpan<uint> modulus, Span<uint> bits)
208public static void Pow(ReadOnlySpan<uint> value, uint power,
209ReadOnlySpan<uint> modulus, Span<uint> bits)
251public static void Pow(uint value, ReadOnlySpan<uint> power,
252ReadOnlySpan<uint> modulus, Span<uint> bits)
257public static void Pow(ReadOnlySpan<uint> value, ReadOnlySpan<uint> power,
258ReadOnlySpan<uint> modulus, Span<uint> bits)
309ReadOnlySpan<uint> power, ReadOnlySpan<uint> modulus,
370uint power, ReadOnlySpan<uint> modulus,
430ReadOnlySpan<uint> power, ReadOnlySpan<uint> modulus,
460uint power, ReadOnlySpan<uint> modulus,
489ReadOnlySpan<uint> power, in FastReducer reducer,
System\Numerics\BigIntegerCalculator.SquMul.cs (18)
21public static void Square(ReadOnlySpan<uint> value, Span<uint> bits)
85ReadOnlySpan<uint> valueLow = value.Slice(0, n);
86ReadOnlySpan<uint> valueHigh = value.Slice(n);
131public static void Multiply(ReadOnlySpan<uint> left, uint right, Span<uint> bits)
159public static void Multiply(ReadOnlySpan<uint> left, ReadOnlySpan<uint> right, Span<uint> bits)
212ReadOnlySpan<uint> leftLow = left.Slice(0, n);
213ReadOnlySpan<uint> leftHigh = left.Slice(n);
247static void MultiplyKaratsuba(ReadOnlySpan<uint> left, ReadOnlySpan<uint> right, Span<uint> bits, int n)
261ReadOnlySpan<uint> leftLow = left.Slice(0, n);
262ReadOnlySpan<uint> leftHigh = left.Slice(n);
265ReadOnlySpan<uint> rightLow = right.Slice(0, n);
266ReadOnlySpan<uint> rightHigh = right.Slice(n);
331static void Naive(ReadOnlySpan<uint> left, ReadOnlySpan<uint> right, Span<uint> bits)
362private static void SubtractCore(ReadOnlySpan<uint> left, ReadOnlySpan<uint> right, Span<uint> core)
System\Numerics\Complex.cs (13)
1457/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{char}, NumberStyles, IFormatProvider?)" />
1458public static Complex Parse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider)
2089/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{char}, NumberStyles, IFormatProvider?, out TSelf)" />
2090public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out Complex result)
2199/// <inheritdoc cref="ISpanFormattable.TryFormat(Span{char}, out int, ReadOnlySpan{char}, IFormatProvider?)" />
2200public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) =>
2203/// <inheritdoc cref="IUtf8SpanFormattable.TryFormat(Span{byte}, out int, ReadOnlySpan{char}, IFormatProvider?)" />
2204public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) =>
2207private bool TryFormatCore<TChar>(Span<TChar> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) where TChar : unmanaged, IBinaryInteger<TChar>
2253/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" />
2254public static Complex Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, DefaultNumberStyle, provider);
2256/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" />
2257public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out Complex result) => TryParse(s, DefaultNumberStyle, provider, out result);
System.Runtime.Serialization.Formatters (1)
System.Security.Cryptography (2102)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.cs (7)
32internal static partial int EvpDigestUpdate(SafeEvpMdCtxHandle ctx, ReadOnlySpan<byte> d, int cnt);
50private static unsafe partial int EvpDigestXOFOneShot(IntPtr type, ReadOnlySpan<byte> source, int sourceSize, Span<byte> md, uint len);
60ReadOnlySpan<byte> pPassword,
62ReadOnlySpan<byte> pSalt,
70ReadOnlySpan<byte> password,
71ReadOnlySpan<byte> salt,
97internal static unsafe int EvpDigestXOFOneShot(IntPtr type, ReadOnlySpan<byte> source, Span<byte> destination)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.Kdf.cs (20)
19ReadOnlySpan<byte> ikm,
22ReadOnlySpan<byte> salt,
24ReadOnlySpan<byte> info,
32ReadOnlySpan<byte> prk,
35ReadOnlySpan<byte> info,
43ReadOnlySpan<byte> ikm,
46ReadOnlySpan<byte> salt,
54ReadOnlySpan<byte> key,
57ReadOnlySpan<byte> label,
59ReadOnlySpan<byte> context,
66ReadOnlySpan<byte> ikm,
68ReadOnlySpan<byte> salt,
69ReadOnlySpan<byte> info,
94ReadOnlySpan<byte> prk,
96ReadOnlySpan<byte> info,
119ReadOnlySpan<byte> ikm,
121ReadOnlySpan<byte> salt,
144ReadOnlySpan<byte> key,
146ReadOnlySpan<byte> label,
147ReadOnlySpan<byte> context,
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.Mac.cs (12)
25ReadOnlySpan<byte> key,
27ReadOnlySpan<byte> customizationString,
32private static partial int CryptoNative_EvpMacUpdate(SafeEvpMacCtxHandle ctx, ReadOnlySpan<byte> data, int dataLength);
49ReadOnlySpan<byte> key,
51ReadOnlySpan<byte> customizationString,
53ReadOnlySpan<byte> data,
61ReadOnlySpan<byte> key,
62ReadOnlySpan<byte> customizationString,
63ReadOnlySpan<byte> data,
127ReadOnlySpan<byte> key,
128ReadOnlySpan<byte> customizationString,
141internal static void EvpMacUpdate(SafeEvpMacCtxHandle ctx, ReadOnlySpan<byte> data)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.MLDsa.cs (24)
60private static partial SafeEvpPKeyHandle CryptoNative_MLDsaGenerateKey(string keyType, ReadOnlySpan<byte> seed, int seedLength);
62internal static SafeEvpPKeyHandle MLDsaGenerateKey(string algorithmName, ReadOnlySpan<byte> seed)
80ReadOnlySpan<byte> msg, int msgLength,
81ReadOnlySpan<byte> context, int contextLength,
86ReadOnlySpan<byte> msg,
87ReadOnlySpan<byte> context,
105ReadOnlySpan<byte> msg, int msgLength,
106ReadOnlySpan<byte> context, int contextLength,
107ReadOnlySpan<byte> signature, int signatureLength);
111ReadOnlySpan<byte> msg,
112ReadOnlySpan<byte> context,
113ReadOnlySpan<byte> signature)
138ReadOnlySpan<byte> msg, int msgLength,
143ReadOnlySpan<byte> msg,
160ReadOnlySpan<byte> msg, int msgLength,
161ReadOnlySpan<byte> signature, int signatureLength);
165ReadOnlySpan<byte> msg,
166ReadOnlySpan<byte> signature)
190ReadOnlySpan<byte> mu, int muLength,
195ReadOnlySpan<byte> mu,
216ReadOnlySpan<byte> mu, int muLength,
217ReadOnlySpan<byte> signature, int signatureLength);
221ReadOnlySpan<byte> mu,
222ReadOnlySpan<byte> signature)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.SlhDsa.cs (16)
79ReadOnlySpan<byte> msg, int msgLength,
80ReadOnlySpan<byte> context, int contextLength,
85ReadOnlySpan<byte> msg,
86ReadOnlySpan<byte> context,
104ReadOnlySpan<byte> msg, int msgLength,
105ReadOnlySpan<byte> context, int contextLength,
106ReadOnlySpan<byte> signature, int signatureLength);
110ReadOnlySpan<byte> msg,
111ReadOnlySpan<byte> context,
112ReadOnlySpan<byte> signature)
137ReadOnlySpan<byte> msg, int msgLength,
142ReadOnlySpan<byte> msg,
159ReadOnlySpan<byte> msg, int msgLength,
160ReadOnlySpan<byte> signature, int signatureLength);
164ReadOnlySpan<byte> msg,
165ReadOnlySpan<byte> signature)
src\libraries\Common\src\System\HexConverter.cs (9)
185public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper)
202public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper)
219public static string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper)
249public ReadOnlySpan<byte> Bytes { get; set; }
281public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
293public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
461private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
496private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
603public static ReadOnlySpan<byte> CharToHexLookup =>
src\libraries\Common\src\System\Security\Cryptography\AesGcm.cs (22)
70public AesGcm(ReadOnlySpan<byte> key, int tagSizeInBytes)
111private partial void ImportKey(ReadOnlySpan<byte> key);
114ReadOnlySpan<byte> nonce,
115ReadOnlySpan<byte> ciphertext,
116ReadOnlySpan<byte> tag,
118ReadOnlySpan<byte> associatedData);
121ReadOnlySpan<byte> nonce,
122ReadOnlySpan<byte> plaintext,
125ReadOnlySpan<byte> associatedData);
164Encrypt((ReadOnlySpan<byte>)nonce, plaintext, ciphertext, tag, associatedData);
195ReadOnlySpan<byte> nonce,
196ReadOnlySpan<byte> plaintext,
199ReadOnlySpan<byte> associatedData = default)
243Decrypt((ReadOnlySpan<byte>)nonce, ciphertext, tag, plaintext, associatedData);
274ReadOnlySpan<byte> nonce,
275ReadOnlySpan<byte> ciphertext,
276ReadOnlySpan<byte> tag,
278ReadOnlySpan<byte> associatedData = default)
290ReadOnlySpan<byte> plaintext,
291ReadOnlySpan<byte> ciphertext,
292ReadOnlySpan<byte> nonce,
293ReadOnlySpan<byte> tag)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2Params.xml.cs (1)
14private static ReadOnlySpan<byte> DefaultPrf => [0x30, 0x0C, 0x06, 0x08, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x07, 0x05, 0x00];
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs (4)
14private static ReadOnlySpan<byte> DefaultHashAlgorithm => [0x30, 0x09, 0x06, 0x05, 0x2B, 0x0E, 0x03, 0x02, 0x1A, 0x05, 0x00];
16private static ReadOnlySpan<byte> DefaultMaskGenAlgorithm => [0x30, 0x16, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x08, 0x30, 0x09, 0x06, 0x05, 0x2B, 0x0E, 0x03, 0x02, 0x1A, 0x05, 0x00];
18private static ReadOnlySpan<byte> DefaultSaltLength => [0x02, 0x01, 0x14];
20private static ReadOnlySpan<byte> DefaultTrailerField => [0x02, 0x01, 0x01];
src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsa.cs (56)
195/// <paramref name="context"/> has a <see cref="ReadOnlySpan{T}.Length"/> in excess of
206public int SignData(ReadOnlySpan<byte> data, Span<byte> destination, ReadOnlySpan<byte> context = default)
254protected abstract int SignDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, Span<byte> destination);
312/// <paramref name="context"/> has a <see cref="ReadOnlySpan{T}.Length"/> in excess of
321public bool VerifyData(ReadOnlySpan<byte> data, ReadOnlySpan<byte> signature, ReadOnlySpan<byte> context = default)
359protected abstract bool VerifyDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, ReadOnlySpan<byte> signature);
388/// <inheritdoc cref="ImportFromEncryptedPem(ReadOnlySpan{char}, ReadOnlySpan{char})" />
464public static CompositeMLDsa ImportFromEncryptedPem(ReadOnlySpan<char> source, ReadOnlySpan<char> password)
474/// <inheritdoc cref="ImportFromEncryptedPem(ReadOnlySpan{char}, ReadOnlySpan{byte})" />
546public static CompositeMLDsa ImportFromEncryptedPem(ReadOnlySpan<char> source, ReadOnlySpan<byte> passwordBytes)
556/// <inheritdoc cref="ImportFromPem(ReadOnlySpan{char})" />
606public static CompositeMLDsa ImportFromPem(ReadOnlySpan<char> source)
619/// <inheritdoc cref="ImportSubjectPublicKeyInfo(ReadOnlySpan{byte})" />
664public static CompositeMLDsa ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source)
686/// <inheritdoc cref="ImportEncryptedPkcs8PrivateKey(ReadOnlySpan{char}, ReadOnlySpan{byte})" />
739public static CompositeMLDsa ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source)
797public static CompositeMLDsa ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source)
809/// <inheritdoc cref="ImportPkcs8PrivateKey(ReadOnlySpan{byte})" />>
854public static CompositeMLDsa ImportPkcs8PrivateKey(ReadOnlySpan<byte> source)
871if (!reader.TryReadPrimitiveOctetString(out ReadOnlySpan<byte> key) || reader.HasData)
885/// <inheritdoc cref="ImportCompositeMLDsaPublicKey(CompositeMLDsaAlgorithm, ReadOnlySpan{byte})" />
922public static CompositeMLDsa ImportCompositeMLDsaPublicKey(CompositeMLDsaAlgorithm algorithm, ReadOnlySpan<byte> source)
935/// <inheritdoc cref="ImportCompositeMLDsaPrivateKey(CompositeMLDsaAlgorithm, ReadOnlySpan{byte})" />
972public static CompositeMLDsa ImportCompositeMLDsaPrivateKey(CompositeMLDsaAlgorithm algorithm, ReadOnlySpan<byte> source)
985/// <inheritdoc cref="ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan{char}, PbeParameters)"/>
1027ReadOnlySpan<char> password,
1031PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty);
1071ReadOnlySpan<byte> passwordBytes,
1075PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes);
1084/// <inheritdoc cref="ExportEncryptedPkcs8PrivateKey(ReadOnlySpan{char}, PbeParameters)"/>
1124public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters)
1127PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes);
1169public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters)
1172PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty);
1187/// <inheritdoc cref="TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan{char}, PbeParameters, Span{byte}, out int)"/>
1239ReadOnlySpan<char> password,
1245PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty);
1299ReadOnlySpan<byte> passwordBytes,
1305PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes);
1804private AsnWriter WriteEncryptedPkcs8PrivateKeyToAsnWriter(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters)
1819private AsnWriter WriteEncryptedPkcs8PrivateKeyToAsnWriter(ReadOnlySpan<char> password, PbeParameters pbeParameters)
1864ReadOnlySpan<byte> publicKey = buffer.AsSpan(0, written);
1888private delegate TResult ProcessExportedContent<TResult>(ReadOnlySpan<byte> exportedContent);
src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaManaged.cs (23)
28private static ReadOnlySpan<byte> MessageRepresentativePrefix => "CompositeAlgorithmSignatures2025"u8;
135internal static CompositeMLDsa ImportCompositeMLDsaPublicKeyImpl(CompositeMLDsaAlgorithm algorithm, ReadOnlySpan<byte> source)
165ReadOnlySpan<byte> mldsaKey = source.Slice(0, metadata.MLDsaAlgorithm.PublicKeySizeInBytes);
166ReadOnlySpan<byte> tradKey = source.Slice(metadata.MLDsaAlgorithm.PublicKeySizeInBytes);
185internal static CompositeMLDsa ImportCompositeMLDsaPrivateKeyImpl(CompositeMLDsaAlgorithm algorithm, ReadOnlySpan<byte> source)
207ReadOnlySpan<byte> mldsaKey = source.Slice(0, metadata.MLDsaAlgorithm.PrivateSeedSizeInBytes);
208ReadOnlySpan<byte> tradKey = source.Slice(metadata.MLDsaAlgorithm.PrivateSeedSizeInBytes);
227protected override int SignDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, Span<byte> destination)
318protected override bool VerifyDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, ReadOnlySpan<byte> signature)
336ReadOnlySpan<byte> r = signature.Slice(0, CompositeMLDsaAlgorithm.RandomizerSizeInBytes);
337ReadOnlySpan<byte> mldsaSig = signature.Slice(CompositeMLDsaAlgorithm.RandomizerSizeInBytes, AlgorithmDetails.MLDsaAlgorithm.SignatureSizeInBytes);
338ReadOnlySpan<byte> tradSig = signature.Slice(CompositeMLDsaAlgorithm.RandomizerSizeInBytes + AlgorithmDetails.MLDsaAlgorithm.SignatureSizeInBytes);
441ReadOnlySpan<byte> context,
442ReadOnlySpan<byte> r,
443ReadOnlySpan<byte> message)
516internal static abstract TComponentAlgorithm ImportPrivateKey(TAlgorithmDescriptor algorithm, ReadOnlySpan<byte> source);
517internal static abstract TComponentAlgorithm ImportPublicKey(TAlgorithmDescriptor algorithm, ReadOnlySpan<byte> source);
530ReadOnlySpan<byte> data,
538ReadOnlySpan<byte> data,
542ReadOnlySpan<byte> signature);
src\libraries\Common\src\System\Security\Cryptography\DSAOpenSsl.cs (17)
138ReadOnlySpan<byte> passwordBytes,
139ReadOnlySpan<byte> source,
147ReadOnlySpan<char> password,
148ReadOnlySpan<byte> source,
205ReadOnlySpan<byte> derSignature = SignHash(rgbHash, signDestination, signatureSize, key);
210ReadOnlySpan<byte> hash,
222ReadOnlySpan<byte> hash,
244ReadOnlySpan<byte> derSignature = SignHash(hash, signDestination, maxSignatureSize, key);
262ReadOnlySpan<byte> derSignature = SignHash(hash, signDestination, maxSignatureSize, key);
281private static ReadOnlySpan<byte> SignHash(
282ReadOnlySpan<byte> hash,
313return VerifySignature((ReadOnlySpan<byte>)rgbHash, (ReadOnlySpan<byte>)rgbSignature);
316public override bool VerifySignature(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature) =>
320ReadOnlySpan<byte> hash,
321ReadOnlySpan<byte> signature,
src\libraries\Common\src\System\Security\Cryptography\ECDsaOpenSsl.cs (13)
97public override bool TrySignHash(ReadOnlySpan<byte> hash, Span<byte> destination, out int bytesWritten)
107ReadOnlySpan<byte> hash,
160return VerifyHash((ReadOnlySpan<byte>)hash, (ReadOnlySpan<byte>)signature);
163public override bool VerifyHash(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature) =>
167ReadOnlySpan<byte> hash,
168ReadOnlySpan<byte> signature,
174ReadOnlySpan<byte> toVerify = derSignature;
305ReadOnlySpan<byte> passwordBytes,
306ReadOnlySpan<byte> source,
314ReadOnlySpan<char> password,
315ReadOnlySpan<byte> source,
src\libraries\Common\src\System\Security\Cryptography\IImportExportShape.cs (17)
9static abstract TSelf ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source);
10static abstract TSelf ImportPkcs8PrivateKey(ReadOnlySpan<byte> source);
11static abstract TSelf ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source);
12static abstract TSelf ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source);
14static abstract TSelf ImportFromPem(ReadOnlySpan<char> source);
15static abstract TSelf ImportFromEncryptedPem(ReadOnlySpan<char> source, ReadOnlySpan<char> password);
16static abstract TSelf ImportFromEncryptedPem(ReadOnlySpan<char> source, ReadOnlySpan<byte> passwordBytes);
26byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters);
28ReadOnlySpan<char> password, PbeParameters pbeParameters, Span<byte> destination, out int bytesWritten);
29string ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<char> password, PbeParameters pbeParameters);
31byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters);
33ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters, Span<byte> destination, out int bytesWritten);
34string ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters);
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (31)
15internal delegate TRet ReadOnlySpanFunc<TIn, TRet>(ReadOnlySpan<TIn> span);
19ReadOnlySpan<byte> source,
20ReadOnlySpan<char> password,
36ReadOnlySpan<byte> source,
37ReadOnlySpan<byte> passwordBytes,
60ReadOnlySpan<char> password,
69ReadOnlySpan<byte>.Empty,
78ReadOnlySpan<byte> passwordBytes,
86ReadOnlySpan<char>.Empty,
96ReadOnlySpan<char> password,
97ReadOnlySpan<byte> passwordBytes,
159ReadOnlySpan<char> password,
165ReadOnlySpan<byte>.Empty,
171ReadOnlySpan<byte> passwordBytes,
176ReadOnlySpan<char>.Empty,
183ReadOnlySpan<char> password,
184ReadOnlySpan<byte> passwordBytes,
254ReadOnlySpan<char> inputPassword,
260ReadOnlySpan<byte>.Empty,
266ReadOnlySpan<byte> inputPasswordBytes,
271ReadOnlySpan<char>.Empty,
278ReadOnlySpan<char> password,
279ReadOnlySpan<byte> source,
309ReadOnlySpan<byte> passwordBytes,
310ReadOnlySpan<byte> source,
340ReadOnlySpan<char> inputPassword,
341ReadOnlySpan<byte> inputPasswordBytes,
384ReadOnlySpan<char> inputPassword,
386ReadOnlySpan<char> newPassword,
420ReadOnlySpan<char> inputPassword,
422ReadOnlySpan<byte> newPasswordBytes,
src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (81)
110/// <paramref name="context"/> has a <see cref="ReadOnlySpan{T}.Length"/> in excess of
121public void SignData(ReadOnlySpan<byte> data, Span<byte> destination, ReadOnlySpan<byte> context = default)
193/// <paramref name="context"/> has a <see cref="ReadOnlySpan{T}.Length"/> in excess of
204public bool VerifyData(ReadOnlySpan<byte> data, ReadOnlySpan<byte> signature, ReadOnlySpan<byte> context = default)
287/// <paramref name="context"/> has a <see cref="ReadOnlySpan{T}.Length"/> in excess of
302public void SignPreHash(ReadOnlySpan<byte> hash, Span<byte> destination, string hashAlgorithmOid, ReadOnlySpan<byte> context = default)
400/// <paramref name="context"/> has a <see cref="ReadOnlySpan{T}.Length"/> in excess of
413public bool VerifyPreHash(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature, string hashAlgorithmOid, ReadOnlySpan<byte> context = default)
497/// <inheritdoc cref="SignMu(ReadOnlySpan{byte})"/>
530public byte[] SignMu(ReadOnlySpan<byte> externalMu)
568/// <seealso cref="VerifyMu(ReadOnlySpan{byte}, ReadOnlySpan{byte})"/>
569public void SignMu(ReadOnlySpan<byte> externalMu, Span<byte> destination)
593protected abstract void SignMuCore(ReadOnlySpan<byte> externalMu, Span<byte> destination);
595/// <inheritdoc cref="VerifyMu(ReadOnlySpan{byte}, ReadOnlySpan{byte})"/>
623public bool VerifyMu(ReadOnlySpan<byte> externalMu, ReadOnlySpan<byte> signature)
644protected abstract bool VerifyMuCore(ReadOnlySpan<byte> externalMu, ReadOnlySpan<byte> signature);
855public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters)
858PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty);
902public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters)
905PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes);
920/// <inheritdoc cref="ExportEncryptedPkcs8PrivateKey(ReadOnlySpan{char}, PbeParameters)"/>
968ReadOnlySpan<char> password,
974PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty);
1028ReadOnlySpan<byte> passwordBytes,
1034PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes);
1049/// <inheritdoc cref="TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan{char}, PbeParameters, Span{byte}, out int)"/>
1093ReadOnlySpan<char> password,
1097PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty);
1137ReadOnlySpan<byte> passwordBytes,
1141PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes);
1150/// <inheritdoc cref="ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan{char}, PbeParameters)"/>
1347public static MLDsa ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source)
1362ReadOnlySpan<byte> publicKey = spki.SubjectPublicKey.Span;
1375/// <inheritdoc cref="ImportSubjectPublicKeyInfo(ReadOnlySpan{byte})" />
1416public static MLDsa ImportPkcs8PrivateKey(ReadOnlySpan<byte> source)
1426/// <inheritdoc cref="ImportPkcs8PrivateKey(ReadOnlySpan{byte})" />
1479public static MLDsa ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source)
1528public static MLDsa ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source)
1540/// <inheritdoc cref="ImportEncryptedPkcs8PrivateKey(ReadOnlySpan{char}, ReadOnlySpan{byte})" />
1588public static MLDsa ImportFromPem(ReadOnlySpan<char> source)
1601/// <inheritdoc cref="ImportFromPem(ReadOnlySpan{char})" />
1672public static MLDsa ImportFromEncryptedPem(ReadOnlySpan<char> source, ReadOnlySpan<char> password)
1736public static MLDsa ImportFromEncryptedPem(ReadOnlySpan<char> source, ReadOnlySpan<byte> passwordBytes)
1746/// <inheritdoc cref="ImportFromEncryptedPem(ReadOnlySpan{char}, ReadOnlySpan{char})" />
1759/// <inheritdoc cref="ImportFromEncryptedPem(ReadOnlySpan{char}, ReadOnlySpan{byte})" />
1797public static MLDsa ImportMLDsaPublicKey(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source)
1810/// <inheritdoc cref="ImportMLDsaPublicKey(MLDsaAlgorithm, ReadOnlySpan{byte})" />
1847public static MLDsa ImportMLDsaPrivateKey(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source)
1860/// <inheritdoc cref="ImportMLDsaPrivateKey(MLDsaAlgorithm, ReadOnlySpan{byte})" />
1897public static MLDsa ImportMLDsaPrivateSeed(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source)
1910/// <inheritdoc cref="ImportMLDsaPrivateSeed(MLDsaAlgorithm, ReadOnlySpan{byte})" />
1950protected abstract void SignDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, Span<byte> destination);
1970protected abstract bool VerifyDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, ReadOnlySpan<byte> signature);
1991protected abstract void SignPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, Span<byte> destination);
2014protected abstract bool VerifyPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, ReadOnlySpan<byte> signature);
2076private AsnWriter ExportEncryptedPkcs8PrivateKeyCore(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters)
2105private AsnWriter ExportEncryptedPkcs8PrivateKeyCore(ReadOnlySpan<char> password, PbeParameters pbeParameters)
2333private delegate TResult ExportPkcs8PrivateKeyFunc<TResult>(ReadOnlySpan<byte> pkcs8);
src\libraries\Common\src\System\Security\Cryptography\MLKem.cs (38)
202public void Decapsulate(ReadOnlySpan<byte> ciphertext, Span<byte> sharedSecret)
273protected abstract void DecapsulateCore(ReadOnlySpan<byte> ciphertext, Span<byte> sharedSecret);
351public static MLKem ImportPrivateSeed(MLKemAlgorithm algorithm, ReadOnlySpan<byte> source)
410public static MLKem ImportDecapsulationKey(MLKemAlgorithm algorithm, ReadOnlySpan<byte> source)
467public static MLKem ImportEncapsulationKey(MLKemAlgorithm algorithm, ReadOnlySpan<byte> source)
822ReadOnlySpan<char> password,
828PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty);
923ReadOnlySpan<byte> passwordBytes,
929PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes);
967public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters)
970PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes);
1008public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters)
1011PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty);
1084public string ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters)
1087PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes);
1126public string ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<char> password, PbeParameters pbeParameters)
1129PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty);
1201public static MLKem ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source)
1223/// <inheritdoc cref="ImportSubjectPublicKeyInfo(ReadOnlySpan{byte})" />
1265public static MLKem ImportPkcs8PrivateKey(ReadOnlySpan<byte> source)
1275/// <inheritdoc cref="ImportPkcs8PrivateKey(ReadOnlySpan{byte})" />
1325public static MLKem ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source)
1371public static MLKem ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source)
1467public static MLKem ImportFromPem(ReadOnlySpan<char> source)
1480/// <inheritdoc cref="ImportFromPem(ReadOnlySpan{char})" />
1547public static MLKem ImportFromEncryptedPem(ReadOnlySpan<char> source, ReadOnlySpan<char> password)
1606public static MLKem ImportFromEncryptedPem(ReadOnlySpan<char> source, ReadOnlySpan<byte> passwordBytes)
1614/// <inheritdoc cref="ImportFromEncryptedPem(ReadOnlySpan{char}, ReadOnlySpan{char})" />
1627/// <inheritdoc cref="ImportFromEncryptedPem(ReadOnlySpan{char}, ReadOnlySpan{byte})" />
1797ReadOnlySpan<TChar> password,
1872private delegate TResult ExportPkcs8PrivateKeyFunc<TResult>(ReadOnlySpan<byte> pkcs8);
1875ReadOnlySpan<TChar> password,
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (28)
25ReadOnlySpan<char> password,
26ReadOnlySpan<byte> passwordBytes)
70ReadOnlySpan<char> password,
71ReadOnlySpan<byte> passwordBytes,
72ReadOnlySpan<byte> encryptedData,
172scoped ReadOnlySpan<byte> effectivePasswordBytes = default;
310ReadOnlySpan<char> password,
311ReadOnlySpan<byte> passwordBytes,
316ReadOnlySpan<byte> salt,
451ReadOnlySpan<char> password,
452ReadOnlySpan<byte> passwordBytes,
453ReadOnlySpan<byte> encryptedData,
457scoped ReadOnlySpan<byte> effectivePasswordBytes = default;
511ReadOnlySpan<byte> password,
512ReadOnlySpan<byte> encryptedData,
697ReadOnlySpan<byte> source = encryptionSchemeParameters.Value.Span;
721ReadOnlySpan<byte> password,
805ReadOnlySpan<byte> password,
808ReadOnlySpan<byte> encryptedData,
857ReadOnlySpan<char> password,
860ReadOnlySpan<byte> encryptedData,
887ReadOnlySpan<byte> saltSpan = pbeParameters.Salt.Span;
916ReadOnlySpan<byte> key,
917ReadOnlySpan<byte> iv,
918ReadOnlySpan<byte> encryptedData,
978ReadOnlySpan<byte> password,
979ReadOnlySpan<byte> salt,
1114ReadOnlySpan<byte> salt,
src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (12)
30ReadOnlySpan<char> password,
33ReadOnlySpan<byte> salt,
46ReadOnlySpan<char> password,
49ReadOnlySpan<byte> salt,
62ReadOnlySpan<char> password,
65ReadOnlySpan<byte> salt,
78ReadOnlySpan<char> password,
82ReadOnlySpan<byte> salt,
236private static void AddPlusOne(Span<byte> into, ReadOnlySpan<byte> addend)
250private static void CircularCopy(ReadOnlySpan<byte> bytes, Span<byte> destination)
269private static void CircularCopyUtf16BE(ReadOnlySpan<char> password, Span<byte> destination)
294ReadOnlySpan<char> trimmed = password.Slice(0, destination.Length / 2);
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (17)
108ReadOnlySpan<byte> data,
169ReadOnlySpan<byte> data,
231public override bool TryEncrypt(ReadOnlySpan<byte> data, Span<byte> destination, RSAEncryptionPadding padding, out int bytesWritten)
243ReadOnlySpan<byte> data,
483public override void ImportRSAPublicKey(ReadOnlySpan<byte> source, out int bytesRead)
519ReadOnlySpan<byte> source,
528ReadOnlySpan<byte> source,
553ReadOnlySpan<byte> passwordBytes,
554ReadOnlySpan<byte> source,
562ReadOnlySpan<char> password,
563ReadOnlySpan<byte> source,
570public override void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead)
577private void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, bool checkAlgorithm, out int bytesRead)
599public override void ImportRSAPrivateKey(ReadOnlySpan<byte> source, out int bytesRead)
750ReadOnlySpan<byte> hash,
786public override bool VerifyHash(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (27)
14private static ReadOnlySpan<byte> DigestInfoMD5 =>
21private static ReadOnlySpan<byte> DigestInfoSha1 =>
27private static ReadOnlySpan<byte> DigestInfoSha256 =>
34private static ReadOnlySpan<byte> DigestInfoSha384 =>
41private static ReadOnlySpan<byte> DigestInfoSha512 =>
48private static ReadOnlySpan<byte> DigestInfoSha3_256 =>
55private static ReadOnlySpan<byte> DigestInfoSha3_384 =>
62private static ReadOnlySpan<byte> DigestInfoSha3_512 =>
69private static ReadOnlySpan<byte> EightZeros => [0, 0, 0, 0, 0, 0, 0, 0];
71private static ReadOnlySpan<byte> GetDigestInfoForAlgorithm(
119ReadOnlySpan<byte> source,
147ReadOnlySpan<byte> source,
180private static int DepadPkcs1Encryption(ReadOnlySpan<byte> source)
183ReadOnlySpan<byte> afterPadding = source.Slice(10);
184ReadOnlySpan<byte> noZeros = source.Slice(2, 8);
210private static int BlindFindFirstZero(ReadOnlySpan<byte> source)
251ReadOnlySpan<byte> source,
260ReadOnlySpan<byte> digestInfoPrefix = GetDigestInfoForAlgorithm(hashAlgorithmName, out _);
290ReadOnlySpan<byte> source,
383internal static void EncodePss(HashAlgorithmName hashAlgorithmName, ReadOnlySpan<byte> mHash, Span<byte> destination, int keySize)
472internal static bool VerifyPss(HashAlgorithmName hashAlgorithmName, ReadOnlySpan<byte> mHash, ReadOnlySpan<byte> em, int keySize)
506ReadOnlySpan<byte> maskedDb = em.Slice(0, dbLen);
507ReadOnlySpan<byte> h = em.Slice(dbLen, hLen);
557ReadOnlySpan<byte> salt = dbMask.Slice(dbMask.Length - sLen);
588private static void Mgf1(IncrementalHash hasher, ReadOnlySpan<byte> mgfSeed, Span<byte> mask)
635private static void Xor(Span<byte> a, ReadOnlySpan<byte> b)
src\libraries\Common\src\System\Security\Cryptography\SlhDsa.cs (67)
119/// <paramref name="context"/> has a <see cref="ReadOnlySpan{T}.Length"/> in excess of
130public void SignData(ReadOnlySpan<byte> data, Span<byte> destination, ReadOnlySpan<byte> context = default)
207/// <paramref name="context"/> has a <see cref="ReadOnlySpan{T}.Length"/> in excess of
216public bool VerifyData(ReadOnlySpan<byte> data, ReadOnlySpan<byte> signature, ReadOnlySpan<byte> context = default)
299/// <paramref name="context"/> has a <see cref="ReadOnlySpan{T}.Length"/> in excess of
314public void SignPreHash(ReadOnlySpan<byte> hash, Span<byte> destination, string hashAlgorithmOid, ReadOnlySpan<byte> context = default)
406/// <paramref name="context"/> has a <see cref="ReadOnlySpan{T}.Length"/> in excess of
419public bool VerifyPreHash(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature, string hashAlgorithmOid, ReadOnlySpan<byte> context = default)
735public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters)
738PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty);
782public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters)
785PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes);
800/// <inheritdoc cref="ExportEncryptedPkcs8PrivateKey(ReadOnlySpan{char}, PbeParameters)"/>
848ReadOnlySpan<char> password,
854PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty);
908ReadOnlySpan<byte> passwordBytes,
914PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes);
929/// <inheritdoc cref="TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan{char}, PbeParameters, Span{byte}, out int)"/>
973ReadOnlySpan<char> password,
977PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty);
1024ReadOnlySpan<byte> passwordBytes,
1028PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes);
1044/// <inheritdoc cref="ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan{char}, PbeParameters)"/>
1220public static SlhDsa ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source)
1242/// <inheritdoc cref="ImportSubjectPublicKeyInfo(ReadOnlySpan{byte})" />
1283public static SlhDsa ImportPkcs8PrivateKey(ReadOnlySpan<byte> source)
1294ReadOnlySpan<byte> privateKey = key.Span;
1310/// <inheritdoc cref="ImportPkcs8PrivateKey(ReadOnlySpan{byte})" />>
1363public static SlhDsa ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source)
1412public static SlhDsa ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source)
1424/// <inheritdoc cref="ImportEncryptedPkcs8PrivateKey(ReadOnlySpan{char}, ReadOnlySpan{byte})" />
1472public static SlhDsa ImportFromPem(ReadOnlySpan<char> source)
1485/// <inheritdoc cref="ImportFromPem(ReadOnlySpan{char})" />
1556public static SlhDsa ImportFromEncryptedPem(ReadOnlySpan<char> source, ReadOnlySpan<char> password)
1620public static SlhDsa ImportFromEncryptedPem(ReadOnlySpan<char> source, ReadOnlySpan<byte> passwordBytes)
1630/// <inheritdoc cref="ImportFromEncryptedPem(ReadOnlySpan{char}, ReadOnlySpan{char})" />
1643/// <inheritdoc cref="ImportFromEncryptedPem(ReadOnlySpan{char}, ReadOnlySpan{byte})" />
1681public static SlhDsa ImportSlhDsaPublicKey(SlhDsaAlgorithm algorithm, ReadOnlySpan<byte> source)
1695/// <inheritdoc cref="ImportSlhDsaPublicKey(SlhDsaAlgorithm, ReadOnlySpan{byte})" />
1731public static SlhDsa ImportSlhDsaPrivateKey(SlhDsaAlgorithm algorithm, ReadOnlySpan<byte> source)
1745/// <inheritdoc cref="ImportSlhDsaPrivateKey(SlhDsaAlgorithm, ReadOnlySpan{byte})" />
1784protected abstract void SignDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, Span<byte> destination);
1804protected abstract bool VerifyDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, ReadOnlySpan<byte> signature);
1825protected abstract void SignPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, Span<byte> destination);
1848protected abstract bool VerifyPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, ReadOnlySpan<byte> signature);
1895private AsnWriter ExportEncryptedPkcs8PrivateKeyCore(ReadOnlySpan<char> password, PbeParameters pbeParameters)
1923private AsnWriter ExportEncryptedPkcs8PrivateKeyCore(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters)
2008private delegate TResult ExportPkcs8PrivateKeyFunc<TResult>(ReadOnlySpan<byte> pkcs8);
src\libraries\Common\src\System\Security\Cryptography\SlhDsaCng.cs (10)
65protected override void SignDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, Span<byte> destination) =>
69protected override bool VerifyDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, ReadOnlySpan<byte> signature) =>
73protected override void SignPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, Span<byte> destination) =>
77protected override bool VerifyPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, ReadOnlySpan<byte> signature) =>
src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdf.cs (32)
41ReadOnlySpan<byte> key,
61public SP800108HmacCounterKdf(ReadOnlySpan<byte> key, HashAlgorithmName hashAlgorithm)
240public static byte[] DeriveBytes(ReadOnlySpan<byte> key, HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> label, ReadOnlySpan<byte> context, int derivedKeyLengthInBytes)
272public static void DeriveBytes(ReadOnlySpan<byte> key, HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> label, ReadOnlySpan<byte> context, Span<byte> destination)
312public static byte[] DeriveBytes(ReadOnlySpan<byte> key, HashAlgorithmName hashAlgorithm, ReadOnlySpan<char> label, ReadOnlySpan<char> context, int derivedKeyLengthInBytes)
352public static void DeriveBytes(ReadOnlySpan<byte> key, HashAlgorithmName hashAlgorithm, ReadOnlySpan<char> label, ReadOnlySpan<char> context, Span<byte> destination)
402public byte[] DeriveKey(ReadOnlySpan<byte> label, ReadOnlySpan<byte> context, int derivedKeyLengthInBytes)
429public void DeriveKey(ReadOnlySpan<byte> label, ReadOnlySpan<byte> context, Span<byte> destination)
454public byte[] DeriveKey(ReadOnlySpan<char> label, ReadOnlySpan<char> context, int derivedKeyLengthInBytes)
480public void DeriveKey(ReadOnlySpan<char> label, ReadOnlySpan<char> context, Span<byte> destination)
578ReadOnlySpan<byte> key,
580ReadOnlySpan<byte> label,
581ReadOnlySpan<byte> context,
585ReadOnlySpan<byte> key,
587ReadOnlySpan<char> label,
588ReadOnlySpan<char> context,
591private void DeriveKeyCore(ReadOnlySpan<byte> label, ReadOnlySpan<byte> context, Span<byte> destination)
596private void DeriveKeyCore(ReadOnlySpan<char> label, ReadOnlySpan<char> context, Span<byte> destination)
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.cs (13)
39public static partial X509Certificate2 LoadCertificate(ReadOnlySpan<byte> data);
120/// <see cref="LoadPkcs12Collection(ReadOnlySpan{byte},ReadOnlySpan{char},X509KeyStorageFlags,Pkcs12LoaderLimits?)" />,
189ReadOnlySpan<byte> data,
190ReadOnlySpan<char> password,
312/// <see cref="LoadPkcs12CollectionFromFile(string, ReadOnlySpan{char}, X509KeyStorageFlags,Pkcs12LoaderLimits?)" />,
323ReadOnlySpan<char> password,
419ReadOnlySpan<byte> data,
420ReadOnlySpan<char> password,
535ReadOnlySpan<char> password,
552ReadOnlySpan<char> password,
558ReadOnlySpan<char> password,
634ReadOnlySpan<byte> lengthPart = earlyBuf.Slice(1, read - 1);
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (14)
37ReadOnlySpan<char> password,
43ReadOnlySpan<char> password,
49ReadOnlySpan<char> password,
54ReadOnlySpan<char> password,
59ReadOnlySpan<char> password,
98ReadOnlySpan<char> password,
137ref ReadOnlySpan<char> password,
154ReadOnlySpan<byte> authSafeContents = authSafeMemory.Span;
502ReadOnlySpan<char> passwordSpan,
790static bool HasCapiValue(ReadOnlySpan<byte> encodedAttribute, out bool isRsa)
982ReadOnlySpan<char> passwordSpan,
983ReadOnlySpan<byte> encryptedContent)
1079internal void UnshroudKeys(ref ReadOnlySpan<char> password)
1196ArraySegment<byte> ToPfx(ReadOnlySpan<char> password)
System\Security\Cryptography\AesCcm.cs (14)
17public AesCcm(ReadOnlySpan<byte> key)
42Encrypt((ReadOnlySpan<byte>)nonce, plaintext, ciphertext, tag, associatedData);
46ReadOnlySpan<byte> nonce,
47ReadOnlySpan<byte> plaintext,
50ReadOnlySpan<byte> associatedData = default)
63Decrypt((ReadOnlySpan<byte>)nonce, ciphertext, tag, plaintext, associatedData);
67ReadOnlySpan<byte> nonce,
68ReadOnlySpan<byte> ciphertext,
69ReadOnlySpan<byte> tag,
71ReadOnlySpan<byte> associatedData = default)
78ReadOnlySpan<byte> plaintext,
79ReadOnlySpan<byte> ciphertext,
80ReadOnlySpan<byte> nonce,
81ReadOnlySpan<byte> tag)
System\Security\Cryptography\AesImplementation.cs (12)
88protected override void SetKeyCore(ReadOnlySpan<byte> key)
96ReadOnlySpan<byte> ciphertext,
119ReadOnlySpan<byte> plaintext,
142ReadOnlySpan<byte> plaintext,
143ReadOnlySpan<byte> iv,
167ReadOnlySpan<byte> ciphertext,
168ReadOnlySpan<byte> iv,
192ReadOnlySpan<byte> ciphertext,
193ReadOnlySpan<byte> iv,
220ReadOnlySpan<byte> plaintext,
221ReadOnlySpan<byte> iv,
254private UniversalCryptoTransform CreateTransform(ReadOnlySpan<byte> rgbKey, byte[]? rgbIV, bool encrypting)
System\Security\Cryptography\AsymmetricAlgorithm.cs (35)
93ReadOnlySpan<byte> passwordBytes,
94ReadOnlySpan<byte> source,
101ReadOnlySpan<char> password,
102ReadOnlySpan<byte> source,
108public virtual void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead) =>
111public virtual void ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source, out int bytesRead) =>
115ReadOnlySpan<byte> passwordBytes,
125ReadOnlySpan<char> password,
143ReadOnlySpan<byte> passwordBytes,
152ReadOnlySpan<char> password,
219/// <see cref="ImportEncryptedPkcs8PrivateKey(ReadOnlySpan{char}, ReadOnlySpan{byte}, out int)" />.
237public virtual void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<char> password)
295/// <see cref="ImportEncryptedPkcs8PrivateKey(ReadOnlySpan{byte}, ReadOnlySpan{byte}, out int)" />.
314public virtual void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<byte> passwordBytes)
361public virtual void ImportFromPem(ReadOnlySpan<char> input)
424/// An implementation for <see cref="ExportEncryptedPkcs8PrivateKey(ReadOnlySpan{char}, PbeParameters)" /> or
425/// <see cref="TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan{char}, PbeParameters, Span{byte}, out int)" /> has not been provided.
447public unsafe string ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<char> password, PbeParameters pbeParameters)
477/// An implementation for <see cref="ExportEncryptedPkcs8PrivateKey(ReadOnlySpan{byte}, PbeParameters)" /> or
478/// <see cref="TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan{byte}, PbeParameters, Span{byte}, out int)" /> has not been provided.
495public unsafe string ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters)
665/// An implementation for <see cref="TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan{char}, PbeParameters, Span{byte}, out int)" />
688public bool TryExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<char> password, PbeParameters pbeParameters, Span<char> destination, out int charsWritten)
692ReadOnlySpan<char> password,
732/// An implementation for <see cref="TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan{byte}, PbeParameters, Span{byte}, out int)" />
750public bool TryExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters, Span<char> destination, out int charsWritten)
754ReadOnlySpan<byte> passwordBytes,
772ReadOnlySpan<T> password,
780ReadOnlySpan<T> password,
798ReadOnlySpan<byte> writtenSpan = new ReadOnlySpan<byte>(buf, 0, bytesWritten);
828ReadOnlySpan<byte> writtenSpan = new ReadOnlySpan<byte>(buf, 0, bytesWritten);
System\Security\Cryptography\ChaCha20Poly1305.cs (14)
24public ChaCha20Poly1305(ReadOnlySpan<byte> key)
57Encrypt((ReadOnlySpan<byte>)nonce, plaintext, ciphertext, tag, associatedData);
61ReadOnlySpan<byte> nonce,
62ReadOnlySpan<byte> plaintext,
65ReadOnlySpan<byte> associatedData = default)
78Decrypt((ReadOnlySpan<byte>)nonce, ciphertext, tag, plaintext, associatedData);
82ReadOnlySpan<byte> nonce,
83ReadOnlySpan<byte> ciphertext,
84ReadOnlySpan<byte> tag,
86ReadOnlySpan<byte> associatedData = default)
93ReadOnlySpan<byte> plaintext,
94ReadOnlySpan<byte> ciphertext,
95ReadOnlySpan<byte> nonce,
96ReadOnlySpan<byte> tag)
System\Security\Cryptography\Cng.NotSupported.cs (16)
411protected override void SignDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, Span<byte> destination) =>
414protected override void SignPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, Span<byte> destination) =>
420protected override bool VerifyDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, ReadOnlySpan<byte> signature) =>
423protected override bool VerifyPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, ReadOnlySpan<byte> signature) =>
439protected override void DecapsulateCore(ReadOnlySpan<byte> ciphertext, Span<byte> sharedSecret)
475protected override int SignDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, Span<byte> destination) =>
487protected override bool VerifyDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, ReadOnlySpan<byte> signature) =>
System\Security\Cryptography\CryptographicOperations.cs (14)
24/// values for <see cref="ReadOnlySpan{T}.Length"/> and the same contents, <c>false</c>
37public static bool FixedTimeEquals(ReadOnlySpan<byte> left, ReadOnlySpan<byte> right)
116public static byte[] HashData(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> source)
149public static int HashData(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> source, Span<byte> destination)
185public static bool TryHashData(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)
420public static byte[] HmacData(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> key, ReadOnlySpan<byte> source)
456ReadOnlySpan<byte> key,
457ReadOnlySpan<byte> source,
497ReadOnlySpan<byte> key,
498ReadOnlySpan<byte> source,
574public static byte[] HmacData(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> key, Stream source)
612public static int HmacData(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> key, Stream source, Span<byte> destination)
System\Security\Cryptography\DesImplementation.cs (10)
97ReadOnlySpan<byte> ciphertext,
118ReadOnlySpan<byte> plaintext,
139ReadOnlySpan<byte> plaintext,
140ReadOnlySpan<byte> iv,
161ReadOnlySpan<byte> ciphertext,
162ReadOnlySpan<byte> iv,
183ReadOnlySpan<byte> ciphertext,
184ReadOnlySpan<byte> iv,
208ReadOnlySpan<byte> plaintext,
209ReadOnlySpan<byte> iv,
System\Security\Cryptography\DSA.cs (42)
223ReadOnlySpan<byte> data,
432protected virtual byte[] CreateSignatureCore(ReadOnlySpan<byte> hash, DSASignatureFormat signatureFormat)
446public virtual bool TryCreateSignature(ReadOnlySpan<byte> hash, Span<byte> destination, out int bytesWritten)
471ReadOnlySpan<byte> hash,
501ReadOnlySpan<byte> hash,
520ReadOnlySpan<byte> data,
538ReadOnlySpan<byte> data,
581ReadOnlySpan<byte> data,
614ReadOnlySpan<byte> data,
621ReadOnlySpan<byte> hash = HashSpanToTmp(data, hashAlgorithm, tmp);
627ReadOnlySpan<byte> data,
628ReadOnlySpan<byte> signature,
725ReadOnlySpan<byte> signature,
750ReadOnlySpan<byte> data,
751ReadOnlySpan<byte> signature,
776ReadOnlySpan<byte> data,
777ReadOnlySpan<byte> signature,
782ReadOnlySpan<byte> hash = HashSpanToTmp(data, hashAlgorithm, tmp);
816public virtual bool VerifySignature(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature) =>
835ReadOnlySpan<byte> hash,
836ReadOnlySpan<byte> signature,
858ReadOnlySpan<byte> hash,
859ReadOnlySpan<byte> signature,
878private ReadOnlySpan<byte> HashSpanToTmp(
879ReadOnlySpan<byte> data,
895private byte[] HashSpanToArray(ReadOnlySpan<byte> data, HashAlgorithmName hashAlgorithm)
922ReadOnlySpan<byte> passwordBytes,
931ReadOnlySpan<char>.Empty,
945ReadOnlySpan<char> password,
955ReadOnlySpan<byte>.Empty);
1006ReadOnlySpan<byte> passwordBytes,
1007ReadOnlySpan<byte> source,
1032ReadOnlySpan<char> password,
1033ReadOnlySpan<byte> source,
1058ReadOnlySpan<byte> source,
1082ReadOnlySpan<byte> source,
1155public override void ImportFromPem(ReadOnlySpan<char> input)
1226public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<char> password)
1298public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<byte> passwordBytes)
System\Security\Cryptography\DSACryptoServiceProvider.Unix.cs (11)
72public override bool TryCreateSignature(ReadOnlySpan<byte> hash, Span<byte> destination, out int bytesWritten) =>
117protected override bool TryHashData(ReadOnlySpan<byte> data, Span<byte> destination, HashAlgorithmName hashAlgorithm, out int bytesWritten)
143ReadOnlySpan<byte> passwordBytes,
144ReadOnlySpan<byte> source,
151ReadOnlySpan<char> password,
152ReadOnlySpan<byte> source,
219public override bool TrySignData(ReadOnlySpan<byte> data, Span<byte> destination, HashAlgorithmName hashAlgorithm, out int bytesWritten)
277public override bool VerifyData(ReadOnlySpan<byte> data, ReadOnlySpan<byte> signature, HashAlgorithmName hashAlgorithm)
288public override bool VerifySignature(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature) =>
System\Security\Cryptography\DSAWrapper.cs (21)
49public override bool TryCreateSignature(ReadOnlySpan<byte> hash, Span<byte> destination, out int bytesWritten) =>
53ReadOnlySpan<byte> data,
60ReadOnlySpan<byte> data,
61ReadOnlySpan<byte> signature,
65public override bool VerifySignature(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature) =>
69ReadOnlySpan<byte> passwordBytes,
76ReadOnlySpan<char> password,
89ReadOnlySpan<byte> passwordBytes,
90ReadOnlySpan<byte> source,
95ReadOnlySpan<char> password,
96ReadOnlySpan<byte> source,
100public override void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead) =>
103public override void ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source, out int bytesRead) =>
106public override void ImportFromPem(ReadOnlySpan<char> input) => _wrapped.ImportFromPem(input);
108public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<char> password) =>
111public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<byte> passwordBytes) =>
140ReadOnlySpan<byte> passwordBytes,
145ReadOnlySpan<char> password,
System\Security\Cryptography\ECAlgorithm.cs (20)
129ReadOnlySpan<byte> passwordBytes,
138ReadOnlySpan<char>.Empty,
201ReadOnlySpan<char> password,
211ReadOnlySpan<byte>.Empty);
356/// If the contents are PEM-encoded, <see cref="ImportFromEncryptedPem(ReadOnlySpan{char}, ReadOnlySpan{byte})" />
361ReadOnlySpan<byte> passwordBytes,
362ReadOnlySpan<byte> source,
430/// If the contents are PEM-encoded, <see cref="ImportFromEncryptedPem(ReadOnlySpan{char}, ReadOnlySpan{char})" />
435ReadOnlySpan<char> password,
436ReadOnlySpan<byte> source,
496ReadOnlySpan<byte> source,
555ReadOnlySpan<byte> source,
594public virtual unsafe void ImportECPrivateKey(ReadOnlySpan<byte> source, out int bytesRead)
705public override void ImportFromPem(ReadOnlySpan<char> input)
781public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<char> password)
853public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<byte> passwordBytes)
System\Security\Cryptography\ECDiffieHellmanWrapper.cs (16)
66ReadOnlySpan<byte> passwordBytes,
73ReadOnlySpan<char> password,
89ReadOnlySpan<byte> passwordBytes,
90ReadOnlySpan<byte> source,
95ReadOnlySpan<char> password,
96ReadOnlySpan<byte> source,
100public override void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead) =>
103public override void ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source, out int bytesRead) =>
106public override void ImportECPrivateKey(ReadOnlySpan<byte> source, out int bytesRead) =>
114public override void ImportFromPem(ReadOnlySpan<char> input) => _wrapped.ImportFromPem(input);
116public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<char> password) =>
119public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<byte> passwordBytes) =>
139ReadOnlySpan<byte> passwordBytes,
144ReadOnlySpan<char> password,
System\Security\Cryptography\ECDsa.cs (48)
137ReadOnlySpan<byte> data,
308/// <seealso cref="SignHash(ReadOnlySpan{byte})" />.
309public byte[] SignHash(ReadOnlySpan<byte> hash, DSASignatureFormat signatureFormat)
331/// the signature. To use a different signature format, use <see cref="SignHash(ReadOnlySpan{byte}, DSASignatureFormat)" />.
333/// <seealso cref="SignHash(ReadOnlySpan{byte}, DSASignatureFormat)" />.
334public byte[] SignHash(ReadOnlySpan<byte> hash)
363/// <seealso cref="SignHash(ReadOnlySpan{byte}, Span{byte})" />.
364public int SignHash(ReadOnlySpan<byte> hash, Span<byte> destination, DSASignatureFormat signatureFormat)
397/// the signature. To use a different signature format, use <see cref="SignHash(ReadOnlySpan{byte}, Span{byte}, DSASignatureFormat)" />.
399/// <seealso cref="SignHash(ReadOnlySpan{byte}, Span{byte}, DSASignatureFormat)" />.
400public int SignHash(ReadOnlySpan<byte> hash, Span<byte> destination)
421protected virtual byte[] SignHashCore(ReadOnlySpan<byte> hash, DSASignatureFormat signatureFormat)
463ReadOnlySpan<byte> data,
471ReadOnlySpan<byte> hash = HashSpanToTmp(data, hashAlgorithm, hashTmp);
501ReadOnlySpan<byte> data,
534ReadOnlySpan<byte> data,
541ReadOnlySpan<byte> hash = HashSpanToTmp(data, hashAlgorithm, hashTmp);
576/// <see cref="SignData(ReadOnlySpan{byte}, HashAlgorithmName, DSASignatureFormat)" />.
578/// <seealso cref="SignData(ReadOnlySpan{byte}, HashAlgorithmName, DSASignatureFormat)" />
579public byte[] SignData(ReadOnlySpan<byte> data, HashAlgorithmName hashAlgorithm)
610/// <seealso cref="SignData(ReadOnlySpan{byte}, HashAlgorithmName)" />
611public byte[] SignData(ReadOnlySpan<byte> data, HashAlgorithmName hashAlgorithm, DSASignatureFormat signatureFormat)
654/// <seealso cref="SignData(ReadOnlySpan{byte}, Span{byte}, HashAlgorithmName)" />
656ReadOnlySpan<byte> data,
704/// <see cref="SignData(ReadOnlySpan{byte}, Span{byte}, HashAlgorithmName, DSASignatureFormat)" />.
706/// <seealso cref="SignData(ReadOnlySpan{byte}, Span{byte}, HashAlgorithmName, DSASignatureFormat)" />
707public int SignData(ReadOnlySpan<byte> data, Span<byte> destination, HashAlgorithmName hashAlgorithm)
841public virtual bool VerifyData(ReadOnlySpan<byte> data, ReadOnlySpan<byte> signature, HashAlgorithmName hashAlgorithm)
846ReadOnlySpan<byte> hash = HashSpanToTmp(data, hashAlgorithm, hashTmp);
867ReadOnlySpan<byte> data,
868ReadOnlySpan<byte> signature,
893ReadOnlySpan<byte> data,
894ReadOnlySpan<byte> signature,
978ReadOnlySpan<byte> signature,
998protected virtual bool TryHashData(ReadOnlySpan<byte> data, Span<byte> destination, HashAlgorithmName hashAlgorithm, out int bytesWritten)
1041public virtual bool TrySignHash(ReadOnlySpan<byte> hash, Span<byte> destination, out int bytesWritten)
1066ReadOnlySpan<byte> hash,
1096ReadOnlySpan<byte> hash,
1109public virtual bool VerifyHash(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature) =>
1157ReadOnlySpan<byte> hash,
1158ReadOnlySpan<byte> signature,
1180ReadOnlySpan<byte> hash,
1181ReadOnlySpan<byte> signature,
1198private ReadOnlySpan<byte> HashSpanToTmp(
1199ReadOnlySpan<byte> data,
1215private byte[] HashSpanToArray(ReadOnlySpan<byte> data, HashAlgorithmName hashAlgorithm)
System\Security\Cryptography\ECDsaWrapper.cs (22)
27ReadOnlySpan<byte> data,
45ReadOnlySpan<byte> data,
46ReadOnlySpan<byte> signature,
70ReadOnlySpan<byte> passwordBytes,
71ReadOnlySpan<byte> source,
76ReadOnlySpan<char> password,
77ReadOnlySpan<byte> source,
82ReadOnlySpan<byte> source,
87ReadOnlySpan<byte> source,
92ReadOnlySpan<byte> source,
104ReadOnlySpan<byte> passwordBytes,
109ReadOnlySpan<char> password,
132ReadOnlySpan<byte> passwordBytes,
139ReadOnlySpan<char> password,
154public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<char> password) =>
157public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<byte> passwordBytes) =>
160public override void ImportFromPem(ReadOnlySpan<char> input) => _wrapped.ImportFromPem(input);
172public override bool TrySignHash(ReadOnlySpan<byte> hash, Span<byte> destination, out int bytesWritten) =>
175public override bool VerifyHash(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature) =>
System\Security\Cryptography\Helpers.cs (16)
92ReadOnlySpan<char> s = hexString;
164ReadOnlySpan<byte> input = encodedOctetString.Span;
169out ReadOnlySpan<byte> primitive,
275internal static void ValidateDer(ReadOnlySpan<byte> encodedValue)
336internal static unsafe ref readonly byte GetNonNullPinnableReference(ReadOnlySpan<byte> buffer)
349internal static ReadOnlySpan<byte> ArrayToSpanOrThrow(
474ReadOnlySpan<byte> encodedMessage,
483ReadOnlySpan<byte> hash,
484ReadOnlySpan<byte> context,
485ReadOnlySpan<char> hashAlgorithmOid,
497ReadOnlySpan<byte> hash,
498ReadOnlySpan<byte> context,
499ReadOnlySpan<char> hashAlgorithmOid,
511ReadOnlySpan<byte> hash,
512ReadOnlySpan<byte> context,
513ReadOnlySpan<char> hashAlgorithmOid,
System\Security\Cryptography\HKDF.cs (7)
51public static int Extract(HashAlgorithmName hashAlgorithmName, ReadOnlySpan<byte> ikm, ReadOnlySpan<byte> salt, Span<byte> prk)
118public static void Expand(HashAlgorithmName hashAlgorithmName, ReadOnlySpan<byte> prk, Span<byte> output, ReadOnlySpan<byte> info)
175public static void DeriveKey(HashAlgorithmName hashAlgorithmName, ReadOnlySpan<byte> ikm, Span<byte> output, ReadOnlySpan<byte> salt, ReadOnlySpan<byte> info)
System\Security\Cryptography\HKDFManagedImplementation.cs (8)
12internal static void Extract(HashAlgorithmName hashAlgorithmName, int hashLength, ReadOnlySpan<byte> ikm, ReadOnlySpan<byte> salt, Span<byte> prk)
19internal static void Expand(HashAlgorithmName hashAlgorithmName, int hashLength, ReadOnlySpan<byte> prk, Span<byte> output, ReadOnlySpan<byte> info)
30scoped ReadOnlySpan<byte> infoBuffer;
86internal static void DeriveKey(HashAlgorithmName hashAlgorithmName, int hashLength, ReadOnlySpan<byte> ikm, Span<byte> output, ReadOnlySpan<byte> salt, ReadOnlySpan<byte> info)
System\Security\Cryptography\MLDsaImplementation.OpenSsl.cs (17)
75protected override void SignDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, Span<byte> destination) =>
78protected override bool VerifyDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, ReadOnlySpan<byte> signature) =>
81protected override void SignPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, Span<byte> destination) =>
94protected override bool VerifyPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, ReadOnlySpan<byte> signature) =>
103protected override void SignMuCore(ReadOnlySpan<byte> externalMu, Span<byte> destination) =>
106protected override bool VerifyMuCore(ReadOnlySpan<byte> externalMu, ReadOnlySpan<byte> signature) =>
144SafeEvpPKeyHandle key = Interop.Crypto.MLDsaGenerateKey(algorithm.Name, ReadOnlySpan<byte>.Empty);
148internal static partial MLDsaImplementation ImportPublicKey(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source)
155internal static partial MLDsaImplementation ImportPrivateKey(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source)
162internal static partial MLDsaImplementation ImportSeed(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source)
System\Security\Cryptography\MLDsaOpenSsl.OpenSsl.cs (13)
73protected override void SignDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, Span<byte> destination) =>
77protected override bool VerifyDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, ReadOnlySpan<byte> signature) =>
81protected override void SignPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, Span<byte> destination) =>
95protected override bool VerifyPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, ReadOnlySpan<byte> signature) =>
105protected override void SignMuCore(ReadOnlySpan<byte> externalMu, Span<byte> destination) =>
109protected override bool VerifyMuCore(ReadOnlySpan<byte> externalMu, ReadOnlySpan<byte> signature) =>
System\Security\Cryptography\PemEncoding.cs (53)
39public static PemFields Find(ReadOnlySpan<char> pemData)
69public static PemFields FindUtf8(ReadOnlySpan<byte> pemData)
98public static bool TryFind(ReadOnlySpan<char> pemData, out PemFields fields)
125public static bool TryFindUtf8(ReadOnlySpan<byte> pemData, out PemFields fields)
130private static bool TryFindCore<TChar, T>(ReadOnlySpan<TChar> pemData, out PemFields fields)
171ReadOnlySpan<TChar> label = pemData[labelRange];
186ReadOnlySpan<TChar> posteb = WritePostEB(label, postebBuffer);
232static ReadOnlySpan<TChar> WritePostEB(ReadOnlySpan<TChar> label, Span<TChar> destination)
243private static int IndexOfByOffset<TChar>(this ReadOnlySpan<TChar> str, ReadOnlySpan<TChar> value, int startPosition)
251private static bool IsValidLabel<TChar>(ReadOnlySpan<TChar> data)
302ReadOnlySpan<TChar> str,
327private static bool IsWhiteSpaceCharacter<TChar>(TChar ch, ReadOnlySpan<TChar> whitespace)
458public static bool TryWrite(ReadOnlySpan<char> label, ReadOnlySpan<byte> data, Span<char> destination, out int charsWritten)
518ReadOnlySpan<byte> utf8Label,
519ReadOnlySpan<byte> data,
575public static byte[] WriteUtf8(ReadOnlySpan<byte> utf8Label, ReadOnlySpan<byte> data)
588private static int WriteCore<TChar, T>(ReadOnlySpan<TChar> label, ReadOnlySpan<byte> data, Span<TChar> destination)
592static int Write(ReadOnlySpan<TChar> str, Span<TChar> dest, int offset)
606ReadOnlySpan<byte> remainingData = data;
659public static char[] Write(ReadOnlySpan<char> label, ReadOnlySpan<byte> data)
702public static unsafe string WriteString(ReadOnlySpan<char> label, ReadOnlySpan<byte> data)
714ReadOnlySpan<char> label = *(ReadOnlySpan<char>*)state.LabelPointer;
715ReadOnlySpan<byte> data = *(ReadOnlySpan<byte>*)state.DataPointer;
729static abstract ReadOnlySpan<TChar> PreEBPrefix { get; }
730static abstract ReadOnlySpan<TChar> PostEBPrefix { get; }
731static abstract ReadOnlySpan<TChar> Ending { get; }
732static abstract ReadOnlySpan<TChar> Whitespace { get; }
733static abstract ReadOnlySpan<TChar> NewLine { get; }
734static abstract bool IsValidBase64(ReadOnlySpan<TChar> base64Text, out int decodedLength);
735static abstract int WriteBase64(ReadOnlySpan<byte> bytes, Span<TChar> destination, int offset);
740public static ReadOnlySpan<char> PreEBPrefix => "-----BEGIN ";
741public static ReadOnlySpan<char> PostEBPrefix => "-----END ";
742public static ReadOnlySpan<char> Ending => "-----";
743public static ReadOnlySpan<char> Whitespace => " \t\n\r";
744public static ReadOnlySpan<char> NewLine => "\n";
746public static bool IsValidBase64(ReadOnlySpan<char> base64Text, out int decodedLength)
751public static int WriteBase64(ReadOnlySpan<byte> bytes, Span<char> destination, int offset)
767public static ReadOnlySpan<byte> PreEBPrefix => "-----BEGIN "u8;
768public static ReadOnlySpan<byte> PostEBPrefix => "-----END "u8;
769public static ReadOnlySpan<byte> Ending => "-----"u8;
770public static ReadOnlySpan<byte> Whitespace => " \t\n\r"u8;
771public static ReadOnlySpan<byte> NewLine => "\n"u8;
773public static bool IsValidBase64(ReadOnlySpan<byte> base64Text, out int decodedLength)
778public static int WriteBase64(ReadOnlySpan<byte> bytes, Span<byte> destination, int offset)
System\Security\Cryptography\RC2Implementation.cs (10)
83ReadOnlySpan<byte> ciphertext,
107ReadOnlySpan<byte> plaintext,
131ReadOnlySpan<byte> plaintext,
132ReadOnlySpan<byte> iv,
156ReadOnlySpan<byte> ciphertext,
157ReadOnlySpan<byte> iv,
181ReadOnlySpan<byte> ciphertext,
182ReadOnlySpan<byte> iv,
192ReadOnlySpan<byte> plaintext,
193ReadOnlySpan<byte> iv,
System\Security\Cryptography\Rfc2898DeriveBytes.OneShot.cs (16)
76ReadOnlySpan<byte> password,
77ReadOnlySpan<byte> salt,
113ReadOnlySpan<byte> password,
114ReadOnlySpan<byte> salt,
200/// and use <see cref="Pbkdf2(ReadOnlySpan{byte}, ReadOnlySpan{byte}, int, HashAlgorithmName, int)" />.
203ReadOnlySpan<char> password,
204ReadOnlySpan<byte> salt,
245/// and use <see cref="Pbkdf2(ReadOnlySpan{byte}, ReadOnlySpan{byte}, Span{byte}, int, HashAlgorithmName)" />.
248ReadOnlySpan<char> password,
249ReadOnlySpan<byte> salt,
262ReadOnlySpan<char> password,
263ReadOnlySpan<byte> salt,
303ReadOnlySpan<byte> password,
304ReadOnlySpan<byte> salt,
System\Security\Cryptography\RSA.cs (44)
102public virtual bool TryDecrypt(ReadOnlySpan<byte> data, Span<byte> destination, RSAEncryptionPadding padding, out int bytesWritten)
117public virtual bool TryEncrypt(ReadOnlySpan<byte> data, Span<byte> destination, RSAEncryptionPadding padding, out int bytesWritten)
159/// <seealso cref="Encrypt(ReadOnlySpan{byte}, Span{byte}, RSAEncryptionPadding)" />
161public byte[] Encrypt(ReadOnlySpan<byte> data, RSAEncryptionPadding padding)
167ReadOnlySpan<byte> input,
209/// <seealso cref="Encrypt(ReadOnlySpan{byte}, RSAEncryptionPadding)" />
211public int Encrypt(ReadOnlySpan<byte> data, Span<byte> destination, RSAEncryptionPadding padding)
246/// <seealso cref="Decrypt(ReadOnlySpan{byte}, Span{byte}, RSAEncryptionPadding)" />
248public byte[] Decrypt(ReadOnlySpan<byte> data, RSAEncryptionPadding padding)
254ReadOnlySpan<byte> input,
292/// <seealso cref="Decrypt(ReadOnlySpan{byte}, RSAEncryptionPadding)" />
294public int Decrypt(ReadOnlySpan<byte> data, Span<byte> destination, RSAEncryptionPadding padding)
306protected virtual bool TryHashData(ReadOnlySpan<byte> data, Span<byte> destination, HashAlgorithmName hashAlgorithm, out int bytesWritten)
341public virtual bool TrySignHash(ReadOnlySpan<byte> hash, Span<byte> destination, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding, out int bytesWritten)
356public virtual bool VerifyHash(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding) =>
411public virtual bool TrySignData(ReadOnlySpan<byte> data, Span<byte> destination, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding, out int bytesWritten)
456public byte[] SignData(ReadOnlySpan<byte> data, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
463ReadOnlySpan<byte> input,
516ReadOnlySpan<byte> data,
562public byte[] SignHash(ReadOnlySpan<byte> hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
569ReadOnlySpan<byte> input,
618ReadOnlySpan<byte> hash,
676public virtual bool VerifyData(ReadOnlySpan<byte> data, ReadOnlySpan<byte> signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
802ReadOnlySpan<char> password,
812ReadOnlySpan<byte>.Empty);
825ReadOnlySpan<byte> passwordBytes,
834ReadOnlySpan<char>.Empty,
875public override unsafe void ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source, out int bytesRead)
891public virtual unsafe void ImportRSAPublicKey(ReadOnlySpan<byte> source, out int bytesRead)
921public virtual unsafe void ImportRSAPrivateKey(ReadOnlySpan<byte> source, out int bytesRead)
948public override unsafe void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead)
965ReadOnlySpan<byte> passwordBytes,
966ReadOnlySpan<byte> source,
996ReadOnlySpan<char> password,
997ReadOnlySpan<byte> source,
1063public override void ImportFromPem(ReadOnlySpan<char> input)
1140public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<char> password)
1212public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<byte> passwordBytes)
1382private delegate bool TryFunc<TState>(RSA rsa, ReadOnlySpan<byte> input, byte[] destination, TState state, out int bytesWritten);
1385ReadOnlySpan<byte> input,
System\Security\Cryptography\RSACryptoServiceProvider.Unix.cs (16)
64public override bool TryDecrypt(ReadOnlySpan<byte> data, Span<byte> destination, RSAEncryptionPadding padding, out int bytesWritten)
103public override bool TryEncrypt(ReadOnlySpan<byte> data, Span<byte> destination, RSAEncryptionPadding padding, out int bytesWritten)
143ReadOnlySpan<byte> passwordBytes,
144ReadOnlySpan<byte> source,
151ReadOnlySpan<char> password,
152ReadOnlySpan<byte> source,
205public override bool TrySignData(ReadOnlySpan<byte> data, Span<byte> destination, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding, out int bytesWritten)
242public override bool TrySignHash(ReadOnlySpan<byte> hash, Span<byte> destination, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding, out int bytesWritten)
286public override bool VerifyData(ReadOnlySpan<byte> data, ReadOnlySpan<byte> signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
305return VerifyHash((ReadOnlySpan<byte>)hash, (ReadOnlySpan<byte>)signature, hashAlgorithm, padding);
308public override bool VerifyHash(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
328(ReadOnlySpan<byte>)rgbHash, (ReadOnlySpan<byte>)rgbSignature,
System\Security\Cryptography\RSAWrapper.cs (25)
29ReadOnlySpan<byte> passwordBytes,
34ReadOnlySpan<char> password,
70ReadOnlySpan<byte> data,
77ReadOnlySpan<byte> data,
84ReadOnlySpan<byte> hash,
92ReadOnlySpan<byte> hash,
93ReadOnlySpan<byte> signature,
118ReadOnlySpan<byte> data,
135ReadOnlySpan<byte> data,
136ReadOnlySpan<byte> signature,
158ReadOnlySpan<char> password,
165ReadOnlySpan<byte> passwordBytes,
171public override void ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source, out int bytesRead) =>
174public override void ImportRSAPublicKey(ReadOnlySpan<byte> source, out int bytesRead) =>
177public override void ImportRSAPrivateKey(ReadOnlySpan<byte> source, out int bytesRead) =>
180public override void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead) =>
184ReadOnlySpan<byte> passwordBytes,
185ReadOnlySpan<byte> source,
190ReadOnlySpan<char> password,
191ReadOnlySpan<byte> source,
195public override void ImportFromPem(ReadOnlySpan<char> input) =>
198public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<char> password) =>
201public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<byte> passwordBytes) =>
System\Security\Cryptography\SlhDsaImplementation.OpenSsl.cs (13)
63protected override void SignDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, Span<byte> destination) =>
66protected override bool VerifyDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, ReadOnlySpan<byte> signature) =>
69protected override void SignPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, Span<byte> destination) =>
82protected override bool VerifyPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, ReadOnlySpan<byte> signature) =>
97internal static partial SlhDsaImplementation ImportPublicKey(SlhDsaAlgorithm algorithm, ReadOnlySpan<byte> source)
104internal static partial SlhDsaImplementation ImportPkcs8PrivateKeyValue(SlhDsaAlgorithm algorithm, ReadOnlySpan<byte> source) =>
107internal static partial SlhDsaImplementation ImportPrivateKey(SlhDsaAlgorithm algorithm, ReadOnlySpan<byte> source)
System\Security\Cryptography\SlhDsaOpenSsl.OpenSsl.cs (10)
83protected override void SignDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, Span<byte> destination) =>
86protected override bool VerifyDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, ReadOnlySpan<byte> signature) =>
89protected override void SignPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, Span<byte> destination) =>
102protected override bool VerifyPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, ReadOnlySpan<byte> signature) =>
System\Security\Cryptography\SP800108HmacCounterKdfImplementationOpenSsl.cs (11)
16internal unsafe SP800108HmacCounterKdfImplementationOpenSsl(ReadOnlySpan<byte> key, HashAlgorithmName hashAlgorithm)
27internal override unsafe void DeriveBytes(ReadOnlySpan<byte> label, ReadOnlySpan<byte> context, Span<byte> destination)
63internal override void DeriveBytes(ReadOnlySpan<char> label, ReadOnlySpan<char> context, Span<byte> destination)
73ReadOnlySpan<byte> key,
75ReadOnlySpan<byte> label,
76ReadOnlySpan<byte> context,
96ReadOnlySpan<byte> key,
98ReadOnlySpan<char> label,
99ReadOnlySpan<char> context,
System\Security\Cryptography\SymmetricAlgorithm.cs (43)
226public void SetKey(ReadOnlySpan<byte> key)
257protected virtual void SetKeyCore(ReadOnlySpan<byte> key)
516public byte[] DecryptEcb(ReadOnlySpan<byte> ciphertext, PaddingMode paddingMode)
558public int DecryptEcb(ReadOnlySpan<byte> ciphertext, Span<byte> destination, PaddingMode paddingMode)
587public bool TryDecryptEcb(ReadOnlySpan<byte> ciphertext, Span<byte> destination, PaddingMode paddingMode, out int bytesWritten)
634public byte[] EncryptEcb(ReadOnlySpan<byte> plaintext, PaddingMode paddingMode)
676public int EncryptEcb(ReadOnlySpan<byte> plaintext, Span<byte> destination, PaddingMode paddingMode)
705public bool TryEncryptEcb(ReadOnlySpan<byte> plaintext, Span<byte> destination, PaddingMode paddingMode, out int bytesWritten)
762public byte[] DecryptCbc(ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> iv, PaddingMode paddingMode = PaddingMode.PKCS7)
816ReadOnlySpan<byte> ciphertext,
817ReadOnlySpan<byte> iv,
855ReadOnlySpan<byte> ciphertext,
856ReadOnlySpan<byte> iv,
918ReadOnlySpan<byte> plaintext,
919ReadOnlySpan<byte> iv,
969ReadOnlySpan<byte> plaintext,
970ReadOnlySpan<byte> iv,
1008ReadOnlySpan<byte> plaintext,
1009ReadOnlySpan<byte> iv,
1112ReadOnlySpan<byte> ciphertext,
1113ReadOnlySpan<byte> iv,
1188ReadOnlySpan<byte> ciphertext,
1189ReadOnlySpan<byte> iv,
1247ReadOnlySpan<byte> ciphertext,
1248ReadOnlySpan<byte> iv,
1352ReadOnlySpan<byte> plaintext,
1353ReadOnlySpan<byte> iv,
1420ReadOnlySpan<byte> plaintext,
1421ReadOnlySpan<byte> iv,
1479ReadOnlySpan<byte> plaintext,
1480ReadOnlySpan<byte> iv,
1514ReadOnlySpan<byte> plaintext,
1538ReadOnlySpan<byte> ciphertext,
1568ReadOnlySpan<byte> plaintext,
1569ReadOnlySpan<byte> iv,
1594ReadOnlySpan<byte> ciphertext,
1595ReadOnlySpan<byte> iv,
1622ReadOnlySpan<byte> ciphertext,
1623ReadOnlySpan<byte> iv,
1655ReadOnlySpan<byte> plaintext,
1656ReadOnlySpan<byte> iv,
1671private void CheckInitializationVectorSize(ReadOnlySpan<byte> iv)
System\Security\Cryptography\TripleDesImplementation.cs (10)
94ReadOnlySpan<byte> ciphertext,
115ReadOnlySpan<byte> plaintext,
136ReadOnlySpan<byte> plaintext,
137ReadOnlySpan<byte> iv,
158ReadOnlySpan<byte> ciphertext,
159ReadOnlySpan<byte> iv,
180ReadOnlySpan<byte> ciphertext,
181ReadOnlySpan<byte> iv,
205ReadOnlySpan<byte> plaintext,
206ReadOnlySpan<byte> iv,
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (39)
97public X509Certificate2(ReadOnlySpan<byte> rawData)
118public X509Certificate2(ReadOnlySpan<byte> rawData, ReadOnlySpan<char> password, X509KeyStorageFlags keyStorageFlags = 0)
173public X509Certificate2(string fileName, ReadOnlySpan<char> password, X509KeyStorageFlags keyStorageFlags = 0)
410public static X509ContentType GetCertContentType(ReadOnlySpan<byte> rawData)
1251ReadOnlySpan<char> certContents = File.ReadAllText(certPemFilePath);
1252ReadOnlySpan<char> keyContents = keyPemFilePath is null ? certContents : File.ReadAllText(keyPemFilePath);
1313public static X509Certificate2 CreateFromEncryptedPemFile(string certPemFilePath, ReadOnlySpan<char> password, string? keyPemFilePath = default)
1317ReadOnlySpan<char> certContents = File.ReadAllText(certPemFilePath);
1318ReadOnlySpan<char> keyContents = keyPemFilePath is null ? certContents : File.ReadAllText(keyPemFilePath);
1363public static X509Certificate2 CreateFromPem(ReadOnlySpan<char> certPem, ReadOnlySpan<char> keyPem)
1456/// For PEM-encoded keys without a password, use <see cref="CreateFromPem(ReadOnlySpan{char}, ReadOnlySpan{char})" />.
1460public static X509Certificate2 CreateFromEncryptedPem(ReadOnlySpan<char> certPem, ReadOnlySpan<char> keyPem, ReadOnlySpan<char> password)
1546/// <see cref="CreateFromPem(ReadOnlySpan{char}, ReadOnlySpan{char})" />.
1553public static X509Certificate2 CreateFromPem(ReadOnlySpan<char> certPem)
1555foreach ((ReadOnlySpan<char> contents, PemFields fields) in PemEnumerator.Utf16(certPem))
1557ReadOnlySpan<char> label = contents[fields.Label];
1793ReadOnlySpan<char> match = hostname;
1806ReadOnlySpan<char> afterFirstDot = default;
1824ReadOnlySpan<char> embeddedSpan = embedded;
1901private static TAlg CreateAndImport<TAlg>(ReadOnlySpan<char> keyPem, Func<TAlg> factory) where TAlg : AsymmetricAlgorithm
1909ReadOnlySpan<char> keyPem,
1910ReadOnlySpan<char> password,
1919ReadOnlySpan<char> keyPem,
1920ReadOnlySpan<string> labels,
1921Func<ReadOnlySpan<char>, TAlg> factory,
1924foreach ((ReadOnlySpan<char> contents, PemFields fields) in PemEnumerator.Utf16(keyPem))
1926ReadOnlySpan<char> label = contents[fields.Label];
1951ReadOnlySpan<char> keyPem,
1952ReadOnlySpan<char> password,
1953Func<ReadOnlySpan<char>, ReadOnlySpan<char>, TAlg> factory,
1956foreach ((ReadOnlySpan<char> contents, PemFields fields) in PemEnumerator.Utf16(keyPem))
1958ReadOnlySpan<char> label = contents[fields.Label];
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (12)
219public void Import(ReadOnlySpan<byte> rawData)
248public void Import(ReadOnlySpan<byte> rawData, string? password, X509KeyStorageFlags keyStorageFlags = 0)
266public void Import(ReadOnlySpan<byte> rawData, ReadOnlySpan<char> password, X509KeyStorageFlags keyStorageFlags = 0)
315public void Import(string fileName, ReadOnlySpan<char> password, X509KeyStorageFlags keyStorageFlags = 0)
415ReadOnlySpan<char> contents = System.IO.File.ReadAllText(certPemFilePath);
437public void ImportFromPem(ReadOnlySpan<char> certPem)
443foreach ((ReadOnlySpan<char> contents, PemFields fields) in PemEnumerator.Utf16(certPem))
445ReadOnlySpan<char> label = contents[fields.Label];
724public X509Certificate2Collection FindByThumbprint(HashAlgorithmName hashAlgorithm, ReadOnlySpan<char> thumbprintHex)
774public X509Certificate2Collection FindByThumbprint(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> thumbprintBytes)
780private X509Certificate2Collection FindByThumbprintCore(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> thumbprintBytes)
System.Security.Cryptography.Cose (108)
System\Security\Cryptography\Cose\CoseMessage.cs (12)
106public static CoseSign1Message DecodeSign1(ReadOnlySpan<byte> cborPayload)
191public static CoseMultiSignMessage DecodeMultiSign(ReadOnlySpan<byte> cborPayload)
410ReadOnlySpan<byte> bodyProtected,
411ReadOnlySpan<byte> signProtected,
412ReadOnlySpan<byte> associatedData,
413ReadOnlySpan<byte> contentBytes,
416int bytesWritten = CreateToBeSigned(buffer, context, bodyProtected, signProtected, associatedData, ReadOnlySpan<byte>.Empty);
462int bytesWritten = CreateToBeSigned(buffer, context, bodyProtected.Span, signProtected.Span, associatedData.Span, ReadOnlySpan<byte>.Empty);
485internal static int CreateToBeSigned(Span<byte> destination, SigStructureContext context, ReadOnlySpan<byte> bodyProtected, ReadOnlySpan<byte> signProtected, ReadOnlySpan<byte> associatedData, ReadOnlySpan<byte> content)
System\Security\Cryptography\Cose\CoseMultiSignMessage.cs (24)
127public static byte[] SignDetached(ReadOnlySpan<byte> detachedContent, CoseSigner signer, CoseHeaderMap? protectedHeaders = null, CoseHeaderMap? unprotectedHeaders = null, ReadOnlySpan<byte> associatedData = default)
154public static byte[] SignEmbedded(ReadOnlySpan<byte> embeddedContent, CoseSigner signer, CoseHeaderMap? protectedHeaders = null, CoseHeaderMap? unprotectedHeaders = null, ReadOnlySpan<byte> associatedData = default)
185public static byte[] SignDetached(Stream detachedContent, CoseSigner signer, CoseHeaderMap? protectedHeaders = null, CoseHeaderMap? unprotectedHeaders = null, ReadOnlySpan<byte> associatedData = default)
199ReadOnlySpan<byte> content,
204ReadOnlySpan<byte> associatedData,
312public static bool TrySignDetached(ReadOnlySpan<byte> detachedContent, Span<byte> destination, CoseSigner signer, out int bytesWritten, CoseHeaderMap? protectedHeaders = null, CoseHeaderMap? unprotectedHeaders = null, ReadOnlySpan<byte> associatedData = default)
340public static bool TrySignEmbedded(ReadOnlySpan<byte> embeddedContent, Span<byte> destination, CoseSigner signer, out int bytesWritten, CoseHeaderMap? protectedHeaders = null, CoseHeaderMap? unprotectedHeaders = null, ReadOnlySpan<byte> associatedData = default)
343private static bool TrySign(ReadOnlySpan<byte> content, Span<byte> destination, CoseSigner signer, CoseHeaderMap? protectedHeaders, CoseHeaderMap? unprotectedHeaders, out int bytesWritten, ReadOnlySpan<byte> associatedData, bool isDetached)
363ReadOnlySpan<byte> content,
369ReadOnlySpan<byte> associatedData,
441ReadOnlySpan<byte> bodyProtected,
442ReadOnlySpan<byte> associatedData,
443ReadOnlySpan<byte> content,
665public void AddSignatureForEmbedded(CoseSigner signer, ReadOnlySpan<byte> associatedData)
718public void AddSignatureForDetached(ReadOnlySpan<byte> detachedContent, CoseSigner signer, ReadOnlySpan<byte> associatedData = default)
751public void AddSignatureForDetached(Stream detachedContent, CoseSigner signer, ReadOnlySpan<byte> associatedData = default)
763private void AddSignatureCore(ReadOnlySpan<byte> contentBytes, Stream? contentStream, CoseSigner signer, ReadOnlySpan<byte> associatedData)
System\Security\Cryptography\Cose\CoseSign1Message.cs (35)
101public static byte[] SignDetached(ReadOnlySpan<byte> detachedContent, CoseSigner signer, ReadOnlySpan<byte> associatedData = default)
125public static byte[] SignEmbedded(ReadOnlySpan<byte> embeddedContent, CoseSigner signer, ReadOnlySpan<byte> associatedData = default)
153public static byte[] SignDetached(Stream detachedContent, CoseSigner signer, ReadOnlySpan<byte> associatedData = default)
167internal static byte[] SignCore(ReadOnlySpan<byte> contentBytes, Stream? contentStream, CoseSigner signer, ReadOnlySpan<byte> associatedData, bool isDetached)
249public static bool TrySignDetached(ReadOnlySpan<byte> detachedContent, Span<byte> destination, CoseSigner signer, out int bytesWritten, ReadOnlySpan<byte> associatedData = default)
271public static bool TrySignEmbedded(ReadOnlySpan<byte> embeddedContent, Span<byte> destination, CoseSigner signer, out int bytesWritten, ReadOnlySpan<byte> associatedData = default)
274private static bool TrySign(ReadOnlySpan<byte> content, Span<byte> destination, CoseSigner signer, out int bytesWritten, ReadOnlySpan<byte> associatedData, bool isDetached)
306private static int CreateCoseSign1Message(ReadOnlySpan<byte> contentBytes, Stream? contentStream, Span<byte> buffer, CoseSigner signer, ReadOnlySpan<byte> associatedData, bool isDetached)
321AppendToBeSigned(buffer, toBeSignedBuilder, SigStructureContext.Signature1, buffer.Slice(0, protectedMapBytesWritten), ReadOnlySpan<byte>.Empty, associatedData, contentBytes, contentStream);
426/// <seealso cref="VerifyDetached(AsymmetricAlgorithm, ReadOnlySpan{byte}, ReadOnlySpan{byte})"/>
428public bool VerifyEmbedded(AsymmetricAlgorithm key, ReadOnlySpan<byte> associatedData)
469/// <seealso cref="VerifyDetached(CoseKey, ReadOnlySpan{byte}, ReadOnlySpan{byte})"/>
471public bool VerifyEmbedded(CoseKey key, ReadOnlySpan<byte> associatedData = default)
555/// <seealso cref="VerifyEmbedded(CoseKey, ReadOnlySpan{byte})"/>
592/// <seealso cref="VerifyEmbedded(AsymmetricAlgorithm, ReadOnlySpan{byte})"/>
594public bool VerifyDetached(AsymmetricAlgorithm key, ReadOnlySpan<byte> detachedContent, ReadOnlySpan<byte> associatedData = default)
635/// <seealso cref="VerifyEmbedded(CoseKey, ReadOnlySpan{byte})"/>
637public bool VerifyDetached(CoseKey key, ReadOnlySpan<byte> detachedContent, ReadOnlySpan<byte> associatedData = default)
686public bool VerifyDetached(AsymmetricAlgorithm key, Stream detachedContent, ReadOnlySpan<byte> associatedData = default)
748public bool VerifyDetached(CoseKey key, Stream detachedContent, ReadOnlySpan<byte> associatedData = default)
771private bool VerifyCore(CoseKey key, ReadOnlySpan<byte> contentBytes, Stream? contentStream, ReadOnlySpan<byte> associatedData)
799AppendToBeSigned(buffer, toBeSignedBuilder, SigStructureContext.Signature1, _protectedHeaderAsBstr, ReadOnlySpan<byte>.Empty, associatedData, contentBytes, contentStream);
851/// <seealso cref="VerifyDetached(AsymmetricAlgorithm, Stream, ReadOnlySpan{byte})"/>
System\Security\Cryptography\Cose\CoseSignature.cs (19)
98/// <seealso cref="VerifyDetached(AsymmetricAlgorithm, ReadOnlySpan{byte}, ReadOnlySpan{byte})"/>
100public bool VerifyEmbedded(AsymmetricAlgorithm key, ReadOnlySpan<byte> associatedData)
141/// <seealso cref="VerifyDetached(CoseKey, ReadOnlySpan{byte}, ReadOnlySpan{byte})"/>
143public bool VerifyEmbedded(CoseKey key, ReadOnlySpan<byte> associatedData = default)
271/// <seealso cref="VerifyEmbedded(CoseKey, ReadOnlySpan{byte})"/>
308/// <seealso cref="VerifyEmbedded(AsymmetricAlgorithm, ReadOnlySpan{byte})"/>
310public bool VerifyDetached(AsymmetricAlgorithm key, ReadOnlySpan<byte> detachedContent, ReadOnlySpan<byte> associatedData = default)
352/// <seealso cref="VerifyEmbedded(CoseKey, ReadOnlySpan{byte})"/>
354public bool VerifyDetached(CoseKey key, ReadOnlySpan<byte> detachedContent, ReadOnlySpan<byte> associatedData = default)
403public bool VerifyDetached(AsymmetricAlgorithm key, Stream detachedContent, ReadOnlySpan<byte> associatedData = default)
466public bool VerifyDetached(CoseKey key, Stream detachedContent, ReadOnlySpan<byte> associatedData = default)
525/// <seealso cref="VerifyDetached(AsymmetricAlgorithm, Stream, ReadOnlySpan{byte})"/>
589/// <seealso cref="VerifyDetached(CoseKey, Stream, ReadOnlySpan{byte})"/>
645private bool VerifyCore(CoseKey key, ReadOnlySpan<byte> contentBytes, Stream? contentStream, ReadOnlySpan<byte> associatedData)
System.Security.Cryptography.Pkcs (307)
src\libraries\Common\src\System\HexConverter.cs (9)
185public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper)
202public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper)
219public static string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper)
249public ReadOnlySpan<byte> Bytes { get; set; }
281public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
293public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
461private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
496private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
603public static ReadOnlySpan<byte> CharToHexLookup =>
src\libraries\Common\src\System\Security\Cryptography\Asn1\OaepParamsAsn.xml.cs (3)
14private static ReadOnlySpan<byte> DefaultHashFunc => [0x30, 0x09, 0x06, 0x05, 0x2B, 0x0E, 0x03, 0x02, 0x1A, 0x05, 0x00];
16private static ReadOnlySpan<byte> DefaultMaskGenFunc => [0x30, 0x16, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x08, 0x30, 0x09, 0x06, 0x05, 0x2B, 0x0E, 0x03, 0x02, 0x1A, 0x05, 0x00];
18private static ReadOnlySpan<byte> DefaultPSourceFunc => [0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x09, 0x04, 0x00];
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2Params.xml.cs (1)
14private static ReadOnlySpan<byte> DefaultPrf => [0x30, 0x0C, 0x06, 0x08, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x07, 0x05, 0x00];
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs (4)
14private static ReadOnlySpan<byte> DefaultHashAlgorithm => [0x30, 0x09, 0x06, 0x05, 0x2B, 0x0E, 0x03, 0x02, 0x1A, 0x05, 0x00];
16private static ReadOnlySpan<byte> DefaultMaskGenAlgorithm => [0x30, 0x16, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x08, 0x30, 0x09, 0x06, 0x05, 0x2B, 0x0E, 0x03, 0x02, 0x1A, 0x05, 0x00];
18private static ReadOnlySpan<byte> DefaultSaltLength => [0x02, 0x01, 0x14];
20private static ReadOnlySpan<byte> DefaultTrailerField => [0x02, 0x01, 0x01];
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (31)
15internal delegate TRet ReadOnlySpanFunc<TIn, TRet>(ReadOnlySpan<TIn> span);
19ReadOnlySpan<byte> source,
20ReadOnlySpan<char> password,
36ReadOnlySpan<byte> source,
37ReadOnlySpan<byte> passwordBytes,
60ReadOnlySpan<char> password,
69ReadOnlySpan<byte>.Empty,
78ReadOnlySpan<byte> passwordBytes,
86ReadOnlySpan<char>.Empty,
96ReadOnlySpan<char> password,
97ReadOnlySpan<byte> passwordBytes,
159ReadOnlySpan<char> password,
165ReadOnlySpan<byte>.Empty,
171ReadOnlySpan<byte> passwordBytes,
176ReadOnlySpan<char>.Empty,
183ReadOnlySpan<char> password,
184ReadOnlySpan<byte> passwordBytes,
254ReadOnlySpan<char> inputPassword,
260ReadOnlySpan<byte>.Empty,
266ReadOnlySpan<byte> inputPasswordBytes,
271ReadOnlySpan<char>.Empty,
278ReadOnlySpan<char> password,
279ReadOnlySpan<byte> source,
309ReadOnlySpan<byte> passwordBytes,
310ReadOnlySpan<byte> source,
340ReadOnlySpan<char> inputPassword,
341ReadOnlySpan<byte> inputPasswordBytes,
384ReadOnlySpan<char> inputPassword,
386ReadOnlySpan<char> newPassword,
420ReadOnlySpan<char> inputPassword,
422ReadOnlySpan<byte> newPasswordBytes,
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (28)
25ReadOnlySpan<char> password,
26ReadOnlySpan<byte> passwordBytes)
70ReadOnlySpan<char> password,
71ReadOnlySpan<byte> passwordBytes,
72ReadOnlySpan<byte> encryptedData,
172scoped ReadOnlySpan<byte> effectivePasswordBytes = default;
310ReadOnlySpan<char> password,
311ReadOnlySpan<byte> passwordBytes,
316ReadOnlySpan<byte> salt,
451ReadOnlySpan<char> password,
452ReadOnlySpan<byte> passwordBytes,
453ReadOnlySpan<byte> encryptedData,
457scoped ReadOnlySpan<byte> effectivePasswordBytes = default;
511ReadOnlySpan<byte> password,
512ReadOnlySpan<byte> encryptedData,
697ReadOnlySpan<byte> source = encryptionSchemeParameters.Value.Span;
721ReadOnlySpan<byte> password,
805ReadOnlySpan<byte> password,
808ReadOnlySpan<byte> encryptedData,
857ReadOnlySpan<char> password,
860ReadOnlySpan<byte> encryptedData,
887ReadOnlySpan<byte> saltSpan = pbeParameters.Salt.Span;
916ReadOnlySpan<byte> key,
917ReadOnlySpan<byte> iv,
918ReadOnlySpan<byte> encryptedData,
978ReadOnlySpan<byte> password,
979ReadOnlySpan<byte> salt,
1114ReadOnlySpan<byte> salt,
src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (12)
30ReadOnlySpan<char> password,
33ReadOnlySpan<byte> salt,
46ReadOnlySpan<char> password,
49ReadOnlySpan<byte> salt,
62ReadOnlySpan<char> password,
65ReadOnlySpan<byte> salt,
78ReadOnlySpan<char> password,
82ReadOnlySpan<byte> salt,
236private static void AddPlusOne(Span<byte> into, ReadOnlySpan<byte> addend)
250private static void CircularCopy(ReadOnlySpan<byte> bytes, Span<byte> destination)
269private static void CircularCopyUtf16BE(ReadOnlySpan<char> password, Span<byte> destination)
294ReadOnlySpan<char> trimmed = password.Slice(0, destination.Length / 2);
System\Security\Cryptography\Pkcs\Asn1\EssCertIdV2.xml.cs (3)
14private static ReadOnlySpan<byte> DefaultHashAlgorithm => [0x30, 0x0B, 0x06, 0x09, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x01];
107ReadOnlySpan<byte> rebindSpan = rebind.Span;
109ReadOnlySpan<byte> tmpSpan;
System.Security.Cryptography.ProtectedData (17)
System.Security.Cryptography.Xml (9)
src\libraries\Common\src\System\HexConverter.cs (9)
185public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper)
202public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper)
219public static string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper)
249public ReadOnlySpan<byte> Bytes { get; set; }
281public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
293public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
461private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
496private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
603public static ReadOnlySpan<byte> CharToHexLookup =>
System.ServiceModel.NetFramingBase (1)
System.Text.Encoding.CodePages (14)
System.Text.Encodings.Web (46)
src\libraries\Common\src\System\HexConverter.cs (9)
185public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper)
202public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper)
219public static string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper)
249public ReadOnlySpan<byte> Bytes { get; set; }
281public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
293public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
461private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
496private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
603public static ReadOnlySpan<byte> CharToHexLookup =>
System.Text.Json (770)
src\libraries\Common\src\System\HexConverter.cs (9)
185public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper)
202public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper)
219public static string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper)
249public ReadOnlySpan<byte> Bytes { get; set; }
281public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
293public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
461private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
496private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
603public static ReadOnlySpan<byte> CharToHexLookup =>
System\Text\Json\Document\JsonDocument.cs (40)
297ReadOnlySpan<byte> data = _utf8Json.Span;
298ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength);
305internal bool TextEquals(int index, ReadOnlySpan<char> otherText, bool isPropertyName)
338internal bool TextEquals(int index, ReadOnlySpan<byte> otherUtf8Text, bool isPropertyName, bool shouldUnescape)
350ReadOnlySpan<byte> data = _utf8Json.Span;
351ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength);
385internal ReadOnlySpan<byte> GetPropertyNameRaw(int index)
403ReadOnlySpan<byte> data = _utf8Json.Span;
404ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength);
424ReadOnlySpan<byte> data = _utf8Json.Span;
425ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength);
446ReadOnlySpan<byte> data = _utf8Json.Span;
447ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength);
468ReadOnlySpan<byte> data = _utf8Json.Span;
469ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength);
490ReadOnlySpan<byte> data = _utf8Json.Span;
491ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength);
512ReadOnlySpan<byte> data = _utf8Json.Span;
513ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength);
534ReadOnlySpan<byte> data = _utf8Json.Span;
535ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength);
556ReadOnlySpan<byte> data = _utf8Json.Span;
557ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength);
578ReadOnlySpan<byte> data = _utf8Json.Span;
579ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength);
600ReadOnlySpan<byte> data = _utf8Json.Span;
601ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength);
622ReadOnlySpan<byte> data = _utf8Json.Span;
623ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength);
644ReadOnlySpan<byte> data = _utf8Json.Span;
645ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength);
666ReadOnlySpan<byte> data = _utf8Json.Span;
667ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength);
680ReadOnlySpan<byte> data = _utf8Json.Span;
681ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength);
694ReadOnlySpan<byte> data = _utf8Json.Span;
695ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength);
814private ReadOnlySpan<byte> UnescapeString(in DbRow row, out ArraySegment<byte> rented)
819ReadOnlySpan<byte> text = _utf8Json.Slice(loc, length).Span;
880ReadOnlySpan<byte> utf8JsonSpan,
System\Text\Json\JsonHelpers.cs (26)
22public static ReadOnlySpan<byte> GetUnescapedSpan(this scoped ref Utf8JsonReader reader)
25ReadOnlySpan<byte> span = reader.HasValueSequence ? reader.ValueSequence.ToArray() : reader.ValueSpan;
198public static string Utf8GetString(ReadOnlySpan<byte> bytes)
220ReadOnlySpan<byte> utf8Key,
224Debug.Assert(dictionary.Comparer is IAlternateEqualityComparer<ReadOnlySpan<char>, string>);
226Dictionary<string, TValue>.AlternateLookup<ReadOnlySpan<char>> spanLookup =
227dictionary.GetAlternateLookup<ReadOnlySpan<char>>();
334public static bool AreEqualJsonNumbers(ReadOnlySpan<byte> left, ReadOnlySpan<byte> right)
340out ReadOnlySpan<byte> leftIntegral,
341out ReadOnlySpan<byte> leftFractional,
346out ReadOnlySpan<byte> rightIntegral,
347out ReadOnlySpan<byte> rightFractional,
361ReadOnlySpan<byte> leftFirst;
362ReadOnlySpan<byte> leftMiddle;
363ReadOnlySpan<byte> leftLast;
365ReadOnlySpan<byte> rightFirst;
366ReadOnlySpan<byte> rightMiddle;
367ReadOnlySpan<byte> rightLast;
410ReadOnlySpan<byte> span,
412out ReadOnlySpan<byte> integral,
413out ReadOnlySpan<byte> fractional,
427ReadOnlySpan<byte> intg;
428ReadOnlySpan<byte> frac;
532static int IndexOfLastLeadingZero(ReadOnlySpan<byte> span)
550static int IndexOfFirstTrailingZero(ReadOnlySpan<byte> span)
System\Text\Json\JsonHelpers.Date.cs (9)
47public static bool TryParseAsISO(ReadOnlySpan<byte> source, out DateTime value)
80public static bool TryParseAsISO(ReadOnlySpan<byte> source, out DateTimeOffset value)
99public static bool TryParseAsIso(ReadOnlySpan<byte> source, out DateOnly value)
141private static bool TryParseDateTimeOffset(ReadOnlySpan<byte> source, out DateTimeParseData parseData)
354static bool ParseOffset(ref DateTimeParseData parseData, ReadOnlySpan<byte> offsetData)
384private static bool TryGetNextTwoDigits(ReadOnlySpan<byte> source, ref int value)
541ReadOnlySpan<int> days = DateTime.IsLeapYear(parseData.Year) ? DaysToMonth366 : DaysToMonth365;
552private static ReadOnlySpan<int> DaysToMonth365 => [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365];
553private static ReadOnlySpan<int> DaysToMonth366 => [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366];
System\Text\Json\Reader\JsonReaderHelper.cs (11)
18public static bool ContainsSpecialCharacters(this ReadOnlySpan<char> text) =>
25public static (int, int) CountNewLines(ReadOnlySpan<byte> data)
82public static bool TryGetValue(ReadOnlySpan<byte> segment, bool isEscaped, out DateTime value)
108public static bool TryGetEscapedDateTime(ReadOnlySpan<byte> source, out DateTime value)
130public static bool TryGetValue(ReadOnlySpan<byte> segment, bool isEscaped, out DateTimeOffset value)
156public static bool TryGetEscapedDateTimeOffset(ReadOnlySpan<byte> source, out DateTimeOffset value)
178public static bool TryGetValue(ReadOnlySpan<byte> segment, bool isEscaped, out Guid value)
205public static bool TryGetEscapedGuid(ReadOnlySpan<byte> source, out Guid value)
228public static bool TryGetFloatingPointConstant(ReadOnlySpan<byte> span, out Half value)
260public static bool TryGetFloatingPointConstant(ReadOnlySpan<byte> span, out float value)
291public static bool TryGetFloatingPointConstant(ReadOnlySpan<byte> span, out double value)
System\Text\Json\Reader\JsonReaderHelper.Unescaping.cs (20)
14public static bool TryGetUnescapedBase64Bytes(ReadOnlySpan<byte> utf8Source, [NotNullWhen(true)] out byte[]? bytes)
42public static string GetUnescapedString(ReadOnlySpan<byte> utf8Source)
69public static byte[] GetUnescaped(ReadOnlySpan<byte> utf8Source)
94public static bool UnescapeAndCompare(ReadOnlySpan<byte> utf8Source, ReadOnlySpan<byte> other)
121public static bool UnescapeAndCompare(ReadOnlySequence<byte> utf8Source, ReadOnlySpan<byte> other)
162public static bool UnescapeAndCompareBothInputs(ReadOnlySpan<byte> utf8Source1, ReadOnlySpan<byte> utf8Source2)
218public static bool TryDecodeBase64(ReadOnlySpan<byte> utf8Unescaped, [NotNullWhen(true)] out byte[]? bytes)
253public static string TranscodeHelper(ReadOnlySpan<byte> utf8Unescaped)
284public static int TranscodeHelper(ReadOnlySpan<byte> utf8Unescaped, Span<char> destination)
322public static void ValidateUtf8(ReadOnlySpan<byte> utf8Buffer)
360internal static int GetUtf8ByteCount(ReadOnlySpan<char> text)
391internal static int GetUtf8FromText(ReadOnlySpan<char> text, Span<byte> dest)
424internal static string GetTextFromUtf8(ReadOnlySpan<byte> utf8Text)
444internal static void Unescape(ReadOnlySpan<byte> source, Span<byte> destination, out int written)
455internal static void Unescape(ReadOnlySpan<byte> source, Span<byte> destination, int idx, out int written)
468internal static bool TryUnescape(ReadOnlySpan<byte> source, Span<byte> destination, out int written)
479private static bool TryUnescape(ReadOnlySpan<byte> source, Span<byte> destination, int idx, out int written)
594ReadOnlySpan<byte> remaining = source.Slice(idx);
System\Text\Json\Reader\Utf8JsonReader.cs (41)
23private ReadOnlySpan<byte> _buffer;
53internal readonly ReadOnlySpan<byte> OriginalSpan => _sequence.IsEmpty ? _buffer : default;
71public ReadOnlySpan<byte> ValueSpan { get; private set; }
213public Utf8JsonReader(ReadOnlySpan<byte> jsonData, bool isFinalBlock, JsonReaderState state)
241ValueSpan = ReadOnlySpan<byte>.Empty;
265public Utf8JsonReader(ReadOnlySpan<byte> jsonData, JsonReaderOptions options = default)
453public readonly bool ValueTextEquals(ReadOnlySpan<byte> utf8Text)
489private readonly bool TextEqualsHelper(ReadOnlySpan<byte> otherUtf8Text)
524public readonly bool ValueTextEquals(ReadOnlySpan<char> text)
574private readonly bool CompareToSequence(ReadOnlySpan<byte> other)
596ReadOnlySpan<byte> span = memory.Span;
610private readonly bool UnescapeAndCompare(ReadOnlySpan<byte> other)
613ReadOnlySpan<byte> localSpan = ValueSpan;
631private readonly bool UnescapeSequenceAndCompare(ReadOnlySpan<byte> other)
652ReadOnlySpan<byte> span = memory.Span;
984ReadOnlySpan<byte> localBuffer = _buffer;
1010ReadOnlySpan<byte> localBuffer = _buffer;
1133private bool ConsumeLiteral(ReadOnlySpan<byte> literal, JsonTokenType tokenType)
1135ReadOnlySpan<byte> span = _buffer.Slice(_consumed);
1151private bool CheckLiteral(ReadOnlySpan<byte> span, ReadOnlySpan<byte> literal)
1184private void ThrowInvalidLiteral(ReadOnlySpan<byte> span)
1285ReadOnlySpan<byte> localBuffer = _buffer.Slice(_consumed + 1);
1324private bool ConsumeStringAndValidate(ReadOnlySpan<byte> data, int idx)
1405private bool ValidateHexDigits(ReadOnlySpan<byte> data, int idx)
1425private bool TryGetNumber(ReadOnlySpan<byte> data, out int consumed)
1538private ConsumeNumberResult ConsumeNegativeSign(ref ReadOnlySpan<byte> data, scoped ref int i)
1565private ConsumeNumberResult ConsumeZero(ref ReadOnlySpan<byte> data, scoped ref int i)
1604private ConsumeNumberResult ConsumeIntegerDigits(ref ReadOnlySpan<byte> data, scoped ref int i)
1637private ConsumeNumberResult ConsumeDecimalDigits(ref ReadOnlySpan<byte> data, scoped ref int i)
1659private ConsumeNumberResult ConsumeSign(ref ReadOnlySpan<byte> data, scoped ref int i)
2317ReadOnlySpan<byte> localBuffer = _buffer.Slice(_consumed + 1);
2343private bool SkipSingleLineComment(ReadOnlySpan<byte> localBuffer, out int idx)
2402private int FindLineSeparator(ReadOnlySpan<byte> localBuffer)
2429private void ThrowOnDangerousLineSeparator(ReadOnlySpan<byte> localBuffer)
2447private bool SkipMultiLineComment(ReadOnlySpan<byte> localBuffer, out int idx)
2494ReadOnlySpan<byte> localBuffer = _buffer.Slice(_consumed + 1);
2520private bool ConsumeSingleLineComment(ReadOnlySpan<byte> localBuffer, int previousConsumed)
2538private bool ConsumeMultiLineComment(ReadOnlySpan<byte> localBuffer, int previousConsumed)
2580private ReadOnlySpan<byte> GetUnescapedSpan()
2582ReadOnlySpan<byte> span = HasValueSequence ? ValueSequence.ToArray() : ValueSpan;
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (26)
50ValueSpan = ReadOnlySpan<byte>.Empty;
510private bool ConsumeLiteralMultiSegment(ReadOnlySpan<byte> literal, JsonTokenType tokenType)
512ReadOnlySpan<byte> span = _buffer.Slice(_consumed);
538private bool CheckLiteralMultiSegment(ReadOnlySpan<byte> span, ReadOnlySpan<byte> literal, out int consumed)
567ReadOnlySpan<byte> leftToMatch = literal.Slice(span.Length);
620static int AmountToWrite(ReadOnlySpan<byte> span, long bytePositionInLine, ReadOnlySpan<byte> readSoFar, int written)
633private static int FindMismatch(ReadOnlySpan<byte> span, ReadOnlySpan<byte> literal)
657private JsonException GetInvalidLiteralMultiSegment(ReadOnlySpan<byte> span)
757ReadOnlySpan<byte> localBuffer = _buffer.Slice(_consumed + 1);
817ReadOnlySpan<byte> localBuffer = _buffer;
960private bool ConsumeStringAndValidateMultiSegment(ReadOnlySpan<byte> data, int idx)
1124private bool TryGetNumberMultiSegment(ReadOnlySpan<byte> data, out int consumed)
1257private ConsumeNumberResult ConsumeNegativeSignMultiSegment(ref ReadOnlySpan<byte> data, scoped ref int i, scoped in PartialStateForRollback rollBackState)
1299private ConsumeNumberResult ConsumeZeroMultiSegment(ref ReadOnlySpan<byte> data, scoped ref int i, scoped in PartialStateForRollback rollBackState)
1355private ConsumeNumberResult ConsumeIntegerDigitsMultiSegment(ref ReadOnlySpan<byte> data, scoped ref int i)
1433private ConsumeNumberResult ConsumeDecimalDigitsMultiSegment(ref ReadOnlySpan<byte> data, scoped ref int i, scoped in PartialStateForRollback rollBackState)
1467private ConsumeNumberResult ConsumeSignMultiSegment(ref ReadOnlySpan<byte> data, scoped ref int i, scoped in PartialStateForRollback rollBackState)
2243ReadOnlySpan<byte> localBuffer = _buffer.Slice(_consumed);
2323private bool SkipSingleLineCommentMultiSegment(ReadOnlySpan<byte> localBuffer, out int tailBytesToSkip)
2415private int FindLineSeparatorMultiSegment(ReadOnlySpan<byte> localBuffer, scoped ref int dangerousLineSeparatorBytesConsumed)
2465private void ThrowOnDangerousLineSeparatorMultiSegment(ReadOnlySpan<byte> localBuffer, scoped ref int dangerousLineSeparatorBytesConsumed)
2514private bool SkipMultiLineCommentMultiSegment(ReadOnlySpan<byte> localBuffer)
2578localBuffer = ReadOnlySpan<byte>.Empty;
System\Text\Json\Serialization\JsonSerializer.Read.Span.cs (7)
31public static TValue? Deserialize<TValue>(ReadOnlySpan<byte> utf8Json, JsonSerializerOptions? options = null)
58public static object? Deserialize(ReadOnlySpan<byte> utf8Json, Type returnType, JsonSerializerOptions? options = null)
78public static TValue? Deserialize<TValue>(ReadOnlySpan<byte> utf8Json, JsonTypeInfo<TValue> jsonTypeInfo)
96public static object? Deserialize(ReadOnlySpan<byte> utf8Json, JsonTypeInfo jsonTypeInfo)
127public static object? Deserialize(ReadOnlySpan<byte> utf8Json, Type returnType, JsonSerializerContext context)
135private static TValue? ReadFromSpan<TValue>(ReadOnlySpan<byte> utf8Json, JsonTypeInfo<TValue> jsonTypeInfo, int? actualByteCount = null)
152private static object? ReadFromSpanAsObject(ReadOnlySpan<byte> utf8Json, JsonTypeInfo jsonTypeInfo, int? actualByteCount = null)
System\Text\Json\ThrowHelper.cs (13)
140public static void ThrowArgumentException(ReadOnlySpan<byte> propertyName, ReadOnlySpan<byte> value)
154public static void ThrowArgumentException(ReadOnlySpan<byte> propertyName, ReadOnlySpan<char> value)
168public static void ThrowArgumentException(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> value)
182public static void ThrowArgumentException(ReadOnlySpan<char> propertyName, ReadOnlySpan<char> value)
196public static void ThrowInvalidOperationOrArgumentException(ReadOnlySpan<byte> propertyName, int currentDepth, int maxDepth)
249public static void ThrowInvalidOperationOrArgumentException(ReadOnlySpan<char> propertyName, int currentDepth, int maxDepth)
370public static void ThrowJsonReaderException(ref Utf8JsonReader json, ExceptionResource resource, byte nextByte = default, ReadOnlySpan<byte> bytes = default)
376public static JsonException GetJsonReaderException(ref Utf8JsonReader json, ExceptionResource resource, byte nextByte, ReadOnlySpan<byte> bytes)
530public static void ThrowArgumentException_InvalidUTF8(ReadOnlySpan<byte> value)
System\Text\Json\Writer\JsonWriterHelper.Escaping.cs (9)
23private static ReadOnlySpan<byte> AllowList => // byte.MaxValue + 1
55public static int NeedsEscaping(ReadOnlySpan<byte> value, JavaScriptEncoder? encoder)
60public static int NeedsEscaping(ReadOnlySpan<char> value, JavaScriptEncoder? encoder)
87private static void EscapeString(ReadOnlySpan<byte> value, Span<byte> destination, JavaScriptEncoder encoder, ref int consumed, ref int written, bool isFinalBlock)
107public static void EscapeString(ReadOnlySpan<byte> value, Span<byte> destination, int indexOfFirstByteToEscape, JavaScriptEncoder? encoder, out int written)
110public static void EscapeString(ReadOnlySpan<byte> value, Span<byte> destination, int indexOfFirstByteToEscape, JavaScriptEncoder? encoder, out int consumed, out int written, bool isFinalBlock = true)
205private static void EscapeString(ReadOnlySpan<char> value, Span<char> destination, JavaScriptEncoder encoder, ref int consumed, ref int written, bool isFinalBlock)
225public static void EscapeString(ReadOnlySpan<char> value, Span<char> destination, int indexOfFirstByteToEscape, JavaScriptEncoder? encoder, out int written)
228public static void EscapeString(ReadOnlySpan<char> value, Span<char> destination, int indexOfFirstByteToEscape, JavaScriptEncoder? encoder, out int consumed, out int written, bool isFinalBlock = true)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Bytes.cs (27)
20public void WriteBase64String(JsonEncodedText propertyName, ReadOnlySpan<byte> bytes)
22ReadOnlySpan<byte> utf8PropertyName = propertyName.EncodedUtf8Bytes;
48public void WriteBase64String(string propertyName, ReadOnlySpan<byte> bytes)
68public void WriteBase64String(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> bytes)
92public void WriteBase64String(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> bytes)
102private void WriteBase64Escape(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> bytes)
118private void WriteBase64Escape(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> bytes)
134private void WriteBase64EscapeProperty(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> bytes, int firstEscapeIndexProp)
157private void WriteBase64EscapeProperty(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> bytes, int firstEscapeIndexProp)
180private void WriteBase64ByOptions(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> bytes)
193private void WriteBase64ByOptions(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> bytes)
206private void WriteBase64Minimized(ReadOnlySpan<char> escapedPropertyName, ReadOnlySpan<byte> bytes)
241private void WriteBase64Minimized(ReadOnlySpan<byte> escapedPropertyName, ReadOnlySpan<byte> bytes)
277private void WriteBase64Indented(ReadOnlySpan<char> escapedPropertyName, ReadOnlySpan<byte> bytes)
327private void WriteBase64Indented(ReadOnlySpan<byte> escapedPropertyName, ReadOnlySpan<byte> bytes)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTime.cs (13)
26ReadOnlySpan<byte> utf8PropertyName = propertyName.EncodedUtf8Bytes;
74public void WriteString(ReadOnlySpan<char> propertyName, DateTime value)
99public void WriteString(ReadOnlySpan<byte> utf8PropertyName, DateTime value)
109private void WriteStringEscape(ReadOnlySpan<char> propertyName, DateTime value)
125private void WriteStringEscape(ReadOnlySpan<byte> utf8PropertyName, DateTime value)
141private void WriteStringEscapeProperty(ReadOnlySpan<char> propertyName, DateTime value, int firstEscapeIndexProp)
164private void WriteStringEscapeProperty(ReadOnlySpan<byte> utf8PropertyName, DateTime value, int firstEscapeIndexProp)
187private void WriteStringByOptions(ReadOnlySpan<char> propertyName, DateTime value)
200private void WriteStringByOptions(ReadOnlySpan<byte> utf8PropertyName, DateTime value)
213private void WriteStringMinimized(ReadOnlySpan<char> escapedPropertyName, DateTime value)
247private void WriteStringMinimized(ReadOnlySpan<byte> escapedPropertyName, DateTime value)
281private void WriteStringIndented(ReadOnlySpan<char> escapedPropertyName, DateTime value)
330private void WriteStringIndented(ReadOnlySpan<byte> escapedPropertyName, DateTime value)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTimeOffset.cs (13)
25ReadOnlySpan<byte> utf8PropertyName = propertyName.EncodedUtf8Bytes;
73public void WriteString(ReadOnlySpan<char> propertyName, DateTimeOffset value)
98public void WriteString(ReadOnlySpan<byte> utf8PropertyName, DateTimeOffset value)
108private void WriteStringEscape(ReadOnlySpan<char> propertyName, DateTimeOffset value)
124private void WriteStringEscape(ReadOnlySpan<byte> utf8PropertyName, DateTimeOffset value)
140private void WriteStringEscapeProperty(ReadOnlySpan<char> propertyName, DateTimeOffset value, int firstEscapeIndexProp)
163private void WriteStringEscapeProperty(ReadOnlySpan<byte> utf8PropertyName, DateTimeOffset value, int firstEscapeIndexProp)
186private void WriteStringByOptions(ReadOnlySpan<char> propertyName, DateTimeOffset value)
199private void WriteStringByOptions(ReadOnlySpan<byte> utf8PropertyName, DateTimeOffset value)
212private void WriteStringMinimized(ReadOnlySpan<char> escapedPropertyName, DateTimeOffset value)
246private void WriteStringMinimized(ReadOnlySpan<byte> escapedPropertyName, DateTimeOffset value)
280private void WriteStringIndented(ReadOnlySpan<char> escapedPropertyName, DateTimeOffset value)
329private void WriteStringIndented(ReadOnlySpan<byte> escapedPropertyName, DateTimeOffset value)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Decimal.cs (13)
25ReadOnlySpan<byte> utf8PropertyName = propertyName.EncodedUtf8Bytes;
73public void WriteNumber(ReadOnlySpan<char> propertyName, decimal value)
98public void WriteNumber(ReadOnlySpan<byte> utf8PropertyName, decimal value)
108private void WriteNumberEscape(ReadOnlySpan<char> propertyName, decimal value)
124private void WriteNumberEscape(ReadOnlySpan<byte> utf8PropertyName, decimal value)
140private void WriteNumberEscapeProperty(ReadOnlySpan<char> propertyName, decimal value, int firstEscapeIndexProp)
163private void WriteNumberEscapeProperty(ReadOnlySpan<byte> utf8PropertyName, decimal value, int firstEscapeIndexProp)
186private void WriteNumberByOptions(ReadOnlySpan<char> propertyName, decimal value)
199private void WriteNumberByOptions(ReadOnlySpan<byte> utf8PropertyName, decimal value)
212private void WriteNumberMinimized(ReadOnlySpan<char> escapedPropertyName, decimal value)
243private void WriteNumberMinimized(ReadOnlySpan<byte> escapedPropertyName, decimal value)
274private void WriteNumberIndented(ReadOnlySpan<char> escapedPropertyName, decimal value)
320private void WriteNumberIndented(ReadOnlySpan<byte> escapedPropertyName, decimal value)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Double.cs (13)
25ReadOnlySpan<byte> utf8PropertyName = propertyName.EncodedUtf8Bytes;
75public void WriteNumber(ReadOnlySpan<char> propertyName, double value)
101public void WriteNumber(ReadOnlySpan<byte> utf8PropertyName, double value)
112private void WriteNumberEscape(ReadOnlySpan<char> propertyName, double value)
128private void WriteNumberEscape(ReadOnlySpan<byte> utf8PropertyName, double value)
144private void WriteNumberEscapeProperty(ReadOnlySpan<char> propertyName, double value, int firstEscapeIndexProp)
167private void WriteNumberEscapeProperty(ReadOnlySpan<byte> utf8PropertyName, double value, int firstEscapeIndexProp)
190private void WriteNumberByOptions(ReadOnlySpan<char> propertyName, double value)
203private void WriteNumberByOptions(ReadOnlySpan<byte> utf8PropertyName, double value)
216private void WriteNumberMinimized(ReadOnlySpan<char> escapedPropertyName, double value)
247private void WriteNumberMinimized(ReadOnlySpan<byte> escapedPropertyName, double value)
278private void WriteNumberIndented(ReadOnlySpan<char> escapedPropertyName, double value)
324private void WriteNumberIndented(ReadOnlySpan<byte> escapedPropertyName, double value)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Float.cs (13)
25ReadOnlySpan<byte> utf8PropertyName = propertyName.EncodedUtf8Bytes;
75public void WriteNumber(ReadOnlySpan<char> propertyName, float value)
101public void WriteNumber(ReadOnlySpan<byte> utf8PropertyName, float value)
112private void WriteNumberEscape(ReadOnlySpan<char> propertyName, float value)
128private void WriteNumberEscape(ReadOnlySpan<byte> utf8PropertyName, float value)
144private void WriteNumberEscapeProperty(ReadOnlySpan<char> propertyName, float value, int firstEscapeIndexProp)
167private void WriteNumberEscapeProperty(ReadOnlySpan<byte> utf8PropertyName, float value, int firstEscapeIndexProp)
190private void WriteNumberByOptions(ReadOnlySpan<char> propertyName, float value)
203private void WriteNumberByOptions(ReadOnlySpan<byte> utf8PropertyName, float value)
216private void WriteNumberMinimized(ReadOnlySpan<char> escapedPropertyName, float value)
247private void WriteNumberMinimized(ReadOnlySpan<byte> escapedPropertyName, float value)
278private void WriteNumberIndented(ReadOnlySpan<char> escapedPropertyName, float value)
324private void WriteNumberIndented(ReadOnlySpan<byte> escapedPropertyName, float value)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.FormattedNumber.cs (17)
29internal void WriteNumber(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> utf8FormattedNumber)
59internal void WriteNumber(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> utf8FormattedNumber)
71internal void WriteNumber(JsonEncodedText propertyName, ReadOnlySpan<byte> utf8FormattedNumber)
82private void WriteNumberEscape(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> value)
98private void WriteNumberEscape(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> value)
114private void WriteNumberEscapeProperty(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> value, int firstEscapeIndexProp)
137private void WriteNumberEscapeProperty(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> value, int firstEscapeIndexProp)
160private void WriteNumberByOptions(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> value)
173private void WriteNumberByOptions(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> value)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Guid.cs (13)
25ReadOnlySpan<byte> utf8PropertyName = propertyName.EncodedUtf8Bytes;
73public void WriteString(ReadOnlySpan<char> propertyName, Guid value)
98public void WriteString(ReadOnlySpan<byte> utf8PropertyName, Guid value)
108private void WriteStringEscape(ReadOnlySpan<char> propertyName, Guid value)
124private void WriteStringEscape(ReadOnlySpan<byte> utf8PropertyName, Guid value)
140private void WriteStringEscapeProperty(ReadOnlySpan<char> propertyName, Guid value, int firstEscapeIndexProp)
163private void WriteStringEscapeProperty(ReadOnlySpan<byte> utf8PropertyName, Guid value, int firstEscapeIndexProp)
186private void WriteStringByOptions(ReadOnlySpan<char> propertyName, Guid value)
199private void WriteStringByOptions(ReadOnlySpan<byte> utf8PropertyName, Guid value)
212private void WriteStringMinimized(ReadOnlySpan<char> escapedPropertyName, Guid value)
247private void WriteStringMinimized(ReadOnlySpan<byte> escapedPropertyName, Guid value)
282private void WriteStringIndented(ReadOnlySpan<char> escapedPropertyName, Guid value)
332private void WriteStringIndented(ReadOnlySpan<byte> escapedPropertyName, Guid value)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Literal.cs (35)
26internal void WriteNullSection(ReadOnlySpan<byte> escapedPropertyNameSection)
30ReadOnlySpan<byte> escapedName =
40ReadOnlySpan<byte> span = JsonConstants.NullValue;
49private void WriteLiteralHelper(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> value)
93public void WriteNull(ReadOnlySpan<char> propertyName)
97ReadOnlySpan<byte> span = JsonConstants.NullValue;
118public void WriteNull(ReadOnlySpan<byte> utf8PropertyName)
122ReadOnlySpan<byte> span = JsonConstants.NullValue;
189public void WriteBoolean(ReadOnlySpan<char> propertyName, bool value)
193ReadOnlySpan<byte> span = value ? JsonConstants.TrueValue : JsonConstants.FalseValue;
215public void WriteBoolean(ReadOnlySpan<byte> utf8PropertyName, bool value)
219ReadOnlySpan<byte> span = value ? JsonConstants.TrueValue : JsonConstants.FalseValue;
227private void WriteLiteralEscape(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> value)
243private void WriteLiteralEscape(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> value)
259private void WriteLiteralEscapeProperty(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> value, int firstEscapeIndexProp)
282private void WriteLiteralEscapeProperty(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> value, int firstEscapeIndexProp)
305private void WriteLiteralByOptions(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> value)
318private void WriteLiteralByOptions(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> value)
331private void WriteLiteralMinimized(ReadOnlySpan<char> escapedPropertyName, ReadOnlySpan<byte> value)
362private void WriteLiteralMinimized(ReadOnlySpan<byte> escapedPropertyName, ReadOnlySpan<byte> value)
395private void WriteLiteralSection(ReadOnlySpan<byte> escapedPropertyNameSection, ReadOnlySpan<byte> value)
421private void WriteLiteralIndented(ReadOnlySpan<char> escapedPropertyName, ReadOnlySpan<byte> value)
467private void WriteLiteralIndented(ReadOnlySpan<byte> escapedPropertyName, ReadOnlySpan<byte> value)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.SignedNumber.cs (15)
25ReadOnlySpan<byte> utf8PropertyName = propertyName.EncodedUtf8Bytes;
73public void WriteNumber(ReadOnlySpan<char> propertyName, long value)
98public void WriteNumber(ReadOnlySpan<byte> utf8PropertyName, long value)
160public void WriteNumber(ReadOnlySpan<char> propertyName, int value)
178public void WriteNumber(ReadOnlySpan<byte> utf8PropertyName, int value)
181private void WriteNumberEscape(ReadOnlySpan<char> propertyName, long value)
197private void WriteNumberEscape(ReadOnlySpan<byte> utf8PropertyName, long value)
213private void WriteNumberEscapeProperty(ReadOnlySpan<char> propertyName, long value, int firstEscapeIndexProp)
236private void WriteNumberEscapeProperty(ReadOnlySpan<byte> utf8PropertyName, long value, int firstEscapeIndexProp)
259private void WriteNumberByOptions(ReadOnlySpan<char> propertyName, long value)
272private void WriteNumberByOptions(ReadOnlySpan<byte> utf8PropertyName, long value)
285private void WriteNumberMinimized(ReadOnlySpan<char> escapedPropertyName, long value)
316private void WriteNumberMinimized(ReadOnlySpan<byte> escapedPropertyName, long value)
347private void WriteNumberIndented(ReadOnlySpan<char> escapedPropertyName, long value)
393private void WriteNumberIndented(ReadOnlySpan<byte> escapedPropertyName, long value)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.String.cs (92)
22internal void WritePropertyNameSection(ReadOnlySpan<byte> escapedPropertyNameSection)
26ReadOnlySpan<byte> escapedPropertyName =
43private void WritePropertyNameHelper(ReadOnlySpan<byte> utf8PropertyName)
89public void WritePropertyName(ReadOnlySpan<char> propertyName)
110private void WriteStringEscapeProperty(scoped ReadOnlySpan<char> propertyName, int firstEscapeIndexProp)
143private void WriteStringByOptionsPropertyName(ReadOnlySpan<char> propertyName)
156private void WriteStringMinimizedPropertyName(ReadOnlySpan<char> escapedPropertyName)
184private void WriteStringIndentedPropertyName(ReadOnlySpan<char> escapedPropertyName)
238public void WritePropertyName(ReadOnlySpan<byte> utf8PropertyName)
259private void WritePropertyNameUnescaped(ReadOnlySpan<byte> utf8PropertyName)
269private void WriteStringEscapeProperty(scoped ReadOnlySpan<byte> utf8PropertyName, int firstEscapeIndexProp)
302private void WriteStringByOptionsPropertyName(ReadOnlySpan<byte> utf8PropertyName)
317private void WriteStringMinimizedPropertyName(ReadOnlySpan<byte> escapedPropertyName)
347private void WriteStringPropertyNameSection(ReadOnlySpan<byte> escapedPropertyNameSection)
372private void WriteStringIndentedPropertyName(ReadOnlySpan<byte> escapedPropertyName)
426private void WriteStringHelper(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> utf8Value)
479/// as if <see cref="WriteNull(System.ReadOnlySpan{byte})"/> were called.
510public void WriteString(ReadOnlySpan<char> propertyName, ReadOnlySpan<char> value)
534public void WriteString(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> utf8Value)
590public void WriteString(JsonEncodedText propertyName, ReadOnlySpan<char> value)
593private void WriteStringHelperEscapeValue(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<char> value)
633public void WriteString(string propertyName, ReadOnlySpan<char> value)
653public void WriteString(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<char> value)
677public void WriteString(JsonEncodedText propertyName, ReadOnlySpan<byte> utf8Value)
680private void WriteStringHelperEscapeValue(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> utf8Value)
720public void WriteString(string propertyName, ReadOnlySpan<byte> utf8Value)
740public void WriteString(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> utf8Value)
764public void WriteString(ReadOnlySpan<char> propertyName, JsonEncodedText value)
767private void WriteStringHelperEscapeProperty(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> utf8Value)
807/// as if <see cref="WriteNull(System.ReadOnlySpan{char})"/> was called.
810public void WriteString(ReadOnlySpan<char> propertyName, string? value)
836public void WriteString(ReadOnlySpan<byte> utf8PropertyName, JsonEncodedText value)
839private void WriteStringHelperEscapeProperty(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> utf8Value)
879/// as if <see cref="WriteNull(System.ReadOnlySpan{byte})"/> was called.
882public void WriteString(ReadOnlySpan<byte> utf8PropertyName, string? value)
894private void WriteStringEscapeValueOnly(ReadOnlySpan<byte> escapedPropertyName, ReadOnlySpan<byte> utf8Value, int firstEscapeIndex)
917private void WriteStringEscapeValueOnly(ReadOnlySpan<byte> escapedPropertyName, ReadOnlySpan<char> value, int firstEscapeIndex)
940private void WriteStringEscapePropertyOnly(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> escapedValue, int firstEscapeIndex)
963private void WriteStringEscapePropertyOnly(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> escapedValue, int firstEscapeIndex)
986private void WriteStringEscape(ReadOnlySpan<char> propertyName, ReadOnlySpan<char> value)
1005private void WriteStringEscape(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> utf8Value)
1024private void WriteStringEscape(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> utf8Value)
1043private void WriteStringEscape(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<char> value)
1062private void WriteStringEscapePropertyOrValue(scoped ReadOnlySpan<char> propertyName, scoped ReadOnlySpan<char> value, int firstEscapeIndexProp, int firstEscapeIndexVal)
1122private void WriteStringEscapePropertyOrValue(scoped ReadOnlySpan<byte> utf8PropertyName, scoped ReadOnlySpan<byte> utf8Value, int firstEscapeIndexProp, int firstEscapeIndexVal)
1182private void WriteStringEscapePropertyOrValue(scoped ReadOnlySpan<char> propertyName, scoped ReadOnlySpan<byte> utf8Value, int firstEscapeIndexProp, int firstEscapeIndexVal)
1242private void WriteStringEscapePropertyOrValue(scoped ReadOnlySpan<byte> utf8PropertyName, scoped ReadOnlySpan<char> value, int firstEscapeIndexProp, int firstEscapeIndexVal)
1302private void WriteStringByOptions(ReadOnlySpan<char> propertyName, ReadOnlySpan<char> value)
1315private void WriteStringByOptions(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> utf8Value)
1328private void WriteStringByOptions(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> utf8Value)
1341private void WriteStringByOptions(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<char> value)
1355private void WriteStringMinimized(ReadOnlySpan<char> escapedPropertyName, ReadOnlySpan<char> escapedValue)
1390private void WriteStringMinimized(ReadOnlySpan<byte> escapedPropertyName, ReadOnlySpan<byte> escapedValue)
1426private void WriteStringMinimized(ReadOnlySpan<char> escapedPropertyName, ReadOnlySpan<byte> escapedValue)
1462private void WriteStringMinimized(ReadOnlySpan<byte> escapedPropertyName, ReadOnlySpan<char> escapedValue)
1498private void WriteStringIndented(ReadOnlySpan<char> escapedPropertyName, ReadOnlySpan<char> escapedValue)
1548private void WriteStringIndented(ReadOnlySpan<byte> escapedPropertyName, ReadOnlySpan<byte> escapedValue)
1599private void WriteStringIndented(ReadOnlySpan<char> escapedPropertyName, ReadOnlySpan<byte> escapedValue)
1650private void WriteStringIndented(ReadOnlySpan<byte> escapedPropertyName, ReadOnlySpan<char> escapedValue)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.UnsignedNumber.cs (15)
26ReadOnlySpan<byte> utf8PropertyName = propertyName.EncodedUtf8Bytes;
76public void WriteNumber(ReadOnlySpan<char> propertyName, ulong value)
102public void WriteNumber(ReadOnlySpan<byte> utf8PropertyName, ulong value)
168public void WriteNumber(ReadOnlySpan<char> propertyName, uint value)
187public void WriteNumber(ReadOnlySpan<byte> utf8PropertyName, uint value)
190private void WriteNumberEscape(ReadOnlySpan<char> propertyName, ulong value)
206private void WriteNumberEscape(ReadOnlySpan<byte> utf8PropertyName, ulong value)
222private void WriteNumberEscapeProperty(ReadOnlySpan<char> propertyName, ulong value, int firstEscapeIndexProp)
245private void WriteNumberEscapeProperty(ReadOnlySpan<byte> utf8PropertyName, ulong value, int firstEscapeIndexProp)
268private void WriteNumberByOptions(ReadOnlySpan<char> propertyName, ulong value)
281private void WriteNumberByOptions(ReadOnlySpan<byte> utf8PropertyName, ulong value)
294private void WriteNumberMinimized(ReadOnlySpan<char> escapedPropertyName, ulong value)
325private void WriteNumberMinimized(ReadOnlySpan<byte> escapedPropertyName, ulong value)
356private void WriteNumberIndented(ReadOnlySpan<char> escapedPropertyName, ulong value)
402private void WriteNumberIndented(ReadOnlySpan<byte> escapedPropertyName, ulong value)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.StringSegment.cs (18)
27public void WriteStringValueSegment(ReadOnlySpan<char> value, bool isFinalSegment)
64private void WriteStringSegmentWithLeftover(scoped ReadOnlySpan<char> value, bool isFinalSegment)
69scoped ReadOnlySpan<char> partialStringDataBuffer = PartialUtf16StringData;
118private void WriteStringSegmentEscape(ReadOnlySpan<char> value, bool isFinalSegment)
133private void WriteStringSegmentEscapeValue(ReadOnlySpan<char> value, int firstEscapeIndexVal, bool isFinalSegment)
164private void WriteStringSegmentData(ReadOnlySpan<char> escapedValue)
195public void WriteStringValueSegment(ReadOnlySpan<byte> value, bool isFinalSegment)
232private void WriteStringSegmentWithLeftover(scoped ReadOnlySpan<byte> utf8Value, bool isFinalSegment)
237scoped ReadOnlySpan<byte> partialStringDataBuffer = PartialUtf8StringData;
287private void WriteStringSegmentEscape(ReadOnlySpan<byte> utf8Value, bool isFinalSegment)
302private void WriteStringSegmentEscapeValue(ReadOnlySpan<byte> utf8Value, int firstEscapeIndexVal, bool isFinalSegment)
330private void WriteStringSegmentData(ReadOnlySpan<byte> escapedValue)
359public void WriteBase64StringSegment(ReadOnlySpan<byte> value, bool isFinalSegment)
399private void WriteBase64StringSegmentWithLeftover(scoped ReadOnlySpan<byte> bytes, bool isFinalSegment)
404scoped ReadOnlySpan<byte> partialStringDataBuffer = PartialBase64StringData;
432private void WriteBase64StringSegmentData(ReadOnlySpan<byte> bytes, bool isFinalSegment)
538private static int ConcatInto<T>(ReadOnlySpan<T> srcLeft, ReadOnlySpan<T> srcRight, Span<T> dest)
System.Text.Json.SourceGeneration (14)
System.Text.RegularExpressions (242)
src\libraries\Common\src\System\HexConverter.cs (9)
185public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper)
202public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper)
219public static string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper)
249public ReadOnlySpan<byte> Bytes { get; set; }
281public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
293public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
461private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
496private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
603public static ReadOnlySpan<byte> CharToHexLookup =>
System\Text\RegularExpressions\Regex.cs (6)
428ReadOnlySpan<char> span = input.AsSpan(beginning, length);
460internal (bool Success, int Index, int Length, int TextPosition) RunSingleMatch(RegexRunnerMode mode, int prevlen, ReadOnlySpan<char> input, int startat)
521RunAllMatchesWithCallback(input, (ReadOnlySpan<char>)input, startat, ref state, callback, mode, reuseMatchObject);
523internal void RunAllMatchesWithCallback<TState>(ReadOnlySpan<char> input, int startat, ref TState state, MatchCallback<TState> callback, RegexRunnerMode mode, bool reuseMatchObject) =>
526private void RunAllMatchesWithCallback<TState>(string? inputString, ReadOnlySpan<char> inputSpan, int startat, ref TState state, MatchCallback<TState> callback, RegexRunnerMode mode, bool reuseMatchObject)
606private static Match? ScanInternal(RegexRunnerMode mode, bool reuseMatchObject, string? input, int beginning, RegexRunner runner, ReadOnlySpan<char> span, bool returnNullIfReuseMatchObject)
System\Text\RegularExpressions\Regex.EnumerateMatches.cs (8)
26public static ValueMatchEnumerator EnumerateMatches(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.Regex)] string pattern) =>
45public static ValueMatchEnumerator EnumerateMatches(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.Regex, nameof(options))] string pattern, RegexOptions options) =>
65public static ValueMatchEnumerator EnumerateMatches(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.Regex, nameof(options))] string pattern, RegexOptions options, TimeSpan matchTimeout) =>
79public ValueMatchEnumerator EnumerateMatches(ReadOnlySpan<char> input) =>
94public ValueMatchEnumerator EnumerateMatches(ReadOnlySpan<char> input, int startat) =>
101/// The enumerator has no public constructor. The <see cref="Regex.EnumerateMatches(ReadOnlySpan{char})"/> method returns a <see cref="Regex.ValueMatchEnumerator"/>
111private readonly ReadOnlySpan<char> _input;
122internal ValueMatchEnumerator(Regex regex, ReadOnlySpan<char> input, int startAt)
System\Text\RegularExpressions\Regex.EnumerateSplits.cs (26)
18/// The behavior of <see cref="EnumerateSplits(ReadOnlySpan{char}, string)"/> is similar to the behavior of <see cref="Split(string, string)"/>, producing the splits
20/// <see cref="Split(string, string)"/> will include the contents of capture groups in the resulting splits, while <see cref="EnumerateSplits(ReadOnlySpan{char}, string)"/> will not.
22/// <see cref="EnumerateSplits(ReadOnlySpan{char}, string)"/> will yield the splits in the order they're found right-to-left.
35public static ValueSplitEnumerator EnumerateSplits(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.Regex)] string pattern) =>
43/// The behavior of <see cref="EnumerateSplits(ReadOnlySpan{char}, string, RegexOptions)"/> is similar to the behavior of <see cref="Split(string, string, RegexOptions)"/>, producing the splits
45/// <see cref="Split(string, string, RegexOptions)"/> will include the contents of capture groups in the resulting splits, while <see cref="EnumerateSplits(ReadOnlySpan{char}, string, RegexOptions)"/> will not.
47/// <see cref="EnumerateSplits(ReadOnlySpan{char}, string, RegexOptions)"/> will yield the splits in the order they're found right-to-left.
62public static ValueSplitEnumerator EnumerateSplits(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.Regex, nameof(options))] string pattern, RegexOptions options) =>
70/// The behavior of <see cref="EnumerateSplits(ReadOnlySpan{char}, string, RegexOptions, TimeSpan)"/> is similar to the behavior of <see cref="Split(string, string, RegexOptions, TimeSpan)"/>, producing the splits
72/// <see cref="Split(string, string, RegexOptions, TimeSpan)"/> will include the contents of capture groups in the resulting splits, while <see cref="EnumerateSplits(ReadOnlySpan{char}, string, RegexOptions, TimeSpan)"/> will not.
74/// <see cref="EnumerateSplits(ReadOnlySpan{char}, string, RegexOptions, TimeSpan)"/> will yield the splits in the order they're found right-to-left.
90public static ValueSplitEnumerator EnumerateSplits(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.Regex, nameof(options))] string pattern, RegexOptions options, TimeSpan matchTimeout) =>
98/// The behavior of <see cref="EnumerateSplits(ReadOnlySpan{char})"/> is similar to the behavior of <see cref="Split(string)"/>, producing the splits
100/// <see cref="Split(string)"/> will include the contents of capture groups in the resulting splits, while <see cref="EnumerateSplits(ReadOnlySpan{char})"/> will not.
102/// <see cref="EnumerateSplits(ReadOnlySpan{char})"/> will yield the splits in the order they're found right-to-left.
112public ValueSplitEnumerator EnumerateSplits(ReadOnlySpan<char> input) =>
120/// The behavior of <see cref="EnumerateSplits(ReadOnlySpan{char}, int)"/> is similar to the behavior of <see cref="Split(string, int)"/>, producing the splits
122/// <see cref="Split(string, int)"/> will include the contents of capture groups in the resulting splits, while <see cref="EnumerateSplits(ReadOnlySpan{char}, int)"/> will not.
124/// <see cref="EnumerateSplits(ReadOnlySpan{char}, int)"/> will yield the splits in the order they're found right-to-left.
135public ValueSplitEnumerator EnumerateSplits(ReadOnlySpan<char> input, int count) =>
143/// The behavior of <see cref="EnumerateSplits(ReadOnlySpan{char}, int, int)"/> is similar to the behavior of <see cref="Split(string, int, int)"/>, producing the splits
145/// <see cref="Split(string, int, int)"/> will include the contents of capture groups in the resulting splits, while <see cref="EnumerateSplits(ReadOnlySpan{char}, int, int)"/> will not.
147/// <see cref="EnumerateSplits(ReadOnlySpan{char}, int, int)"/> will yield the splits in the order they're found right-to-left.
159public ValueSplitEnumerator EnumerateSplits(ReadOnlySpan<char> input, int count, int startat)
181private readonly ReadOnlySpan<char> _input;
196internal ValueSplitEnumerator(Regex regex, ReadOnlySpan<char> input, int count, int startAt, bool rtl)
System\Text\RegularExpressions\RegexAssemblyCompiler.cs (3)
57_ilg = DefineMethod(regexRunnerTypeBuilder, "TryFindNextPossibleStartingPosition", [typeof(ReadOnlySpan<char>)], typeof(bool), out MethodBuilder tryFindNextPossibleStartingPositionMethod);
60_ilg = DefineMethod(regexRunnerTypeBuilder, "TryMatchAtCurrentPosition", [typeof(ReadOnlySpan<char>)], typeof(bool), out MethodBuilder tryMatchAtCurrentPositionMethod);
63_ilg = DefineMethod(regexRunnerTypeBuilder, "Scan", [typeof(ReadOnlySpan<char>)], null, out _);
System\Text\RegularExpressions\RegexCharClass.cs (15)
427private void AddRanges(ReadOnlySpan<char> set)
506if (RegexCaseEquivalences.TryFindCaseEquivalencesForCharWithIBehavior(range.First, culture, ref _caseBehavior, out ReadOnlySpan<char> equivalences))
530if (RegexCaseEquivalences.TryFindCaseEquivalencesForCharWithIBehavior((char)i, culture, ref _caseBehavior, out ReadOnlySpan<char> equivalences))
1094public static bool ParticipatesInCaseConversion(ReadOnlySpan<char> s)
1108public static bool IsAscii(ReadOnlySpan<char> s)
1262private static ReadOnlySpan<byte> WordCharAsciiLookup =>
1286ReadOnlySpan<byte> ascii = WordCharAsciiLookup;
1354ReadOnlySpan<byte> ascii = WordCharAsciiLookup;
1508private static bool CharInCategory(char ch, ReadOnlySpan<char> categorySetSegment)
1564private static bool CharInCategoryGroup(UnicodeCategory chcategory, ReadOnlySpan<char> category, ref int i)
1627public static List<(char First, char Last)>? ComputeRanges(ReadOnlySpan<char> set)
1663internal static string CharsToStringClass(ReadOnlySpan<char> chars)
1711ReadOnlySpan<char> tmpChars = chars; // avoid address exposing the span and impacting the other code in the method that uses it
1957private static ReadOnlySpan<char> RangesFromProperty(string capname, bool invert, string pattern, int currentPos)
2093ReadOnlySpan<char> group = set.AsSpan(index, lastindex - index + 1);
System\Text\RegularExpressions\RegexCompiler.cs (49)
37private static MethodInfo IsBoundaryMethod => field ??= typeof(RegexRunner).GetMethod("IsBoundary", BindingFlags.NonPublic | BindingFlags.Static, [typeof(ReadOnlySpan<char>), typeof(int)])!;
38private static MethodInfo IsPreWordCharBoundaryMethod => field ??= typeof(RegexRunner).GetMethod("IsPreWordCharBoundary", BindingFlags.NonPublic | BindingFlags.Static, [typeof(ReadOnlySpan<char>), typeof(int)])!;
39private static MethodInfo IsPostWordCharBoundaryMethod => field ??= typeof(RegexRunner).GetMethod("IsPostWordCharBoundary", BindingFlags.NonPublic | BindingFlags.Static, [typeof(ReadOnlySpan<char>), typeof(int)])!;
41private static MethodInfo IsECMABoundaryMethod => field ??= typeof(RegexRunner).GetMethod("IsECMABoundary", BindingFlags.NonPublic | BindingFlags.Static, [typeof(ReadOnlySpan<char>), typeof(int)])!;
67private static MethodInfo SpanGetItemMethod => field ??= typeof(ReadOnlySpan<char>).GetMethod("get_Item", [typeof(int)])!;
68private static MethodInfo SpanGetLengthMethod => field ??= typeof(ReadOnlySpan<char>).GetMethod("get_Length")!;
69private static MethodInfo SpanIndexOfCharMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOf", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
70private static MethodInfo SpanIndexOfSpanMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOf", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char));
71private static MethodInfo SpanIndexOfSpanStringComparisonMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOf", [typeof(ReadOnlySpan<char>), typeof(ReadOnlySpan<char>), typeof(StringComparison)])!;
72private static MethodInfo SpanIndexOfAnyCharCharMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
73private static MethodInfo SpanIndexOfAnyCharCharCharMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
74private static MethodInfo SpanIndexOfAnySpanMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char));
75private static MethodInfo SpanIndexOfAnySearchValuesMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(SearchValues<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char));
76private static MethodInfo SpanIndexOfAnySearchValuesStringMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAny", [typeof(ReadOnlySpan<char>), typeof(SearchValues<string>)])!;
77private static MethodInfo SpanIndexOfAnyExceptCharMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
78private static MethodInfo SpanIndexOfAnyExceptCharCharMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
79private static MethodInfo SpanIndexOfAnyExceptCharCharCharMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
80private static MethodInfo SpanIndexOfAnyExceptSpanMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char));
81private static MethodInfo SpanIndexOfAnyExceptSearchValuesMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(SearchValues<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char));
82private static MethodInfo SpanIndexOfAnyInRangeMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAnyInRange", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
83private static MethodInfo SpanIndexOfAnyExceptInRangeMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAnyExceptInRange", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
84private static MethodInfo SpanLastIndexOfCharMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOf", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
85private static MethodInfo SpanLastIndexOfAnyCharCharMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
86private static MethodInfo SpanLastIndexOfAnyCharCharCharMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
87private static MethodInfo SpanLastIndexOfAnySpanMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char));
88private static MethodInfo SpanLastIndexOfAnySearchValuesMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(SearchValues<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char));
89private static MethodInfo SpanLastIndexOfSpanMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOf", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char));
90private static MethodInfo SpanLastIndexOfAnyExceptCharMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
91private static MethodInfo SpanLastIndexOfAnyExceptCharCharMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
92private static MethodInfo SpanLastIndexOfAnyExceptCharCharCharMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
93private static MethodInfo SpanLastIndexOfAnyExceptSpanMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char));
94private static MethodInfo SpanLastIndexOfAnyExceptSearchValuesMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(SearchValues<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char));
95private static MethodInfo SpanLastIndexOfAnyInRangeMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAnyInRange", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
96private static MethodInfo SpanLastIndexOfAnyExceptInRangeMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAnyExceptInRange", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char));
97private static MethodInfo SpanSliceIntMethod => field ??= typeof(ReadOnlySpan<char>).GetMethod("Slice", [typeof(int)])!;
98private static MethodInfo SpanSliceIntIntMethod => field ??= typeof(ReadOnlySpan<char>).GetMethod("Slice", [typeof(int), typeof(int)])!;
99private static MethodInfo SpanStartsWithSpanMethod => field ??= typeof(MemoryExtensions).GetMethod("StartsWith", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char));
100private static MethodInfo SpanStartsWithSpanComparisonMethod => field ??= typeof(MemoryExtensions).GetMethod("StartsWith", [typeof(ReadOnlySpan<char>), typeof(ReadOnlySpan<char>), typeof(StringComparison)])!;
344private LocalBuilder DeclareReadOnlySpanChar() => _ilg!.DeclareLocal(typeof(ReadOnlySpan<char>));
6159private void EmitIndexOfAnyWithSearchValuesOrLiteral(ReadOnlySpan<char> chars, bool last = false, bool except = false)
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.cs (19)
333private uint GetCharKind(ReadOnlySpan<char> input, int i) =>
354public SymbolicMatch FindMatch(RegexRunnerMode mode, ReadOnlySpan<char> input, int startat, PerThreadData perThreadData)
488ReadOnlySpan<char> input, int pos, long timeoutOccursAt, RegexRunnerMode mode, PerThreadData perThreadData)
557private int FindEndPositionFallback<TInitialStateHandler, TNullabilityHandler>(ReadOnlySpan<char> input, int pos, long timeoutOccursAt, RegexRunnerMode mode, PerThreadData perThreadData)
628ReadOnlySpan<char> input, int lengthMinus1, RegexRunnerMode mode,
734private bool FindEndPositionDeltasDFA<TInitialStateHandler, TNullabilityHandler>(ReadOnlySpan<char> input, int length, RegexRunnerMode mode,
801ReadOnlySpan<char> input, int length, RegexRunnerMode mode,
859private int FindStartPosition<TInputReader, TNullabilityHandler>(CurrentState startState, int initialLastStart, ReadOnlySpan<char> input, int i, int matchStartBoundary, PerThreadData perThreadData)
902ReadOnlySpan<char> input, ref int i, int startThreshold, ref CurrentState stateRef, ref int lastStart)
951private bool FindStartPositionDeltasNFA<TInputReader, TNullabilityHandler>(ReadOnlySpan<char> input, ref int i, int startThreshold, ref CurrentState state, ref int lastStart)
1004private Registers FindSubcaptures<TInputReader>(ReadOnlySpan<char> input, int i, int iEnd, PerThreadData perThreadData)
1470public static abstract int GetPositionId(SymbolicRegexMatcher<TSet> matcher, ReadOnlySpan<char> input, int pos);
1480public static int GetPositionId(SymbolicRegexMatcher<TSet> matcher, ReadOnlySpan<char> input, int pos)
1499public static int GetPositionId(SymbolicRegexMatcher<TSet> matcher, ReadOnlySpan<char> input, int pos) =>
1519SymbolicRegexMatcher<TSet> matcher, ReadOnlySpan<char> input, ref int currentStateId, ref int pos, byte[]? lookup);
1530SymbolicRegexMatcher<TSet> matcher, ReadOnlySpan<char> input, ref int currentStateId, ref int pos, byte[]? lookup) =>
1544SymbolicRegexMatcher<TSet> matcher, ReadOnlySpan<char> input, ref int currentStateId, ref int pos, byte[]? lookup)
1575SymbolicRegexMatcher<TSet> matcher, ReadOnlySpan<char> input, ref int currentStateId, ref int pos, byte[]? lookup)
1606SymbolicRegexMatcher<TSet> matcher, ReadOnlySpan<char> input, ref int currentStateId, ref int pos, byte[]? lookup)
System\Text\RegularExpressions\Symbolic\UnicodeCategoryRanges.cs (32)
14public static ReadOnlySpan<byte> SerializedWhitespaceBDD => [0x3, 0x4, 0x0, 0x0, 0x7, 0x0, 0x0, 0x0, 0x8, 0x0, 0x10, 0x0, 0x0, 0x1, 0x10, 0x0, 0x31, 0x0, 0x0, 0x1, 0x8, 0x0, 0x21, 0x8, 0x0, 0x1, 0x18, 0x0, 0x1, 0x10, 0x0, 0x11, 0x18, 0x0, 0x2, 0x20, 0x0, 0x52, 0x0, 0x0, 0x52, 0x30, 0x0, 0x2, 0x38, 0x0, 0x82, 0x0, 0x0, 0x2, 0x48, 0x0, 0x62, 0x50, 0x0, 0x3, 0x58, 0x0, 0xC3, 0x0, 0x0, 0xD3, 0x0, 0x0, 0xE3, 0x8, 0x0, 0x3, 0x78, 0x0, 0x3, 0x80, 0x0, 0x13, 0x1, 0x0, 0x4, 0x90, 0x0, 0x34, 0x1, 0x0, 0x4, 0xA0, 0x0, 0x4, 0xA8, 0x0, 0x4, 0xB0, 0x0, 0x4, 0xB8, 0x0, 0x4, 0xC0, 0x0, 0x5, 0xC8, 0x0, 0x5, 0xD0, 0x0, 0xB5, 0xE1, 0x0, 0x95, 0xE9, 0x0, 0xE5, 0xF9, 0x0, 0x6, 0x0, 0x1, 0x16, 0x12, 0x1, 0x6, 0x18, 0x1, 0x6, 0x20, 0x1, 0x7, 0x28, 0x1, 0x7, 0x30, 0x1, 0x57, 0x2, 0x0, 0x77, 0x42, 0x1, 0x8, 0x48, 0x1, 0x8, 0x50, 0x1, 0x8, 0x58, 0x1, 0x8, 0x60, 0x1, 0x9, 0x68, 0x1, 0x9, 0x70, 0x1, 0xF9, 0x2, 0x0, 0x9, 0x80, 0x1, 0xA, 0x88, 0x1, 0xA, 0x90, 0x1, 0x3A, 0x3, 0x0, 0xA, 0xA0, 0x1, 0xB, 0xA8, 0x1, 0xB, 0xB0, 0x1, 0xB, 0xB8, 0x1, 0xB, 0xC0, 0x1, 0x9C, 0xD3, 0x1, 0xBC, 0xE3, 0x1, 0xDD, 0xF3, 0x1, 0xE, 0xF8, 0x1, 0xF, 0x0, 0x2];
17public static ReadOnlySpan<byte> GetSerializedCategory(UnicodeCategory category) =>
54private static ReadOnlySpan<byte> SerializedCategory0_UppercaseLetter => [0x3, 0x4, 0x0, 0x0, 0x9, 0x0, 0x0, 0x0, 0x20, 0x0, 0x10, 0x0, 0x0, 0x21, 0x20, 0x0, 0x11, 0x60, 0x0, 0x1, 0x60, 0x0, 0x1, 0x40, 0x0, 0x21, 0x0, 0x0, 0x11, 0x40, 0x0, 0x31, 0x0, 0x0, 0x21, 0x60, 0x0, 0x11, 0x0, 0x0, 0x31, 0x40, 0x0, 0x1, 0x20, 0x0, 0x31, 0x20, 0x0, 0x2, 0x80, 0x0, 0x12, 0xA0, 0x0, 0x62, 0x0, 0x0, 0x72, 0x40, 0x0, 0x82, 0xE0, 0x0, 0x72, 0x60, 0x0, 0x12, 0x40, 0x0, 0x22, 0x20, 0x0, 0x42, 0x20, 0x1, 0x82, 0x40, 0x0, 0x62, 0x40, 0x1, 0xB2, 0x60, 0x0, 0x22, 0x0, 0x1, 0x2, 0x40, 0x0, 0x2, 0x0, 0x1, 0xC2, 0x0, 0x0, 0x62, 0x40, 0x0, 0x52, 0x60, 0x0, 0xD2, 0x20, 0x1, 0x2, 0x40, 0x1, 0x2, 0x20, 0x0, 0xE2, 0x20, 0x1, 0x22, 0x0, 0x0, 0xE2, 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 0xDE, 0xD4, 0x29, 0xE, 0xE0, 0x29, 0xF, 0x35, 0x2A];
60private static ReadOnlySpan<byte> SerializedCategory2_TitlecaseLetter => [0x2, 0x4, 0x0, 0x6, 0x0, 0x0, 0x4, 0x10, 0x0, 0x1, 0x8, 0x21, 0x0, 0x31, 0x8, 0x1, 0xC, 0x42, 0x0, 0x2, 0x14, 0x2, 0x18, 0x72, 0x0, 0x83, 0x0, 0x13, 0x0, 0x3, 0x24, 0xA3, 0x2C, 0xC4, 0x0, 0x4, 0x30, 0xC4, 0x34, 0xE4, 0x0, 0x4, 0x3C, 0x5, 0x45, 0x25, 0x35, 0x35, 0x51, 0x56, 0x59, 0x76, 0x1, 0x87, 0x1, 0x97, 0x1, 0xA8, 0x1, 0xB8, 0x1, 0xC9, 0x1, 0x9, 0x74, 0xEA, 0x1, 0xA, 0x7C, 0xB, 0x2, 0xB, 0x84, 0x2C, 0x8E, 0xD, 0x90, 0xE, 0x94, 0xF, 0x98];
63private static ReadOnlySpan<byte> SerializedCategory3_ModifierLetter => [0x3, 0x4, 0x0, 0x0, 0x9, 0x0, 0x0, 0x0, 0x20, 0x0, 0x10, 0x0, 0x0, 0x11, 0x0, 0x0, 0x1, 0x40, 0x0, 0x1, 0x60, 0x0, 0x31, 0x0, 0x0, 0x21, 0x0, 0x0, 0x1, 0x20, 0x0, 0x21, 0x20, 0x0, 0x21, 0x60, 0x0, 0x11, 0x60, 0x0, 0x42, 0x0, 0x0, 0x2, 0xA0, 0x0, 0x2, 0xC0, 0x0, 0x12, 0x0, 0x0, 0x52, 0xE0, 0x0, 0x62, 0x0, 0x0, 0x82, 0x0, 0x0, 0x72, 0x0, 0x0, 0x2, 0x20, 0x1, 0x52, 0x80, 0x0, 0x92, 0x0, 0x0, 0x52, 0x0, 0x0, 0x92, 0x20, 0x0, 0xA2, 0x0, 0x0, 0xB2, 0x0, 0x0, 0x2, 0xE0, 0x0, 0x92, 0x80, 0x1, 0x52, 0x20, 0x0, 0x12, 0xE0,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C0, 0x1A, 0x4, 0x0, 0x1B, 0xD4, 0x86, 0x1B, 0x34, 0x46, 0x0, 0x14, 0xC0, 0x1B, 0x4, 0x0, 0x1C, 0x14, 0x40, 0x1C, 0x14, 0x80, 0x1C, 0x34, 0x7, 0x0, 0x24, 0x46, 0x0, 0x14, 0x40, 0x16, 0x14, 0x0, 0x1D, 0x54, 0x7, 0x0, 0x4, 0x80, 0x1D, 0x4, 0x40, 0x1C, 0x4, 0xC0, 0x1D, 0x4, 0x0, 0x1E, 0x14, 0xC0, 0x15, 0x84, 0x45, 0x0, 0x4, 0x40, 0x15, 0x64, 0x45, 0x0, 0x4, 0x40, 0x14, 0x34, 0x45, 0x0, 0x14, 0x40, 0x1E, 0xA4, 0x47, 0x0, 0x14, 0xC0, 0x14, 0xB4, 0x47, 0x0, 0xC4, 0x7, 0x0, 0x4, 0x40, 0x1F, 0x4, 0x47, 0x0, 0xE4, 0x7, 0x0, 0xF4, 0x7, 0x20, 0x24, 0x47, 0x20, 0x4, 0x80, 0x18, 0x24, 0x87, 0x20, 0x14, 0x80, 0x16, 0x4, 0xC0, 0x20, 0x44, 0x48, 0x0, 0x4, 0x0, 0x18, 0x44, 0x88, 0x14, 0x14, 0x47, 0x0, 0x14, 0x40, 0x21, 0x14, 0x80, 0x1B, 0xC4, 0x46, 0x0, 0x14, 0x80, 0x21, 0x74, 0x8, 0x22, 0x94, 0x48, 0x0, 0xA4, 0x88, 0x19, 0x64, 0xC6, 0x14, 0x14, 0xC0, 0x22, 0x4, 0x40, 0x0, 0x64, 0x46, 0x0, 0xC4, 0x48, 0x0, 0xD4, 0x8, 0x23, 0xE4, 0x48, 0x0, 0x14, 0xC0, 0x23, 0x4, 0xC9, 0x23, 0x4, 0x40, 0x24, 0x24, 0xC9, 0x24, 0x44, 0x9, 0x0, 0x64, 0x87, 0x19, 0x4, 0x40, 0x25, 0x14, 0x80, 0x25, 0x4, 0xC0, 0x21, 0x74, 0x9, 0x21, 0x84, 0x49, 0x26, 0x14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, 0x91, 0x46, 0xB5, 0x51, 0x0, 0x5, 0x0, 0x47, 0x25, 0x4F, 0x47, 0x5, 0x80, 0x47, 0x5, 0xC0, 0x47, 0x5, 0x52, 0x48, 0x5, 0x40, 0x3B, 0x25, 0x12, 0x3E, 0x5, 0x0, 0x39, 0x35, 0x12, 0x49, 0x55, 0x92, 0x49, 0x75, 0x12, 0x4A, 0x95, 0x92, 0x4A, 0xB5, 0x12, 0x4B, 0xD5, 0x92, 0x4B, 0xF5, 0x12, 0x4C, 0x5, 0x40, 0x4C, 0x25, 0xD3, 0x4C, 0x45, 0x53, 0x4D, 0x65, 0xD3, 0x4D, 0x85, 0x53, 0x4C, 0x65, 0x53, 0x4E, 0xA5, 0xD3, 0x4E, 0xC5, 0x53, 0x4F, 0xE5, 0xD3, 0x4F, 0x5, 0x54, 0x50, 0x25, 0xD4, 0x50, 0x45, 0xD4, 0x38, 0x5, 0x0, 0x38, 0x15, 0x40, 0x51, 0x65, 0x94, 0x42, 0x5, 0xC0, 0x41, 0x75, 0x94, 0x39, 0x85, 0x54, 0x0, 0x15, 0x40, 0x52, 0x15, 0x91, 0x52, 0xB5, 0x14, 0x53, 0xD5, 0x94, 0x53, 0xF5, 0x54, 0x33, 0x5, 0x0, 0x54, 0x5, 0x0, 0x40, 0x15, 0x15, 0x0, 0x35, 0xC, 0x0, 0x26, 0xD5, 0x54, 0x46, 0x15, 0x0, 0x56, 0x55, 0x0, 0x66, 0x15, 0x0, 0x76, 0x15, 0x56, 0x96, 0x95, 0x56, 0xB6, 0x15, 0x57, 0xD6, 0x95, 0x57, 0xF6, 0x55, 0x0, 0x6, 0x56, 0x0, 0x16, 0x96, 0x58, 0x36, 0x16, 0x0, 0x6, 0x0, 0x59, 0x56, 0x96, 0x59, 0x76, 0x16, 0x5A, 0x96, 0x96, 0x5A, 0xB6, 0x16, 0x5B, 0xD6, 0x96, 0x5B, 0xF6, 0x16, 0x5C, 0x16, 0x97, 0x5C, 0x36, 0x17, 0x5D, 0x56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80, 0x90, 0x38, 0x24, 0x91, 0x59, 0xA4, 0x91, 0x79, 0x24, 0x92, 0x99, 0x64, 0x0, 0xA9, 0xE4, 0x92, 0xC9, 0x64, 0x93, 0x19, 0x80, 0x93, 0x19, 0xC0, 0x93, 0x9, 0x0, 0x94, 0x9, 0x40, 0x94, 0x9, 0x80, 0x94, 0x9, 0xC0, 0x94, 0x49, 0x65, 0x95, 0x69, 0xE5, 0x95, 0x89, 0x65, 0x96, 0xA9, 0xE5, 0x96, 0xC9, 0x65, 0x97, 0xE9, 0xE5, 0x97, 0x9, 0x66, 0x98, 0x2A, 0xE6, 0x98, 0x4A, 0x66, 0x0, 0x1A, 0x40, 0x99, 0x6A, 0xE6, 0x99, 0x8A, 0x66, 0x0, 0x1A, 0x40, 0x9A, 0xAA, 0x26, 0x0, 0xA, 0xC0, 0x9A, 0xCA, 0x66, 0x9B, 0xEA, 0xE6, 0x9B, 0xA, 0x67, 0x9C, 0x2A, 0xE7, 0x9C, 0x4B, 0x27, 0x0, 0xB, 0x40, 0x9D, 0x6B, 0xE7, 0x9D, 0x8B, 0x67, 0x0, 0x1B, 0x40, 0x9E, 0xAB, 0xE7, 0x9E, 0xCB, 0x67, 0x9F, 0xEB, 0xE7, 0x9F, 0xC, 0x28, 0x0, 0x1C, 0x68, 0x0, 0x1C, 0x80, 0xA0, 0x1C, 0xC0, 0xA0, 0x4C, 0x68, 0xA1, 0x6C, 0xE8, 0xA1, 0x8D, 0x68, 0xA2, 0xAD, 0x68, 0x0, 0x1D, 0xC0, 0xA2, 0xCD, 0x68, 0xA3, 0xEE, 0xE8, 0xA3, 0xE, 0x69, 0xA4, 0x2F, 0xE9, 0xA4];
69private static ReadOnlySpan<byte> SerializedCategory5_NonSpacingMark => [0x3, 0x4, 0x0, 0x0, 0xA, 0x0, 0x0, 0x0, 0x40, 0x0, 0x10, 0x0, 0x0, 0x21, 0x0, 0x0, 0x1, 0xC0, 0x0, 0x1, 0x80, 0x0, 0x1, 0x40, 0x0, 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52, 0xC6, 0x54, 0x53, 0xE6, 0xD4, 0x53, 0x6, 0x55, 0x54, 0x26, 0xD5, 0x54, 0x46, 0x55, 0x55, 0x66, 0xD5, 0x55, 0x86, 0xD5, 0x54, 0x96, 0x95, 0x56, 0xB6, 0x95, 0x56, 0xC6, 0x55, 0x57, 0xE6, 0xD5, 0x57, 0x6, 0x56, 0x58, 0x26, 0xD6, 0x58, 0x46, 0x56, 0x59, 0x66, 0xD6, 0x59, 0x86, 0x16, 0x0, 0x96, 0x96, 0x5A, 0xB6, 0x16, 0x5B, 0x6, 0x40, 0x5B, 0xE6, 0x56, 0x0, 0x7, 0xC0, 0x5B, 0x7, 0x0, 0x5C, 0x17, 0x17, 0x0, 0x27, 0xD7, 0x5C, 0x47, 0x57, 0x5D, 0x67, 0xD7, 0x5D, 0x87, 0x57, 0x5E, 0xA7, 0xD7, 0x5E, 0xC7, 0x57, 0x5F, 0xE7, 0x17, 0x0, 0xF7, 0x17, 0x0, 0x7, 0x18, 0x0, 0x17, 0x98, 0x60, 0x37, 0x18, 0x61, 0x57, 0x98, 0x61, 0x7, 0xC0, 0x61, 0x87, 0x58, 0x62, 0xA7, 0xD8, 0x62, 0x7, 0x0, 0x63, 0xD7, 0x98, 0x63, 0xF7, 0x18, 0x64, 0x17, 0x99, 0x64, 0x37, 0x19, 0x65, 0x57, 0x99, 0x65, 0x77, 0x19, 0x66, 0x97, 0x99, 0x66, 0xB7, 0x19, 0x67, 0xD7, 0x99, 0x67, 0xF7, 0x19, 0x68, 0x17, 0x9A, 0x68, 0x37, 0x1A, 0x0, 0x47, 0x1A, 0x0, 0x7, 0x40, 0x69, 0x8, 0x80, 0x69, 0x78, 0x1A, 0x0, 0x88, 0x5A, 0x6A, 0xA8, 0xDA, 0x6A, 0x8, 0x0, 0x6B, 0x8, 0x40, 0x6B, 0xE8, 0xDA, 0x6B, 0x8, 0x0, 0x6C, 0x18, 0x9B, 0x6C, 0x38, 0x1B, 0x6D, 0x58, 0x9B, 0x6D,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xA, 0xC0, 0x20, 0xA, 0xE0, 0x20, 0x8A, 0x30, 0x21, 0xAA, 0x70, 0x21, 0xCA, 0xB0, 0x21, 0xEB, 0x10, 0x0, 0xB, 0xE0, 0x21, 0xB, 0x31, 0x22, 0x2B, 0x11, 0x0, 0xC, 0x60, 0x22, 0x4C, 0x11, 0x0, 0x5C, 0xD1, 0x22, 0x7D, 0x11, 0x0, 0x8D, 0x31, 0x23, 0xE, 0x40, 0x23, 0xE, 0x60, 0x23, 0xCF, 0xB1, 0x23];
75private static ReadOnlySpan<byte> SerializedCategory7_EnclosingMark => [0x2, 0x4, 0x0, 0x6, 0x0, 0x0, 0x4, 0x10, 0x0, 0x21, 0x4, 0x1, 0x8, 0x11, 0x8, 0x11, 0xC, 0x21, 0x0, 0x1, 0x4, 0x2, 0x10, 0x52, 0x18, 0x72, 0x0, 0x82, 0x0, 0x2, 0x24, 0x3, 0x28, 0x3, 0x2C, 0xC3, 0x0, 0xD3, 0x0, 0xE3, 0x0, 0xF4, 0x0, 0x4, 0x40, 0x14, 0x1, 0x24, 0x1, 0x4, 0x4C, 0x45, 0x1, 0x55, 0x59, 0x75, 0x1, 0x5, 0x60, 0x96, 0x1, 0xA6, 0x1, 0x6, 0x6C, 0x6, 0x70, 0x7, 0x74, 0xE7, 0x1, 0xF7, 0x1, 0x7, 0x2, 0x8, 0x84, 0x8, 0x88, 0x8, 0x8C, 0x8, 0x90, 0x59, 0x2, 0x9, 0x98, 0x79, 0x2, 0x9, 0xA0, 0x9A, 0x2, 0xA, 0xA8, 0xA, 0xAC, 0xCA, 0x2, 0xB, 0xB4, 0xB, 0xB8, 0xFB, 0x2, 0xB, 0xC0, 0xC, 0xC4, 0xC, 0xC8, 0x3C, 0xD3, 0x5D, 0x3, 0x6D, 0xDF, 0xE, 0xE0, 0xE, 0xE4, 0xAF, 0xEF];
78private static ReadOnlySpan<byte> SerializedCategory8_DecimalDigitNumber => [0x3, 0x4, 0x0, 0x0, 0x7, 0x0, 0x0, 0x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A, 0x30, 0xA, 0x4B, 0xA, 0x0, 0xB, 0x50, 0xA, 0x6B, 0x7A, 0xA, 0x8B, 0x9A, 0xA, 0xAB, 0xBA, 0xA, 0xC, 0xC0, 0xA, 0xDC, 0xEA, 0xA, 0xFC, 0xA, 0xB, 0x1D, 0xB, 0x0, 0x2D, 0x3B, 0xB, 0xE, 0x40, 0xB, 0xE, 0x50, 0xB, 0x6F, 0x7B, 0xB];
87private static ReadOnlySpan<byte> SerializedCategory11_SpaceSeparator => [0x2, 0x4, 0x0, 0x6, 0x0, 0x0, 0x4, 0x10, 0x0, 0x1, 0x8, 0x31, 0x0, 0x21, 0x4, 0x1, 0x8, 0x2, 0x10, 0x52, 0x0, 0x2, 0x18, 0x2, 0x1C, 0x3, 0x20, 0x93, 0x0, 0xA3, 0x4, 0x3, 0x2C, 0x4, 0x30, 0xD4, 0x0, 0x4, 0x34, 0x4, 0x38, 0x4, 0x3C, 0x5, 0x40, 0x5, 0x44, 0x25, 0x4D, 0x5, 0x1, 0x45, 0x1, 0x6, 0x54, 0x66, 0x5D, 0x6, 0x60, 0x6, 0x64, 0x7, 0x68, 0x7, 0x6C, 0xA7, 0x1, 0xC7, 0x75, 0x8, 0x78, 0x8, 0x7C, 0x8, 0x80, 0x8, 0x84, 0x9, 0x88, 0x9, 0x8C, 0x49, 0x2, 0x9, 0x94, 0xA, 0x98, 0xA, 0x9C, 0x8A, 0x2, 0xA, 0xA4, 0xB, 0xA8, 0xB, 0xAC, 0xB, 0xB0, 0xB, 0xB4, 0xEC, 0xBE, 0xC, 0xC7, 0x2D, 0xCF, 0xE, 0xD0, 0xF, 0xD4];
90private static ReadOnlySpan<byte> SerializedCategory12_LineSeparator => [0x2, 0x4, 0x0, 0x5, 0x0, 0x0, 0x2, 0x1, 0x4, 0x2, 0x6, 0x43, 0x0, 0x4, 0xA, 0x65, 0x0, 0x6, 0xE, 0x7, 0x10, 0x8, 0x12, 0x9, 0x14, 0xA, 0x16, 0xB, 0x18, 0xC, 0x1A, 0xED, 0x0, 0xE, 0x1E, 0xF, 0x20];
93private static ReadOnlySpan<byte> SerializedCategory13_ParagraphSeparator => [0x2, 0x4, 0x0, 0x5, 0x0, 0x10, 0x0, 0x1, 0x4, 0x2, 0x6, 0x43, 0x0, 0x4, 0xA, 0x65, 0x0, 0x6, 0xE, 0x7, 0x10, 0x8, 0x12, 0x9, 0x14, 0xA, 0x16, 0xB, 0x18, 0xC, 0x1A, 0xED, 0x0, 0xE, 0x1E, 0xF, 0x20];
96private static ReadOnlySpan<byte> SerializedCategory14_Control => [0x2, 0x4, 0x0, 0x5, 0x0, 0x10, 0x0, 0x21, 0x0, 0x32, 0x0, 0x43, 0x0, 0x54, 0x0, 0x5, 0x2, 0x65, 0x0, 0x6, 0xE, 0x86, 0xE, 0x97, 0x14, 0x8, 0x16, 0x9, 0x18, 0xA, 0x1A, 0xB, 0x1C, 0xC, 0x1E, 0xD, 0x20, 0xE, 0x22, 0xF, 0x24];
99private static ReadOnlySpan<byte> SerializedCategory15_Format => [0x3, 0x4, 0x0, 0x0, 0x7, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0, 0x8, 0x0, 0x11, 0x10, 0x0, 0x21, 0x0, 0x0, 0x11, 0x18, 0x0, 0x31, 0x8, 0x0, 0x11, 0x0, 0x0, 0x31, 0x0, 0x0, 0x1, 0x8, 0x0, 0x1, 0x10, 0x0, 0x1, 0x18, 0x0, 0x2, 0x20, 0x0, 0x52, 0x0, 0x0, 0x62, 0x8, 0x0, 0x72, 0x40, 0x0, 0x12, 0x28, 0x0, 0x92, 0x0, 0x0, 0x2, 0x48, 0x0, 0x2, 0x50, 0x0, 0xB2, 0x0, 0x0, 0xC2, 0x0, 0x0, 0xA2, 0x8, 0x0, 0xD3, 0x0, 0x0, 0xE3, 0x0, 0x0, 0x13, 0x78, 0x0, 0x3, 0x1, 0x0, 0x13, 0x1, 0x0, 0x23, 0x1, 0x0, 0x3, 0x98, 0x0, 0x3, 0xA0, 0x0, 0x53, 0x1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xFD, 0x2, 0xD, 0x6, 0x0, 0x1D, 0x16, 0x3, 0x3E, 0x6, 0x0, 0xE, 0x20, 0x3, 0x5F, 0x36, 0x3];
102private static ReadOnlySpan<byte> SerializedCategory16_Surrogate => [0x2, 0x4, 0x0, 0x3, 0x0, 0x1B, 0x0, 0x2C, 0x0, 0x8D, 0x1, 0x4E, 0x0, 0x5F, 0x0];
105private static ReadOnlySpan<byte> SerializedCategory17_PrivateUse => [0x2, 0x4, 0x0, 0x4, 0x0, 0x8, 0x1, 0x9, 0x2, 0xA, 0x3, 0x4B, 0x1, 0x5C, 0x1, 0x6D, 0x0, 0x7E, 0x0, 0x8F, 0x0];
108private static ReadOnlySpan<byte> SerializedCategory18_ConnectorPunctuation => [0x2, 0x4, 0x0, 0x6, 0x0, 0x10, 0x0, 0x0, 0x4, 0x21, 0x0, 0x11, 0x8, 0x1, 0xC, 0x21, 0x0, 0x42, 0x0, 0x52, 0x0, 0x62, 0x10, 0x62, 0x0, 0x2, 0x18, 0x72, 0x0, 0x83, 0x0, 0x93, 0x0, 0x3, 0x28, 0x3, 0x2C, 0x3, 0x30, 0xD3, 0x0, 0xE4, 0x0, 0x4, 0x3C, 0x4, 0x1, 0x14, 0x49, 0x34, 0x1, 0x45, 0x1, 0x5, 0x54, 0x65, 0x1, 0x5, 0x5C, 0x5, 0x60, 0x6, 0x64, 0xA6, 0x6D, 0xC6, 0x65, 0xD6, 0x1, 0x7, 0x78, 0x7, 0x7C, 0x7, 0x80, 0x7, 0x84, 0x28, 0x8E, 0x8, 0x90, 0x8, 0x94, 0x69, 0x2, 0x9, 0x9C, 0x9, 0xA0, 0x9A, 0x2, 0xA, 0xA8, 0xA, 0xAC, 0xCB, 0x2, 0xB, 0xB4, 0xB, 0xB8, 0xFC, 0x2, 0xC, 0xC0, 0xC, 0xC4, 0x2D, 0x3, 0x3D, 0xD3, 0x5E, 0x3, 0xE, 0xD8, 0x7F, 0xE3];
111private static ReadOnlySpan<byte> SerializedCategory19_DashPunct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 0x0, 0x6, 0x0, 0x0, 0x4, 0x10, 0x0, 0x1, 0x8, 0x1, 0xC, 0x21, 0x0, 0x31, 0x8, 0x31, 0x0, 0x2, 0x10, 0x42, 0x0, 0x42, 0x14, 0x42, 0x18, 0x2, 0x14, 0x2, 0x20, 0x3, 0x24, 0xA3, 0x0, 0xB3, 0x30, 0xD3, 0x0, 0x73, 0x0, 0xE3, 0x0, 0x4, 0x3C, 0x4, 0x45, 0x24, 0x1, 0x34, 0x1, 0x4, 0x50, 0x55, 0x59, 0x75, 0x61, 0x95, 0x1, 0x6, 0x68, 0x6, 0x6C, 0x6, 0x70, 0x7, 0x74, 0x7, 0x78, 0xF7, 0x1, 0x8, 0x80, 0x8, 0x84, 0x8, 0x88, 0x39, 0x2, 0x9, 0x90, 0x9, 0x94, 0x6A, 0x2, 0xA, 0x9C, 0xA, 0xA0, 0x9B, 0xAA, 0xB, 0xAC, 0xC, 0xB0, 0xC, 0xB4, 0xED, 0xBE, 0xE, 0xC0, 0xF, 0xC4];
123private static ReadOnlySpan<byte> SerializedCategory23_FinalQuotePunctuation => [0x2, 0x4, 0x0, 0x6, 0x0, 0x10, 0x0, 0x0, 0x4, 0x1, 0x8, 0x31, 0x0, 0x21, 0x0, 0x2, 0x10, 0x42, 0x0, 0x42, 0x14, 0x42, 0x18, 0x2, 0x14, 0x2, 0x18, 0x3, 0x1C, 0x83, 0x0, 0x93, 0x28, 0xB3, 0x0, 0x43, 0x0, 0xC3, 0x0, 0x4, 0x34, 0xE4, 0x3C, 0x4, 0x1, 0x14, 0x1, 0x24, 0x1, 0x35, 0x51, 0x55, 0x59, 0x75, 0x1, 0x6, 0x60, 0x6, 0x64, 0x6, 0x68, 0x7, 0x6C, 0x7, 0x70, 0xD7, 0x1, 0x8, 0x78, 0x8, 0x7C, 0x8, 0x80, 0x19, 0x2, 0x9, 0x88, 0x9, 0x8C, 0x4A, 0x2, 0xA, 0x94, 0xA, 0x98, 0x7B, 0xA2, 0xB, 0xA4, 0xC, 0xA8, 0xC, 0xAC, 0xCD, 0xB6, 0xE, 0xB8, 0xF, 0xBC];
126private static ReadOnlySpan<byte> SerializedCategory24_OtherPunctuation => [0x3, 0x4, 0x0, 0x0, 0x9, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0, 0x20, 0x0, 0x1, 0x20, 0x0, 0x1, 0x40, 0x0, 0x1, 0x60, 0x0, 0x21, 0x0, 0x0, 0x11, 0x0, 0x0, 0x11, 0x60, 0x0, 0x31, 0x0, 0x0, 0x11, 0x40, 0x0, 0x31, 0x20, 0x0, 0x31, 0x40, 0x0, 0x21, 0x20, 0x0, 0x21, 0x60, 0x0, 0x1, 0x60, 0x0, 0x31, 0x0, 0x0, 0x42, 0xA0, 0x0, 0x62, 0x0, 0x0, 0x2, 0xC0, 0x0, 0x72, 0x0, 0x1, 0x92, 0x40, 0x1, 0x2, 0x20, 0x1, 0x2, 0x80, 0x0, 0x72, 0x0, 0x0, 0x12, 0x80, 0x1, 0x62, 0x60, 0x1, 0xD2, 0x0, 0x0, 0x2, 0xA0, 0x0, 0xC2, 0x20, 0x0, 0x2, 0xE0, 0x0, 0x82, 0x0, 0x0, 0x12, 0x0, 0x0, 0x42, 0x20, 0x0, 0x12, 0x60, 0x1, 0x62, 0x80, 0x1, 0x12, 0x0, 0x1, 0xA2, 0x0, 0x0, 0xB2, 0x0, 0x0, 0x52, 0x0, 0x0, 0x2, 0x60, 0x1, 0x62, 0x0, 0x1, 0x12, 0x40, 0x0, 0x12, 0x80, 0x0, 0xC2, 0x0, 0x1, 0x82, 0xC0, 0x1, 0x82, 0xE0, 0x1, 0x82, 0x80, 0x0, 0x92, 0x60, 0x1, 0xB2, 0xC0, 0x1, 0x72, 0x60, 0x1, 0xC2, 0xE0, 0x1, 0x12, 0xE0, 0x0, 0x42, 0x0, 0x0, 0x2, 0x80, 0x1, 0xE2, 0x20, 0x0, 0xC2, 0x0, 0x0, 0x42, 0xE0, 0x0, 0x2, 0xA0, 0x1, 0x62, 0x20, 0x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2E, 0x7A, 0x17, 0x0, 0xA, 0x0, 0x2F, 0x9A, 0x17, 0x0, 0xA, 0x40, 0x2F, 0xBA, 0x97, 0x2F, 0xDA, 0xD7, 0x2F, 0xFA, 0x17, 0x30, 0x1A, 0x58, 0x30, 0x3B, 0x18, 0x0, 0x4B, 0xB8, 0x30, 0xB, 0xC0, 0x30, 0x7B, 0x18, 0x31, 0x9B, 0x58, 0x31, 0xBB, 0x98, 0x31, 0xDC, 0x18, 0x0, 0xC, 0xC0, 0x31, 0xFC, 0x18, 0x32, 0x1C, 0x59, 0x32, 0x3D, 0x19, 0x0, 0x4D, 0x19, 0x0, 0x5D, 0xD9, 0x32, 0x7E, 0x19, 0x33, 0xE, 0x20, 0x33, 0xAF, 0x79, 0x33];
129private static ReadOnlySpan<byte> SerializedCategory25_MathSymbol => [0x3, 0x4, 0x0, 0x0, 0x8, 0x0, 0x0, 0x0, 0x10, 0x0, 0x10, 0x0, 0x0, 0x1, 0x20, 0x0, 0x11, 0x30, 0x0, 0x21, 0x0, 0x0, 0x21, 0x10, 0x0, 0x31, 0x0, 0x0, 0x1, 0x30, 0x0, 0x31, 0x20, 0x0, 0x11, 0x0, 0x0, 0x1, 0x10, 0x0, 0x21, 0x20, 0x0, 0x31, 0x0, 0x0, 0x42, 0x50, 0x0, 0x2, 0x60, 0x0, 0x22, 0x0, 0x0, 0x72, 0x0, 0x0, 0x2, 0x80, 0x0, 0x72, 0x60, 0x0, 0x2, 0x90, 0x0, 0x42, 0x10, 0x0, 0xA2, 0x10, 0x0, 0xB2, 0x10, 0x0, 0x12, 0x0, 0x0, 0x12, 0x50, 0x0, 0x2, 0x70, 0x0, 0xC2, 0x10, 0x0, 0x82, 0x0, 0x0, 0x2, 0xC0, 0x0, 0x2, 0x10, 0x0, 0x12, 0x80, 0x0, 0x42, 0x0, 0x0, 0x42, 0x60, 0x0, 0xB2, 0x0, 0x0, 0x62, 0x0, 0x0, 0x62, 0xA0, 0x0, 0x2, 0xB0, 0x0, 0x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3C, 0x9, 0x0, 0xC, 0x40, 0x9, 0x5C, 0x9, 0x0, 0x6C, 0x79, 0x9, 0x8D, 0x9, 0x0, 0x9D, 0x9, 0x0, 0xAD, 0xB9, 0x9, 0xCE, 0xD9, 0x9, 0xE, 0xE0, 0x9, 0xFF, 0x9, 0xA];
138private static ReadOnlySpan<byte> SerializedCategory28_OtherSymbol => [0x3, 0x4, 0x0, 0x0, 0x9, 0x0, 0x0, 0x0, 0x20, 0x0, 0x10, 0x0, 0x0, 0x1, 0x20, 0x0, 0x21, 0x60, 0x0, 0x1, 0x40, 0x0, 0x11, 0x60, 0x0, 0x31, 0x0, 0x0, 0x1, 0x60, 0x0, 0x11, 0x0, 0x0, 0x21, 0x20, 0x0, 0x31, 0x20, 0x0, 0x11, 0x40, 0x0, 0x31, 0x40, 0x0, 0x21, 0x0, 0x0, 0x42, 0x0, 0x0, 0x52, 0xC0, 0x0, 0x62, 0x0, 0x0, 0x72, 0x0, 0x0, 0x82, 0x0, 0x0, 0x2, 0x80, 0x0, 0x2, 0x20, 0x1, 0xA2, 0x0, 0x0, 0x2, 0x20, 0x0, 0xB2, 0x20, 0x0, 0x2, 0xC0, 0x0, 0x12, 0x40, 0x1, 0x42, 0x20, 0x0, 0xA2, 0x80, 0x0, 0x2, 0x40, 0x1, 0x12, 0x80, 0x1, 0x2, 0x60, 0x1, 0xC2, 0x20, 0x0, 0xA2, 0x20, 0x0, 0x52, 0x0, 0x0, 0x12, 0x0, 0x0, 0x12, 0xA0, 0x1, 0x72, 0x20, 0x0, 0x12, 0xC0, 0x1, 0x72, 0x80, 0x1, 0xC2, 0xA0, 0x0, 0x12, 0x80, 0x0, 0xC2, 0xE0, 0x1, 0xF2, 0x20, 0x1, 0x32, 0x20, 0x0, 0xD2, 0x0, 0x0, 0xB2, 0x80, 0x1, 0x62, 0x20, 0x0, 0x12, 0xE0, 0x0, 0x92, 0x0, 0x0, 0xD2, 0x20, 0x0, 0x22, 0x0, 0x0, 0x72, 0x0, 0x1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, 0x3B, 0x97, 0x2E, 0x5B, 0xD7, 0x2E, 0x7B, 0x17, 0x2F, 0x9C, 0x17, 0x0, 0xC, 0x40, 0x2F, 0xC, 0x60, 0x2F, 0xCC, 0xB7, 0x2F, 0xEC, 0xF7, 0x2F, 0xD, 0x18, 0x0, 0x1D, 0x18, 0x0, 0xD, 0x40, 0x30, 0x3D, 0x98, 0x30, 0x5E, 0xD8, 0x30, 0x7E, 0x18, 0x31, 0x9F, 0x58, 0x31];
141private static ReadOnlySpan<byte> SerializedCategory29_OtherNotAssigned => [0x3, 0x4, 0x0, 0x0, 0xA, 0x0, 0x0, 0x0, 0x40, 0x0, 0x10, 0x0, 0x0, 0x11, 0x0, 0x0, 0x1, 0x80, 0x0, 0x31, 0x0, 0x0, 0x11, 0xC0, 0x0, 0x1, 0x40, 0x0, 0x21, 0xC0, 0x0, 0x1, 0xC0, 0x0, 0x21, 0x40, 0x0, 0x21, 0x0, 0x0, 0x11, 0x80, 0x0, 0x31, 0x80, 0x0, 0x31, 0x40, 0x0, 0x42, 0x40, 0x1, 0x62, 0x0, 0x0, 0x72, 0x0, 0x2, 0x2, 0x0, 0x2, 0x2, 0x40, 0x1, 0x92, 0x0, 0x0, 0xA2, 0x0, 0x0, 0x12, 0x0, 0x0, 0x2, 0x80, 0x1, 0x12, 0x0, 0x1, 0xB2, 0x40, 0x0, 0x2, 0xC0, 0x2, 0x12, 0x80, 0x1, 0xA2, 0x0, 0x3, 0x32, 0x0, 0x0, 0x52, 0x40, 0x0, 0x42, 0x0, 0x0, 0x62, 0x40, 0x1, 0x2, 0x0, 0x1, 0x82, 0x0, 0x1, 0xC2, 0x0, 0x0, 0x72, 0x0, 0x0, 0x82, 0x40, 0x0, 0x52, 0x0, 0x3, 0x2, 0x0, 0x3, 0x12, 0xC0, 0x1, 0xD2, 0x40, 0x0, 0x82, 0x0, 0x0, 0xA2, 0x0, 0x2, 0x52, 0x0, 0x0, 0x52, 0x80, 0x1, 0x52, 0x0, 0x1, 0x2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x50, 0x55, 0xE, 0x0, 0x25, 0xD4, 0x50, 0x45, 0x14, 0x0, 0x56, 0x94, 0x51, 0x6, 0xC0, 0x51, 0x86, 0x14, 0x0, 0x96, 0x94, 0x52, 0xB6, 0x14, 0x53, 0xD6, 0x14, 0x0, 0xE6, 0xD4, 0x53, 0x6, 0x15, 0x0, 0x16, 0x15, 0x0, 0x26, 0xD5, 0x54, 0x46, 0x15, 0x0, 0x56, 0x95, 0x55, 0x76, 0x15, 0x0, 0x86, 0x55, 0x56, 0xA6, 0x15, 0x0, 0xB6, 0x15, 0x0, 0xC6, 0x15, 0x0, 0xD6, 0x95, 0x57, 0xF6, 0x15, 0x0, 0xD6, 0x15, 0x0, 0x6, 0x0, 0x58, 0x16, 0x96, 0x58, 0x6, 0xC0, 0x58, 0x46, 0x56, 0x59, 0x6, 0x80, 0x59, 0x6, 0xC0, 0x59, 0x76, 0x14, 0x0, 0x86, 0x16, 0x0, 0x96, 0x96, 0x5A, 0xB6, 0x16, 0x0, 0xC6, 0x56, 0x5B, 0xE6, 0xD6, 0x5B, 0x6, 0x17, 0x0, 0x6, 0x40, 0x5C, 0x26, 0x17, 0x0, 0x36, 0x17, 0x5D, 0x6, 0x40, 0x5D, 0x66, 0xD7, 0x5D, 0x86, 0x17, 0x0, 0x96, 0x97, 0x5E, 0xB6, 0x17, 0x5F, 0xD6, 0x97, 0x5F, 0xF6, 0x17, 0x60, 0x16, 0x18, 0x0, 0x26, 0x18, 0x0, 0x36, 0x18, 0x61, 0x56, 0x98, 0x61, 0x76, 0x58, 0x55, 0x86, 0x58, 0x62, 0xA6, 0xD8, 0x62, 0xC6, 0x98, 0x52, 0xD6, 0x18, 0x0, 0xE6, 0xD8, 0x63, 0xC6, 0x18, 0x64, 0x16, 0x99, 0x52, 0x26, 0xD9, 0x64, 0x46, 0x59, 0x65, 0x66, 0x19, 0x0, 0x76, 0x19, 0x0, 0x86, 0x59, 0x66, 0xA6, 0x19, 0x0, 0xB6, 0x19, 0x67, 0x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FB, 0x26, 0x9C, 0x1B, 0xA7, 0x9C, 0x3B, 0x27, 0x9D, 0x5C, 0x27, 0x0, 0x6C, 0x27, 0x0, 0xC, 0xC0, 0x9D, 0x8C, 0x67, 0x9E, 0xAC, 0xE7, 0x9E, 0xCD, 0x67, 0x9F, 0xED, 0x27, 0x0, 0xFD, 0x27, 0xA0, 0x1E, 0xA8, 0xA0, 0xE, 0xC0, 0xA0, 0x4F, 0x68, 0xA1];
System.Text.RegularExpressions.Generator (56)
src\libraries\Common\src\System\HexConverter.cs (9)
185public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper)
202public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper)
219public static string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper)
249public ReadOnlySpan<byte> Bytes { get; set; }
281public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
293public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
461private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
496private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
603public static ReadOnlySpan<byte> CharToHexLookup =>
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (17)
427private void AddRanges(ReadOnlySpan<char> set)
506if (RegexCaseEquivalences.TryFindCaseEquivalencesForCharWithIBehavior(range.First, culture, ref _caseBehavior, out ReadOnlySpan<char> equivalences))
530if (RegexCaseEquivalences.TryFindCaseEquivalencesForCharWithIBehavior((char)i, culture, ref _caseBehavior, out ReadOnlySpan<char> equivalences))
1094public static bool ParticipatesInCaseConversion(ReadOnlySpan<char> s)
1108public static bool IsAscii(ReadOnlySpan<char> s)
1262private static ReadOnlySpan<byte> WordCharAsciiLookup =>
1286ReadOnlySpan<byte> ascii = WordCharAsciiLookup;
1354ReadOnlySpan<byte> ascii = WordCharAsciiLookup;
1508private static bool CharInCategory(char ch, ReadOnlySpan<char> categorySetSegment)
1564private static bool CharInCategoryGroup(UnicodeCategory chcategory, ReadOnlySpan<char> category, ref int i)
1627public static List<(char First, char Last)>? ComputeRanges(ReadOnlySpan<char> set)
1663internal static string CharsToStringClass(ReadOnlySpan<char> chars)
1711ReadOnlySpan<char> tmpChars = chars; // avoid address exposing the span and impacting the other code in the method that uses it
1740ReadOnlySpan<char> chars = *(ReadOnlySpan<char>*)charsPtr;
1957private static ReadOnlySpan<char> RangesFromProperty(string capname, bool invert, string pattern, int currentPos)
2093ReadOnlySpan<char> group = set.AsSpan(index, lastindex - index + 1);
System.Web.HttpUtility (32)
src\libraries\Common\src\System\HexConverter.cs (9)
185public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper)
202public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper)
219public static string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper)
249public ReadOnlySpan<byte> Bytes { get; set; }
281public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
293public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
461private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed)
496private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed)
603public static ReadOnlySpan<byte> CharToHexLookup =>
System.Windows.Controls.Ribbon (1)
System.Windows.Forms (72)
System.Windows.Forms.Design (8)
System.Windows.Forms.Primitives (21)
System.Windows.Forms.Primitives.Tests (17)
System.Windows.Forms.Primitives.TestUtilities (13)
System.Windows.Forms.Tests (5)
System.Windows.Forms.UI.IntegrationTests (18)
System.Windows.Input.Manipulations (1)
System.Xaml (31)
Test.Utilities (51)
Text.Analyzers (59)
UIAutomationClientSideProviders (23)
xunit.assert (112)
SpanAsserts.cs (25)
47 Contains((ReadOnlySpan<T>)expectedSubSpan, (ReadOnlySpan<T>)actualSpan);
62 ReadOnlySpan<T> actualSpan)
64 Contains((ReadOnlySpan<T>)expectedSubSpan, actualSpan);
78 ReadOnlySpan<T> expectedSubSpan,
81 Contains(expectedSubSpan, (ReadOnlySpan<T>)actualSpan);
95 ReadOnlySpan<T> expectedSubSpan,
96 ReadOnlySpan<T> actualSpan)
121 DoesNotContain((ReadOnlySpan<T>)expectedSubSpan, (ReadOnlySpan<T>)actualSpan);
136 ReadOnlySpan<T> actualSpan)
138 DoesNotContain((ReadOnlySpan<T>)expectedSubSpan, actualSpan);
152 ReadOnlySpan<T> expectedSubSpan,
155 DoesNotContain(expectedSubSpan, (ReadOnlySpan<T>)actualSpan);
169 ReadOnlySpan<T> expectedSubSpan,
170 ReadOnlySpan<T> actualSpan)
197 ReadOnlySpan<T> expectedSpan,
212 Equal((ReadOnlySpan<T>)expectedSpan, (ReadOnlySpan<T>)actualSpan);
222 ReadOnlySpan<T> actualSpan)
224 Equal((ReadOnlySpan<T>)expectedSpan, actualSpan);
233 ReadOnlySpan<T> expectedSpan,
236 Equal(expectedSpan, (ReadOnlySpan<T>)actualSpan);
245 ReadOnlySpan<T> expectedSpan,
246 ReadOnlySpan<T> actualSpan)
StringAsserts.cs (82)
182 Contains((ReadOnlySpan<char>)expectedSubstring, (ReadOnlySpan<char>)actualString, comparisonType);
193 ReadOnlySpan<char> actualString,
195 Contains((ReadOnlySpan<char>)expectedSubstring, actualString, comparisonType);
205 ReadOnlySpan<char> expectedSubstring,
208 Contains(expectedSubstring, (ReadOnlySpan<char>)actualString, comparisonType);
218 ReadOnlySpan<char> expectedSubstring,
219 ReadOnlySpan<char> actualString,
238 Contains((ReadOnlySpan<char>)expectedSubstring, (ReadOnlySpan<char>)actualString, StringComparison.CurrentCulture);
248 ReadOnlySpan<char> actualString) =>
249 Contains((ReadOnlySpan<char>)expectedSubstring, actualString, StringComparison.CurrentCulture);
258 ReadOnlySpan<char> expectedSubstring,
260 Contains(expectedSubstring, (ReadOnlySpan<char>)actualString, StringComparison.CurrentCulture);
269 ReadOnlySpan<char> expectedSubstring,
270 ReadOnlySpan<char> actualString) =>
429 DoesNotContain((ReadOnlySpan<char>)expectedSubstring, (ReadOnlySpan<char>)actualString, comparisonType);
440 ReadOnlySpan<char> actualString,
442 DoesNotContain((ReadOnlySpan<char>)expectedSubstring, actualString, comparisonType);
452 ReadOnlySpan<char> expectedSubstring,
455 DoesNotContain(expectedSubstring, (ReadOnlySpan<char>)actualString, comparisonType);
465 ReadOnlySpan<char> expectedSubstring,
466 ReadOnlySpan<char> actualString,
483 DoesNotContain((ReadOnlySpan<char>)expectedSubstring, (ReadOnlySpan<char>)actualString, StringComparison.CurrentCulture);
493 ReadOnlySpan<char> actualString) =>
494 DoesNotContain((ReadOnlySpan<char>)expectedSubstring, actualString, StringComparison.CurrentCulture);
503 ReadOnlySpan<char> expectedSubstring,
505 DoesNotContain(expectedSubstring, (ReadOnlySpan<char>)actualString, StringComparison.CurrentCulture);
514 ReadOnlySpan<char> expectedSubstring,
515 ReadOnlySpan<char> actualString) =>
743 EndsWith((ReadOnlySpan<char>)expectedEndString, (ReadOnlySpan<char>)actualString, StringComparison.CurrentCulture);
753 ReadOnlySpan<char> actualString) =>
754 EndsWith((ReadOnlySpan<char>)expectedEndString, actualString, StringComparison.CurrentCulture);
763 ReadOnlySpan<char> expectedEndString,
765 EndsWith(expectedEndString, (ReadOnlySpan<char>)actualString, StringComparison.CurrentCulture);
774 ReadOnlySpan<char> expectedEndString,
775 ReadOnlySpan<char> actualString) =>
789 EndsWith((ReadOnlySpan<char>)expectedEndString, (ReadOnlySpan<char>)actualString, comparisonType);
800 ReadOnlySpan<char> actualString,
802 EndsWith((ReadOnlySpan<char>)expectedEndString, actualString, comparisonType);
812 ReadOnlySpan<char> expectedEndString,
815 EndsWith(expectedEndString, (ReadOnlySpan<char>)actualString, comparisonType);
825 ReadOnlySpan<char> expectedEndString,
826 ReadOnlySpan<char> actualString,
891 ReadOnlySpan<char> expected,
892 ReadOnlySpan<char> actual,
1110 Equal((ReadOnlySpan<char>)expected, (ReadOnlySpan<char>)actual, false, false, false, false);
1120 ReadOnlySpan<char> actual) =>
1121 Equal((ReadOnlySpan<char>)expected, actual, false, false, false, false);
1130 ReadOnlySpan<char> expected,
1132 Equal(expected, (ReadOnlySpan<char>)actual, false, false, false, false);
1141 ReadOnlySpan<char> expected,
1142 ReadOnlySpan<char> actual) =>
1189 Equal((ReadOnlySpan<char>)expected, (ReadOnlySpan<char>)actual, ignoreCase, ignoreLineEndingDifferences, ignoreWhiteSpaceDifferences, ignoreAllWhiteSpace);
1230 ReadOnlySpan<char> actual,
1235 Equal((ReadOnlySpan<char>)expected, actual, ignoreCase, ignoreLineEndingDifferences, ignoreWhiteSpaceDifferences, ignoreAllWhiteSpace);
1275 ReadOnlySpan<char> expected,
1281 Equal(expected, (ReadOnlySpan<char>)actual, ignoreCase, ignoreLineEndingDifferences, ignoreWhiteSpaceDifferences, ignoreAllWhiteSpace);
1536 StartsWith((ReadOnlySpan<char>)expectedStartString, (ReadOnlySpan<char>)actualString, StringComparison.CurrentCulture);
1546 ReadOnlySpan<char> actualString) =>
1547 StartsWith((ReadOnlySpan<char>)expectedStartString, actualString, StringComparison.CurrentCulture);
1556 ReadOnlySpan<char> expectedStartString,
1558 StartsWith(expectedStartString, (ReadOnlySpan<char>)actualString, StringComparison.CurrentCulture);
1567 ReadOnlySpan<char> expectedStartString,
1568 ReadOnlySpan<char> actualString) =>
1582 StartsWith((ReadOnlySpan<char>)expectedStartString, (ReadOnlySpan<char>)actualString, comparisonType);
1593 ReadOnlySpan<char> actualString,
1595 StartsWith((ReadOnlySpan<char>)expectedStartString, actualString, comparisonType);
1605 ReadOnlySpan<char> expectedStartString,
1608 StartsWith(expectedStartString, (ReadOnlySpan<char>)actualString, comparisonType);
1618 ReadOnlySpan<char> expectedStartString,
1619 ReadOnlySpan<char> actualString,
1660 ReadOnlySpan<char> value,
1677 ReadOnlySpan<char> value,