771 instantiations of ReadOnlySpan
GenerateDocumentationAndConfigFiles (7)
src\roslyn\src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
96Append(new ReadOnlySpan<byte>(source)); 126Append(new ReadOnlySpan<byte>(buffer, 0, read)); 175Append(new ReadOnlySpan<byte>(buffer, 0, read));
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHash128.cs (2)
70return Hash(new ReadOnlySpan<byte>(source), seed); 200current = HashToHash128(new ReadOnlySpan<byte>(buffer, (int)_state.TotalLength), (long)_state.Seed);
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHashShared.cs (2)
390new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes)); 391new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));
ILCompiler.Compiler (4)
IL\ILImporter.Scanner.cs (1)
456return new ILReader(new ReadOnlySpan<byte>(_ilBytes, _currentOffset, nextBBOffset - _currentOffset));
parent\parent\Common\Compiler\DependencyAnalysis\Relocation.cs (2)
889return checked((long)DwarfHelper.ReadULEB128(new ReadOnlySpan<byte>(location, WASM_PADDED_RELOC_SIZE_32))); 894return DwarfHelper.ReadSLEB128(new ReadOnlySpan<byte>(location, WASM_PADDED_RELOC_SIZE_32));
parent\parent\Common\Compiler\ObjectWriter\WasmInstructions.cs (1)
73writer.Write(new ReadOnlySpan<byte>(ref localTypeByte));
ILCompiler.MetadataTransform (1)
parent\parent\Common\Internal\NativeFormat\NativeFormatReader.String.cs (1)
55return new(_base + offset, (int)numBytes);
ILCompiler.ReadyToRun (6)
IBC\IBCProfileParser.cs (2)
309ReadOnlySpan<byte> typeName = new ReadOnlySpan<byte>(typeEntry.Name).Slice(0, typeEntry.Name.Length - 1 /* these strings are null terminated */); 332typeNamespace = new ReadOnlySpan<byte>(namespaceEntry.Name).Slice(0, namespaceEntry.Name.Length - 1 /* these strings are null terminated */);
parent\parent\Common\Compiler\DependencyAnalysis\Relocation.cs (2)
889return checked((long)DwarfHelper.ReadULEB128(new ReadOnlySpan<byte>(location, WASM_PADDED_RELOC_SIZE_32))); 894return DwarfHelper.ReadSLEB128(new ReadOnlySpan<byte>(location, WASM_PADDED_RELOC_SIZE_32));
parent\parent\Common\Compiler\ObjectWriter\WasmInstructions.cs (1)
73writer.Write(new ReadOnlySpan<byte>(ref localTypeByte));
parent\parent\Common\JitInterface\CorInfoImpl.cs (1)
3793CorInfoWasmType[] typeArray = new ReadOnlySpan<CorInfoWasmType>(types, (int)typesSize).ToArray();
ILCompiler.RyuJit (1)
parent\parent\Common\JitInterface\CorInfoImpl.cs (1)
3793CorInfoWasmType[] typeArray = new ReadOnlySpan<CorInfoWasmType>(types, (int)typesSize).ToArray();
ILCompiler.TypeSystem (10)
parent\parent\Common\TypeSystem\Ecma\EcmaField.cs (2)
269return new ReadOnlySpan<byte>(_namePointer, _nameLength); 279return new ReadOnlySpan<byte>(namePointer, _nameLength);
parent\parent\Common\TypeSystem\Ecma\EcmaMethod.cs (2)
407return new ReadOnlySpan<byte>(_namePointer, _nameLength); 417return new ReadOnlySpan<byte>(namePointer, _nameLength);
parent\parent\Common\TypeSystem\Ecma\EcmaType.cs (4)
255return new ReadOnlySpan<byte>(_namePointer, _nameLength); 265return new ReadOnlySpan<byte>(namePointer, _nameLength); 276return new ReadOnlySpan<byte>(_namespacePointer, _namespaceLength); 286return new ReadOnlySpan<byte>(namespacePointer, _namespaceLength);
parent\parent\Common\TypeSystem\Ecma\MetadataExtensions.cs (1)
320return new ReadOnlySpan<byte>(blobReader.CurrentPointer, blobReader.Length);
parent\parent\Common\TypeSystem\Ecma\SymbolReader\PortablePdbSymbolReader.cs (1)
221return new ReadOnlySpan<byte>(br.StartPointer, br.Length);
libmscordaccore_universal (2)
Entrypoints.cs (2)
136new ReadOnlySpan<byte>(alignedBuffer, buffer.Length).CopyTo(buffer); 431new ReadOnlySpan<byte>(alignedBuffer, bufferToFill.Length).CopyTo(bufferToFill);
Microsoft.AspNetCore.Cryptography.Internal (2)
CryptoUtil.cs (2)
81var bytesA = new ReadOnlySpan<byte>(bufA, byteCount); 82var bytesB = new ReadOnlySpan<byte>(bufB, byteCount);
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\KeyRingBasedDataProtector.cs (1)
150return new Guid(new ReadOnlySpan<byte>(ptr, sizeof(Guid)));
Microsoft.AspNetCore.Http.Connections (1)
src\aspnetcore\src\SignalR\common\Shared\PipeWriterStream.cs (1)
52_pipeWriter.Write(new ReadOnlySpan<byte>(buffer, offset, count));
Microsoft.AspNetCore.Http.Connections.Client (1)
src\aspnetcore\src\SignalR\common\Shared\PipeWriterStream.cs (1)
52_pipeWriter.Write(new ReadOnlySpan<byte>(buffer, offset, count));
Microsoft.AspNetCore.Razor.Utilities.Shared (7)
Utilities\Hashing\NonCryptographicHashAlgorithm.cs (3)
95Append(new ReadOnlySpan<byte>(source)); 125Append(new ReadOnlySpan<byte>(buffer, 0, read)); 174Append(new ReadOnlySpan<byte>(buffer, 0, read));
Utilities\Hashing\XxHash128.cs (2)
68return Hash(new ReadOnlySpan<byte>(source), seed); 198current = HashToHash128(new ReadOnlySpan<byte>(buffer, (int)_state.TotalLength), (long)_state.Seed);
Utilities\Hashing\XxHashShared.cs (2)
389new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes)); 390new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));
Microsoft.AspNetCore.Server.HttpSys (7)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PCSTR.g.cs (1)
75 internal ReadOnlySpan<byte> AsSpan() => this.Value is null ? default(ReadOnlySpan<byte>) : new ReadOnlySpan<byte>(this.Value, this.Length);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PCWSTR.g.cs (1)
75 internal ReadOnlySpan<char> AsSpan() => this.Value is null ? default(ReadOnlySpan<char>) : new ReadOnlySpan<char>(this.Value, this.Length);
NativeInterop\RequestQueue.cs (2)
150new ReadOnlySpan<byte>(&length, sizeof(long))); 167new ReadOnlySpan<byte>(&verbosityLong, sizeof(long)));
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\HeaderEncoding.cs (2)
16header = new ReadOnlySpan<byte>(pBytes, byteCount).GetLatin1String(); 20header = new ReadOnlySpan<byte>(pBytes, byteCount).GetAsciiOrUTF8String(Encoding.UTF8);
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
851new ReadOnlySpan<byte>(pToken, tokenSize).CopyTo(token);
Microsoft.AspNetCore.Server.IIS (6)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PCSTR.g.cs (1)
75 internal ReadOnlySpan<byte> AsSpan() => this.Value is null ? default(ReadOnlySpan<byte>) : new ReadOnlySpan<byte>(this.Value, this.Length);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PCWSTR.g.cs (1)
75 internal ReadOnlySpan<char> AsSpan() => this.Value is null ? default(ReadOnlySpan<char>) : new ReadOnlySpan<char>(this.Value, this.Length);
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\HeaderEncoding.cs (2)
16header = new ReadOnlySpan<byte>(pBytes, byteCount).GetLatin1String(); 20header = new ReadOnlySpan<byte>(pBytes, byteCount).GetAsciiOrUTF8String(Encoding.UTF8);
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
851new ReadOnlySpan<byte>(pToken, tokenSize).CopyTo(token);
src\aspnetcore\src\Shared\ServerInfrastructure\BufferExtensions.cs (1)
191buffer.Write(new ReadOnlySpan<byte>(byteBuffer, 0, bytesWritten));
Microsoft.AspNetCore.Server.Kestrel.Core (8)
Internal\Http3\QPack\EncoderStreamReader.cs (1)
268return Huffman.Decode(new ReadOnlySpan<byte>(_stringOctets, 0, _stringLength), ref dst);
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));
src\aspnetcore\src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
604int decodedLength = Huffman.Decode(new ReadOnlySpan<byte>(_stringOctets, 0, _stringLength), ref dst);
src\aspnetcore\src\Shared\runtime\Http3\QPack\QPackDecoder.cs (1)
637int decodedLength = Huffman.Decode(new ReadOnlySpan<byte>(_stringOctets, 0, _stringLength), ref dst);
src\aspnetcore\src\Shared\ServerInfrastructure\BufferExtensions.cs (1)
191buffer.Write(new ReadOnlySpan<byte>(byteBuffer, 0, bytesWritten));
Microsoft.AspNetCore.SignalR.Client.Core (1)
src\aspnetcore\src\SignalR\common\Shared\PipeWriterStream.cs (1)
52_pipeWriter.Write(new ReadOnlySpan<byte>(buffer, offset, count));
Microsoft.AspNetCore.WebUtilities (1)
HttpRequestStreamReader.cs (1)
192var source = new ReadOnlySpan<char>(_charBuffer, _charBufferIndex, charsRemaining);
Microsoft.Build (3)
BackEnd\Components\Scheduler\Scheduler.cs (3)
483foreach (SchedulableRequest unscheduledRequest in new ReadOnlySpan<SchedulableRequest>(unscheduledRequests, 0, numRead)) 1066foreach (SchedulableRequest request in new ReadOnlySpan<SchedulableRequest>(unscheduledRequests, 0, numRead)) 2011foreach (SchedulableRequest request in new ReadOnlySpan<SchedulableRequest>(unscheduledRequests, 0, numRead))
Microsoft.Build.Framework (1)
FileUtilities.cs (1)
492string.Concat(path.AsSpan(start), new(in Path.DirectorySeparatorChar)));
Microsoft.CodeAnalysis (9)
CodeGen\TokenMap.cs (1)
116return new ReadOnlySpan<object>(items, 0, count);
Hashing\NonCryptographicHashAlgorithm.cs (3)
96Append(new ReadOnlySpan<byte>(source)); 126Append(new ReadOnlySpan<byte>(buffer, 0, read)); 175Append(new ReadOnlySpan<byte>(buffer, 0, read));
Hashing\XxHash128.cs (2)
70return Hash(new ReadOnlySpan<byte>(source), seed); 200current = HashToHash128(new ReadOnlySpan<byte>(buffer, (int)_state.TotalLength), (long)_state.Seed);
Hashing\XxHashShared.cs (2)
390new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes)); 391new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));
MetadataReader\PEModule.cs (1)
4031return StringTable.AddSharedUtf8(new ReadOnlySpan<byte>(bytes, byteCount));
Microsoft.CodeAnalysis.Analyzers (8)
src\roslyn\src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
96Append(new ReadOnlySpan<byte>(source)); 126Append(new ReadOnlySpan<byte>(buffer, 0, read)); 175Append(new ReadOnlySpan<byte>(buffer, 0, read));
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHash128.cs (2)
70return Hash(new ReadOnlySpan<byte>(source), seed); 200current = HashToHash128(new ReadOnlySpan<byte>(buffer, (int)_state.TotalLength), (long)_state.Seed);
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHashShared.cs (2)
390new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes)); 391new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
1051TSource[] chunk = new ReadOnlySpan<TSource>(source, index, Math.Min(size, source.Length - index)).ToArray();
Microsoft.CodeAnalysis.AnalyzerUtilities (8)
src\roslyn\src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
96Append(new ReadOnlySpan<byte>(source)); 126Append(new ReadOnlySpan<byte>(buffer, 0, read)); 175Append(new ReadOnlySpan<byte>(buffer, 0, read));
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHash128.cs (2)
70return Hash(new ReadOnlySpan<byte>(source), seed); 200current = HashToHash128(new ReadOnlySpan<byte>(buffer, (int)_state.TotalLength), (long)_state.Seed);
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHashShared.cs (2)
390new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes)); 391new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
1051TSource[] chunk = new ReadOnlySpan<TSource>(source, index, Math.Min(size, source.Length - index)).ToArray();
Microsoft.CodeAnalysis.CodeStyle (8)
src\roslyn\src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
96Append(new ReadOnlySpan<byte>(source)); 126Append(new ReadOnlySpan<byte>(buffer, 0, read)); 175Append(new ReadOnlySpan<byte>(buffer, 0, read));
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHash128.cs (2)
70return Hash(new ReadOnlySpan<byte>(source), seed); 200current = HashToHash128(new ReadOnlySpan<byte>(buffer, (int)_state.TotalLength), (long)_state.Seed);
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHashShared.cs (2)
390new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes)); 391new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
1051TSource[] chunk = new ReadOnlySpan<TSource>(source, index, Math.Min(size, source.Length - index)).ToArray();
Microsoft.CodeAnalysis.Extensions.Package (1)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
1051TSource[] chunk = new ReadOnlySpan<TSource>(source, index, Math.Min(size, source.Length - index)).ToArray();
Microsoft.CodeAnalysis.ResxSourceGenerator (8)
src\roslyn\src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
96Append(new ReadOnlySpan<byte>(source)); 126Append(new ReadOnlySpan<byte>(buffer, 0, read)); 175Append(new ReadOnlySpan<byte>(buffer, 0, read));
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHash128.cs (2)
70return Hash(new ReadOnlySpan<byte>(source), seed); 200current = HashToHash128(new ReadOnlySpan<byte>(buffer, (int)_state.TotalLength), (long)_state.Seed);
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHashShared.cs (2)
390new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes)); 391new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
1051TSource[] chunk = new ReadOnlySpan<TSource>(source, index, Math.Min(size, source.Length - index)).ToArray();
Microsoft.CodeAnalysis.Workspaces (8)
Serialization\SerializerService_Reference.cs (1)
543writer.WriteSpan(new ReadOnlySpan<byte>(reader.MetadataPointer, reader.MetadataLength));
src\roslyn\src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
96Append(new ReadOnlySpan<byte>(source)); 126Append(new ReadOnlySpan<byte>(buffer, 0, read)); 175Append(new ReadOnlySpan<byte>(buffer, 0, read));
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHash128.cs (2)
70return Hash(new ReadOnlySpan<byte>(source), seed); 200current = HashToHash128(new ReadOnlySpan<byte>(buffer, (int)_state.TotalLength), (long)_state.Seed);
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHashShared.cs (2)
390new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes)); 391new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));
Microsoft.Diagnostics.DataContractReader.Legacy (4)
Dbi\DacDbiImpl.cs (2)
1021new ReadOnlySpan<byte>((void*)pRecord, recordSize).CopyTo(recordBytes); 7071ReadOnlySpan<byte> valueBytes = new ReadOnlySpan<byte>(pValue, (int)valueSize);
ICLRData.cs (1)
84new ReadOnlySpan<byte>(alignedContext, buffer.Length).CopyTo(buffer);
MetaDataImportImpl.cs (1)
1568new ReadOnlySpan<char>(dataPtr, copyChars).CopyTo(new Span<char>(szString, copyChars));
Microsoft.Diagnostics.NETCore.Client (9)
DiagnosticsClient\DiagnosticsClient.cs (1)
866uint hr = BinaryPrimitives.ReadUInt32LittleEndian(new ReadOnlySpan<byte>(responseMessage.Payload, 0, 4));
DiagnosticsClient\EventPipeSession.cs (1)
154ulong sessionId = BinaryPrimitives.ReadUInt64LittleEndian(new ReadOnlySpan<byte>(response.Value.Message.Payload, 0, 8));
DiagnosticsIpc\IpcAdvertise.cs (2)
73ulong pid = BinaryPrimitives.ReadUInt64LittleEndian(new ReadOnlySpan<byte>(buffer, index, 8)); 76ushort future = BinaryPrimitives.ReadUInt16LittleEndian(new ReadOnlySpan<byte>(buffer, index, 2));
DiagnosticsIpc\ProcessEnvironment.cs (2)
22helper.ExpectedSizeInBytes = BinaryPrimitives.ReadUInt32LittleEndian(new ReadOnlySpan<byte>(payload, 0, 4)); 23helper.Future = BinaryPrimitives.ReadUInt16LittleEndian(new ReadOnlySpan<byte>(payload, 4, 2));
DiagnosticsIpc\ProcessInfo.cs (2)
69uint version = BinaryPrimitives.ReadUInt32LittleEndian(new ReadOnlySpan<byte>(payload, index, 4)); 86processInfo.ProcessId = BinaryPrimitives.ReadUInt64LittleEndian(new ReadOnlySpan<byte>(payload, index, 8));
IpcHelpers.cs (1)
15int length = BinaryPrimitives.ReadInt32LittleEndian(new ReadOnlySpan<byte>(buffer, index, 4));
Microsoft.Extensions.AI (1)
ChatCompletion\ChatResponse{T}.cs (1)
100var utf8Span = new ReadOnlySpan<byte>(buffer, 0, utf8SpanLength);
Microsoft.Extensions.AI.Abstractions (1)
Utilities\AIJsonUtilities.cs (1)
235public override void WriteByte(byte value) => Write(new ReadOnlySpan<byte>(in value));
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIHostedFileClientTests.cs (1)
630Assert.Throws<NotSupportedException>(() => stream.Write(new ReadOnlySpan<byte>(new byte[1])));
Microsoft.Extensions.Caching.Hybrid (3)
Internal\BufferChunk.cs (1)
89internal ReadOnlySpan<byte> AsSpan() => Length == 0 ? default : new(OversizedArray!, Offset, Length);
Internal\HybridCachePayload.cs (2)
244ReadOnlySpan<byte> bytes = new(source.Array!, source.Offset, source.Count); 438value = new(scratch, 0, charCount);
Microsoft.Extensions.Caching.Hybrid.Tests (2)
BufferReleaseTests.cs (2)
136cache.BackendCache.Set(key, new ReadOnlySpan<byte>(arr, 0, bytes).ToArray()); 205cache.BackendCache.Set(key, new ReadOnlySpan<byte>(arr, 0, bytes).ToArray());
Microsoft.Extensions.Caching.Memory (1)
CacheEntry.ExpirationTokensList.cs (1)
44return new ReadOnlySpan<IChangeToken>(state._items, 0, Volatile.Read(ref state._count));
Microsoft.Extensions.Caching.SqlServer (2)
DatabaseOperations.cs (2)
341if (new ReadOnlySpan<byte>(lease, 0, read).TryCopyTo(memory.Span)) 348destination.Write(new(lease, 0, read));
Microsoft.Extensions.Logging.Console (1)
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
82public ReadOnlySpan<byte> ActiveReadOnlySpan => new ReadOnlySpan<byte>(_bytes, _activeStart, _availableStart - _activeStart);
Microsoft.ML.ImageAnalytics (1)
MLImage.cs (1)
169return new ReadOnlySpan<byte>(pixelsPtr.ToPointer(), _image.ByteCount);
Microsoft.ML.Tests (2)
Scenarios\Api\TestApi.cs (2)
281var span = new ReadOnlySpan<char>(parts[0].ToCharArray()); 285span = new ReadOnlySpan<char>(parts[j + 1].ToCharArray());
Microsoft.ML.Tokenizers (1)
Utils\StringSpanOrdinalKey.cs (1)
35new ReadOnlySpan<char>(Ptr, Length) :
Microsoft.NET.HostModel (1)
ComHost\TypeLibReader.cs (1)
58var span = new ReadOnlySpan<byte>(tlbBytes);
Microsoft.NET.ProjectData.Tasks (4)
ProjectDataWriter.cs (4)
412 var existingContent = new ReadOnlySpan<byte>(rented!, contentStart, existingContentLength); 413 var candidateContent = new ReadOnlySpan<byte>(candidateBuffer, 0, candidateLength); 449 ? existingContent.SequenceEqual(new ReadOnlySpan<byte>(finalBuffer, 0, finalLength)) 513 if (!new ReadOnlySpan<byte>(buffer, 0, prefix.Length).SequenceEqual(prefix))
Microsoft.Private.Windows.Core (27)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.BSTR.g.cs (1)
64 public static unsafe implicit operator ReadOnlySpan<char>(BSTR bstr) => bstr.Value != null ? new ReadOnlySpan<char>(bstr.Value, *((int*)bstr.Value - 1) / 2) : default(ReadOnlySpan<char>);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.byte.InlineArrays.g.cs (3)
39 new ReadOnlySpan<byte>(p0, SpanLength).Slice(0, length).CopyTo(target); 45 return new ReadOnlySpan<byte>(p0, SpanLength).Slice(0, length).ToArray(); 52 ReadOnlySpan<byte> span = new ReadOnlySpan<byte>(p0, SpanLength);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.char.InlineArrays.g.cs (10)
40 new ReadOnlySpan<char>(p0, SpanLength).Slice(0, length).CopyTo(target); 46 return new ReadOnlySpan<char>(p0, SpanLength).Slice(0, length).ToArray(); 53 ReadOnlySpan<char> span = new ReadOnlySpan<char>(p0, SpanLength); 69 return new ReadOnlySpan<char>(p0, SpanLength).Slice(0, length).ToString(); 78 return new ReadOnlySpan<char>(p0, SpanLength).SliceAtNull().ToString(); 114 new ReadOnlySpan<char>(p0, SpanLength).Slice(0, length).CopyTo(target); 120 return new ReadOnlySpan<char>(p0, SpanLength).Slice(0, length).ToArray(); 127 ReadOnlySpan<char> span = new ReadOnlySpan<char>(p0, SpanLength); 143 return new ReadOnlySpan<char>(p0, SpanLength).Slice(0, length).ToString(); 152 return new ReadOnlySpan<char>(p0, SpanLength).SliceAtNull().ToString();
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PCSTR.g.cs (1)
75 internal ReadOnlySpan<byte> AsSpan() => this.Value is null ? default(ReadOnlySpan<byte>) : new ReadOnlySpan<byte>(this.Value, this.Length);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PCWSTR.g.cs (1)
75 internal ReadOnlySpan<char> AsSpan() => this.Value is null ? default(ReadOnlySpan<char>) : new ReadOnlySpan<char>(this.Value, this.Length);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.RECT.InlineArrays.g.cs (2)
34 new ReadOnlySpan<winmdroot.Foundation.RECT>(p0, SpanLength).Slice(0, length).CopyTo(target); 40 return new ReadOnlySpan<winmdroot.Foundation.RECT>(p0, SpanLength).Slice(0, length).ToArray();
src\winforms\src\Microsoft.Private.Windows.Polyfills\System\IO\BinaryReaderExtensions.cs (1)
30new ReadOnlySpan<byte>(sharedBuffer, 0, numRead).CopyTo(buffer);
src\winforms\src\Microsoft.Private.Windows.Polyfills\System\IO\StreamExtensions.cs (1)
40new ReadOnlySpan<byte>(sharedBuffer, 0, numRead).CopyTo(buffer);
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (4)
211ReadOnlySpan<char> chars = new((char*)buffer, size / sizeof(char)); 224ReadOnlySpan<byte> bytes = new((byte*)buffer, size); 257ReadOnlySpan<byte> bytes = new((byte*)buffer, size); 291ReadOnlySpan<byte> bytes = new((byte*)buffer, size);
Windows\Win32\System\Com\ComManagedStream.cs (1)
241ReadOnlySpan<byte> buffer = new(pv, checked((int)cb));
Windows\Win32\System\Com\SAFEARRAY.cs (2)
19return new ReadOnlySpan<SAFEARRAYBOUND>(b, cDims)[dimension]; 80ReadOnlySpan<SAFEARRAYBOUND> bounds = new(b, cDims);
Microsoft.TestPlatform.AdapterUtilities (2)
src\vstest\src\Microsoft.TestPlatform.Hashing.Source\XxHashShared.cs (2)
451new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes)); 452new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));
Microsoft.VisualStudio.TestPlatform.ObjectModel (2)
src\vstest\src\Microsoft.TestPlatform.Hashing.Source\XxHashShared.cs (2)
451new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes)); 452new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));
Microsoft.Win32.Registry (1)
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
65return GetAndTrimString(new ReadOnlySpan<char>((char*)nativeMsgPtr, length));
PresentationCore (3)
System\Windows\Input\InputProcessorProfiles.cs (1)
111ReadOnlySpan<short> languageIDs = new((void*)ptrLanguageIDs, nCount);
System\Windows\Media\PixelFormat.cs (2)
156ReadOnlySpan<byte> pGuidPixelFormat = new(&guidPixelFormat, 15); 157ReadOnlySpan<byte> pGuidBuiltIn = new(&guidWicPixelFormat, 15);
PresentationFramework (1)
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (1)
297var abiSpan = new ReadOnlySpan<T>(abi.data.ToPointer(), abi.length);
Roslyn.Diagnostics.Analyzers (8)
src\roslyn\src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (3)
96Append(new ReadOnlySpan<byte>(source)); 126Append(new ReadOnlySpan<byte>(buffer, 0, read)); 175Append(new ReadOnlySpan<byte>(buffer, 0, read));
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHash128.cs (2)
70return Hash(new ReadOnlySpan<byte>(source), seed); 200current = HashToHash128(new ReadOnlySpan<byte>(buffer, (int)_state.TotalLength), (long)_state.Seed);
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHashShared.cs (2)
390new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes)); 391new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
1051TSource[] chunk = new ReadOnlySpan<TSource>(source, index, Math.Min(size, source.Length - index)).ToArray();
System.Collections.Immutable (5)
System\Collections\Immutable\ImmutableArray_1.Builder.cs (1)
997new ReadOnlySpan<T>(_elements, 0, this.Count).CopyTo(destination);
System\Collections\Immutable\ImmutableArray_1.cs (3)
99public ReadOnlySpan<T> AsSpan() => new ReadOnlySpan<T>(array); 906public ReadOnlySpan<T> AsSpan(int start, int length) => new ReadOnlySpan<T>(array, start, length); 1025return self.RemoveRange(new ReadOnlySpan<T>(items), equalityComparer);
System\Collections\Immutable\ImmutableArray_1.netcoreapp.cs (1)
21return new ReadOnlySpan<T>(self.array, start, length);
System.Console (6)
System\ConsolePal.Unix.cs (2)
622reader.AppendExtraBuffer(new ReadOnlySpan<byte>(in b)); 643reader.AppendExtraBuffer(new ReadOnlySpan<byte>(in b));
System\IO\ConsoleStream.cs (2)
26Write(new ReadOnlySpan<byte>(buffer, offset, count)); 29public override void WriteByte(byte value) => Write(new ReadOnlySpan<byte>(in value));
System\IO\StdInReader.cs (2)
353AppendExtraBuffer(new ReadOnlySpan<byte>(bufPtr, result)); 389var chars = new ReadOnlySpan<char>(in c);
System.Data.Common (2)
System\Data\SQLTypes\SQLBytes.cs (2)
204Write(offset, new ReadOnlySpan<byte>(in value)); 328ReadOnlySpan<byte> span = new ReadOnlySpan<byte>(_rgbBuf, (int)offset, count);
System.Data.OleDb (2)
SafeHandles.cs (2)
263ReadOnlySpan<byte> span1 = new ReadOnlySpan<byte>(buf1.ToPointer(), count); 264ReadOnlySpan<byte> span2 = new ReadOnlySpan<byte>(buf2.ToPointer(), count);
System.Diagnostics.DiagnosticSource (2)
System\Diagnostics\Activity.cs (2)
2210return new ActivitySpanId(Convert.ToHexStringLower(new ReadOnlySpan<byte>(&id, sizeof(ulong)))); 2285_hexString = Convert.ToHexStringLower(new ReadOnlySpan<byte>(&id, sizeof(ulong)));
System.Diagnostics.PerformanceCounter (1)
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
65return GetAndTrimString(new ReadOnlySpan<char>((char*)nativeMsgPtr, length));
System.Formats.Asn1 (9)
System\Formats\Asn1\AsnCharacterStringEncodings.cs (8)
45return GetByteCount(new ReadOnlySpan<char>(chars, index, count)); 50return GetByteCount(new ReadOnlySpan<char>(chars, count)); 70new ReadOnlySpan<char>(chars, charIndex, charCount), 78new ReadOnlySpan<char>(chars, charCount), 85return GetCharCount(new ReadOnlySpan<byte>(bytes, index, count)); 90return GetCharCount(new ReadOnlySpan<byte>(bytes, count)); 105new ReadOnlySpan<byte>(bytes, byteIndex, byteCount), 113new ReadOnlySpan<byte>(bytes, byteCount),
System\Formats\Asn1\AsnWriter.cs (1)
344return new ReadOnlySpan<byte>(_buffer, 0, _offset);
System.Formats.Cbor (2)
System\Formats\Cbor\Writer\CborWriter.cs (2)
274return new ReadOnlySpan<byte>(_buffer, 0, _offset); 295new ReadOnlySpan<byte>(_buffer, 0, _offset).CopyTo(newBuffer);
System.IO.Compression (7)
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
82public ReadOnlySpan<byte> ActiveReadOnlySpan => new ReadOnlySpan<byte>(_bytes, _activeStart, _availableStart - _activeStart);
System\IO\Compression\DeflateZLib\DeflateStream.cs (2)
552WriteCore(new ReadOnlySpan<byte>(buffer, offset, count)); 566WriteCore(new ReadOnlySpan<byte>(in value));
System\IO\Compression\GZipStream.cs (1)
143_deflateStream.WriteCore(new ReadOnlySpan<byte>(in value));
System\IO\Compression\ZipArchiveEntry.cs (1)
2395Write(new ReadOnlySpan<byte>(in value));
System\IO\Compression\ZipCustomStreams.cs (1)
419Write(new ReadOnlySpan<byte>(in value));
System\IO\Compression\Zstandard\ZstandardStream.Compress.cs (1)
247Write(new ReadOnlySpan<byte>(buffer, offset, count));
System.IO.Compression.Brotli (4)
System\IO\Compression\dec\BrotliStream.Decompress.cs (2)
219lastResult = _decoder.Decompress(new ReadOnlySpan<byte>(_buffer, _bufferOffset, _bufferCount), destination, out int bytesConsumed, out bytesWritten); 262new ReadOnlySpan<byte>(_buffer, _bufferOffset, _bufferCount).CopyTo(_buffer);
System\IO\Compression\enc\BrotliStream.Compress.cs (2)
55WriteCore(new ReadOnlySpan<byte>(buffer, offset, count)); 67WriteCore(new ReadOnlySpan<byte>(in value));
System.IO.FileSystem.AccessControl (1)
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
65return GetAndTrimString(new ReadOnlySpan<char>((char*)nativeMsgPtr, length));
System.IO.Hashing (19)
System\IO\Hashing\Adler32.cs (1)
115return Hash(new ReadOnlySpan<byte>(source));
System\IO\Hashing\Crc32.cs (2)
128return Hash(new ReadOnlySpan<byte>(source)); 145return Hash(parameterSet, new ReadOnlySpan<byte>(source));
System\IO\Hashing\Crc64.cs (2)
137return Hash(new ReadOnlySpan<byte>(source)); 162return Hash(parameterSet, new ReadOnlySpan<byte>(source));
System\IO\Hashing\NonCryptographicHashAlgorithm.cs (2)
89Append(new ReadOnlySpan<byte>(source)); 317new ReadOnlySpan<byte>(in value)
System\IO\Hashing\XxHash128.cs (2)
66return Hash(new ReadOnlySpan<byte>(source), seed); 196current = HashToHash128(new ReadOnlySpan<byte>(buffer, (int)_state.TotalLength), (long)_state.Seed);
System\IO\Hashing\XxHash3.cs (2)
65return Hash(new ReadOnlySpan<byte>(source), seed); 195current = HashToUInt64(new ReadOnlySpan<byte>(buffer, (int)_state.TotalLength), (long)_state.Seed);
System\IO\Hashing\XxHash32.cs (3)
148remaining = new ReadOnlySpan<byte>(_holdback, 0, remainingLength); 166return Hash(new ReadOnlySpan<byte>(source)); 182return Hash(new ReadOnlySpan<byte>(source), seed);
System\IO\Hashing\XxHash64.cs (3)
148remaining = new ReadOnlySpan<byte>(_holdback, 0, remainingLength); 166return Hash(new ReadOnlySpan<byte>(source)); 182return Hash(new ReadOnlySpan<byte>(source), seed);
System\IO\Hashing\XxHashShared.cs (2)
382new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes)); 383new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));
System.IO.IsolatedStorage (2)
System\IO\IsolatedStorage\Helper.cs (2)
117hash = string.Concat("StrongName", new ReadOnlySpan<char>(in separator), hash); 133hash = string.Concat("Url", new ReadOnlySpan<char>(in separator), IdentityHelper.GetNormalizedUriHash(locationUri));
System.IO.Packaging (1)
System\IO\Packaging\InterleavedZipPackagePartStream.cs (1)
277=> WriteCore(new ReadOnlySpan<byte>(buffer, offset, count));
System.IO.Pipes (1)
System\IO\Pipes\PipeStream.Unix.cs (1)
120WriteCore(new ReadOnlySpan<byte>(buffer, offset, count));
System.Linq (1)
System\Linq\Chunk.cs (1)
66TSource[] chunk = new ReadOnlySpan<TSource>(source, index, Math.Min(size, source.Length - index)).ToArray();
System.Memory (1)
System\Buffers\ReadOnlySequence.Helpers.cs (1)
665first = new ReadOnlySpan<T>((T[])startObject, startIndex, (endIndex & ReadOnlySequence.IndexBitMask) - startIndex);
System.Net.Http (8)
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
82public ReadOnlySpan<byte> ActiveReadOnlySpan => new ReadOnlySpan<byte>(_bytes, _activeStart, _availableStart - _activeStart);
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HPackDecoder.cs (1)
604int decodedLength = Huffman.Decode(new ReadOnlySpan<byte>(_stringOctets, 0, _stringLength), ref dst);
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\QPack\QPackDecoder.cs (1)
637int decodedLength = Huffman.Decode(new ReadOnlySpan<byte>(_stringOctets, 0, _stringLength), ref dst);
System\Net\Http\Headers\HttpHeaders.cs (1)
1486return new ReadOnlySpan<HeaderEntry>(GetEntriesArray(), 0, _count);
System\Net\Http\HttpBaseStream.cs (1)
67Write(new ReadOnlySpan<byte>(in value));
System\Net\Http\HttpContent.cs (1)
1145Write(new ReadOnlySpan<byte>(ref value));
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (1)
1206destination.Write(new ReadOnlySpan<byte>(buffer, 0, bytesRead));
System\Net\Http\SocketsHttpHandler\HttpContentStream.cs (1)
18Write(new ReadOnlySpan<byte>(buffer, offset, count));
System.Net.Http.WinHttpHandler (3)
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.DATA_BLOB.cs (1)
35internal unsafe ReadOnlySpan<byte> DangerousAsSpan() => new ReadOnlySpan<byte>((void*)pbData, (int)cbData);
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
65return GetAndTrimString(new ReadOnlySpan<char>((char*)nativeMsgPtr, length));
System\Net\Http\WinHttpResponseHeaderReader.cs (1)
61ReadOnlySpan<char> valueSpan = new ReadOnlySpan<char>(_buffer, colonIndex + 1, startIndex + length - colonIndex - 1).Trim();
System.Net.Ping (2)
System\Net\NetworkInformation\Ping.RawSocket.cs (2)
110socket.SetRawSocketOption(0, 11, MemoryMarshal.AsBytes(new ReadOnlySpan<int>(in opt))); 115socket.SetRawSocketOption(41, 25, MemoryMarshal.AsBytes(new ReadOnlySpan<int>(in opt)));
System.Net.Primitives (3)
src\runtime\src\libraries\Common\src\System\Net\SocketAddress.cs (1)
149hash.AddBytes(new ReadOnlySpan<byte>(_buffer, 0, _size));
System\Net\IPAddress.cs (2)
136this(new ReadOnlySpan<byte>(address ?? ThrowAddressNullException()), scopeid) 178this(new ReadOnlySpan<byte>(address ?? ThrowAddressNullException()))
System.Net.Quic (4)
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
82public ReadOnlySpan<byte> ActiveReadOnlySpan => new ReadOnlySpan<byte>(_bytes, _activeStart, _availableStart - _activeStart);
System\Net\Quic\Internal\MsQuicTlsSecret.cs (1)
55? new ReadOnlySpan<byte>(_tlsSecrets->ClientRandom, 32)
System\Net\Quic\QuicStream.cs (1)
602new ReadOnlySpan<QUIC_BUFFER>(data.Buffers, (int)data.BufferCount),
System\Net\Quic\QuicStream.Stream.cs (1)
172Write(new ReadOnlySpan<byte>(in value));
System.Net.Requests (1)
System\Net\RequestStream.cs (1)
99_internalStream.Write(new(buffer, offset, count));
System.Net.Security (20)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Net.Security.Native\Interop.GssBuffer.cs (1)
55new ReadOnlySpan<byte>(_data, checked((int)_length)) :
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (1)
78return new ReadOnlySpan<byte>((void*)protocol, len);
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
82public ReadOnlySpan<byte> ActiveReadOnlySpan => new ReadOnlySpan<byte>(_bytes, _activeStart, _availableStart - _activeStart);
System\Net\Security\SslStream.cs (1)
817public override void WriteByte(byte value) => Write(new ReadOnlySpan<byte>(ref value));
System\Net\Security\SslStream.IO.cs (1)
708SendAuthResetSignal(new ReadOnlySpan<byte>(alertToken.Payload), ExceptionDispatchInfo.Capture(CreateCertificateValidationException(sslAuthenticationOptions, sslPolicyErrors, chainStatus)));
System\Net\Security\TlsSession.cs (13)
1045AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size)); 1062AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size)); 1118AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size)); 1260AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size)); 1532AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size)); 1639AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size)); 2043AppendPending(new ReadOnlySpan<byte>(token.Payload, 0, token.Size)); 2156new ReadOnlySpan<byte>(scratch, offset, produced - offset), 2167AppendPending(new ReadOnlySpan<byte>(scratch, offset, produced - offset)); 2359new ReadOnlySpan<byte>(scratch, offset, produced - offset), 2369AppendPending(new ReadOnlySpan<byte>(scratch, offset, produced - offset)); 2434new ReadOnlySpan<byte>(scratch, offset, written - offset), 2444AppendPending(new ReadOnlySpan<byte>(scratch, offset, written - offset));
System\Net\Security\TlsSession.OpenSsl.cs (2)
164ReadOnlySpan<byte> frame = new ReadOnlySpan<byte>(framePtr, frameLen); 223bytes = new ReadOnlySpan<byte>(ptr, len);
System.Net.ServerSentEvents (1)
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
82public ReadOnlySpan<byte> ActiveReadOnlySpan => new ReadOnlySpan<byte>(_bytes, _activeStart, _availableStart - _activeStart);
System.Net.Sockets (3)
System\Net\Sockets\NetworkStream.cs (1)
347Write(new ReadOnlySpan<byte>(in value));
System\Net\Sockets\SocketAsyncContext.Unix.cs (1)
241return 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\Sockets\SocketAsyncEventArgs.Unix.cs (1)
347new ReadOnlySpan<byte>(_acceptBuffer, 0, _acceptAddressBufferCount).CopyTo(remoteSocketAddress.Buffer.Span);
System.Net.WebSockets (1)
System\Net\WebSockets\Compression\WebSocketDeflater.cs (1)
76return new ReadOnlySpan<byte>(_buffer, 0, position);
System.Private.CoreLib (175)
Internal\Runtime\CompilerHelpers\InteropHelpers.cs (2)
59int end = new ReadOnlySpan<byte>(buffer, length).IndexOf((byte)0); 81int end = new ReadOnlySpan<char>(buffer, length).IndexOf('\0');
Internal\Runtime\CompilerHelpers\ReachabilityInstrumentationSupport.cs (1)
61File.WriteAllBytes(ReachabilityFileName, new ReadOnlySpan<byte>(s_region, s_size));
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatReader.String.cs (1)
55return new(_base + offset, (int)numBytes);
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.ReadDir.cs (1)
39: new ReadOnlySpan<byte>(Name, NameLength);
src\runtime\src\libraries\System.Private.CoreLib\src\Internal\Runtime\InteropServices\ComponentActivator.cs (2)
160ReadOnlySpan<byte> assemblySpan = new ReadOnlySpan<byte>(assembly, (int)assemblyByteLength); 164symbolsSpan = new ReadOnlySpan<byte>(symbols, (int)symbolsByteLength);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Array.cs (2)
843return GetValue(new ReadOnlySpan<int>(indices)); 907SetValue(value, new ReadOnlySpan<int>(indices));
src\runtime\src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (1)
871var src = new ReadOnlySpan<byte>(value, startIndex, length);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\CollectionExtensions.cs (1)
171new ReadOnlySpan<T>(list._items, 0, list._size).CopyTo(destination);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Convert.cs (9)
2323return ToBase64String(new ReadOnlySpan<byte>(inArray), options); 2339return ToBase64String(new ReadOnlySpan<byte>(inArray, offset, length), options); 2404int charsWritten = Base64.EncodeToChars(new ReadOnlySpan<byte>(inArray, offsetIn, length), outArray.AsSpan(offsetOut)); 2409int converted = ConvertToBase64WithLineBreaks(outArray.AsSpan(offsetOut), new ReadOnlySpan<byte>(inArray, offsetIn, length)); 2560return Base64.DecodeFromChars(new ReadOnlySpan<char>(inArray, offset, length)); 2767return ToHexString(new ReadOnlySpan<byte>(inArray)); 2790return ToHexString(new ReadOnlySpan<byte>(inArray, offset, length)); 2862return ToHexStringLower(new ReadOnlySpan<byte>(inArray)); 2885return ToHexStringLower(new ReadOnlySpan<byte>(inArray, offset, length));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Delegate.cs (1)
323ReadOnlySpan<Wrapper> followList = d.TryGetInvocations(out ReadOnlySpan<Wrapper> span) ? span : new ReadOnlySpan<Wrapper>(ref wrapper);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeEventDispatcher.cs (1)
165ReadOnlySpan<byte> payload = new ReadOnlySpan<byte>((void*)instanceData.Payload, (int)instanceData.PayloadLength);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeEventProvider.cs (1)
32id = BitConverter.ToUInt64(new ReadOnlySpan<byte>(additionalData, sizeof(ulong)));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Enum.cs (2)
240return new ReadOnlySpan<string>(names).ToArray(); 2254ReadOnlySpan<byte> rawData = MemoryMarshal.AsBytes(new ReadOnlySpan<long>(ref value));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.cs (5)
121return IsSortable(new ReadOnlySpan<char>(in ch)); 808return IndexOf(source, new ReadOnlySpan<char>(in value), options); 888int result = IndexOf(sourceSpan, new ReadOnlySpan<char>(in value), options); 1141return LastIndexOf(source, new ReadOnlySpan<char>(in value), options); 1236int retVal = LastIndexOf(sourceSpan, new ReadOnlySpan<char>(in value), options);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (1)
328span = new ReadOnlySpan<char>(buffer, ICU_ULOC_KEYWORD_AND_VALUES_CAPACITY);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (1)
719FormatCustomized(dateTime, new ReadOnlySpan<char>(in nextCharChar), dtfi, offset, ref result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\SortKey.cs (2)
59return new ReadOnlySpan<byte>(key1Data).SequenceCompareTo(key2Data); 63value is SortKey other && new ReadOnlySpan<byte>(_keyData).SequenceEqual(other._keyData);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanFormat.cs (1)
467FormatCustomized(value, new ReadOnlySpan<char>(in nextCharChar), dtfi, ref result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Guid.cs (6)
61this(new ReadOnlySpan<byte>(b ?? throw new ArgumentNullException(nameof(b)))) 930return Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(new ReadOnlySpan<char>(chArr, 0, newLength)); 1009Guid guid = new Guid(MemoryMarshal.AsBytes(new ReadOnlySpan<Guid>(in this)), false); 1027Guid guid = new Guid(MemoryMarshal.AsBytes(new ReadOnlySpan<Guid>(in this)), bigEndian); 1046Guid guid = new Guid(MemoryMarshal.AsBytes(new ReadOnlySpan<Guid>(in this)), false); 1068Guid guid = new Guid(MemoryMarshal.AsBytes(new ReadOnlySpan<Guid>(in this)), bigEndian);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BinaryReader.cs (1)
364byteBuffer = new ReadOnlySpan<byte>(mStream.InternalGetBuffer(), position, numBytes);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BinaryWriter.cs (1)
202int actualByteCount = _encoding.GetBytes(new ReadOnlySpan<char>(in ch), buffer);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BufferedStream.cs (1)
452new ReadOnlySpan<byte>(_buffer, _readPos, readbytes).CopyTo(destination);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\File.cs (2)
767WriteAllBytes(path, new ReadOnlySpan<byte>(bytes)); 816AppendAllBytes(path, new ReadOnlySpan<byte>(bytes));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (1)
225var span = new ReadOnlySpan<byte>(_buffer, origPos, count);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\BufferedFileStreamStrategy.cs (2)
211new ReadOnlySpan<byte>(_buffer, _readPos, n).CopyTo(destination); 469WriteSpan(new ReadOnlySpan<byte>(buffer, offset, count), new ArraySegment<byte>(buffer, offset, count));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\OSFileStreamStrategy.cs (2)
228Write(new ReadOnlySpan<byte>(in value)); 231Write(new ReadOnlySpan<byte>(buffer, offset, count));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (2)
324new ReadOnlySpan<byte>(localBuffer, 0, result).CopyTo(localDestination.Span); 794new ReadOnlySpan<byte>(sharedBuffer, 0, numRead).CopyTo(buffer);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (5)
494new ReadOnlySpan<byte>(byteBuffer, n, _byteLen - n).CopyTo(byteBuffer); 781charsRead = _decoder.GetChars(new ReadOnlySpan<byte>(_byteBuffer, 0, _byteLen), userBuffer, flush: false); 800charsRead = _decoder.GetChars(new ReadOnlySpan<byte>(_byteBuffer, 0, _byteLen), userBuffer, flush: true); 1186n = _decoder.GetChars(new ReadOnlySpan<byte>(_byteBuffer, 0, _byteLen), buffer.Span.Slice(charsRead), flush: false); 1250n = _decoder.GetChars(new ReadOnlySpan<byte>(_byteBuffer, 0, _byteLen), buffer.Span.Slice(charsRead), flush: false);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (4)
342int count = _encoder.GetBytes(new ReadOnlySpan<char>(_charBuffer, 0, _charPos), byteBuffer, flushEncoder); 634WriteFormatHelper(format, new ReadOnlySpan<object?>(in arg0), appendNewLine: false); 703WriteFormatHelper(format, new ReadOnlySpan<object?>(in arg0), appendNewLine: true); 1099int count = _encoder.GetBytes(new ReadOnlySpan<char>(_charBuffer, 0, _charPos), byteBuffer, flushEncoder);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStream.cs (1)
608WriteCore(new ReadOnlySpan<byte>(buffer, offset, count));
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\WritableMemoryStream.cs (2)
246Write(new ReadOnlySpan<byte>(buffer, offset, count)); 290Write(new ReadOnlySpan<byte>(buffer, offset, count));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Marvin.OrdinalIgnoreCase.cs (1)
89int charsWritten = Globalization.Ordinal.ToUpperOrdinal(new ReadOnlySpan<char>(ref data, count), scratch);
src\runtime\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); 3956new ReadOnlySpan<T>(source).CopyTo(destination); 5109return SplitCore(source, destination, new ReadOnlySpan<char>(in separator), default, isAny: true, options);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Random.cs (1)
598return GetItems(new ReadOnlySpan<T>(choices), length);
src\runtime\src\libraries\System.Private.CoreLib\src\System\ReadOnlyMemory.cs (1)
271return new ReadOnlySpan<T>(ref refToReturn, lengthOfUnderlyingSpan);
src\runtime\src\libraries\System.Private.CoreLib\src\System\ReadOnlySpan.cs (6)
206public static implicit operator ReadOnlySpan<T>(T[]? array) => new ReadOnlySpan<T>(array); 212=> new ReadOnlySpan<T>(segment.Array, segment.Offset, segment.Count); 228return new ReadOnlySpan<T>(ref Unsafe.As<TDerived, T>(ref items._reference), items.Length); 359return new string(new ReadOnlySpan<char>(ref Unsafe.As<T, char>(ref _reference), _length)); 377return new ReadOnlySpan<T>(ref Unsafe.Add(ref _reference, (nint)(uint)start /* force zero-extension */), _length - start); 400return new ReadOnlySpan<T>(ref Unsafe.Add(ref _reference, (nint)(uint)start /* force zero-extension */), length);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyNameHelpers.StrongName.cs (1)
43ReadOnlySpan<byte> publicKeyBlob = new ReadOnlySpan<byte>(publicKey);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\RuntimeCustomAttributeData.cs (1)
1469return new ReadOnlySpan<byte>((void*)start, (int)length);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceManager.cs (1)
233: string.Concat(nameSpace, new ReadOnlySpan<char>(in c), resourceSource.Name);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
173return BinaryPrimitives.ReadInt32LittleEndian(new ReadOnlySpan<byte>(p, sizeof(int)));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ArrayMarshaller.cs (1)
102return new ReadOnlySpan<TUnmanagedElement>(unmanagedValue, numElements);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\PointerArrayMarshaller.cs (1)
103return new ReadOnlySpan<TUnmanagedElement>(unmanagedValue, numElements);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ReadOnlySpanMarshaller.cs (2)
200return new ReadOnlySpan<T>(_managedValues!); 213return new ReadOnlySpan<TUnmanagedElement>(_unmanagedArray, numElements);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\SpanMarshaller.cs (1)
107return new ReadOnlySpan<TUnmanagedElement>(unmanaged, numElements);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\MemoryMarshal.cs (5)
61return new ReadOnlySpan<byte>( 248return new ReadOnlySpan<TTo>( 285new ReadOnlySpan<T>(ref Unsafe.AsRef(in reference), length); 294value != null ? new ReadOnlySpan<char>(value, string.wcslen(value)) : 304value != null ? new ReadOnlySpan<byte>(value, string.strlen(value)) :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeBuffer.cs (1)
310WriteSpan(byteOffset, new ReadOnlySpan<T>(array, index, count));
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticMap.cs (6)
309var valuesSpan = new ReadOnlySpan<char>(ref values, valuesLength); 327var valuesSpan = new ReadOnlySpan<char>(ref values, valuesLength); 341var valuesSpan = new ReadOnlySpan<char>(ref values, valuesLength); 359var valuesSpan = new ReadOnlySpan<char>(ref values, valuesLength); 374var valuesSpan = new ReadOnlySpan<char>(ref values, valuesLength); 387var valuesSpan = new ReadOnlySpan<char>(ref values, valuesLength);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\StringSearchValues.cs (1)
38AnalyzeValues(new ReadOnlySpan<string>(ref normalizedValue), ref ignoreCase, out bool ascii, out bool asciiLettersOnly, out _, out _);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Security\SecureString.cs (1)
33Initialize(new ReadOnlySpan<char>(value, length));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Span.cs (2)
373new ReadOnlySpan<T>(ref span._reference, span._length); 383return new string(new ReadOnlySpan<char>(ref Unsafe.As<T, char>(ref _reference), _length));
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.cs (3)
282return enc.GetString(new ReadOnlySpan<byte>(pStart, length)); 370value != null ? new ReadOnlySpan<char>(ref value.GetRawStringData(), value.Length) : default; 390slice = new ReadOnlySpan<char>(ref Unsafe.Add(ref _firstChar, (nint)(uint)startIndex /* force zero-extension */), count);
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (15)
478return FormatHelper(null, format, new ReadOnlySpan<object?>(in arg0)); 516return FormatHelper(provider, format, new ReadOnlySpan<object?>(in arg0)); 745return JoinCore(new ReadOnlySpan<char>(in separator), new ReadOnlySpan<string?>(value)); 760return JoinCore(new ReadOnlySpan<char>(in separator), value); 770return JoinCore(separator.AsSpan(), new ReadOnlySpan<string?>(value)); 789JoinCore(new ReadOnlySpan<char>(in separator), value, startIndex, count); 801return JoinCore(separator, new ReadOnlySpan<string?>(value, startIndex, count)); 813return JoinCore(separator.AsSpan(), new ReadOnlySpan<string?>(valuesArray)); 859return JoinCore(new ReadOnlySpan<char>(in separator), (ReadOnlySpan<object?>)values); 873JoinCore(new ReadOnlySpan<char>(in separator), values); 930JoinCore(new ReadOnlySpan<char>(in separator), values); 951return JoinCore(separator, new ReadOnlySpan<string?>(valuesArray)); 1682return SplitInternal(new ReadOnlySpan<char>(in separator), int.MaxValue, options); 1687return SplitInternal(new ReadOnlySpan<char>(in separator), count, options);
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Searching.cs (6)
158subIndex = Ordinal.IndexOfOrdinalIgnoreCase(this.AsSpan(startIndex, count), new ReadOnlySpan<char>(in value)); 191return new ReadOnlySpan<char>(ref _firstChar, Length).IndexOfAny(anyOf); 216int result = new ReadOnlySpan<char>(ref Unsafe.Add(ref _firstChar, startIndex), count).IndexOfAny(anyOf); 577subIndex = Ordinal.LastIndexOfOrdinalIgnoreCase(this.AsSpan(startSearchAt, count), new ReadOnlySpan<char>(in value)); 595return new ReadOnlySpan<char>(ref _firstChar, Length).LastIndexOfAny(anyOf); 626int result = new ReadOnlySpan<char>(ref Unsafe.Add(ref _firstChar, startSearchAt), count).LastIndexOfAny(anyOf);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\DecoderNLS.cs (1)
207MemoryMarshal.AsBytes(new ReadOnlySpan<int>(in _leftoverBytes)).Slice(0, _leftoverByteCount);
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Encoding.Internal.cs (8)
235chars: new ReadOnlySpan<char>(pCharsOriginal, originalCharCount).Slice(charsConsumedSoFar), 264ReadOnlySpan<char> chars = new ReadOnlySpan<char>(pOriginalChars, originalCharCount).Slice(charsConsumedSoFar); 499chars: new ReadOnlySpan<char>(pOriginalChars, originalCharCount).Slice(charsConsumedSoFar), 532ReadOnlySpan<char> chars = new ReadOnlySpan<char>(pOriginalChars, originalCharCount).Slice(charsConsumedSoFar); 829bytes: new ReadOnlySpan<byte>(pBytesOriginal, originalByteCount).Slice(bytesConsumedSoFar), 858ReadOnlySpan<byte> bytes = new ReadOnlySpan<byte>(pOriginalBytes, originalByteCount).Slice(bytesConsumedSoFar); 1095bytes: new ReadOnlySpan<byte>(pOriginalBytes, originalByteCount).Slice(bytesConsumedSoFar), 1134ReadOnlySpan<byte> bytes = new ReadOnlySpan<byte>(pOriginalBytes, originalByteCount).Slice(bytesConsumedSoFar);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (10)
946new ReadOnlySpan<char>(chunk.m_ChunkChars, chunkStartIndex, chunkCount).CopyTo(destination.Slice(curDestIndex)); 1483return AppendFormat(null, format, new ReadOnlySpan<object?>(in arg0)); 1529return AppendFormat(provider, format, new ReadOnlySpan<object?>(in arg0)); 2088ReadOnlySpan<char> chunk = new ReadOnlySpan<char>(sbChunk.m_ChunkChars, 0, chunk_length); 2398new ReadOnlySpan<char>(ref value, firstLength).CopyTo(m_ChunkChars.AsSpan(m_ChunkLength)); 2408new ReadOnlySpan<char>(ref Unsafe.Add(ref value, firstLength), restLength).CopyTo(m_ChunkChars); 2561new ReadOnlySpan<char>(ref value, lengthToCopy).CopyTo(chunk.m_ChunkChars.AsSpan(indexInChunk)); 2761new ReadOnlySpan<char>(chunk.m_ChunkChars, 0, copyCount1).CopyTo(newChunk.m_ChunkChars); 2767new ReadOnlySpan<char>(chunk.m_ChunkChars, copyCount1, copyCount2).CopyTo(chunk.m_ChunkChars); 2878new ReadOnlySpan<char>(endChunk.m_ChunkChars, endIndexInChunk, copyCount).CopyTo(endChunk.m_ChunkChars.AsSpan(copyTargetIndexInChunk));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\TranscodingStream.cs (2)
472Write(new ReadOnlySpan<byte>(buffer, offset, count)); 610=> Write(new ReadOnlySpan<byte>(in value));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (1)
1740GetType() != typeof(UnicodeEncoding) ? new ReadOnlySpan<byte>(GetPreamble()) : // in case a derived UnicodeEncoding overrode GetPreamble
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (1)
1132GetType() != typeof(UTF32Encoding) ? new ReadOnlySpan<byte>(GetPreamble()) : // in case a derived UTF32Encoding overrode GetPreamble
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (1)
873GetType() != typeof(UTF8Encoding) ? new ReadOnlySpan<byte>(GetPreamble()) : // in case a derived UTF8Encoding overrode GetPreamble
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.Sealed.cs (1)
149return new string(new ReadOnlySpan<char>(ref *pDestination, charsWritten)); // this overload of ROS ctor doesn't validate length
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PollThread.cs (2)
246foreach (var handleEvent in new ReadOnlySpan<Interop.Sys.HandleEvent>(_buffer, numEvents)) 285LinkChildren(root, new ReadOnlySpan<PollIOEvent>(asyncEvents, i + 1, treeSize - 1));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.WaitThread.cs (1)
244int signaledHandleIndex = WaitHandle.WaitAny(new ReadOnlySpan<SafeWaitHandle>(_waitHandles, 0, numUserWaits + 1), timeoutDurationMs);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandle.cs (1)
295return WaitMultiple(new ReadOnlySpan<WaitHandle>(waitHandles), waitAll, millisecondsTimeout);
System\CrashInfo.cs (2)
117if (!WriteValue("runtime_version"u8, new ReadOnlySpan<byte>(RuntimeImports.RhGetRuntimeVersion(out int cbLength), cbLength))) 378private bool WriteChar(char source) => WriteChars(new ReadOnlySpan<char>(in source));
System\Delegate.NativeAot.cs (1)
94invocations = new ReadOnlySpan<Wrapper>(invocationList, 0, (int)_extraFunctionPointerOrData);
System\Runtime\InteropServices\PInvokeMarshal.cs (2)
492bool allAscii = Ascii.IsValid(new ReadOnlySpan<char>(pManaged, lenUnicode)); 510OperationStatus conversionStatus = Ascii.FromUtf16(new ReadOnlySpan<char>(pManaged, length), new Span<byte>(pNative, length), out _);
System\RuntimeType.NativeAot.cs (1)
115return new ReadOnlySpan<string>(ret).ToArray();
System\Text\StringBuilder.NativeAot.cs (2)
40new ReadOnlySpan<char>(newBuffer, len).CopyTo(chunkChars); 62new ReadOnlySpan<char>(chunkCharsCandidate, 0, len).CopyTo(chunkChars);
System\ValueType.cs (2)
114hashCode.AddBytes(new ReadOnlySpan<byte>(ref this.GetRawData(), GetValueTypeSize(numFields))); 128return new ReadOnlySpan<byte>(ref data, (int)type->ValueTypeSize);
System.Private.DataContractSerialization (5)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (2)
243Write(new ReadOnlySpan<byte>(buffer, offset, count)); 275Write(new ReadOnlySpan<byte>(in b));
System\Xml\XmlBinaryWriter.cs (1)
716WriteTextImpl(new ReadOnlySpan<char>(in castChar));
System\Xml\XmlStreamNodeWriter.cs (2)
340new ReadOnlySpan<char>(chars, charCount) 345BinaryPrimitives.ReverseEndianness(new ReadOnlySpan<short>(chars, charCount),
System.Private.Reflection.Execution (1)
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatReader.String.cs (1)
55return new(_base + offset, (int)numBytes);
System.Private.TypeLoader (2)
Internal\TypeSystem\TypeSystemContext.Runtime.cs (1)
196ReadOnlySpan<Runtime.GenericVariance> varianceData = new ReadOnlySpan<Runtime.GenericVariance>(runtimeVariance, runtimeVariance == null ? 0 : genericParameters.Length);
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatReader.String.cs (1)
55return new(_base + offset, (int)numBytes);
System.Private.Uri (1)
System\PercentEncodingHelper.cs (1)
73if (Rune.DecodeFromUtf8(MemoryMarshal.AsBytes(new ReadOnlySpan<uint>(ref temp))[..bytesLeftInBuffer], out Rune rune, out bytesConsumed) == OperationStatus.Done)
System.Private.Windows.Core (10)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.BSTR.g.cs (1)
64 public static unsafe implicit operator ReadOnlySpan<char>(BSTR bstr) => bstr.Value != null ? new ReadOnlySpan<char>(bstr.Value, *((int*)bstr.Value - 1) / 2) : default(ReadOnlySpan<char>);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PCSTR.g.cs (1)
75 internal ReadOnlySpan<byte> AsSpan() => this.Value is null ? default(ReadOnlySpan<byte>) : new ReadOnlySpan<byte>(this.Value, this.Length);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PCWSTR.g.cs (1)
75 internal ReadOnlySpan<char> AsSpan() => this.Value is null ? default(ReadOnlySpan<char>) : new ReadOnlySpan<char>(this.Value, this.Length);
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (4)
211ReadOnlySpan<char> chars = new((char*)buffer, size / sizeof(char)); 224ReadOnlySpan<byte> bytes = new((byte*)buffer, size); 257ReadOnlySpan<byte> bytes = new((byte*)buffer, size); 291ReadOnlySpan<byte> bytes = new((byte*)buffer, size);
Windows\Win32\System\Com\ComManagedStream.cs (1)
241ReadOnlySpan<byte> buffer = new(pv, checked((int)cb));
Windows\Win32\System\Com\SAFEARRAY.cs (2)
19return new ReadOnlySpan<SAFEARRAYBOUND>(b, cDims)[dimension]; 80ReadOnlySpan<SAFEARRAYBOUND> bounds = new(b, cDims);
System.Private.Windows.GdiPlus (1)
System\Drawing\ImageCodecInfoHelper.cs (1)
51ReadOnlySpan<ImageCodecInfo> codecInfo = new((ImageCodecInfo*)b, (int)numEncoders);
System.Reflection.Metadata (8)
System\Reflection\Internal\MemoryBlocks\AbstractMemoryBlock.cs (1)
43var result = new ReadOnlySpan<byte>(Pointer + start, length).ToImmutableArray();
System\Reflection\Internal\Utilities\MemoryBlock.cs (4)
318ReadOnlySpan<byte> span = new ReadOnlySpan<byte>(Pointer + offset, Length - offset); 340ReadOnlySpan<byte> span = new ReadOnlySpan<byte>(Pointer + startOffset, Length - startOffset); 510return new ReadOnlySpan<byte>(Pointer + offset, byteCount).ToArray(); 521int i = new ReadOnlySpan<byte>(Pointer + start, Length - start).IndexOf(b);
System\Reflection\Metadata\BlobBuilder.cs (1)
675WriteBytesUnchecked(new ReadOnlySpan<byte>(buffer, byteCount));
System\Reflection\Metadata\BlobWriter.cs (1)
148WriteBytes(new ReadOnlySpan<byte>(buffer, byteCount));
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (1)
216return GetOrAddBlob(new ReadOnlySpan<byte>(value));
System.Reflection.MetadataLoadContext (2)
System\Reflection\TypeLoading\General\Ecma\EcmaHelpers.cs (1)
115return new ReadOnlySpan<byte>(br.CurrentPointer, br.Length);
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (1)
87ReadOnlySpan<byte> actual = new ReadOnlySpan<byte>(br.CurrentPointer, br.Length);
System.Resources.Extensions (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
173return BinaryPrimitives.ReadInt32LittleEndian(new ReadOnlySpan<byte>(p, sizeof(int)));
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\RuntimeEnvironment.cs (1)
28return string.Concat(Path.GetDirectoryName(runtimeDirectory), new ReadOnlySpan<char>(in sep));
System.Runtime.Numerics (6)
System\Numerics\BigInteger.cs (1)
333this(new ReadOnlySpan<byte>(value ?? throw new ArgumentNullException(nameof(value))))
System\Numerics\BigIntegerCalculator.PowMod.cs (5)
18Pow(value != 0 ? new ReadOnlySpan<nuint>(in value) : default, power, bits); 426Pow(value != 0 ? new ReadOnlySpan<nuint>(in value) : default, power, modulus, bits); 466Pow(value != 0 ? new ReadOnlySpan<nuint>(in value) : default, power, modulus, bits); 541PowCoreMontgomery(value, valueLength, new ReadOnlySpan<nuint>(in power), modulus, temp, bits); 555PowCoreBarrett(value, valueLength, new ReadOnlySpan<nuint>(in power), modulus, temp, bits);
System.Security.Cryptography (213)
Microsoft\Win32\SafeHandles\SafePasswordHandle.cs (1)
102return new ReadOnlySpan<char>((char*)handle, Length);
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.Blobs.cs (1)
67byte[] value = new ReadOnlySpan<byte>(blob, offset, count).ToArray();
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.DATA_BLOB.cs (1)
35internal unsafe ReadOnlySpan<byte> DangerousAsSpan() => new ReadOnlySpan<byte>((void*)pbData, (int)cbData);
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
65return GetAndTrimString(new ReadOnlySpan<char>((char*)nativeMsgPtr, length));
src\runtime\src\libraries\Common\src\System\Security\Cryptography\AesGcm.cs (1)
116: this(new ReadOnlySpan<byte>(key ?? throw new ArgumentNullException(nameof(key))), tagSizeInBytes)
src\runtime\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)); 700return ImportEncryptedPkcs8PrivateKey(password.AsSpan(), new ReadOnlySpan<byte>(source)); 822return ImportPkcs8PrivateKey(new ReadOnlySpan<byte>(source)); 898return ImportCompositeMLDsaPublicKey(algorithm, new ReadOnlySpan<byte>(source)); 948return ImportCompositeMLDsaPrivateKey(algorithm, new ReadOnlySpan<byte>(source));
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLKem.cs (6)
374return ImportEncapsulationKey(algorithm, new ReadOnlySpan<byte>(source)); 452return ImportDecapsulationKey(algorithm, new ReadOnlySpan<byte>(source)); 534return ImportSubjectPublicKeyInfo(new ReadOnlySpan<byte>(source)); 630return ImportPkcs8PrivateKey(new ReadOnlySpan<byte>(source)); 737return ImportEncryptedPkcs8PrivateKey(password.AsSpan(), new ReadOnlySpan<byte>(source)); 1149return ImportFromEncryptedPem(source.AsSpan(), new ReadOnlySpan<byte>(passwordBytes));
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Hpke.cs (8)
87return DeriveKey(suite, new ReadOnlySpan<byte>(ikm)); 177return ImportDecapsulationKey(suite, new ReadOnlySpan<byte>(source)); 244return ImportEncapsulationKey(suite, new ReadOnlySpan<byte>(source)); 759new ReadOnlySpan<byte>(encapsulatedSecret), 761new ReadOnlySpan<byte>(associatedData), 1058return CreateRecipient(new ReadOnlySpan<byte>(encapsulatedSecret), info); 1171return CreatePskSender(new ReadOnlySpan<byte>(psk), pskId, out encapsulatedSecret, info); 1373return CreatePskRecipient(new ReadOnlySpan<byte>(encapsulatedSecret), psk, pskId, info);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\HpkeRecipient.cs (3)
118return Open(new ReadOnlySpan<byte>(ciphertext), new ReadOnlySpan<byte>(associatedData)); 289return Export(new ReadOnlySpan<byte>(exporterContext), length);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\HpkeSender.cs (3)
105return Seal(new ReadOnlySpan<byte>(plaintext), new ReadOnlySpan<byte>(associatedData)); 268return Export(new ReadOnlySpan<byte>(exporterContext), length);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (20)
171SignData(new ReadOnlySpan<byte>(data), destination.AsSpan(), new ReadOnlySpan<byte>(context)); 259return VerifyData(new ReadOnlySpan<byte>(data), new ReadOnlySpan<byte>(signature), new ReadOnlySpan<byte>(context)); 374SignPreHash(new ReadOnlySpan<byte>(hash), destination.AsSpan(), hashAlgorithmOid, new ReadOnlySpan<byte>(context)); 494new ReadOnlySpan<byte>(hash), 495new ReadOnlySpan<byte>(signature), 497new ReadOnlySpan<byte>(context)); 507return SignMu(new ReadOnlySpan<byte>(externalMu)); 612return VerifyMu(new ReadOnlySpan<byte>(externalMu), new ReadOnlySpan<byte>(signature)); 1387return ImportSubjectPublicKeyInfo(new ReadOnlySpan<byte>(source)); 1438return ImportPkcs8PrivateKey(new ReadOnlySpan<byte>(source)); 1553return ImportEncryptedPkcs8PrivateKey(password.AsSpan(), new ReadOnlySpan<byte>(source)); 1773return ImportFromEncryptedPem(source.AsSpan(), new ReadOnlySpan<byte>(passwordBytes)); 1823return ImportMLDsaPublicKey(algorithm, new ReadOnlySpan<byte>(source)); 1873return ImportMLDsaPrivateKey(algorithm, new ReadOnlySpan<byte>(source)); 1923return ImportMLDsaPrivateSeed(algorithm, new ReadOnlySpan<byte>(source));
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKem.cs (6)
387return ImportPrivateSeed(algorithm, new ReadOnlySpan<byte>(source)); 444return ImportDecapsulationKey(algorithm, new ReadOnlySpan<byte>(source)); 502return ImportEncapsulationKey(algorithm, new ReadOnlySpan<byte>(source)); 1212return ImportSubjectPublicKeyInfo(new ReadOnlySpan<byte>(source)); 1262return ImportPkcs8PrivateKey(new ReadOnlySpan<byte>(source)); 1607return ImportFromEncryptedPem(source.AsSpan(), new ReadOnlySpan<byte>(passwordBytes));
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKem.Windows.cs (1)
38ReadOnlySpan<char> paramSetWithNull = new(pExportedSpan + blobHeaderSize, paramSetSize / sizeof(char));
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
34new ReadOnlySpan<byte>(passwordBytes),
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (2)
133new ReadOnlySpan<byte>(passwordBytes), 196Decrypt(new ReadOnlySpan<byte>(passwordBytes));
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9LocalKeyId.cs (1)
27: this(new ReadOnlySpan<byte>(keyId))
src\runtime\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)); 1317return ImportPkcs8PrivateKey(new ReadOnlySpan<byte>(source)); 1432return ImportEncryptedPkcs8PrivateKey(password.AsSpan(), new ReadOnlySpan<byte>(source)); 1652return ImportFromEncryptedPem(source.AsSpan(), new ReadOnlySpan<byte>(passwordBytes)); 1702return ImportSlhDsaPublicKey(algorithm, new ReadOnlySpan<byte>(source)); 1752return ImportSlhDsaPrivateKey(algorithm, new ReadOnlySpan<byte>(source));
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdfImplementationCng.cs (2)
31DeriveBytes(new ReadOnlySpan<byte>(label), new ReadOnlySpan<byte>(context), destination);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellman.cs (5)
888return ImportPrivateKey(new ReadOnlySpan<byte>(source)); 944return ImportPublicKey(new ReadOnlySpan<byte>(source)); 1042return ImportSubjectPublicKeyInfo(new ReadOnlySpan<byte>(source)); 1092return ImportPkcs8PrivateKey(new ReadOnlySpan<byte>(source)); 1405return ImportFromEncryptedPem(source.AsSpan(), new ReadOnlySpan<byte>(passwordBytes));
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519WindowsHelpers.cs (3)
51ReadOnlySpan<byte> y = new(pExportedSpan + blobHeaderSize + ElementSize, ElementSize); 61ReadOnlySpan<byte> d = new(pExportedSpan + blobHeaderSize + ElementSize * 2, ElementSize); 66ReadOnlySpan<byte> x = new(pExportedSpan + blobHeaderSize, ElementSize);
System\Security\Cryptography\Aes.cs (4)
88return EncryptKeyWrap(new ReadOnlySpan<byte>(plaintext)); 156return DecryptKeyWrap(new ReadOnlySpan<byte>(ciphertext)); 419return EncryptKeyWrapPadded(new ReadOnlySpan<byte>(plaintext)); 495return DecryptKeyWrapPadded(new ReadOnlySpan<byte>(ciphertext));
System\Security\Cryptography\AesGcm.cs (1)
27: this(new ReadOnlySpan<byte>(key ?? throw new ArgumentNullException(nameof(key))))
System\Security\Cryptography\AesImplementation.cs (1)
264return CreateTransform(new ReadOnlySpan<byte>(rgbKey), rgbIV, encrypting);
System\Security\Cryptography\AsymmetricAlgorithm.cs (2)
798ReadOnlySpan<byte> writtenSpan = new ReadOnlySpan<byte>(buf, 0, bytesWritten); 828ReadOnlySpan<byte> writtenSpan = new ReadOnlySpan<byte>(buf, 0, bytesWritten);
System\Security\Cryptography\Base64Transforms.cs (2)
48ReadOnlySpan<byte> input = new ReadOnlySpan<byte>(inputBuffer, inputOffset, inputCount); 69ReadOnlySpan<byte> input = new ReadOnlySpan<byte>(inputBuffer, inputOffset, inputCount);
System\Security\Cryptography\CngKey.Import.cs (1)
111return Import(new ReadOnlySpan<byte>(keyBlob), curveName, format, provider);
System\Security\Cryptography\CryptographicOperations.cs (9)
132return HashData(hashAlgorithm, new ReadOnlySpan<byte>(source)); 435return HmacData(hashAlgorithm, new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source)); 583return HmacData(hashAlgorithm, new ReadOnlySpan<byte>(key), source); 879new ReadOnlySpan<byte>(key), 880new ReadOnlySpan<byte>(source), 881new ReadOnlySpan<byte>(hash)); 967return VerifyHmac(hashAlgorithm, new ReadOnlySpan<byte>(key), source, new ReadOnlySpan<byte>(hash));
System\Security\Cryptography\CryptoStream.cs (1)
319new ReadOnlySpan<byte>(_outputBuffer, 0, bytesToCopy).CopyTo(buffer.Span);
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\DSACryptoServiceProvider.Windows.cs (2)
413byte[] hashVal = SHA1.HashData(new ReadOnlySpan<byte>(buffer, offset, count)); 457return SHA1.HashData(new ReadOnlySpan<byte>(data, offset, count));
System\Security\Cryptography\DSAWrapper.cs (1)
156CryptographicOperations.HashData(hashAlgorithm, new ReadOnlySpan<byte>(data, offset, count));
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\ECDsaWrapper.cs (1)
181CryptographicOperations.HashData(hashAlgorithm, new ReadOnlySpan<byte>(data, offset, count));
System\Security\Cryptography\FixedMemoryKeyBox.cs (1)
20internal ReadOnlySpan<byte> DangerousKeySpan => new ReadOnlySpan<byte>((void*)handle, _length);
System\Security\Cryptography\HashAlgorithm.cs (1)
270new ReadOnlySpan<byte>(final).CopyTo(destination);
System\Security\Cryptography\HashProvider.cs (1)
29AppendHashData(new ReadOnlySpan<byte>(data, offset, count));
System\Security\Cryptography\HashStatic.cs (1)
28return HashData(new ReadOnlySpan<byte>(source));
System\Security\Cryptography\HMACStatic.cs (8)
45return HashData(new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source)); 114return HashData(new ReadOnlySpan<byte>(key), source); 167return Verify(new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source), new ReadOnlySpan<byte>(hash)); 196return Verify(new ReadOnlySpan<byte>(key), source, new ReadOnlySpan<byte>(hash));
System\Security\Cryptography\HpkeManagedKdfAdapter.cs (1)
242Append(shake, new ReadOnlySpan<byte>(in mode));
System\Security\Cryptography\IncrementalHash.cs (4)
63AppendData(new ReadOnlySpan<byte>(data)); 97AppendData(new ReadOnlySpan<byte>(data, offset, count)); 317return VerifyCurrentHash(new ReadOnlySpan<byte>(hash)); 348return VerifyHashAndReset(new ReadOnlySpan<byte>(hash));
System\Security\Cryptography\Kmac128.cs (4)
227return VerifyCurrentHash(new ReadOnlySpan<byte>(hash)); 265return VerifyHashAndReset(new ReadOnlySpan<byte>(hash)); 310return HashData(new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source), outputLength, customizationString);
System\Security\Cryptography\Kmac256.cs (4)
227return VerifyCurrentHash(new ReadOnlySpan<byte>(hash)); 265return VerifyHashAndReset(new ReadOnlySpan<byte>(hash)); 310return HashData(new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source), outputLength, customizationString);
System\Security\Cryptography\KmacStatic.cs (7)
57new ReadOnlySpan<byte>(key), 58new ReadOnlySpan<byte>(source), 59new ReadOnlySpan<byte>(hash), 60new ReadOnlySpan<byte>(customizationString)); // null to empty conversion is expected. 97new ReadOnlySpan<byte>(key), 99new ReadOnlySpan<byte>(hash), 100new ReadOnlySpan<byte>(customizationString)); // null to empty conversion is expected.
System\Security\Cryptography\KmacXof128.cs (4)
227return VerifyCurrentHash(new ReadOnlySpan<byte>(hash)); 265return VerifyHashAndReset(new ReadOnlySpan<byte>(hash)); 310return HashData(new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source), outputLength, customizationString);
System\Security\Cryptography\KmacXof256.cs (4)
227return VerifyCurrentHash(new ReadOnlySpan<byte>(hash)); 265return VerifyHashAndReset(new ReadOnlySpan<byte>(hash)); 310return HashData(new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source), outputLength, customizationString);
System\Security\Cryptography\RandomNumberGenerator.cs (2)
63new ReadOnlySpan<byte>(array, 0, data.Length).CopyTo(data); 89new ReadOnlySpan<byte>(array, 0, data.Length).CopyTo(data);
System\Security\Cryptography\Rfc2898DeriveBytes.cs (2)
100new ReadOnlySpan<byte>(password ?? throw new ArgumentNullException(nameof(password))), 101new ReadOnlySpan<byte>(salt ?? throw new ArgumentNullException(nameof(salt))),
System\Security\Cryptography\Rfc2898DeriveBytes.OneShot.cs (3)
50return Pbkdf2(new ReadOnlySpan<byte>(password), new ReadOnlySpan<byte>(salt), iterations, hashAlgorithm, outputLength); 169return Pbkdf2(password.AsSpan(), new ReadOnlySpan<byte>(salt), iterations, hashAlgorithm, outputLength);
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\RSABCrypt.cs (5)
126int written = Encrypt(new ReadOnlySpan<byte>(data), ret.AsSpan(), padding); 137return Decrypt(new ReadOnlySpan<byte>(data), padding); 152new ReadOnlySpan<byte>(hash), 173new ReadOnlySpan<byte>(hash), 174new ReadOnlySpan<byte>(signature),
System\Security\Cryptography\RSACryptoServiceProvider.Windows.cs (1)
416byte[] hashVal = CryptographicOperations.HashData(hashAlgorithmName, new ReadOnlySpan<byte>(buffer, offset, count));
System\Security\Cryptography\Shake128.cs (2)
65AppendData(new ReadOnlySpan<byte>(data)); 290return HashData(new ReadOnlySpan<byte>(source), outputLength);
System\Security\Cryptography\Shake256.cs (2)
65AppendData(new ReadOnlySpan<byte>(data)); 290return HashData(new ReadOnlySpan<byte>(source), outputLength);
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\X509Certificates\CertificateRequest.cs (2)
770return Create(issuerCertificate, notBefore, notAfter, new ReadOnlySpan<byte>(serialNumber)); 970return Create(issuerName, generator, notBefore, notAfter, new ReadOnlySpan<byte>(serialNumber));
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.cs (2)
106AddEntry(new ReadOnlySpan<byte>(serialNumber), revocationTime, reason); 229return RemoveEntry(new ReadOnlySpan<byte>(serialNumber));
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Load.cs (1)
48new ReadOnlySpan<byte>(currentCrl),
System\Security\Cryptography\X509Certificates\X509AuthorityKeyIdentifierExtension.cs (4)
223return CreateFromSubjectKeyIdentifier(new ReadOnlySpan<byte>(subjectKeyIdentifier)); 280return CreateFromIssuerNameAndSerialNumber(issuerName, new ReadOnlySpan<byte>(serialNumber)); 372new ReadOnlySpan<byte>(keyIdentifier), 374new ReadOnlySpan<byte>(serialNumber));
System\Security\Cryptography\X509Certificates\X509Certificate.cs (1)
62: this(new ReadOnlySpan<byte>(data))
System\Security\Cryptography\X509Certificates\X509CertificateLoader.netcore.cs (1)
15return LoadCertificate(new ReadOnlySpan<byte>(data));
System\Security\Cryptography\XmlKeyHelper.cs (1)
102WriteCryptoBinary(name, new ReadOnlySpan<byte>(in single), builder);
System.Security.Cryptography.Cose (5)
System\Security\Cryptography\Cose\CoseSign1Message.cs (2)
562return VerifyDetached(key, new ReadOnlySpan<byte>(detachedContent), new ReadOnlySpan<byte>(associatedData));
System\Security\Cryptography\Cose\CoseSignature.cs (2)
278return VerifyDetached(key, new ReadOnlySpan<byte>(detachedContent), new ReadOnlySpan<byte>(associatedData));
System\Security\Cryptography\Cose\PureDataToBeSignedBuilder.cs (1)
43operation(arg, new ReadOnlySpan<byte>(_stream.GetBuffer(), 0, checked((int)_stream.Length)));
System.Security.Cryptography.Pkcs (10)
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.DATA_BLOB.cs (1)
35internal unsafe ReadOnlySpan<byte> DangerousAsSpan() => new ReadOnlySpan<byte>((void*)pbData, (int)cbData);
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
65return GetAndTrimString(new ReadOnlySpan<char>((char*)nativeMsgPtr, length));
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
34new ReadOnlySpan<byte>(passwordBytes),
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (2)
133new ReadOnlySpan<byte>(passwordBytes), 196Decrypt(new ReadOnlySpan<byte>(passwordBytes));
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9LocalKeyId.cs (1)
27: this(new ReadOnlySpan<byte>(keyId))
System\Security\Cryptography\Pkcs\CmsSignature.DSA.cs (1)
158var signature = new ReadOnlySpan<byte>(rented, 0, bytesWritten);
System\Security\Cryptography\Pkcs\CmsSignature.ECDsa.cs (1)
173var signedHash = new ReadOnlySpan<byte>(rented, 0, bytesWritten);
System\Security\Cryptography\Pkcs\EnvelopedCms.cs (1)
127Decode(new ReadOnlySpan<byte>(encodedMessage));
System\Security\Cryptography\Pkcs\SignedCms.cs (1)
169Decode(new ReadOnlySpan<byte>(encodedMessage));
System.Security.Cryptography.ProtectedData (2)
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.DATA_BLOB.cs (1)
35internal unsafe ReadOnlySpan<byte> DangerousAsSpan() => new ReadOnlySpan<byte>((void*)pbData, (int)cbData);
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
65return GetAndTrimString(new ReadOnlySpan<char>((char*)nativeMsgPtr, length));
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\SingletonConnectionReader.cs (1)
546new ReadOnlySpan<byte>(localBuffer, 0, result).CopyTo(localDestination.Span);
System.Text.Encodings.Web (1)
System\Text\Encodings\Web\OptimizedInboxTextEncoder.cs (1)
96return GetIndexOfFirstCharToEncode(new ReadOnlySpan<char>(text, textLength)); // performs bounds checking
System.Text.Json (3)
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
82public ReadOnlySpan<byte> ActiveReadOnlySpan => new ReadOnlySpan<byte>(_bytes, _activeStart, _availableStart - _activeStart);
System\Text\Json\Serialization\Converters\Value\CharConverter.cs (2)
40new ReadOnlySpan<char>(in value) 57new ReadOnlySpan<char>(in value)
System.Text.RegularExpressions (4)
System\Text\RegularExpressions\Symbolic\BitVector.cs (4)
191MemoryExtensions.SequenceEqual(new ReadOnlySpan<ulong>(_blocks), new ReadOnlySpan<ulong>(other._blocks)); 195MemoryExtensions.SequenceCompareTo(new ReadOnlySpan<ulong>(_blocks), new ReadOnlySpan<ulong>(other._blocks));
System.Threading.AccessControl (1)
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
65return GetAndTrimString(new ReadOnlySpan<char>((char*)nativeMsgPtr, length));
System.Windows.Extensions (1)
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.DATA_BLOB.cs (1)
35internal unsafe ReadOnlySpan<byte> DangerousAsSpan() => new ReadOnlySpan<byte>((void*)pbData, (int)cbData);
System.Windows.Forms (6)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
1543new ReadOnlySpan<byte>(stream.GetBuffer(), 0, (int)stream.Length)));
System\Windows\Forms\ActiveX\DataStreamFromComStream.cs (1)
119ReadOnlySpan<byte> span = new(buffer, index, count);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
1037attr.SetRemapTable(ColorAdjustType.Bitmap, new ReadOnlySpan<(Color OldColor, Color NewColor)>(ref map));
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (1)
399? GetMultiselectFiles(new((char*)lpOFN->lpstrFile, (int)lpOFN->nMaxFile))
System\Windows\Forms\Rendering\ControlPaint.cs (2)
299ReadOnlySpan<ARGB> colors = new((ARGB*)data.Scan0, width * height); 1610attributes.SetRemapTable(ColorAdjustType.Bitmap, new ReadOnlySpan<(Color OldColor, Color NewColor)>(ref map));
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.EditorButton.cs (1)
132attributes.SetRemapTable(ColorAdjustType.Bitmap, new ReadOnlySpan<(Color OldColor, Color NewColor)>(ref map));
18950 references to ReadOnlySpan
AnalyzeCiFailure (3)
TransientJson.cs (3)
65internal static T ReadUtf8<T>(ReadOnlySpan<byte> bytes) => Read<T>(DecodeUtf8(bytes)); 67internal static string DecodeUtf8(ReadOnlySpan<byte> bytes) 132var remaining = value.AsSpan();
aspire (88)
Acquisition\IdentityChannelReader.cs (1)
150var digits = value.AsSpan(PrChannelPrefix.Length);
Acquisition\InstallationDiscovery.cs (1)
352var suffix = label.AsSpan(3);
Certificates\CertificateCacheWriter.cs (1)
15public static void WriteFile(string outputPath, ReadOnlySpan<byte> contents, ILogger logger)
Commands\GroupedHelpWriter.cs (1)
234var remaining = description.AsSpan();
Commands\ParseResultHelper.cs (1)
42internal void InsertCliOption(params ReadOnlySpan<string> tokens)
Documentation\ApiDocs\ApiSitemapParser.cs (2)
90var absolutePath = uri.AbsolutePath.AsSpan(); 99var remainder = absolutePath[route.PathPrefix.Length..];
Documentation\Docs\DocsIndexService.cs (5)
346var allText = doc.AllSearchableTextLower.AsSpan(); 718var textSpan = lowerText.AsSpan(); 731private static bool ContainsIdentityToken(ReadOnlySpan<char> textSpan, string token) 749private static bool ContainsWordBoundaryMatch(ReadOnlySpan<char> textSpan, string token) 838var textSpan = lowerText.AsSpan();
Documentation\Docs\LlmsTxtParser.cs (32)
140var span = content.AsSpan(); 236private static List<int> FindDocumentBoundaries(ReadOnlySpan<char> span, (int Start, int End)[] codeBlocks) 269private static bool IsDocumentBoundary(ReadOnlySpan<char> span) 277var titleLine = lineEnd >= 0 ? span[..lineEnd] : span; 278var title = ExtractHeadingText(titleLine); 305private static bool IsH1Start(ReadOnlySpan<char> span) 308var trimmed = span.TrimStart(); 333ReadOnlySpan<char> docSpan, 344var titleLine = firstNewline >= 0 ? docSpan[..firstNewline] : docSpan; 347var title = ExtractHeadingText(titleLine); 356var remaining = firstNewline >= 0 ? docSpan[(firstNewline + 1)..] : []; 378private static ReadOnlySpan<char> ExtractHeadingText(ReadOnlySpan<char> line) 380var trimmed = line.TrimStart(); 407private static string? FindSummary(ReadOnlySpan<char> content) 425var quoteLine = lineEnd >= 0 430var quoteText = quoteLine[1..].Trim(); 460private static List<LlmsSection> ParseSections(ReadOnlySpan<char> docSpan, (int Start, int End)[] codeBlocks) 500private static (int Start, int End)[] FindCodeBlockRegions(ReadOnlySpan<char> content) 601ReadOnlySpan<char> docSpan, 663private static (int Level, string Heading, int End)? TryParseHeading(ReadOnlySpan<char> content, int position) 665var remaining = content[position..]; 674var trimmed = remaining[whitespaceSkipped..]; 696var headingSpan = trimmed[textStart..]; 720var afterHeading = content[absoluteEnd..]; 736private static int FindHeadingTextEnd(ReadOnlySpan<char> headingSpan) 779private static int FindNextInlineHeadingMarker(ReadOnlySpan<char> span) 807private static int FindHeadingEnd(ReadOnlySpan<char> content, int startPosition) 809var span = content[startPosition..]; 835private static int FindNextPotentialHeading(ReadOnlySpan<char> content, int currentPosition) 837var remaining = content[currentPosition..]; 906var span = title.AsSpan();
Documentation\LexicalScoring.cs (2)
78var textSpan = lowerText.AsSpan(); 146ReadOnlySpan<char> text,
Mcp\Tools\McpToolHelpers.cs (7)
242var queryWithoutPrefix = query.AsSpan(1); 256var group = queryWithoutPrefix[groupStart..index]; 274ReadOnlySpan<char> group, 296ReadOnlySpan<char> parameter, 306var encodedKey = separatorIndex >= 0 ? parameter[..separatorIndex] : parameter; 312private static bool StartsQueryParameter(ReadOnlySpan<char> queryGroup, int startIndex) 314var remaining = queryGroup[startIndex..];
NuGet\NuGetClient.cs (1)
1127var suffix = key.AsSpan(prefix.Length);
NuGet\NuGetConfigurationBuilder.cs (1)
151ReadOnlySpan<byte> sourceIdentityKey)
Packaging\NuGetSourceIdentity.cs (1)
13public static string Compute(string source, ReadOnlySpan<byte> key)
Projects\AppHostCandidateFinder.cs (4)
309private static bool ContainsExcludedSegmentSequence(ReadOnlySpan<string> segments) 322private static bool ContainsContiguousSubsequence(ReadOnlySpan<string> segments, ReadOnlySpan<string> sequence) 366private static bool MatchesTrailingSegments(DirectoryInfo directory, ReadOnlySpan<string> sequence)
Projects\FallbackProjectParser.cs (1)
45var remaining = line.AsSpan().TrimStart('\uFEFF').TrimStart();
Projects\GuestRuntime.cs (1)
518var name = Path.GetFileName(directory.AsSpan());
src\Shared\BackchannelConstants.cs (2)
659private static string ToLowerHexIdentifier(ReadOnlySpan<byte> bytes, int length) 665private static string ToBase64UrlIdentifier(ReadOnlySpan<byte> bytes)
src\Shared\ConsoleLogs\AnsiParser.cs (7)
31var span = text.AsSpan(); 81var span = text.AsSpan(); 274private static bool IsControlSequence(ReadOnlySpan<char> span, ref int position, out char finalByte, out int[] parameters) 338private static bool IsConEmuSequence(ReadOnlySpan<char> span, ref int position) 383private static bool IsLinkControlSequence(ReadOnlySpan<char> span, ref int position, out string? url) 431var urlSpan = span[4..urlEndEscapePosition]; 853private static int SubIndexOfSpan(ReadOnlySpan<char> span, char value, int startIndex = 0)
src\Shared\ConsoleLogs\TimestampParser.cs (2)
19var span = text.AsSpan(); 21ReadOnlySpan<char> content;
src\Shared\DcpKubeconfigData.cs (3)
23var lines = content.AsSpan(); 26var line = lines[range].Trim(); 45private static string? ReadScalar(ReadOnlySpan<char> value)
src\Shared\SearchTextParser.cs (2)
146var span = search.AsSpan().Trim(); 380private static string ReadQuotedValue(ReadOnlySpan<char> span, ref int current)
Utils\EnvironmentChecker\TypeScriptAppHostToolingCheck.cs (2)
224var firstLine = output.AsSpan().TrimStart(); 237var version = firstLine[prefix.Length..].TrimStart();
Utils\Markdown\MarkdownToSpectreConverter.cs (8)
40private static ReadOnlySpan<char> GetOriginalMarkdownSpan(SourceSpan span, string markdown) 43? ReadOnlySpan<char>.Empty 47private static string StripHtmlTags(ReadOnlySpan<char> text) 57private static void AppendEscapedMarkup(StringBuilder builder, ReadOnlySpan<char> text) 248var valueSpan = value.AsSpan(); 252var chunkSpan = chunk.Span; 307var content = literal.Content.AsSpan(); 344static void Append(StringBuilder sb, ReadOnlySpan<char> text, bool escaped)
aspire-tray (2)
src\Aspire.Tray\Common\TrayPanelPalette.cs (1)
16var span = hex.AsSpan().TrimStart('#');
src\Aspire.Tray\Common\WindowsTrayStartupSettings.cs (1)
60var tail = registration.AsSpan(prefix.Length);
Aspire.Azure.Npgsql (2)
src\Components\Common\ManagedIdentityTokenCredentialHelpers.cs (2)
129var beginning = xms_mirid.AsSpan(0, lastSlashIndex); 130var principalName = xms_mirid.AsSpan(lastSlashIndex + 1);
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (2)
src\Components\Common\ManagedIdentityTokenCredentialHelpers.cs (2)
129var beginning = xms_mirid.AsSpan(0, lastSlashIndex); 130var principalName = xms_mirid.AsSpan(lastSlashIndex + 1);
Aspire.Cli.Tests (1)
Utils\CliTestHelper.cs (1)
962var remaining = message.AsSpan();
Aspire.Dashboard (42)
Components\ComponentTelemetryContext.cs (1)
70public bool UpdateTelemetryProperties(ReadOnlySpan<ComponentTelemetryProperty> modifiedProperties, ILogger logger)
Extensions\StringExtensions.cs (1)
44var s = name.AsSpan().Trim();
Model\GenAI\GenAIVisualizerDialogViewModel.cs (1)
469var remainder = attr.Key.AsSpan(prefix.Length);
Model\Markdown\MarkdownHelpers.cs (2)
215var content = previousInline.Content.AsSpan(); 280static bool IsEmphasisStart(ReadOnlySpan<char> text)
Model\TextVisualizerViewModel.cs (2)
217private static bool DecimalPreservesRawText(decimal value, ReadOnlySpan<byte> rawNumber) 263var span = input.AsSpan(i.Value);
Otlp\Model\MetricValues\HistogramBuckets.cs (8)
11public static bool Add(ref ulong[]? counts, ref double[]? bounds, ReadOnlySpan<ulong> incomingCounts, 12double[] incomingBounds, ReadOnlySpan<ulong> previousCounts) 57public static bool AddBounds(ref double[]? bounds, ReadOnlySpan<ulong> incomingCounts, 58double[] incomingBounds, ReadOnlySpan<ulong> previousCounts) 69private static bool HasObservations(ReadOnlySpan<ulong> incomingCounts, ReadOnlySpan<ulong> previousCounts) 87private static void AddBuckets(ulong[] destination, ReadOnlySpan<ulong> counts, double[] bounds, 88double[] sharedBounds, ReadOnlySpan<ulong> previousCounts)
Otlp\Model\OtlpHelpers.cs (2)
159var data = bytes.Span; 401public static string? GetValueWithFallback(this KeyValuePair<string, string>[] values, params ReadOnlySpan<string> names)
Otlp\Model\OtlpUnits.cs (2)
104public static string MapUnit(ReadOnlySpan<char> unit) 153public static string MapPerUnit(ReadOnlySpan<char> perUnit)
Otlp\Model\Serialization\OtlpJsonProtobufConverter.cs (1)
874var hexSpan = hex.AsSpan();
Otlp\Storage\SqliteTelemetryRepository.Metrics.Writes.cs (6)
688private static long GetMetricDimensionAttributeHash(ReadOnlySpan<KeyValuePair<string, string>> attributes) 709private static byte[] PackUInt64Values(ReadOnlySpan<ulong> values) 719private static byte[] PackDoubleValues(ReadOnlySpan<double> values) 729private static ulong[] UnpackUInt64Values(ReadOnlySpan<byte> bytes) 740private static double[] UnpackDoubleValues(ReadOnlySpan<byte> bytes) 751private static void ValidatePackedValueLength(ReadOnlySpan<byte> bytes)
ServiceClient\TracingSqliteConnection.cs (2)
96var querySpan = query.AsSpan(); 130var operationSpan = separatorIndex >= 0 ? querySpan[..separatorIndex] : querySpan;
src\Shared\ConsoleLogs\AnsiParser.cs (7)
31var span = text.AsSpan(); 81var span = text.AsSpan(); 274private static bool IsControlSequence(ReadOnlySpan<char> span, ref int position, out char finalByte, out int[] parameters) 338private static bool IsConEmuSequence(ReadOnlySpan<char> span, ref int position) 383private static bool IsLinkControlSequence(ReadOnlySpan<char> span, ref int position, out string? url) 431var urlSpan = span[4..urlEndEscapePosition]; 853private static int SubIndexOfSpan(ReadOnlySpan<char> span, char value, int startIndex = 0)
src\Shared\ConsoleLogs\TimestampParser.cs (2)
19var span = text.AsSpan(); 21ReadOnlySpan<char> content;
src\Shared\SearchTextParser.cs (2)
146var span = search.AsSpan().Trim(); 380private static string ReadQuotedValue(ReadOnlySpan<char> span, ref int current)
Utils\DashboardUIHelpers.cs (1)
131var authority = url.AsSpan(authorityStart);
Utils\SqliteBatchInsert.cs (1)
175internal delegate void BindRowParameters<in T>(T row, ReadOnlySpan<DbParameter> parameters);
Utils\UrlValidationHelper.cs (1)
69static bool HasControlCharacter(ReadOnlySpan<char> readOnlySpan)
Aspire.Dashboard.Playwright.Tests (1)
tests\Aspire.Dashboard.Tests\Shared\TerminalTestProducer.cs (1)
202private void Observe(ReadOnlySpan<byte> data)
Aspire.Dashboard.Tests (1)
Shared\TerminalTestProducer.cs (1)
202private void Observe(ReadOnlySpan<byte> data)
Aspire.Hosting (54)
Dcp\DcpHost.cs (2)
567(ILogger, LogLevel, string message) GetLogInfo(ReadOnlySpan<byte> line) 599while (seq.TryReadTo(out ReadOnlySpan<byte> line, (byte)'\n'))
Dcp\DcpLogParser.cs (6)
25public static bool TryParseDcpLog(ReadOnlySpan<byte> line, out string message, out LogLevel logLevel, out string category) 39public static bool TryParseDcpLog(ReadOnlySpan<byte> line, out string message, out LogLevel logLevel, out string category, out DateTimeOffset? timestamp) 58var timestampBytes = line[..tab]; 67var level = line[..tab]; 76var categorySpan = line[..tab]; 85var messageSpan = line;
Diagnostics\ProfilingTelemetry.cs (1)
797internal void AddAppHostStartupEvents(ReadOnlySpan<AppHostStartupEvent> events)
Pipelines\GitPipelineOutputReader.cs (29)
40var output = result.StandardOutput.AsSpan(); 55var flag = output[lines[0]]; 57var pathToRoot = output[lines[1]]; 59var parents = pathToRoot; 122if (!TryGetRecordPayload(output.AsSpan(), out var records)) 151if (!TryGetRecordPayload(output.AsSpan(), out var records)) 161var path = records[range]; 177if (!TryGetRecordPayload(output.AsSpan(), out var records)) 203var id = output.AsSpan().TrimEnd("\r\n"); 224var path = file.FullName.AsSpan(); 244internal static void ThrowIfUnsupportedPath(ReadOnlySpan<char> path) 252private static ReadOnlyMemory<byte>[] ReadObjectIds(ReadOnlySpan<char> output) 255foreach (var line in output.EnumerateLines()) 270private static bool TryParseObjectId(ReadOnlySpan<char> id, out ReadOnlyMemory<byte> hash) 286private static bool IsMode(ReadOnlySpan<char> mode) => mode.Length == 6 && mode.IndexOfAnyExcept(s_octalDigits) < 0; 292internal static void ThrowMalformed(string kind, string field, ReadOnlySpan<char> value, IEnumerable<KeyValuePair<string, object?>>? additionalData = null) 312private static bool TryGetRecordPayload(ReadOnlySpan<char> output, out ReadOnlySpan<char> records) 355internal static IndexEntry Parse(ReadOnlySpan<char> record) 362var header = tab > 0 ? record[..tab] : []; 368var tag = header[fields[0]]; 369var mode = header[fields[1]]; 370var objectId = header[fields[2]]; 371var stage = header[fields[3]]; 372var path = record[(tab + 1)..]; 395internal static StatusEntry Parse(ReadOnlySpan<char> record) 413var status = record[fields[1]]; 414var workingTreeMode = record[fields[ordinary ? 5 : 6]]; 415var path = record[fields[^1]];
ResourceTraitBuilderExtensions.cs (1)
40public static IResourceBuilder<T> WithTags<T>(this IResourceBuilder<T> builder, params ReadOnlySpan<string> tags) where T : IResource
src\Shared\BackchannelConstants.cs (2)
659private static string ToLowerHexIdentifier(ReadOnlySpan<byte> bytes, int length) 665private static string ToBase64UrlIdentifier(ReadOnlySpan<byte> bytes)
src\Shared\ConsoleLogs\AnsiParser.cs (7)
31var span = text.AsSpan(); 81var span = text.AsSpan(); 274private static bool IsControlSequence(ReadOnlySpan<char> span, ref int position, out char finalByte, out int[] parameters) 338private static bool IsConEmuSequence(ReadOnlySpan<char> span, ref int position) 383private static bool IsLinkControlSequence(ReadOnlySpan<char> span, ref int position, out string? url) 431var urlSpan = span[4..urlEndEscapePosition]; 853private static int SubIndexOfSpan(ReadOnlySpan<char> span, char value, int startIndex = 0)
src\Shared\ConsoleLogs\TimestampParser.cs (2)
19var span = text.AsSpan(); 21ReadOnlySpan<char> content;
src\Shared\TerminalHost\TerminalHostPaths.cs (2)
157var candidate = fileName.AsSpan(0, fileName.Length - extension.Length); 177private static string ToBase64UrlIdentifier(ReadOnlySpan<byte> bytes)
Utils\HashDigestStream.cs (1)
36public override void Write(ReadOnlySpan<byte> buffer)
VolumeNameGenerator.cs (1)
42var nameSpan = name.AsSpan();
Aspire.Hosting.Azure.Kusto (1)
AzureKustoEmulatorContainerDefaults.cs (1)
28var root = persistencePathRoot.AsSpan().TrimEnd('/');
Aspire.Hosting.Blazor (1)
BlazorGatewayExtensions.cs (1)
720var majorText = versionSeparator > 3
Aspire.Hosting.Browsers (22)
BrowserLogsCdpConnection.cs (1)
354private delegate TResult ResponseParser<TResult>(ReadOnlySpan<byte> framePayload);
BrowserLogsCdpProtocol.cs (21)
61internal static BrowserLogsCdpProtocolMessageHeader ParseMessageHeader(ReadOnlySpan<byte> framePayload) 149internal static BrowserLogsCdpProtocolEvent? ParseEvent(BrowserLogsCdpProtocolMessageHeader header, ReadOnlySpan<byte> framePayload) => header.Method switch 165internal static BrowserLogsCreateTargetResult ParseCreateTargetResponse(ReadOnlySpan<byte> framePayload) 173internal static BrowserLogsAttachToTargetResult ParseAttachToTargetResponse(ReadOnlySpan<byte> framePayload) 181internal static BrowserLogsGetTargetsResult ParseGetTargetsResponse(ReadOnlySpan<byte> framePayload) 189internal static BrowserLogsCommandAck ParseCommandAckResponse(ReadOnlySpan<byte> framePayload) 197internal static BrowserLogsCaptureScreenshotResult ParseCaptureScreenshotResponse(ReadOnlySpan<byte> framePayload) 211internal static string DescribeFrame(ReadOnlySpan<byte> framePayload, int maxLength = 512) 219private static BrowserLogsConsoleApiCalledEvent? CreateConsoleApiCalledEvent(ReadOnlySpan<byte> framePayload) 225private static BrowserLogsExceptionThrownEvent? CreateExceptionThrownEvent(ReadOnlySpan<byte> framePayload) 231private static BrowserLogsLogEntryAddedEvent? CreateLogEntryAddedEvent(ReadOnlySpan<byte> framePayload) 237private static BrowserLogsRequestWillBeSentEvent? CreateRequestWillBeSentEvent(ReadOnlySpan<byte> framePayload) 243private static BrowserLogsResponseReceivedEvent? CreateResponseReceivedEvent(ReadOnlySpan<byte> framePayload) 249private static BrowserLogsLoadingFinishedEvent? CreateLoadingFinishedEvent(ReadOnlySpan<byte> framePayload) 255private static BrowserLogsLoadingFailedEvent? CreateLoadingFailedEvent(ReadOnlySpan<byte> framePayload) 261private static BrowserLogsTargetDestroyedEvent? CreateTargetDestroyedEvent(ReadOnlySpan<byte> framePayload) 267private static BrowserLogsTargetCrashedEvent? CreateTargetCrashedEvent(ReadOnlySpan<byte> framePayload) 273private static BrowserLogsDetachedFromTargetEvent? CreateDetachedFromTargetEvent(ReadOnlySpan<byte> framePayload) 279private static BrowserLogsInspectorDetachedEvent? CreateInspectorDetachedEvent(ReadOnlySpan<byte> framePayload) 286ReadOnlySpan<byte> framePayload, 299private static T DeserializeFrame<T>(ReadOnlySpan<byte> framePayload, JsonTypeInfo<T> jsonTypeInfo)
Aspire.Hosting.Browsers.Tests (22)
src\Aspire.Hosting.Browsers\BrowserLogsCdpConnection.cs (1)
354private delegate TResult ResponseParser<TResult>(ReadOnlySpan<byte> framePayload);
src\Aspire.Hosting.Browsers\BrowserLogsCdpProtocol.cs (21)
61internal static BrowserLogsCdpProtocolMessageHeader ParseMessageHeader(ReadOnlySpan<byte> framePayload) 149internal static BrowserLogsCdpProtocolEvent? ParseEvent(BrowserLogsCdpProtocolMessageHeader header, ReadOnlySpan<byte> framePayload) => header.Method switch 165internal static BrowserLogsCreateTargetResult ParseCreateTargetResponse(ReadOnlySpan<byte> framePayload) 173internal static BrowserLogsAttachToTargetResult ParseAttachToTargetResponse(ReadOnlySpan<byte> framePayload) 181internal static BrowserLogsGetTargetsResult ParseGetTargetsResponse(ReadOnlySpan<byte> framePayload) 189internal static BrowserLogsCommandAck ParseCommandAckResponse(ReadOnlySpan<byte> framePayload) 197internal static BrowserLogsCaptureScreenshotResult ParseCaptureScreenshotResponse(ReadOnlySpan<byte> framePayload) 211internal static string DescribeFrame(ReadOnlySpan<byte> framePayload, int maxLength = 512) 219private static BrowserLogsConsoleApiCalledEvent? CreateConsoleApiCalledEvent(ReadOnlySpan<byte> framePayload) 225private static BrowserLogsExceptionThrownEvent? CreateExceptionThrownEvent(ReadOnlySpan<byte> framePayload) 231private static BrowserLogsLogEntryAddedEvent? CreateLogEntryAddedEvent(ReadOnlySpan<byte> framePayload) 237private static BrowserLogsRequestWillBeSentEvent? CreateRequestWillBeSentEvent(ReadOnlySpan<byte> framePayload) 243private static BrowserLogsResponseReceivedEvent? CreateResponseReceivedEvent(ReadOnlySpan<byte> framePayload) 249private static BrowserLogsLoadingFinishedEvent? CreateLoadingFinishedEvent(ReadOnlySpan<byte> framePayload) 255private static BrowserLogsLoadingFailedEvent? CreateLoadingFailedEvent(ReadOnlySpan<byte> framePayload) 261private static BrowserLogsTargetDestroyedEvent? CreateTargetDestroyedEvent(ReadOnlySpan<byte> framePayload) 267private static BrowserLogsTargetCrashedEvent? CreateTargetCrashedEvent(ReadOnlySpan<byte> framePayload) 273private static BrowserLogsDetachedFromTargetEvent? CreateDetachedFromTargetEvent(ReadOnlySpan<byte> framePayload) 279private static BrowserLogsInspectorDetachedEvent? CreateInspectorDetachedEvent(ReadOnlySpan<byte> framePayload) 286ReadOnlySpan<byte> framePayload, 299private static T DeserializeFrame<T>(ReadOnlySpan<byte> framePayload, JsonTypeInfo<T> jsonTypeInfo)
Aspire.Hosting.DevTunnels (2)
src\Shared\ConsoleLogs\TimestampParser.cs (2)
19var span = text.AsSpan(); 21ReadOnlySpan<char> content;
Aspire.Hosting.Docker (18)
EnvFile.cs (3)
50var trimmedValue = value.AsSpan().TrimStart(); 90var trimmedSuffix = suffix.AsSpan().TrimStart(); 146private static int FindClosingQuote(ReadOnlySpan<char> value, char quote)
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)
Aspire.Hosting.Dotnet (2)
src\Shared\ConsoleLogs\TimestampParser.cs (2)
19var span = text.AsSpan(); 21ReadOnlySpan<char> content;
Aspire.Hosting.EntityFrameworkCore (2)
EFCoreOperationExecutor.cs (1)
535var prefix = content.AsSpan(0, PrefixLength);
EFMigrationResourceBuilderExtensions.cs (1)
521var versionSpan = tfm.AsSpan(3);
Aspire.Hosting.Java (5)
JavaDockerfileGenerator.cs (2)
853var trimmed = line.AsSpan().TrimStart(); 991var wrapperDirectory = Path.GetDirectoryName(wrapper.AsSpan());
JavaHostingExtensions.cs (1)
2085foreach (var fileName in (ReadOnlySpan<string>)["settings.gradle", "settings.gradle.kts"])
JavaVersionDetector.cs (2)
522var configuredTarget = script.Text.AsSpan( 1052var word = contents.AsSpan(index + 1, wordEnd - index - 1);
Aspire.Hosting.JavaScript (6)
DenoHostingExtensions.cs (4)
737var name = arg.AsSpan(); 755ReadOnlySpan<char> name, 837var name = arg.AsSpan(); 1150var name = arg.AsSpan();
JavaScriptHostingExtensions.cs (2)
2700var version = packageManager.AsSpan("pnpm@".Length); 2701ReadOnlySpan<char> integrity = default;
Aspire.Hosting.Kubernetes (1)
KubernetesManifestResource.cs (1)
115private static void SetField(Dictionary<string, object?> fields, ReadOnlySpan<string> segments, string path, object? value)
Aspire.Hosting.Native.Core.AotSmoke (1)
tests\Aspire.Hosting.Native.Core.Tests\TestServices\DiagnosticCapture.cs (1)
90private void Record(Instrument instrument, double value, ReadOnlySpan<KeyValuePair<string, object?>> tags)
Aspire.Hosting.Native.Core.Tests (1)
TestServices\DiagnosticCapture.cs (1)
90private void Record(Instrument instrument, double value, ReadOnlySpan<KeyValuePair<string, object?>> tags)
Aspire.Hosting.Native.Server (11)
Dcp\DcpProtocol.cs (2)
11public static string[] ParseCompleteLogLines(ReadOnlySpan<char> text) 16var complete = text[..completeLength];
Rpc\NativeRpcFrameProtocol.cs (4)
14public static int ReadContentLength(ReadOnlySpan<byte> headers, int maximumRequestBytes) 22var line = headers[range]; 28var name = line[..separator]; 31var value = line[(separator + 1)..];
src\Shared\BackchannelConstants.cs (2)
659private static string ToLowerHexIdentifier(ReadOnlySpan<byte> bytes, int length) 665private static string ToBase64UrlIdentifier(ReadOnlySpan<byte> bytes)
src\Shared\DcpKubeconfigData.cs (3)
23var lines = content.AsSpan(); 26var line = lines[range].Trim(); 45private static string? ReadScalar(ReadOnlySpan<char> value)
Aspire.Hosting.Tests (1)
ResourceTraitBuilderTests.cs (1)
90ReadOnlySpan<string> tags = ["Finance", "Platform"];
Aspire.Templates.Tests (7)
src\Shared\ConsoleLogs\AnsiParser.cs (7)
31var span = text.AsSpan(); 81var span = text.AsSpan(); 274private static bool IsControlSequence(ReadOnlySpan<char> span, ref int position, out char finalByte, out int[] parameters) 338private static bool IsConEmuSequence(ReadOnlySpan<char> span, ref int position) 383private static bool IsLinkControlSequence(ReadOnlySpan<char> span, ref int position, out string? url) 431var urlSpan = span[4..urlEndEscapePosition]; 853private static int SubIndexOfSpan(ReadOnlySpan<char> span, char value, int startIndex = 0)
Aspire.TerminalHost (2)
src\Shared\TerminalHost\TerminalHostPaths.cs (2)
157var candidate = fileName.AsSpan(0, fileName.Length - extension.Length); 177private static string ToBase64UrlIdentifier(ReadOnlySpan<byte> bytes)
Aspire.Tray.Tests (3)
src\Aspire.Tray\Common\TrayPanelPalette.cs (1)
16var span = hex.AsSpan().TrimStart('#');
src\Aspire.Tray\Common\WindowsTrayStartupSettings.cs (1)
60var tail = registration.AsSpan(prefix.Length);
src\Aspire.Tray\Linux\LinuxStatusNotifierItem.cs (1)
204private static unsafe nint Tuple(ReadOnlySpan<nint> children)
cdac-build-tool (13)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\RegexGenerator.g.cs (8)
89protected override void Scan(ReadOnlySpan<char> inputSpan) 107private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 132private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 137ReadOnlySpan<char> slice = inputSpan.Slice(pos); 231protected override void Scan(ReadOnlySpan<char> inputSpan) 249private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 274private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 279ReadOnlySpan<char> slice = inputSpan.Slice(pos);
ObjectFileScraper.cs (5)
83private static bool FindMagic(ReadOnlySpan<byte> buffer, out int offset, out bool isLittleEndian) 109public ReadOnlySpan<byte> GetBytes(long offset, int length) => Data.Span.Slice((int)offset, length); 341var nameStart = NamesPool.Span.Slice((int)stringIdx); 345var nameBytes = nameStart.Slice(0, end); 648private static bool CheckEndMagic(ReadOnlySpan<byte> bytes)
ConfigurationSchemaGenerator (2)
RuntimeSource\Roslyn\GetBestTypeByMetadataName.cs (1)
160public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span)
RuntimeSource\SourceGenerators\ImmutableEquatableArray.cs (1)
28=> other != null && ((ReadOnlySpan<T>)_values).SequenceEqual(other._values);
crossgen2 (1)
Program.cs (1)
960private static ReadOnlySpan<byte> s_ecmaKey => new byte[] { 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0 };
dotnet-aot (13)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\RegexGenerator.g.cs (8)
103protected override void Scan(ReadOnlySpan<char> inputSpan) 115private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 137private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 154ReadOnlySpan<char> slice = inputSpan.Slice(pos); 480protected override void Scan(ReadOnlySpan<char> inputSpan) 498private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 523private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 528ReadOnlySpan<char> slice = inputSpan.Slice(pos);
parent\dotnet\Commands\Test\MTP\Logger.cs (2)
40public void AppendFormatted(ReadOnlySpan<char> value) => _stringBuilderHandler.AppendFormatted(value); 42public void AppendFormatted(ReadOnlySpan<char> value, int alignment = 0, string? format = null) => _stringBuilderHandler.AppendFormatted(value, alignment, format);
parent\dotnet\Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.cs (1)
563ReadOnlySpan<char> optionName = separatorIndex >= 0 ? option.AsSpan(0, separatorIndex) : option;
parent\dotnet\Extensions\ParseResultExtensions.cs (1)
182static bool ErrorContainsAllParts(ReadOnlySpan<char> error, string[] parts)
src\sdk\src\Common\EnvironmentVariableNames.cs (1)
104var span = runtimeIdentifier.AsSpan(archStart, (archEnd > 0 ? archEnd : runtimeIdentifier.Length) - archStart);
dotnet-dev-certs (12)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\RegexGenerator.g.cs (12)
115protected override void Scan(ReadOnlySpan<char> inputSpan) 133private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 158private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 163ReadOnlySpan<char> slice = inputSpan.Slice(pos); 275protected override void Scan(ReadOnlySpan<char> inputSpan) 287private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 309private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 313ReadOnlySpan<char> slice = inputSpan.Slice(pos); 407protected override void Scan(ReadOnlySpan<char> inputSpan) 425private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 448private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 456ReadOnlySpan<char> slice = inputSpan.Slice(pos);
dotnet-watch (1)
Watch\BuildEvaluator.cs (1)
206var extension = Path.GetExtension(fileName.AsSpan());
EventSourceGenerator (1)
EventSourceGenerator.Parser.cs (1)
169ReadOnlySpan<byte> namespaceBytes = new byte[] // rely on C# compiler optimization to remove byte[] allocation
GenerateDocumentationAndConfigFiles (69)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
826public static string CollapseWithForwardSlash(ReadOnlySpan<char> path)
src\roslyn\src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
53public abstract void Append(ReadOnlySpan<byte> source);
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHash128.cs (6)
77public static byte[] Hash(ReadOnlySpan<byte> source, long seed = 0) 90public static int Hash(ReadOnlySpan<byte> source, Span<byte> destination, long seed = 0) 106public static bool TryHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, long seed = 0) 126public static UInt128 HashToUInt128(ReadOnlySpan<byte> source, long seed = 0) 133private static Hash128 HashToHash128(ReadOnlySpan<byte> source, long seed = 0) 165public override void Append(ReadOnlySpan<byte> source)
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHashShared.cs (2)
42public static ReadOnlySpan<byte> DefaultSecret => 249public static void Append(ref State state, ReadOnlySpan<byte> source)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
102public void AppendFormatted(ReadOnlySpan<char> value) => _builder!.Append(value.ToString());
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
48private static int IndexOfExtension(ReadOnlySpan<char> path)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Hash.cs (4)
229internal static int GetFNVHashCode(ReadOnlySpan<byte> data, out bool isAscii) 272internal static int GetFNVHashCode(ReadOnlySpan<char> data) 295internal static int GetCaseInsensitiveFNVHashCode(ReadOnlySpan<char> data) 401internal static int CombineFNVHash(int hashCode, ReadOnlySpan<char> data)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\HexUtilities.cs (4)
11internal static string ToHexString(ReadOnlySpan<byte> bytes) 14internal static string ToHexStringLower(ReadOnlySpan<byte> bytes) 17private static string ToHexString(ReadOnlySpan<byte> bytes, bool upperCase) 29static void toHex(ReadOnlySpan<byte> source, Span<char> destination, char firstHexLetter)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (1)
22public static bool Equals(ReadOnlySpan<char> x, ReadOnlyMemory<char> y)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (8)
122internal string Add(ReadOnlySpan<char> chars) 199private static string? FindSharedEntry(ReadOnlySpan<char> chars, int hashCode) 237private static string? FindSharedEntryASCII(int hashCode, ReadOnlySpan<byte> asciiChars) 313private string AddItem(ReadOnlySpan<char> chars, int hashCode) 389internal static string AddSharedUtf8(ReadOnlySpan<byte> bytes) 405private static string AddSharedSlow(int hashCode, ReadOnlySpan<byte> utf8Bytes, bool isAscii) 529internal static bool TextEqualsASCII(string text, ReadOnlySpan<byte> ascii) 554internal static bool TextEquals(string array, ReadOnlySpan<char> text)
src\roslyn\src\Dependencies\Collections\Extensions\MemoryExtensions.cs (2)
15/// Variant of <see cref="System.MemoryExtensions.BinarySearch{T, TComparer}(ReadOnlySpan{T}, T, TComparer)"/>. 17public static int BinarySearch<TElement, TValue>(this ReadOnlySpan<TElement> span, TValue value, Func<TElement, TValue, int> comparer)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
194ReadOnlySpan<KeyValuePair<TKey, TValue>> span;
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (2)
183public void AddWork(ReadOnlySpan<TItem> items, bool cancelExistingWork = false) 210void AddItemsToBatch(ReadOnlySpan<TItem> items)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PathHelper.cs (2)
15public static ReadOnlySpan<char> GetFileName(string? path) 18return ReadOnlySpan<char>.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
96private static bool TryParseNotification(ReadOnlySpan<char> value, out NotificationOption2 notification)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (1)
138/// <item>They must have a final parameter that is the <see cref="ReadOnlySpan{T}"/> containing the elements of the
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\IMetricSink.cs (2)
23void Count(string eventName, string metricName, long delta, ReadOnlySpan<KeyValuePair<string, object?>> tags); 28void Record(string eventName, string metricName, long value, ReadOnlySpan<KeyValuePair<string, object?>> tags);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\RoslynTelemetry_Metrics.cs (4)
71public void Count(FunctionId functionId, string metricName, long delta, ReadOnlySpan<KeyValuePair<string, object?>> tags) 74private void CountCore(FunctionId functionId, string metricName, long delta, ReadOnlySpan<KeyValuePair<string, object?>> tags) 113public void Record(FunctionId functionId, string metricName, long value, ReadOnlySpan<KeyValuePair<string, object?>> tags) 116private void RecordCore(FunctionId functionId, string metricName, long value, ReadOnlySpan<KeyValuePair<string, object?>> tags)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (3)
325/// cref="ReadOnlySpan{T}">ReadOnlySpan</see>&lt;<see cref="byte"/>&gt;, and deserialized to a byte array. 328public void WriteSpan(ReadOnlySpan<byte> span) 365ReadOnlySpan<T> span,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
364var keySpan1 = _symbolKeyData.AsSpan(position1); 365var keySpan2 = other._symbolKeyData.AsSpan(position2);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Base64Utilities.cs (4)
20private static ReadOnlySpan<sbyte> DecodingMap => 79public static bool TryFromBase64Chars(ReadOnlySpan<char> chars, Span<byte> bytes, out int bytesWritten) 173private static void CopyToTempBufferWithoutWhiteSpace(ReadOnlySpan<char> chars, Span<char> tempBuffer, out int consumed, out int charsWritten) 194private static bool TryDecodeFromUtf16(ReadOnlySpan<char> utf16, Span<byte> bytes, out int consumed, out int written)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (4)
168public static int GetEditDistance(ReadOnlySpan<char> source, ReadOnlySpan<char> target, int threshold = int.MaxValue) 175private static int GetEditDistanceWorker(ReadOnlySpan<char> source, ReadOnlySpan<char> target, int threshold)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringBreaker.cs (9)
17public static void AddWordParts(ReadOnlySpan<char> identifier, ref TemporaryArray<TextSpan> parts) 20public static void AddCharacterParts(ReadOnlySpan<char> identifier, ref TemporaryArray<TextSpan> parts) 23public static void AddParts(ReadOnlySpan<char> text, bool word, ref TemporaryArray<TextSpan> parts) 41public static TextSpan GenerateSpan(ReadOnlySpan<char> identifier, int wordStart, bool word) 81private static TextSpan ScanCharacterRun(ReadOnlySpan<char> identifier, int length, int wordStart) 102private static TextSpan ScanWordRun(ReadOnlySpan<char> identifier, int length, int wordStart) 151private static TextSpan ScanLowerCaseRun(ReadOnlySpan<char> identifier, int length, int wordStart) 162private static TextSpan ScanNumber(ReadOnlySpan<char> identifier, int length, int wordStart) 173private static int SkipPunctuation(ReadOnlySpan<char> identifier, int length, int wordStart)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
295=> compilation.GetTypeByMetadataName(typeof(ReadOnlySpan<>).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (2)
751or nameof(ReadOnlySpan<>) 794Name: nameof(ReadOnlySpan<>),
ilasm (1)
NativeCommandLine.cs (1)
233ReadOnlySpan<char> option = arg.AsSpan(1);
ilc (15)
parent\parent\Common\TypeSystem\IL\HelperExtensions.cs (15)
16private static ReadOnlySpan<byte> HelperTypesNamespace => "Internal.Runtime.CompilerHelpers"u8; 18public static MetadataType GetHelperType(this TypeSystemContext context, ReadOnlySpan<byte> name) 24public static MetadataType GetOptionalHelperType(this TypeSystemContext context, ReadOnlySpan<byte> name) 30public static MethodDesc GetHelperEntryPoint(this TypeSystemContext context, ReadOnlySpan<byte> typeName, ReadOnlySpan<byte> methodName) 37public static MethodDesc GetCoreLibEntryPoint(this TypeSystemContext context, ReadOnlySpan<byte> namespaceName, ReadOnlySpan<byte> typeName, ReadOnlySpan<byte> methodName, MethodSignature signature) 43public static MethodDesc GetOptionalHelperEntryPoint(this TypeSystemContext context, ReadOnlySpan<byte> typeName, ReadOnlySpan<byte> methodName) 74public static MethodDesc GetKnownMethod(this TypeDesc type, ReadOnlySpan<byte> name, MethodSignature signature) 89public static FieldDesc GetKnownField(this TypeDesc type, ReadOnlySpan<byte> name) 104public static MetadataType GetKnownNestedType(this MetadataType type, ReadOnlySpan<byte> name) 119public static MetadataType GetKnownType(this ModuleDesc module, ReadOnlySpan<byte> @namespace, ReadOnlySpan<byte> name)
ILCompiler.Compiler (135)
Compiler\CompilerTypeSystemContext.InterfaceThunks.cs (1)
232public ReadOnlySpan<byte> Prefix => _prefix;
Compiler\DelegateCreationInfo.cs (1)
243ReadOnlySpan<byte> initializeMethodName = "InitializeClosedInstance"u8;
Compiler\DependencyAnalysis\CustomAttributeBasedDependencyAlgorithm.cs (3)
28private static IMethodNode GetMetadataApiDependency(NodeFactory factory, ReadOnlySpan<byte> entityName, ReadOnlySpan<byte> propertyName) 31private static IMethodNode GetMetadataApiDependency(NodeFactory factory, ReadOnlySpan<byte> entityName)
Compiler\DependencyAnalysis\InlineableStringsResourceNode.cs (3)
22public static ReadOnlySpan<byte> ResourceAccessorTypeName => "SR"u8; 23public static ReadOnlySpan<byte> ResourceAccessorTypeNamespace => "System"u8; 24public static ReadOnlySpan<byte> ResourceAccessorGetStringMethodName => "GetResourceString"u8;
Compiler\LibraryInitializers.cs (3)
18private static ReadOnlySpan<byte> LibraryInitializerContainerNamespaceName => "Internal.Runtime.CompilerHelpers"u8; 19private static ReadOnlySpan<byte> LibraryInitializerContainerTypeName => "LibraryInitializer"u8; 20private static ReadOnlySpan<byte> LibraryInitializerMethodName => "InitializeLibrary"u8;
Compiler\MethodBodyDeduplicator.cs (2)
147private static bool AreSame(ReadOnlySpan<byte> o1, ReadOnlySpan<byte> o2) => o1.SequenceEqual(o2);
Compiler\ObjectWriter\Dwarf\DwarfInfoWriter.cs (1)
82public void Write(ReadOnlySpan<byte> buffer) => _infoSectionWriter.Write(buffer);
Compiler\ObjectWriter\Dwarf\DwarfLineProgramTableWriter.cs (1)
25private static ReadOnlySpan<byte> StandardOpCodeLengths =>
Compiler\ObjectWriter\UnixObjectWriter.Aot.cs (4)
130ReadOnlySpan<byte> xGc = x.GCInfo; 131ReadOnlySpan<byte> yGc = y.GCInfo; 135ReadOnlySpan<FrameInfo> xFrames = x.FrameInfos; 136ReadOnlySpan<FrameInfo> yFrames = y.FrameInfos;
Compiler\SourceLinkWriter.cs (1)
48ReadOnlySpan<byte> sourceLinkBytes = ecmaMethod.Module.PdbReader is PdbSymbolReader reader ? reader.GetSourceLinkData() : default;
Compiler\TypePreinit.cs (2)
3484((ReadOnlySpan<byte>)_value).Slice(startOffset, length))); 3493private static byte[] ConstructStringInstance(TypeDesc stringType, ReadOnlySpan<char> value)
Compiler\WindowsNodeMangler.cs (1)
47private Utf8String CreateStaticFieldName(TypeDesc type, ReadOnlySpan<byte> fieldName)
IL\Stubs\StartupCode\StartupCodeMainMethod.cs (1)
85ReadOnlySpan<byte> initArgsName = (Context.Target.OperatingSystem == TargetOS.Windows)
parent\parent\Common\Compiler\AsyncMethodVariant.Mangling.cs (2)
15ReadOnlySpan<byte> IPrefixMangledMethod.Prefix => "AsyncCallable"u8; 22ReadOnlySpan<byte> IPrefixMangledMethod.Prefix => "ReturnDroppingAsync"u8;
parent\parent\Common\Compiler\CompilerTypeSystemContext.BoxedTypes.cs (3)
255ReadOnlySpan<byte> IPrefixMangledType.Prefix => "Boxed"u8; 399ReadOnlySpan<byte> IPrefixMangledMethod.Prefix => "unbox"u8; 512ReadOnlySpan<byte> IPrefixMangledMethod.Prefix => "unbox"u8;
parent\parent\Common\Compiler\CompilerTypeSystemContext.Wasm.cs (1)
74TypeDesc InstantiateOverByte(ReadOnlySpan<byte> name) =>
parent\parent\Common\Compiler\Dataflow\TypeExtensions.cs (1)
29var name = fullTypeName.AsSpan();
parent\parent\Common\Compiler\DependencyAnalysis\INodeWithCodeInfo.cs (1)
38&& ((ReadOnlySpan<byte>)BlobData).SequenceEqual(other.BlobData);
parent\parent\Common\Compiler\DependencyAnalysis\Target_Wasm\WasmTypes.cs (1)
66public ReadOnlySpan<WasmValueType> Types => _types;
parent\parent\Common\Compiler\NativeAotNameMangler.cs (4)
45ReadOnlySpan<byte> s = n.AsSpan(); 97private static bool ContainsUtf8ReplacementCharacter(ReadOnlySpan<byte> bytes) 99ReadOnlySpan<byte> replacementCharacter = [0xEF, 0xBF, 0xBD]; 167ReadOnlySpan<long> table =
parent\parent\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (3)
496private static ReadOnlySpan<byte> BigObjMagic => 628ReadOnlySpan<byte> s_base64Alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"u8; 887ReadOnlySpan<uint> table =
parent\parent\Common\Compiler\ObjectWriter\Dwarf\DwarfHelper.cs (4)
108public static ulong ReadULEB128(ReadOnlySpan<byte> buffer) => ReadULEB128(buffer, out _); 110public static ulong ReadULEB128(ReadOnlySpan<byte> buffer, out int bytesRead) 161public static long ReadSLEB128(ReadOnlySpan<byte> buffer) => ReadSLEB128(buffer, out _); 163public static long ReadSLEB128(ReadOnlySpan<byte> buffer, out int bytesRead)
parent\parent\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (1)
926private static ReadOnlySpan<byte> Magic => new byte[] { 0x7F, 0x45, 0x4C, 0x46 };
parent\parent\Common\Compiler\ObjectWriter\ObjectWriter.cs (1)
739protected static ReadOnlySpan<byte> FormatUtf8Int(Span<byte> buffer, int number)
parent\parent\Common\Compiler\ObjectWriter\PEObjectWriter.cs (1)
41private static ReadOnlySpan<byte> DosHeader => // DosHeaderSize
parent\parent\Common\Compiler\ObjectWriter\SectionData.cs (2)
141ReadOnlySpan<byte> currentBuffer = _sectionData._buffers[_bufferIndex].Span.Slice(_bufferPosition); 177public override void Write(ReadOnlySpan<byte> buffer) => throw new NotSupportedException();
parent\parent\Common\Compiler\ObjectWriter\SectionWriter.cs (1)
95public readonly void Write(ReadOnlySpan<byte> value)
parent\parent\Common\Compiler\ObjectWriter\Wasm\WasmSection.cs (1)
403ReadOnlySpan<int> functionIndices = entry.FunctionIndices.Span;
parent\parent\Common\Internal\Text\Utf8String.cs (17)
22public Utf8String(ReadOnlySpan<byte> underlyingSpan) 36public ReadOnlySpan<byte> AsSpan() => _value; 91public static Utf8String Concat(params ReadOnlySpan<Utf8String> strings) 109public static Utf8String Concat(ReadOnlySpan<byte> s1, ReadOnlySpan<byte> s2) 117public static Utf8String Concat(ReadOnlySpan<byte> s1, ReadOnlySpan<byte> s2, ReadOnlySpan<byte> s3) 126public static Utf8String Concat(ReadOnlySpan<byte> s1, ReadOnlySpan<byte> s2, ReadOnlySpan<byte> s3, ReadOnlySpan<byte> s4) 136public static Utf8String Concat(ReadOnlySpan<byte> s1, ReadOnlySpan<byte> s2, ReadOnlySpan<byte> s3, ReadOnlySpan<byte> s4, ReadOnlySpan<byte> s5)
parent\parent\Common\Internal\Text\Utf8StringBuilder.cs (3)
26public ReadOnlySpan<byte> AsSpan() => _buffer.AsSpan(0, _length); 51public Utf8StringBuilder Append(ReadOnlySpan<byte> value) 68public Utf8StringBuilder AppendAscii(ReadOnlySpan<char> value)
parent\parent\Common\Pgo\PgoFormat.cs (1)
541public static PgoSchemaElem[] Merge<TType, TMethod>(ReadOnlySpan<PgoSchemaElem[]> schemasToMerge)
parent\parent\Common\TypeSystem\IL\HelperExtensions.cs (15)
16private static ReadOnlySpan<byte> HelperTypesNamespace => "Internal.Runtime.CompilerHelpers"u8; 18public static MetadataType GetHelperType(this TypeSystemContext context, ReadOnlySpan<byte> name) 24public static MetadataType GetOptionalHelperType(this TypeSystemContext context, ReadOnlySpan<byte> name) 30public static MethodDesc GetHelperEntryPoint(this TypeSystemContext context, ReadOnlySpan<byte> typeName, ReadOnlySpan<byte> methodName) 37public static MethodDesc GetCoreLibEntryPoint(this TypeSystemContext context, ReadOnlySpan<byte> namespaceName, ReadOnlySpan<byte> typeName, ReadOnlySpan<byte> methodName, MethodSignature signature) 43public static MethodDesc GetOptionalHelperEntryPoint(this TypeSystemContext context, ReadOnlySpan<byte> typeName, ReadOnlySpan<byte> methodName) 74public static MethodDesc GetKnownMethod(this TypeDesc type, ReadOnlySpan<byte> name, MethodSignature signature) 89public static FieldDesc GetKnownField(this TypeDesc type, ReadOnlySpan<byte> name) 104public static MetadataType GetKnownNestedType(this MetadataType type, ReadOnlySpan<byte> name) 119public static MetadataType GetKnownType(this ModuleDesc module, ReadOnlySpan<byte> @namespace, ReadOnlySpan<byte> name)
parent\parent\Common\TypeSystem\IL\ILReader.cs (2)
16private readonly ReadOnlySpan<byte> _ilBytes; 24public ILReader(ReadOnlySpan<byte> ilBytes, int currentOffset = 0)
parent\parent\Common\TypeSystem\IL\Stubs\AsyncResumptionStub.Mangling.cs (1)
14ReadOnlySpan<byte> IPrefixMangledMethod.Prefix => "Resume"u8;
parent\parent\Common\TypeSystem\IL\Stubs\CalliMarshallingMethodThunk.Mangling.cs (1)
21ReadOnlySpan<byte> IPrefixMangledSignature.Prefix
parent\parent\Common\TypeSystem\IL\Stubs\ComparerIntrinsics.cs (7)
51private static MethodIL EmitComparerAndEqualityComparerCreateCommon(MethodDesc methodBeingGenerated, ReadOnlySpan<byte> flavor, ReadOnlySpan<byte> interfaceName) 80private static TypeDesc GetComparerForType(TypeDesc type, ReadOnlySpan<byte> flavor, ReadOnlySpan<byte> interfaceName) 133private static TypeDesc[] GetPotentialComparersForTypeCommon(TypeDesc type, ReadOnlySpan<byte> flavor, ReadOnlySpan<byte> interfaceName) 202private static bool? ImplementsInterfaceOfSelf(TypeDesc type, ReadOnlySpan<byte> interfaceName)
parent\parent\Common\TypeSystem\IL\Stubs\DelegateMarshallingMethodThunk.Mangling.cs (1)
19ReadOnlySpan<byte> IPrefixMangledType.Prefix
parent\parent\Common\TypeSystem\IL\Stubs\DynamicInvokeMethodThunk.Mangling.cs (1)
19ReadOnlySpan<byte> IPrefixMangledSignature.Prefix
parent\parent\Common\TypeSystem\IL\Stubs\ForwardDelegateCreationThunk.Mangling.cs (1)
22ReadOnlySpan<byte> IPrefixMangledType.Prefix
parent\parent\Common\TypeSystem\IL\Stubs\GetFieldHelperMethodOverride.cs (1)
219internal static ReadOnlySpan<byte> MetadataName => "__GetFieldHelper"u8;
parent\parent\Common\TypeSystem\IL\Stubs\MethodBaseGetCurrentMethodThunk.cs (1)
78ReadOnlySpan<byte> helperName;
parent\parent\Common\TypeSystem\IL\Stubs\MethodBaseGetCurrentMethodThunk.Mangling.cs (1)
19ReadOnlySpan<byte> IPrefixMangledMethod.Prefix
parent\parent\Common\TypeSystem\IL\Stubs\StructMarshallingThunk.Mangling.cs (1)
19ReadOnlySpan<byte> IPrefixMangledType.Prefix
parent\parent\Common\TypeSystem\IL\Stubs\TypeGetTypeMethodThunk.cs (1)
175ReadOnlySpan<byte> helperName;
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.Aot.cs (3)
208ReadOnlySpan<byte> helperMethodName = _isAnsi ? "AllocMemoryForAnsiStringBuilder"u8 : "AllocMemoryForUnicodeStringBuilder"u8; 220ReadOnlySpan<byte> helperMethodName = _isAnsi ? "StringBuilderToAnsiString"u8 : "StringBuilderToUnicodeString"u8; 235ReadOnlySpan<byte> helperMethodName = _isAnsi ? "AnsiStringToStringBuilder"u8 : "UnicodeStringToStringBuilder"u8;
parent\parent\Common\TypeSystem\Interop\IL\NativeStructType.Mangling.cs (1)
12ReadOnlySpan<byte> IPrefixMangledType.Prefix => "NativeStructType"u8;
parent\parent\Common\TypeSystem\Interop\IL\PInvokeDelegateWrapper.Mangling.cs (1)
18ReadOnlySpan<byte> IPrefixMangledType.Prefix
parent\parent\Common\TypeSystem\Interop\InteropTypes.cs (2)
82private static bool IsCoreNamedType(TypeSystemContext context, TypeDesc type, ReadOnlySpan<byte> @namespace, ReadOnlySpan<byte> name)
parent\parent\Common\TypeSystem\Interop\UnmanagedCallingConventions.cs (1)
265static EmbeddedSignatureData CreateCallConvEmbeddedSignatureData(TypeSystemContext context, ReadOnlySpan<byte> name)
src\runtime\src\libraries\Common\src\Internal\VersionResilientHashCode.cs (7)
25public HashCodeBuilder(ReadOnlySpan<byte> seed) 33public void Append(ReadOnlySpan<byte> src) 77public static int NameHashCode(ReadOnlySpan<byte> src) 106public static int NameHashCode(ReadOnlySpan<char> src) 110HashCodeBuilder builder = new HashCodeBuilder(ReadOnlySpan<byte>.Empty); 132public static int NameHashCode(ReadOnlySpan<byte> namespacePart, ReadOnlySpan<byte> namePart)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
101public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 102public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 103public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 209public void Append(scoped ReadOnlySpan<char> value)
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\CompilerGeneratedNames.cs (10)
16private static bool IsGeneratedMemberName(ReadOnlySpan<byte> memberName) 31internal static bool IsLambdaDisplayClass(ReadOnlySpan<byte> className) 55internal static bool IsStateMachineType(ReadOnlySpan<byte> typeName) 82internal static bool IsStateMachineCurrentField(ReadOnlySpan<byte> fieldName) 97internal static bool IsStateMachineOrDisplayClass(ReadOnlySpan<byte> name) => IsStateMachineType(name) || IsLambdaDisplayClass(name); 101internal static bool IsLambdaOrLocalFunction(ReadOnlySpan<byte> methodName) => IsLambdaMethod(methodName) || IsLocalFunction(methodName); 120internal static bool IsLambdaMethod(ReadOnlySpan<byte> methodName) 151internal static bool IsLocalFunction(ReadOnlySpan<byte> methodName) 169internal static bool IsExtensionType(ReadOnlySpan<byte> typeName) 177public static int LastIndexOf(this ReadOnlySpan<byte> span, char ch)
ILCompiler.DependencyAnalysisFramework (3)
DependencyNodeCore.cs (1)
51public virtual void AddRange(params ReadOnlySpan<DependencyListEntry> dependencies)
DependencySink.cs (1)
129public void AddRange(params ReadOnlySpan<DependencyNodeCore<DependencyContextType>.DependencyListEntry> dependencies)
IDependencySink.cs (1)
17void AddRange(params ReadOnlySpan<DependencyNodeCore<DependencyContextType>.DependencyListEntry> dependencies);
ILCompiler.MetadataTransform (18)
Internal\Metadata\NativeFormat\Writer\MetadataBlob.cs (1)
33public void WriteBytes(ReadOnlySpan<byte> bytes)
parent\parent\Common\Internal\Metadata\NativeFormat\BlobReader.cs (4)
12internal ref struct BlobReader(ReadOnlySpan<byte> blob) 14private readonly ReadOnlySpan<byte> _blob = blob; 21private ReadOnlySpan<byte> ReadBytes(int count) 23ReadOnlySpan<byte> result = _blob.Slice(_offset, count);
parent\parent\Common\Internal\Metadata\NativeFormat\NativeMetadataReader.cs (4)
145public ReadOnlySpan<byte> AsSpan() => _reader.ReadLengthPrefixedBytes(_offset); 150public bool StringEquals(ReadOnlySpan<char> value, MetadataReader reader) 213internal bool StringEquals(ConstantStringValueHandle handle, ReadOnlySpan<char> value) 218public ReadOnlySpan<byte> ReadStringAsBytes(ConstantStringValueHandle handle)
parent\parent\Common\Internal\NativeFormat\NativeFormatReader.String.cs (2)
44public unsafe ReadOnlySpan<byte> ReadLengthPrefixedBytes(uint offset) 99public unsafe bool StringEquals(uint offset, ReadOnlySpan<char> value)
src\runtime\src\libraries\Common\src\Internal\VersionResilientHashCode.cs (7)
25public HashCodeBuilder(ReadOnlySpan<byte> seed) 33public void Append(ReadOnlySpan<byte> src) 77public static int NameHashCode(ReadOnlySpan<byte> src) 106public static int NameHashCode(ReadOnlySpan<char> src) 110HashCodeBuilder builder = new HashCodeBuilder(ReadOnlySpan<byte>.Empty); 132public static int NameHashCode(ReadOnlySpan<byte> namespacePart, ReadOnlySpan<byte> namePart)
ILCompiler.ReadyToRun (111)
Compiler\DeferredWasmCallProcessor.cs (2)
301void AddMethod(ReadOnlySpan<byte> namespaceName, ReadOnlySpan<byte> typeName, string methodName)
Compiler\DeferredWasmCallRewriter.cs (1)
357private static Edit EncodeEdit(int offset, int length, params ReadOnlySpan<WasmExpr> instructions)
Compiler\DependencyAnalysis\ReadyToRun\MethodWithGCInfo.cs (3)
175internal ReadOnlySpan<Relocation> CodeRelocations => _methodCode?.Relocs; 181ReadOnlySpan<Relocation> relocations = CodeRelocations; 264ReadOnlySpan<Relocation> relocations = CodeRelocations;
Compiler\DependencyAnalysis\ReadyToRun\TypesTableNode.cs (4)
47ReadOnlySpan<byte> namespaceName = defTypeInfo.MetadataReader.GetStringBytes(defType.Namespace); 48ReadOnlySpan<byte> typeName = defTypeInfo.MetadataReader.GetStringBytes(defType.Name); 66ReadOnlySpan<byte> namespaceName = expTypeInfo.MetadataReader.GetStringBytes(expType.Namespace); 67ReadOnlySpan<byte> typeName = expTypeInfo.MetadataReader.GetStringBytes(expType.Name);
Compiler\DependencyAnalysis\ReadyToRun\WasmClosedStaticRetBufThunkNode.cs (1)
72ReadOnlySpan<WasmValueType> parameters = _signature.FuncType.Params.Types;
Compiler\DependencyAnalysis\ReadyToRun\WasmUnboxingStubNode.cs (1)
102ReadOnlySpan<WasmValueType> parameters = _signature.FuncType.Params.Types;
Compiler\ReadyToRunCompilerContext.cs (2)
84ReadOnlySpan<byte> matchingVectorType = "Unknown"u8; 232public VectorOfTFieldLayoutAlgorithm(FieldLayoutAlgorithm fallbackAlgorithm, FieldLayoutAlgorithm vectorFallbackAlgorithm, ReadOnlySpan<byte> similarVector)
Compiler\ReadyToRunJitHelperRootProvider.cs (3)
265ReadOnlySpan<byte> namespaceName, 266ReadOnlySpan<byte> typeName, 267ReadOnlySpan<byte> methodName,
IBC\IBCProfileParser.cs (2)
308ReadOnlySpan<byte> typeNamespace = ""u8; 309ReadOnlySpan<byte> typeName = new ReadOnlySpan<byte>(typeEntry.Name).Slice(0, typeEntry.Name.Length - 1 /* these strings are null terminated */);
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
4148ReadOnlySpan<WasmValueType> parameters = wasmSig.FuncType.Params.Types;
parent\parent\Common\Compiler\AsyncMethodVariant.Mangling.cs (2)
15ReadOnlySpan<byte> IPrefixMangledMethod.Prefix => "AsyncCallable"u8; 22ReadOnlySpan<byte> IPrefixMangledMethod.Prefix => "ReturnDroppingAsync"u8;
parent\parent\Common\Compiler\CompilerTypeSystemContext.BoxedTypes.cs (3)
255ReadOnlySpan<byte> IPrefixMangledType.Prefix => "Boxed"u8; 399ReadOnlySpan<byte> IPrefixMangledMethod.Prefix => "unbox"u8; 512ReadOnlySpan<byte> IPrefixMangledMethod.Prefix => "unbox"u8;
parent\parent\Common\Compiler\CompilerTypeSystemContext.Wasm.cs (1)
74TypeDesc InstantiateOverByte(ReadOnlySpan<byte> name) =>
parent\parent\Common\Compiler\Dataflow\TypeExtensions.cs (1)
29var name = fullTypeName.AsSpan();
parent\parent\Common\Compiler\DependencyAnalysis\INodeWithCodeInfo.cs (1)
38&& ((ReadOnlySpan<byte>)BlobData).SequenceEqual(other.BlobData);
parent\parent\Common\Compiler\DependencyAnalysis\Target_Wasm\WasmTypes.cs (1)
66public ReadOnlySpan<WasmValueType> Types => _types;
parent\parent\Common\Compiler\NativeAotNameMangler.cs (4)
45ReadOnlySpan<byte> s = n.AsSpan(); 97private static bool ContainsUtf8ReplacementCharacter(ReadOnlySpan<byte> bytes) 99ReadOnlySpan<byte> replacementCharacter = [0xEF, 0xBF, 0xBD]; 167ReadOnlySpan<long> table =
parent\parent\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (3)
496private static ReadOnlySpan<byte> BigObjMagic => 628ReadOnlySpan<byte> s_base64Alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"u8; 887ReadOnlySpan<uint> table =
parent\parent\Common\Compiler\ObjectWriter\Dwarf\DwarfHelper.cs (4)
108public static ulong ReadULEB128(ReadOnlySpan<byte> buffer) => ReadULEB128(buffer, out _); 110public static ulong ReadULEB128(ReadOnlySpan<byte> buffer, out int bytesRead) 161public static long ReadSLEB128(ReadOnlySpan<byte> buffer) => ReadSLEB128(buffer, out _); 163public static long ReadSLEB128(ReadOnlySpan<byte> buffer, out int bytesRead)
parent\parent\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (1)
926private static ReadOnlySpan<byte> Magic => new byte[] { 0x7F, 0x45, 0x4C, 0x46 };
parent\parent\Common\Compiler\ObjectWriter\ObjectWriter.cs (1)
739protected static ReadOnlySpan<byte> FormatUtf8Int(Span<byte> buffer, int number)
parent\parent\Common\Compiler\ObjectWriter\PEObjectWriter.cs (1)
41private static ReadOnlySpan<byte> DosHeader => // DosHeaderSize
parent\parent\Common\Compiler\ObjectWriter\SectionData.cs (2)
141ReadOnlySpan<byte> currentBuffer = _sectionData._buffers[_bufferIndex].Span.Slice(_bufferPosition); 177public override void Write(ReadOnlySpan<byte> buffer) => throw new NotSupportedException();
parent\parent\Common\Compiler\ObjectWriter\SectionWriter.cs (1)
95public readonly void Write(ReadOnlySpan<byte> value)
parent\parent\Common\Compiler\ObjectWriter\Wasm\WasmNameSection.cs (2)
26private static ReadOnlySpan<byte> SectionName => "name"u8; 86private static void WriteName(Stream stream, ReadOnlySpan<byte> utf8Name)
parent\parent\Common\Compiler\ObjectWriter\Wasm\WasmSection.cs (1)
403ReadOnlySpan<int> functionIndices = entry.FunctionIndices.Span;
parent\parent\Common\Internal\Text\Utf8String.cs (17)
22public Utf8String(ReadOnlySpan<byte> underlyingSpan) 36public ReadOnlySpan<byte> AsSpan() => _value; 91public static Utf8String Concat(params ReadOnlySpan<Utf8String> strings) 109public static Utf8String Concat(ReadOnlySpan<byte> s1, ReadOnlySpan<byte> s2) 117public static Utf8String Concat(ReadOnlySpan<byte> s1, ReadOnlySpan<byte> s2, ReadOnlySpan<byte> s3) 126public static Utf8String Concat(ReadOnlySpan<byte> s1, ReadOnlySpan<byte> s2, ReadOnlySpan<byte> s3, ReadOnlySpan<byte> s4) 136public static Utf8String Concat(ReadOnlySpan<byte> s1, ReadOnlySpan<byte> s2, ReadOnlySpan<byte> s3, ReadOnlySpan<byte> s4, ReadOnlySpan<byte> s5)
parent\parent\Common\Internal\Text\Utf8StringBuilder.cs (3)
26public ReadOnlySpan<byte> AsSpan() => _buffer.AsSpan(0, _length); 51public Utf8StringBuilder Append(ReadOnlySpan<byte> value) 68public Utf8StringBuilder AppendAscii(ReadOnlySpan<char> value)
parent\parent\Common\JitInterface\CorInfoImpl.cs (6)
2303internal static nuint PrintFromUtf16(ReadOnlySpan<char> utf16, byte* buffer, nuint bufferSize, nuint* pRequiredBufferSize) 3955ReadOnlySpan<bool> bools = MemoryMarshal.CreateReadOnlySpan(ref objRefs, (int)objRefsSize); 4411public void AddRange(params ReadOnlySpan<DependencyListEntry> dependencies) 5280ReadOnlySpan<char> methodName = MethodBeingCompiled.GetName().AsSpan(); 5284ReadOnlySpan<char> partialMethodName = methodName.Slice(45); 5342ReadOnlySpan<byte> rvaData = ecmaField.GetFieldRvaData();
parent\parent\Common\Pgo\PgoFormat.cs (1)
541public static PgoSchemaElem[] Merge<TType, TMethod>(ReadOnlySpan<PgoSchemaElem[]> schemasToMerge)
parent\parent\Common\TypeSystem\IL\HelperExtensions.cs (15)
16private static ReadOnlySpan<byte> HelperTypesNamespace => "Internal.Runtime.CompilerHelpers"u8; 18public static MetadataType GetHelperType(this TypeSystemContext context, ReadOnlySpan<byte> name) 24public static MetadataType GetOptionalHelperType(this TypeSystemContext context, ReadOnlySpan<byte> name) 30public static MethodDesc GetHelperEntryPoint(this TypeSystemContext context, ReadOnlySpan<byte> typeName, ReadOnlySpan<byte> methodName) 37public static MethodDesc GetCoreLibEntryPoint(this TypeSystemContext context, ReadOnlySpan<byte> namespaceName, ReadOnlySpan<byte> typeName, ReadOnlySpan<byte> methodName, MethodSignature signature) 43public static MethodDesc GetOptionalHelperEntryPoint(this TypeSystemContext context, ReadOnlySpan<byte> typeName, ReadOnlySpan<byte> methodName) 74public static MethodDesc GetKnownMethod(this TypeDesc type, ReadOnlySpan<byte> name, MethodSignature signature) 89public static FieldDesc GetKnownField(this TypeDesc type, ReadOnlySpan<byte> name) 104public static MetadataType GetKnownNestedType(this MetadataType type, ReadOnlySpan<byte> name) 119public static MetadataType GetKnownType(this ModuleDesc module, ReadOnlySpan<byte> @namespace, ReadOnlySpan<byte> name)
parent\parent\Common\TypeSystem\IL\ILReader.cs (2)
16private readonly ReadOnlySpan<byte> _ilBytes; 24public ILReader(ReadOnlySpan<byte> ilBytes, int currentOffset = 0)
parent\parent\Common\TypeSystem\IL\Stubs\AsyncResumptionStub.Mangling.cs (1)
14ReadOnlySpan<byte> IPrefixMangledMethod.Prefix => "Resume"u8;
parent\parent\Common\TypeSystem\IL\Stubs\ComparerIntrinsics.cs (7)
51private static MethodIL EmitComparerAndEqualityComparerCreateCommon(MethodDesc methodBeingGenerated, ReadOnlySpan<byte> flavor, ReadOnlySpan<byte> interfaceName) 80private static TypeDesc GetComparerForType(TypeDesc type, ReadOnlySpan<byte> flavor, ReadOnlySpan<byte> interfaceName) 133private static TypeDesc[] GetPotentialComparersForTypeCommon(TypeDesc type, ReadOnlySpan<byte> flavor, ReadOnlySpan<byte> interfaceName) 202private static bool? ImplementsInterfaceOfSelf(TypeDesc type, ReadOnlySpan<byte> interfaceName)
parent\parent\Common\TypeSystem\Interop\InteropTypes.cs (2)
82private static bool IsCoreNamedType(TypeSystemContext context, TypeDesc type, ReadOnlySpan<byte> @namespace, ReadOnlySpan<byte> name)
parent\parent\Common\TypeSystem\Interop\UnmanagedCallingConventions.cs (1)
265static EmbeddedSignatureData CreateCallConvEmbeddedSignatureData(TypeSystemContext context, ReadOnlySpan<byte> name)
src\runtime\src\libraries\Common\src\Internal\VersionResilientHashCode.cs (7)
25public HashCodeBuilder(ReadOnlySpan<byte> seed) 33public void Append(ReadOnlySpan<byte> src) 77public static int NameHashCode(ReadOnlySpan<byte> src) 106public static int NameHashCode(ReadOnlySpan<char> src) 110HashCodeBuilder builder = new HashCodeBuilder(ReadOnlySpan<byte>.Empty); 132public static int NameHashCode(ReadOnlySpan<byte> namespacePart, ReadOnlySpan<byte> namePart)
ILCompiler.RyuJit (21)
parent\parent\Common\JitInterface\CorInfoImpl.cs (4)
2303internal static nuint PrintFromUtf16(ReadOnlySpan<char> utf16, byte* buffer, nuint bufferSize, nuint* pRequiredBufferSize) 3955ReadOnlySpan<bool> bools = MemoryMarshal.CreateReadOnlySpan(ref objRefs, (int)objRefsSize); 4411public void AddRange(params ReadOnlySpan<DependencyListEntry> dependencies) 5342ReadOnlySpan<byte> rvaData = ecmaField.GetFieldRvaData();
parent\parent\Common\TypeSystem\IL\HelperExtensions.cs (15)
16private static ReadOnlySpan<byte> HelperTypesNamespace => "Internal.Runtime.CompilerHelpers"u8; 18public static MetadataType GetHelperType(this TypeSystemContext context, ReadOnlySpan<byte> name) 24public static MetadataType GetOptionalHelperType(this TypeSystemContext context, ReadOnlySpan<byte> name) 30public static MethodDesc GetHelperEntryPoint(this TypeSystemContext context, ReadOnlySpan<byte> typeName, ReadOnlySpan<byte> methodName) 37public static MethodDesc GetCoreLibEntryPoint(this TypeSystemContext context, ReadOnlySpan<byte> namespaceName, ReadOnlySpan<byte> typeName, ReadOnlySpan<byte> methodName, MethodSignature signature) 43public static MethodDesc GetOptionalHelperEntryPoint(this TypeSystemContext context, ReadOnlySpan<byte> typeName, ReadOnlySpan<byte> methodName) 74public static MethodDesc GetKnownMethod(this TypeDesc type, ReadOnlySpan<byte> name, MethodSignature signature) 89public static FieldDesc GetKnownField(this TypeDesc type, ReadOnlySpan<byte> name) 104public static MetadataType GetKnownNestedType(this MetadataType type, ReadOnlySpan<byte> name) 119public static MetadataType GetKnownType(this ModuleDesc module, ReadOnlySpan<byte> @namespace, ReadOnlySpan<byte> name)
parent\parent\Common\TypeSystem\IL\ILReader.cs (2)
16private readonly ReadOnlySpan<byte> _ilBytes; 24public ILReader(ReadOnlySpan<byte> ilBytes, int currentOffset = 0)
ILCompiler.TypeSystem (64)
parent\parent\Common\Internal\Text\Utf8Span.cs (4)
13private readonly ReadOnlySpan<byte> _value; 15public Utf8Span(ReadOnlySpan<byte> value) => _value = value; 21public ReadOnlySpan<byte> AsSpan() => _value; 61public static implicit operator Utf8Span(ReadOnlySpan<byte> s) => new Utf8Span(s);
parent\parent\Common\TypeSystem\Common\Instantiation.cs (1)
32public static implicit operator ReadOnlySpan<TypeDesc>(Instantiation instantiation)
parent\parent\Common\TypeSystem\Common\MethodDesc.cs (1)
232public EmbeddedSignatureData[] GetEmbeddedSignatureData(ReadOnlySpan<EmbeddedSignatureDataKind> kinds)
parent\parent\Common\TypeSystem\Common\TypeSystemHelpers.cs (12)
436public static ReadOnlySpan<byte> Append(this Utf8Span s1, Utf8Span s2) 446public static ReadOnlySpan<byte> Append(this ReadOnlySpan<byte> s1, Utf8Span s2) 456public static ReadOnlySpan<T> Append<T>(this ReadOnlySpan<T> s1, ReadOnlySpan<T> s2, ReadOnlySpan<T> s3) 467public static ReadOnlySpan<byte> Append(this Utf8Span s1, Utf8Span s2, Utf8Span s3) 469ReadOnlySpan<byte> s1Span = s1.AsSpan(); 470ReadOnlySpan<byte> s2Span = s2.AsSpan(); 471ReadOnlySpan<byte> s3Span = s3.AsSpan(); 481public static ReadOnlySpan<byte> Append(this Utf8Span s1, Utf8Span s2, Utf8Span s3, uint i)
parent\parent\Common\TypeSystem\Ecma\EcmaField.cs (1)
264public unsafe ReadOnlySpan<byte> InitializeName()
parent\parent\Common\TypeSystem\Ecma\EcmaMethod.cs (1)
402public unsafe ReadOnlySpan<byte> InitializeName()
parent\parent\Common\TypeSystem\Ecma\EcmaModule.cs (5)
601ReadOnlySpan<byte> name = _metadataReader.GetStringBytes(memberReference.Name); 694ReadOnlySpan<byte> typeName = _metadataReader.GetStringBytes(typeReference.Name); 735ReadOnlySpan<byte> nameSpace = _metadataReader.GetStringBytes(exportedType.Namespace); 736ReadOnlySpan<byte> name = _metadataReader.GetStringBytes(exportedType.Name); 742ReadOnlySpan<byte> name = _metadataReader.GetStringBytes(exportedType.Name);
parent\parent\Common\TypeSystem\Ecma\EcmaType.cs (1)
503ReadOnlySpan<byte> typeName = metadataReader.GetStringBytes(type.Name);
parent\parent\Common\TypeSystem\Ecma\MetadataExtensions.cs (2)
317public static unsafe ReadOnlySpan<byte> GetStringBytes(this MetadataReader reader, StringHandle handle) 337ReadOnlySpan<byte> otherSpan = otherString.AsSpan();
parent\parent\Common\TypeSystem\Ecma\SymbolReader\PdbSymbolReader.cs (1)
20public abstract ReadOnlySpan<byte> GetSourceLinkData();
parent\parent\Common\TypeSystem\Ecma\SymbolReader\PortablePdbSymbolReader.cs (2)
211public override unsafe ReadOnlySpan<byte> GetSourceLinkData() 224return ReadOnlySpan<byte>.Empty;
parent\parent\Common\TypeSystem\IL\HelperExtensions.cs (15)
16private static ReadOnlySpan<byte> HelperTypesNamespace => "Internal.Runtime.CompilerHelpers"u8; 18public static MetadataType GetHelperType(this TypeSystemContext context, ReadOnlySpan<byte> name) 24public static MetadataType GetOptionalHelperType(this TypeSystemContext context, ReadOnlySpan<byte> name) 30public static MethodDesc GetHelperEntryPoint(this TypeSystemContext context, ReadOnlySpan<byte> typeName, ReadOnlySpan<byte> methodName) 37public static MethodDesc GetCoreLibEntryPoint(this TypeSystemContext context, ReadOnlySpan<byte> namespaceName, ReadOnlySpan<byte> typeName, ReadOnlySpan<byte> methodName, MethodSignature signature) 43public static MethodDesc GetOptionalHelperEntryPoint(this TypeSystemContext context, ReadOnlySpan<byte> typeName, ReadOnlySpan<byte> methodName) 74public static MethodDesc GetKnownMethod(this TypeDesc type, ReadOnlySpan<byte> name, MethodSignature signature) 89public static FieldDesc GetKnownField(this TypeDesc type, ReadOnlySpan<byte> name) 104public static MetadataType GetKnownNestedType(this MetadataType type, ReadOnlySpan<byte> name) 119public static MetadataType GetKnownType(this ModuleDesc module, ReadOnlySpan<byte> @namespace, ReadOnlySpan<byte> name)
parent\parent\Common\TypeSystem\IL\ILReader.cs (2)
16private readonly ReadOnlySpan<byte> _ilBytes; 24public ILReader(ReadOnlySpan<byte> ilBytes, int currentOffset = 0)
parent\parent\Common\TypeSystem\IL\Stubs\PInvokeTargetNativeMethod.Mangling.cs (1)
19ReadOnlySpan<byte> IPrefixMangledMethod.Prefix
parent\parent\Common\TypeSystem\IL\UnsafeAccessors.cs (1)
265ReadOnlySpan<EmbeddedSignatureDataKind> kinds =
parent\parent\Common\TypeSystem\Mangling\IPrefixMangledMethod.cs (1)
22ReadOnlySpan<byte> Prefix { get; }
parent\parent\Common\TypeSystem\Mangling\IPrefixMangledSignature.cs (1)
22ReadOnlySpan<byte> Prefix { get; }
parent\parent\Common\TypeSystem\Mangling\IPrefixMangledType.cs (1)
22ReadOnlySpan<byte> Prefix { get; }
src\runtime\src\libraries\Common\src\Internal\VersionResilientHashCode.cs (7)
25public HashCodeBuilder(ReadOnlySpan<byte> seed) 33public void Append(ReadOnlySpan<byte> src) 77public static int NameHashCode(ReadOnlySpan<byte> src) 106public static int NameHashCode(ReadOnlySpan<char> src) 110HashCodeBuilder builder = new HashCodeBuilder(ReadOnlySpan<byte>.Empty); 132public static int NameHashCode(ReadOnlySpan<byte> namespacePart, ReadOnlySpan<byte> namePart)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
101public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 102public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 103public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 209public void Append(scoped ReadOnlySpan<char> value)
illink (28)
ILLink.RoslynAnalyzer (66)
CompilationExtensions.cs (1)
148public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span)
INamedTypeSymbolExtensions.cs (2)
17var roSpan = typeName.AsSpan(); 22var currentName = dot < 0 ? roSpan : roSpan.Slice(dot + 1);
src\runtime\src\libraries\Common\src\System\Buffers\SearchValuesPolyfills.cs (10)
15public abstract int IndexOfAny(ReadOnlySpan<char> span); 17public abstract int IndexOfAnyExcept(ReadOnlySpan<char> span); 25public static SearchValues<char> Create(ReadOnlySpan<char> values) => 28public static int IndexOfAny(this ReadOnlySpan<char> span, SearchValues<char> values) => 31public static int IndexOfAnyExcept(this ReadOnlySpan<char> span, SearchValues<char> values) => 34public static bool ContainsAny(this ReadOnlySpan<char> span, SearchValues<char> values) => 37public static bool ContainsAnyExcept(this ReadOnlySpan<char> span, SearchValues<char> values) => 45public CharSearchValuesPolyfill(ReadOnlySpan<char> values) 98public override int IndexOfAny(ReadOnlySpan<char> span) 111public override int IndexOfAnyExcept(ReadOnlySpan<char> span)
src\runtime\src\libraries\Common\src\System\HexConverter.cs (9)
187public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper) 204public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper) 221public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 244public ReadOnlySpan<byte> Bytes { get; set; } 276public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 288public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 456private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 491private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 598public static ReadOnlySpan<byte> CharToHexLookup =>
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameFormatter.cs (1)
107ReadOnlySpan<char> span = s.AsSpan();
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (3)
57private readonly ReadOnlySpan<char> _input; 60private AssemblyNameParser(ReadOnlySpan<char> input) 88internal static bool TryParse(ReadOnlySpan<char> name, ref AssemblyNameParts parts)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
101public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 102public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 103public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 209public void Append(scoped ReadOnlySpan<char> value)
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\AssemblyNameInfo.cs (2)
204public static AssemblyNameInfo Parse(ReadOnlySpan<char> assemblyName) 215public static bool TryParse(ReadOnlySpan<char> assemblyName, [NotNullWhen(true)] out AssemblyNameInfo? result)
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeName.cs (4)
358ReadOnlySpan<char> name = _fullName.AsSpan(); 404ReadOnlySpan<char> rootFullName = rootTypeName._fullName.AsSpan(); 526public static TypeName Parse(ReadOnlySpan<char> typeName, TypeNameParseOptions? options = default) 536public static bool TryParse(ReadOnlySpan<char> typeName, [NotNullWhen(true)] out TypeName? result, TypeNameParseOptions? options = default)
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParser.cs (8)
22private ReadOnlySpan<char> _inputString; 24private TypeNameParser(ReadOnlySpan<char> name, bool throwOnError, TypeNameParseOptions? options) : this() 31internal static TypeName? Parse(ReadOnlySpan<char> typeName, bool throwOnError, TypeNameParseOptions? options = default) 33ReadOnlySpan<char> trimmedName = typeName.TrimStart(); // whitespaces at beginning are always OK 85ReadOnlySpan<char> fullTypeName = _inputString.Slice(0, fullTypeNameLength); 99ReadOnlySpan<char> capturedBeforeProcessing = _inputString; 240ReadOnlySpan<char> capturedBeforeProcessing = _inputString; 249ReadOnlySpan<char> candidate = GetAssemblyNameCandidate(_inputString);
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (12)
22internal static int GetFullTypeNameLength(ReadOnlySpan<char> input, out bool isNestedType) 51static int GetUnescapedOffset(ReadOnlySpan<char> input, int startOffset) 76internal static int IndexOfNamespaceDelimiter(ReadOnlySpan<char> fullName) 130internal static ReadOnlySpan<char> GetAssemblyNameCandidate(ReadOnlySpan<char> input) 143static int GetUnescapedOffset(ReadOnlySpan<char> input, int startIndex) 198internal static bool IsBeginningOfGenericArgs(ref ReadOnlySpan<char> span, out bool doubleBrackets) 205ReadOnlySpan<char> trimmed = span.Slice(1).TrimStart(); 225internal static bool TryGetTypeNameInfo(TypeNameParseOptions options, ref ReadOnlySpan<char> input, 268internal static bool TryParseNextDecorator(ref ReadOnlySpan<char> input, out int rankOrModifier) 273ReadOnlySpan<char> originalInput = input; // so we can restore on 'false' return 332internal static bool TryStripFirstCharAndTrailingSpaces(ref ReadOnlySpan<char> span, char value)
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\CompilerGeneratedNames.cs (10)
16private static bool IsGeneratedMemberName(ReadOnlySpan<byte> memberName) 31internal static bool IsLambdaDisplayClass(ReadOnlySpan<byte> className) 55internal static bool IsStateMachineType(ReadOnlySpan<byte> typeName) 82internal static bool IsStateMachineCurrentField(ReadOnlySpan<byte> fieldName) 97internal static bool IsStateMachineOrDisplayClass(ReadOnlySpan<byte> name) => IsStateMachineType(name) || IsLambdaDisplayClass(name); 101internal static bool IsLambdaOrLocalFunction(ReadOnlySpan<byte> methodName) => IsLambdaMethod(methodName) || IsLocalFunction(methodName); 120internal static bool IsLambdaMethod(ReadOnlySpan<byte> methodName) 151internal static bool IsLocalFunction(ReadOnlySpan<byte> methodName) 169internal static bool IsExtensionType(ReadOnlySpan<byte> typeName) 177public static int LastIndexOf(this ReadOnlySpan<byte> span, char ch)
ILLink.Tasks (3)
LinkTask.cs (3)
397ReadOnlySpan<char> arguments = ExtraArgs.AsSpan().Trim(); 460static bool TryReadArgument(ref ReadOnlySpan<char> arguments, out string argument) 487ReadOnlySpan<char> token = arguments.Slice(0, end);
libmscordaccore_universal (2)
Entrypoints.cs (2)
77(uint threadId, ReadOnlySpan<byte> context) => HResults.E_NOTIMPL; 81setThreadContextDelegate = (uint threadId, ReadOnlySpan<byte> context) =>
Microsoft.Agents.AI.ProjectTemplates.Tests (3)
test\ProjectTemplates\Infrastructure\DotNetCommand.cs (1)
10public DotNetCommand(params ReadOnlySpan<string> args)
test\ProjectTemplates\Infrastructure\DotNetNewCommand.cs (1)
14public DotNetNewCommand(params ReadOnlySpan<string> args)
test\ProjectTemplates\Infrastructure\TemplateExecutionTestClassFixtureBase.cs (1)
97ReadOnlySpan<string> dotNetNewCommandArgs = [
Microsoft.AspNetCore.Antiforgery (8)
Internal\DefaultAntiforgeryTokenSerializer.cs (1)
101private static AntiforgeryToken? Deserialize(ReadOnlySpan<byte> tokenBytes)
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
52public readonly ReadOnlySpan<T> WrittenSpan
src\aspnetcore\src\Shared\Encoding\Int7BitEncodingUtils.cs (2)
57public static int Read7BitEncodedInt(this ReadOnlySpan<byte> source, out int value) 142internal static int Read7BitEncodedString(this ReadOnlySpan<byte> bytes, out string value)
src\aspnetcore\src\Shared\WebEncoders\WebEncoders.cs (4)
79ReadOnlySpan<char> inputSpan = input.AsSpan(offset, count); 136ReadOnlySpan<char> inputSpan = input.AsSpan(offset, count); 399public static string Base64UrlEncode(ReadOnlySpan<byte> input) 437public static int Base64UrlEncode(ReadOnlySpan<byte> input, Span<char> output)
Microsoft.AspNetCore.App.Analyzers (6)
Infrastructure\VirtualChars\System.Text\Rune.cs (6)
44private static ReadOnlySpan<byte> AsciiCharInfo => new byte[] 290public static OperationStatus DecodeFromUtf16(ReadOnlySpan<char> source, out Rune result, out int charsConsumed) 374public static OperationStatus DecodeFromUtf8(ReadOnlySpan<byte> source, out Rune result, out int bytesConsumed) 547public static OperationStatus DecodeLastFromUtf16(ReadOnlySpan<char> source, out Rune result, out int charsConsumed) 607public static OperationStatus DecodeLastFromUtf8(ReadOnlySpan<byte> source, out Rune value, out int bytesConsumed) 789internal static int ReadFirstRuneFromUtf16Buffer(ReadOnlySpan<char> input)
Microsoft.AspNetCore.Authentication (1)
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
52public readonly ReadOnlySpan<T> WrittenSpan
Microsoft.AspNetCore.Authentication.Cookies (1)
src\aspnetcore\src\Shared\ResultsHelpers\SharedUrlHelper.cs (1)
82static bool HasControlCharacter(ReadOnlySpan<char> readOnlySpan)
Microsoft.AspNetCore.Authentication.Negotiate (5)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\RegexGenerator.g.cs (4)
67protected override void Scan(ReadOnlySpan<char> inputSpan) 85private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 110private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 115ReadOnlySpan<char> slice = inputSpan.Slice(pos);
Internal\LdapAdapter.cs (1)
52var realm = user.AsSpan(userAccountNameIndex + 1);
Microsoft.AspNetCore.Authorization (1)
src\aspnetcore\src\Shared\Debugger\DebuggerHelpers.cs (1)
28public static string GetDebugText(ReadOnlySpan<KeyValuePair<string, object?>> values, bool includeNullValues = true, string? prefix = null)
Microsoft.AspNetCore.Components (57)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\RegexGenerator.g.cs (4)
66protected override void Scan(ReadOnlySpan<char> inputSpan) 78private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 96private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 100ReadOnlySpan<char> slice = inputSpan.Slice(pos);
NavigationManager.cs (6)
181var currentUri = _uri!.AsSpan(); 334var uriPathOnly = pathEndIndex < 0 ? uri : uri.AsSpan(0, pathEndIndex); 350internal ReadOnlySpan<char> ToBaseRelativePath(ReadOnlySpan<char> uri) 360var uriPathOnly = pathEndIndex < 0 ? uri : uri[..pathEndIndex]; 636var uriPathOnly = pathEndIndex < 0 ? uri : uri.AsSpan(0, pathEndIndex);
NavigationManagerExtensions.cs (11)
114public QueryStringBuilder(ReadOnlySpan<char> uriWithoutQueryStringAndHash, int additionalCapacity = 0) 123public void AppendParameter(ReadOnlySpan<char> encodedName, ReadOnlySpan<char> encodedValue) 145public void AppendHash(ReadOnlySpan<char> hash) 567out var hash, 616out var hash, 655out var hash, 681ReadOnlySpan<char> hash) 685var uriWithoutQueryStringAndHash = hashStartIndex < 0 ? uriWithoutQueryString : uriWithoutQueryString.AsSpan(0, hashStartIndex); 733out ReadOnlySpan<char> hash, 736ReadOnlySpan<char> uriWithoutQueryStringAndHash;
PersistentState\PersistentStateValueProviderKeyResolver.cs (2)
91var keySpan = ResolveKeySpan(key); 127private static ReadOnlySpan<char> ResolveKeySpan(object? key)
Routing\Router.cs (4)
188private static ReadOnlySpan<char> TrimQueryOrHash(ReadOnlySpan<char> str) 228var relativePath = NavigationManager.ToBaseRelativePath(_locationAbsolute.AsSpan()); 229var locationPathSpan = TrimQueryOrHash(relativePath);
src\aspnetcore\src\Components\Shared\src\ArrayBuilder.cs (1)
85internal int Append(ReadOnlySpan<T> source)
src\aspnetcore\src\Components\Shared\src\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)
src\aspnetcore\src\Http\Routing\src\Constraints\FileNameRouteConstraint.cs (1)
122internal static bool IsFileName(ReadOnlySpan<char> value)
src\aspnetcore\src\Http\Routing\src\Patterns\RoutePatternMatcher.cs (3)
288ReadOnlySpan<char> requestSegment, 334ReadOnlySpan<char> requestSegment, 462var parameterValueSpan = requestSegment.Slice(parameterStartIndex, parameterTextLength);
src\aspnetcore\src\Shared\PooledArrayBufferWriter.cs (1)
37public ReadOnlySpan<T> WrittenSpan
src\aspnetcore\src\Shared\QueryStringDecoder.cs (3)
20var source = chars.Span; 48var source = chars.Span; 75public static int Decode(ReadOnlySpan<char> source, Span<char> destination)
src\aspnetcore\src\Shared\UrlDecoder\UrlDecoder.cs (6)
18public static int DecodeRequestLine(ReadOnlySpan<byte> source, Span<byte> destination, bool isFormEncoding) 355/// Form Encoding is not supported compared to the <see cref="DecodeRequestLine(ReadOnlySpan{byte}, Span{byte}, bool)" /> 358public static int DecodeRequestLine(ReadOnlySpan<char> source, Span<char> destination) 555private static int UnescapePercentEncoding(ref int scan, ReadOnlySpan<char> buffer) 587private static int ReadHex(ref int scan, ReadOnlySpan<char> buffer) 606private static ReadOnlySpan<sbyte> CharToHexLookup =>
Microsoft.AspNetCore.Components.AI (2)
Pipeline\TextBlockHandler.cs (2)
79private static void AddParagraph(List<RichTextNode> paragraphs, ReadOnlySpan<char> text) 81var trimmed = text.TrimEnd("\r\n".AsSpan());
Microsoft.AspNetCore.Components.Endpoints (17)
Builder\ResourceCollectionUrlEndpoint.cs (2)
96var preamble = """ 103var epilogue = """
CacheView\CacheViewKeyResolver.cs (1)
158var name = separatedValues.AsSpan()[segment].Trim();
FormMapping\FormDataReader.cs (3)
187internal void PopPrefix(ReadOnlySpan<char> key) 215internal void PushPrefix(scoped ReadOnlySpan<char> key) 220var separator = _currentPrefixBuffer.Length > 0 && key[0] != '['
FormMapping\HttpContextFormValueMapper.cs (3)
35|| !MatchesScope(incomingScopeQualifiedFormName, scopeName, out var incomingFormName)) 49private static bool MatchesScope(string incomingScopeQualifiedFormName, string currentMappingScopeName, out ReadOnlySpan<char> incomingFormName) 55var incomingScopeQualifiedFormNameSpan = incomingScopeQualifiedFormName.AsSpan();
Forms\ClientValidationDataWriter.cs (3)
39public void BeginRule(ReadOnlySpan<byte> nameUtf8, string message) 58public void Param(ReadOnlySpan<byte> keyUtf8, string value) 66public void Param(ReadOnlySpan<byte> keyUtf8, int value)
Rendering\CacheViewTextWriter.cs (1)
63public override void Write(ReadOnlySpan<char> buffer)
Serialization\IStoredDataSerializer.cs (1)
20object? DeserializeValue(ReadOnlySpan<byte> utf8Json, [DynamicallyAccessedMembers(LinkerFlags.JsonSerialized)] Type targetType);
Serialization\JsonStoredDataSerializer.cs (1)
223public object? DeserializeValue(ReadOnlySpan<byte> utf8Json, [DynamicallyAccessedMembers(LinkerFlags.JsonSerialized)] Type targetType)
src\aspnetcore\src\Components\Shared\src\RenderFragmentSerializer.cs (1)
38ReadOnlySpan<RenderTreeFrame> frames,
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
52public readonly ReadOnlySpan<T> WrittenSpan
Microsoft.AspNetCore.Components.Forms (1)
src\aspnetcore\src\Components\Shared\src\ExpressionFormatting\ReverseStringBuilder.cs (1)
38public void InsertFront(scoped ReadOnlySpan<char> span)
Microsoft.AspNetCore.Components.QuickGrid (18)
src\aspnetcore\src\Components\Shared\src\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)
src\aspnetcore\src\Shared\QueryStringDecoder.cs (3)
20var source = chars.Span; 48var source = chars.Span; 75public static int Decode(ReadOnlySpan<char> source, Span<char> destination)
Microsoft.AspNetCore.Components.Server (35)
src\aspnetcore\src\Components\Shared\src\ArrayBuilder.cs (1)
85internal int Append(ReadOnlySpan<T> source)
src\aspnetcore\src\Components\Shared\src\ArrayBuilderMemoryStream.cs (1)
67public override void Write(ReadOnlySpan<byte> buffer)
src\aspnetcore\src\Components\Shared\src\RenderBatchWriter.cs (4)
271void WriteInt32Values(ReadOnlySpan<int> values) 288void WriteUInt64Values(ReadOnlySpan<ulong> values) 366var charSpan = stringValue.AsSpan(); 367var byteSpan = MemoryMarshal.AsBytes(charSpan);
src\aspnetcore\src\Components\Shared\src\RenderFragmentSerializer.cs (1)
38ReadOnlySpan<RenderTreeFrame> frames,
src\aspnetcore\src\Shared\PooledArrayBufferWriter.cs (1)
37public ReadOnlySpan<T> WrittenSpan
src\aspnetcore\src\SignalR\common\Protocols.MessagePack\src\Protocol\MessagePackHubProtocolWorker.cs (1)
656if (reader.TryReadStringSpan(out var span))
src\aspnetcore\src\SignalR\common\Shared\BinaryMessageParser.cs (2)
37var span = GetSpan(lengthPrefixBuffer); 75private static ReadOnlySpan<byte> GetSpan(in ReadOnlySequence<byte> lengthPrefixBuffer)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
315public override void Write(ReadOnlySpan<byte> span) 391public ReadOnlySpan<byte> Span => Buffer.AsSpan(0, Length);
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\BufferWriter.cs (3)
160public void Write(ReadOnlySpan<byte> source) 191internal bool TryGetUncommittedSpan(out ReadOnlySpan<byte> span) 228private void WriteMultiBuffer(ReadOnlySpan<byte> source)
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackReader.cs (2)
778public bool TryReadStringSpan(out ReadOnlySpan<byte> span) 822ReadOnlySpan<byte> unreadSpan = this.reader.UnreadSpan;
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackWriter.cs (10)
98public void WriteRaw(ReadOnlySpan<byte> rawMessagePackBlock) => this.writer.Write(rawMessagePackBlock); 742public void Write(ReadOnlySpan<byte> src) 779/// The caller should use <see cref="WriteRaw(in ReadOnlySequence{byte})"/> or <see cref="WriteRaw(ReadOnlySpan{byte})"/> 781/// Alternatively a single call to <see cref="Write(ReadOnlySpan{byte})"/> or <see cref="Write(in ReadOnlySequence{byte})"/> will take care of the header and content in one call. 854public void WriteString(ReadOnlySpan<byte> utf8stringBytes) 872/// The caller should use <see cref="WriteRaw(in ReadOnlySequence{byte})"/> or <see cref="WriteRaw(ReadOnlySpan{byte})"/> 874/// Alternatively a single call to <see cref="WriteString(ReadOnlySpan{byte})"/> or <see cref="WriteString(in ReadOnlySequence{byte})"/> will take care of the header and content in one call. 944public unsafe void Write(ReadOnlySpan<char> value) 1062/// This is similar in purpose to <see cref="WriteRaw(ReadOnlySpan{byte})"/> 1111if (this.writer.TryGetUncommittedSpan(out ReadOnlySpan<byte> span))
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\SequenceReader.cs (6)
68ReadOnlySpan<T> first = sequence.First.Span; 134public ReadOnlySpan<T> CurrentSpan { get; private set; } 144public ReadOnlySpan<T> UnreadSpan 456ReadOnlySpan<T> firstSpan = this.UnreadSpan; 473ReadOnlySpan<T> firstSpan = this.UnreadSpan; 483ReadOnlySpan<T> nextSpan = nextSegment.Span;
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\SequenceReaderExtensions.cs (1)
34ReadOnlySpan<byte> span = reader.UnreadSpan;
Microsoft.AspNetCore.Components.Web (9)
Routing\NavLink.cs (8)
141var uriAbsoluteSpan = uriAbsolute.AsSpan(); 142var hrefAbsoluteSpan = _hrefAbsolute.AsSpan(); 159var uriWithoutQueryAndFragment = GetUriIgnoreQueryAndFragment(uriAbsoluteSpan); 168private static ReadOnlySpan<char> GetUriIgnoreQueryAndFragment(ReadOnlySpan<char> uri) 172return ReadOnlySpan<char>.Empty; 202private static bool EqualsHrefExactlyOrIfTrailingSlashAdded(ReadOnlySpan<char> currentUriAbsolute, ReadOnlySpan<char> hrefAbsolute)
src\aspnetcore\src\Components\Shared\src\ExpressionFormatting\ReverseStringBuilder.cs (1)
38public void InsertFront(scoped ReadOnlySpan<char> span)
Microsoft.AspNetCore.Components.WebAssembly (7)
src\aspnetcore\src\Components\Shared\src\ArrayBuilder.cs (1)
85internal int Append(ReadOnlySpan<T> source)
src\aspnetcore\src\Components\Shared\src\ArrayBuilderMemoryStream.cs (1)
67public override void Write(ReadOnlySpan<byte> buffer)
src\aspnetcore\src\Components\Shared\src\RenderBatchWriter.cs (4)
271void WriteInt32Values(ReadOnlySpan<int> values) 288void WriteUInt64Values(ReadOnlySpan<ulong> values) 366var charSpan = stringValue.AsSpan(); 367var byteSpan = MemoryMarshal.AsBytes(charSpan);
src\aspnetcore\src\Components\Shared\src\RenderFragmentSerializer.cs (1)
38ReadOnlySpan<RenderTreeFrame> frames,
Microsoft.AspNetCore.Components.WebView (7)
IpcCommon.cs (1)
43var messageAfterPrefix = message.AsSpan(_ipcMessagePrefix.Length);
src\aspnetcore\src\Components\Shared\src\ArrayBuilder.cs (1)
85internal int Append(ReadOnlySpan<T> source)
src\aspnetcore\src\Components\Shared\src\ArrayBuilderMemoryStream.cs (1)
67public override void Write(ReadOnlySpan<byte> buffer)
src\aspnetcore\src\Components\Shared\src\RenderBatchWriter.cs (4)
271void WriteInt32Values(ReadOnlySpan<int> values) 288void WriteUInt64Values(ReadOnlySpan<ulong> values) 366var charSpan = stringValue.AsSpan(); 367var byteSpan = MemoryMarshal.AsBytes(charSpan);
Microsoft.AspNetCore.CookiePolicy (1)
ResponseCookiesWrapper.cs (1)
138public void Append(ReadOnlySpan<KeyValuePair<string, string>> keyValuePairs, CookieOptions options)
Microsoft.AspNetCore.Cors (1)
src\aspnetcore\src\Shared\Debugger\DebuggerHelpers.cs (1)
28public static string GetDebugText(ReadOnlySpan<KeyValuePair<string, object?>> values, bool includeNullValues = true, string? prefix = null)
Microsoft.AspNetCore.Cryptography.Internal (4)
CryptoUtil.cs (4)
81var bytesA = new ReadOnlySpan<byte>(bufA, byteCount); 82var bytesB = new ReadOnlySpan<byte>(bufB, byteCount); 111public static bool TimeConstantBuffersAreEqual(ReadOnlySpan<byte> bufA, ReadOnlySpan<byte> bufB)
Microsoft.AspNetCore.DataProtection (50)
AuthenticatedEncryption\ISpanAuthenticatedEncryptor.cs (4)
37void Encrypt<TWriter>(ReadOnlySpan<byte> plaintext, ReadOnlySpan<byte> additionalAuthenticatedData, ref TWriter destination) 56void Decrypt<TWriter>(ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> additionalAuthenticatedData, ref TWriter destination)
Cng\CbcAuthenticatedEncryptor.cs (4)
73public void Decrypt<TWriter>(ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> additionalAuthenticatedData, ref TWriter destination) where TWriter : IBufferWriter<byte> 262public void Encrypt<TWriter>(ReadOnlySpan<byte> plaintext, ReadOnlySpan<byte> additionalAuthenticatedData, ref TWriter destination) where TWriter : IBufferWriter<byte>
Cng\CngGcmAuthenticatedEncryptor.cs (4)
68public void Decrypt<TWriter>(ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> additionalAuthenticatedData, ref TWriter destination) where TWriter : IBufferWriter<byte> 228public void Encrypt<TWriter>(ReadOnlySpan<byte> plaintext, ReadOnlySpan<byte> additionalAuthenticatedData, ref TWriter destination) where TWriter : IBufferWriter<byte>
KeyManagement\KeyRingBasedSpanDataProtector.cs (3)
25public void Protect<TWriter>(ReadOnlySpan<byte> plaintext, ref TWriter destination) where TWriter : IBufferWriter<byte> 87public void Unprotect<TWriter>(ReadOnlySpan<byte> protectedData, ref TWriter destination) where TWriter : IBufferWriter<byte> 162ReadOnlySpan<byte> actualCiphertext = protectedData.Slice(sizeof(uint) + sizeof(Guid)); // chop off magic header + key id
Managed\AesGcmAuthenticatedEncryptor.cs (8)
78public void Decrypt<TWriter>(ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> additionalAuthenticatedData, ref TWriter destination) 98var keyModifier = ciphertext.Slice(keyModifierOffset, KEY_MODIFIER_SIZE_IN_BYTES); 99var nonce = ciphertext.Slice(nonceOffset, NONCE_SIZE_IN_BYTES); 100var encrypted = ciphertext.Slice(encryptedDataOffset, plaintextBytes); 101var tag = ciphertext.Slice(tagOffset, TAG_SIZE_IN_BYTES); 227public void Encrypt<TWriter>(ReadOnlySpan<byte> plaintext, ReadOnlySpan<byte> additionalAuthenticatedData, ref TWriter destination)
Managed\ManagedAuthenticatedEncryptor.cs (15)
94public void Decrypt<TWriter>(ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> additionalAuthenticatedData, ref TWriter destination) 118var keyModifier = ciphertext.Slice(keyModifierOffset, KEY_MODIFIER_SIZE_IN_BYTES); 150var ivAndCiphertextSpan = ciphertext.Slice(ivOffset, macOffset - ivOffset); 151var providedMac = ciphertext.Slice(macOffset, _validationAlgorithmDigestLengthInBytes); 159var ciphertextSpan = ciphertext.Slice(ciphertextOffset, macOffset - ciphertextOffset); 160var iv = ciphertext.Slice(ivOffset, _symmetricAlgorithmBlockSizeInBytes); 187public void Encrypt<TWriter>(ReadOnlySpan<byte> plaintext, ReadOnlySpan<byte> additionalAuthenticatedData, ref TWriter destination) 202private void EncryptCore<TWriter>(SymmetricAlgorithm symmetricAlgorithm, ReadOnlySpan<byte> plaintext, ReadOnlySpan<byte> additionalAuthenticatedData, ref TWriter destination) 328var written = writer.WrittenSpan; 431private bool ValidateMac(ReadOnlySpan<byte> dataToValidate, ReadOnlySpan<byte> providedMac, ReadOnlySpan<byte> validationSubkey, byte[]? validationSubkeyArray)
SP800_108\ManagedSP800_108_CTR_HMACSHA512.cs (8)
46public static void DeriveKeys(ReadOnlySpan<byte> kdk, ReadOnlySpan<byte> label, ReadOnlySpan<byte> contextHeader, ReadOnlySpan<byte> contextData, Span<byte> operationSubkey, Span<byte> validationSubkey) 70ReadOnlySpan<byte> kdk, 71ReadOnlySpan<byte> label, 72ReadOnlySpan<byte> contextHeader, 73ReadOnlySpan<byte> contextData,
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
52public readonly ReadOnlySpan<T> WrittenSpan
src\aspnetcore\src\Shared\Encoding\Int7BitEncodingUtils.cs (2)
57public static int Read7BitEncodedInt(this ReadOnlySpan<byte> source, out int value) 142internal static int Read7BitEncodedString(this ReadOnlySpan<byte> bytes, out string value)
src\aspnetcore\src\Shared\PooledArrayBufferWriter.cs (1)
37public ReadOnlySpan<T> WrittenSpan
Microsoft.AspNetCore.DataProtection.Abstractions (7)
ISpanDataProtector.cs (2)
33void Protect<TWriter>(ReadOnlySpan<byte> plaintext, ref TWriter destination) 48void Unprotect<TWriter>(ReadOnlySpan<byte> protectedData, ref TWriter destination)
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
52public readonly ReadOnlySpan<T> WrittenSpan
src\aspnetcore\src\Shared\WebEncoders\WebEncoders.cs (4)
79ReadOnlySpan<char> inputSpan = input.AsSpan(offset, count); 136ReadOnlySpan<char> inputSpan = input.AsSpan(offset, count); 399public static string Base64UrlEncode(ReadOnlySpan<byte> input) 437public static int Base64UrlEncode(ReadOnlySpan<byte> input, Span<char> output)
Microsoft.AspNetCore.DataProtection.Extensions (2)
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
52public readonly ReadOnlySpan<T> WrittenSpan
TimeLimitedDataProtector.cs (1)
161var plaintextWithHeader = destination.WrittenSpan;
Microsoft.AspNetCore.DataProtection.MicroBenchmarks (6)
Benchmarks\SpanDataProtectorComparison.cs (4)
99var protectedSpan = protectBuffer.WrittenSpan; 102var unProtectedSpan = protectBuffer.WrittenSpan; 121var protectedSpan = protectBuffer.WrittenSpan; 124var unProtectedSpan = unprotectBuffer.WrittenSpan;
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
52public readonly ReadOnlySpan<T> WrittenSpan
src\aspnetcore\src\Shared\PooledArrayBufferWriter.cs (1)
37public ReadOnlySpan<T> WrittenSpan
Microsoft.AspNetCore.DeveloperCertificates.XPlat (12)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\RegexGenerator.g.cs (12)
115protected override void Scan(ReadOnlySpan<char> inputSpan) 133private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 158private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 163ReadOnlySpan<char> slice = inputSpan.Slice(pos); 275protected override void Scan(ReadOnlySpan<char> inputSpan) 287private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 309private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 313ReadOnlySpan<char> slice = inputSpan.Slice(pos); 407protected override void Scan(ReadOnlySpan<char> inputSpan) 425private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 448private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 456ReadOnlySpan<char> slice = inputSpan.Slice(pos);
Microsoft.AspNetCore.Diagnostics.Middleware (5)
Latency\Internal\HttpLatencyLogEnricher.cs (3)
83private static void AppendSpanEscapingDelimiters<TX>(StringBuilder sb, ReadOnlySpan<TX> span, Func<TX, string> select) 92private static void AppendEscaped(StringBuilder sb, ReadOnlySpan<char> value) 101private static void AppendSpan<TX, TY>(StringBuilder sb, ReadOnlySpan<TX> span, Func<TX, TY> apply)
Latency\LatencyContextControlExtensions.cs (1)
13var checkpoints = latencyContext.LatencyData.Checkpoints;
src\Shared\BufferWriterPool\BufferWriter.cs (1)
54public ReadOnlySpan<T> WrittenSpan => _buffer.AsSpan(0, WrittenCount);
Microsoft.AspNetCore.Diagnostics.Middleware.PerformanceTests (10)
RedactionBenchmark.cs (10)
73var span = _httpPath.AsSpan(); 76ReadOnlySpan<char> segment; 128var span = _httpPath.AsSpan(); 178var span = _httpPath.AsSpan(); 185var segment = span; 233private static ReadOnlySpan<char> Redact(ReadOnlySpan<char> source, Span<char> destination) 238private static int[] GetPathSegments(ReadOnlySpan<char> httpPath) 268var span = _httpPath.AsSpan(); 277var segment = span.Slice(segments[i - 1], segments[i] - segments[i - 1] - 1);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Latency\AcceptanceTests.cs (1)
84private static bool IsMatchByName<TX>(in ReadOnlySpan<TX> span, Func<TX, bool> isMatch)
Microsoft.AspNetCore.HeaderParsing (1)
Parsers\IPAddressListParser.cs (1)
42var addressToParse = value.AsSpan(startIndex, length).Trim();
Microsoft.AspNetCore.Hosting (4)
Internal\HostingTelemetryHelpers.cs (4)
170var query = queryString.AsSpan(1); 183var segment = query.Slice(segmentStart, segmentLength); 207private static bool IsSensitiveQueryParameter(ReadOnlySpan<char> name) 232private static bool IsSensitiveQueryParameterName(ReadOnlySpan<char> name) =>
Microsoft.AspNetCore.Http (9)
Features\QueryFeature.cs (2)
125public void Append(ReadOnlySpan<char> key, ReadOnlySpan<char> value)
Internal\ResponseCookies.cs (2)
68public void Append(ReadOnlySpan<KeyValuePair<string, string>> keyValuePairs, CookieOptions options) 90var cookieSuffix = options.CreateCookieHeader(string.Empty, string.Empty).ToString().AsSpan(1);
src\aspnetcore\src\Shared\HttpRuleParser.cs (2)
67var subspan = input.AsSpan(startIndex); 222ReadOnlySpan<char> inputSpan = input.AsSpan();
src\aspnetcore\src\Shared\QueryStringDecoder.cs (3)
20var source = chars.Span; 48var source = chars.Span; 75public static int Decode(ReadOnlySpan<char> source, Span<char> destination)
Microsoft.AspNetCore.Http.Abstractions (10)
Extensions\HttpResponseWritingExtensions.cs (1)
103var source = text.AsSpan();
HostString.cs (1)
183var port = uriComponent.AsSpan(index);
src\aspnetcore\src\Shared\Debugger\DebuggerHelpers.cs (1)
28public static string GetDebugText(ReadOnlySpan<KeyValuePair<string, object?>> values, bool includeNullValues = true, string? prefix = null)
src\aspnetcore\src\Shared\UrlDecoder\UrlDecoder.cs (6)
18public static int DecodeRequestLine(ReadOnlySpan<byte> source, Span<byte> destination, bool isFormEncoding) 355/// Form Encoding is not supported compared to the <see cref="DecodeRequestLine(ReadOnlySpan{byte}, Span{byte}, bool)" /> 358public static int DecodeRequestLine(ReadOnlySpan<char> source, Span<char> destination) 555private static int UnescapePercentEncoding(ref int scan, ReadOnlySpan<char> buffer) 587private static int ReadHex(ref int scan, ReadOnlySpan<char> buffer) 606private static ReadOnlySpan<sbyte> CharToHexLookup =>
src\aspnetcore\src\Shared\ValueStringBuilder\ValueListBuilder.cs (1)
54public ReadOnlySpan<T> AsSpan() => _span.Slice(0, _pos);
Microsoft.AspNetCore.Http.Connections (6)
src\aspnetcore\src\Shared\WebEncoders\WebEncoders.cs (4)
79ReadOnlySpan<char> inputSpan = input.AsSpan(offset, count); 136ReadOnlySpan<char> inputSpan = input.AsSpan(offset, count); 399public static string Base64UrlEncode(ReadOnlySpan<byte> input) 437public static int Base64UrlEncode(ReadOnlySpan<byte> input, Span<char> output)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
315public override void Write(ReadOnlySpan<byte> span) 391public ReadOnlySpan<byte> Span => Buffer.AsSpan(0, Length);
Microsoft.AspNetCore.Http.Connections.Client (4)
HttpConnection.cs (1)
835private static (TimeSpan? TokenLifetime, string? AccessToken) ParseRefreshResponse(ReadOnlySpan<byte> content)
src\aspnetcore\src\Shared\QueryStringDecoder.cs (3)
20var source = chars.Span; 48var source = chars.Span; 75public static int Decode(ReadOnlySpan<char> source, Span<char> destination)
Microsoft.AspNetCore.Http.Connections.Common (3)
NegotiateProtocol.cs (2)
43private static ReadOnlySpan<byte> ProtocolVersionPropertyNameBytes => "ProtocolVersion"u8; 153public static NegotiationResponse ParseResponse(ReadOnlySpan<byte> content)
src\aspnetcore\src\SignalR\common\Shared\Utf8BufferTextWriter.cs (1)
173private void WriteInternal(ReadOnlySpan<char> buffer)
Microsoft.AspNetCore.Http.Extensions (17)
HttpRequestJsonExtensions.cs (5)
421var span = contentType.AsSpan(); 424var rest = span.Slice(ContentTypeConstants.JsonContentType.Length); 444var value = rest.Slice(CharsetPrefix.Length); 462var type = span.Slice(0, slashIndex); 463var subType = span.Slice(slashIndex + 1);
src\aspnetcore\src\Components\Endpoints\src\FormMapping\FormDataReader.cs (3)
187internal void PopPrefix(ReadOnlySpan<char> key) 215internal void PushPrefix(scoped ReadOnlySpan<char> key) 220var separator = _currentPrefixBuffer.Length > 0 && key[0] != '['
src\aspnetcore\src\Shared\PropertyAsParameterInfo.cs (1)
63public static ReadOnlySpan<ParameterInfo> Flatten(ParameterInfo[] parameters, ParameterBindingMethodCache cache)
src\aspnetcore\src\Shared\ValueStringBuilder\ValueListBuilder.cs (1)
54public ReadOnlySpan<T> AsSpan() => _span.Slice(0, _pos);
src\aspnetcore\src\Shared\ValueStringBuilder\ValueStringBuilder.cs (5)
105public ReadOnlySpan<char> AsSpan(bool terminate) 115public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 116public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 117public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 246public void Append(ReadOnlySpan<char> value)
UriHelper.cs (2)
217private static int CopyTextToBuffer(Span<char> buffer, int index, ReadOnlySpan<char> text) 232var pathBaseSpan = uriParts.pathBase.AsSpan();
Microsoft.AspNetCore.Http.Features (1)
IResponseCookies.cs (1)
31void Append(ReadOnlySpan<KeyValuePair<string, string>> keyValuePairs, CookieOptions options)
Microsoft.AspNetCore.Http.Results (4)
Results.cs (1)
161public static IResult Text(ReadOnlySpan<byte> utf8Content, string? contentType = null, int? statusCode = null)
src\aspnetcore\src\Shared\ResultsHelpers\SharedUrlHelper.cs (1)
82static bool HasControlCharacter(ReadOnlySpan<char> readOnlySpan)
TypedResults.cs (1)
147public static Utf8ContentHttpResult Text(ReadOnlySpan<byte> utf8Content, string? contentType = null, int? statusCode = null)
Utf8ContentHttpResult.cs (1)
21internal Utf8ContentHttpResult(ReadOnlySpan<byte> utf8Content, string? contentType, int? statusCode)
Microsoft.AspNetCore.HttpLogging (12)
BufferingStream.cs (1)
267public override void Write(ReadOnlySpan<byte> buffer)
RequestBufferingStream.cs (1)
75private void WriteToBuffer(ReadOnlySpan<byte> span)
ResponseBufferingStream.cs (3)
106public override void Write(ReadOnlySpan<byte> span) 127private void CommonWrite(ReadOnlySpan<byte> span) 134var slice = span.Slice(0, innerCount);
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
52public readonly ReadOnlySpan<T> WrittenSpan
src\aspnetcore\src\Shared\ValueStringBuilder\ValueListBuilder.cs (1)
54public ReadOnlySpan<T> AsSpan() => _span.Slice(0, _pos);
src\aspnetcore\src\Shared\ValueStringBuilder\ValueStringBuilder.cs (5)
105public ReadOnlySpan<char> AsSpan(bool terminate) 115public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 116public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 117public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 246public void Append(ReadOnlySpan<char> value)
Microsoft.AspNetCore.HttpOverrides (10)
ForwardedHeadersMiddleware.cs (1)
468var host = hostText.AsSpan(1);
IPNetwork.cs (9)
115/// Converts the specified <see cref="ReadOnlySpan{T}"/> of <see langword="char"/> representation of 118/// <param name="networkSpan">The <see cref="ReadOnlySpan{T}"/> of <see langword="char"/> to convert, in CIDR notation.</param> 124/// <inheritdoc cref="TryParseComponents(ReadOnlySpan{char}, out IPAddress?, out int)"/> 125public static IPNetwork Parse(ReadOnlySpan<char> networkSpan) 141/// Converts the specified <see cref="ReadOnlySpan{T}"/> of <see langword="char"/> representation of 145/// <param name="networkSpan">The <see cref="ReadOnlySpan{T}"/> of <see langword="char"/> to validate.</param> 155/// <inheritdoc cref="TryParseComponents(ReadOnlySpan{char}, out IPAddress?, out int)"/> 156public static bool TryParse(ReadOnlySpan<char> networkSpan, [NotNullWhen(true)] out IPNetwork? network) 184ReadOnlySpan<char> networkSpan,
Microsoft.AspNetCore.Identity (9)
Passkeys\BufferSource.cs (3)
56/// Gets the byte buffer as a <see cref="ReadOnlySpan{T}"/>. 58public ReadOnlySpan<byte> AsSpan() 117var span = _bytes.Span;
Passkeys\BufferSourceJsonConverter.cs (4)
27var span = reader.HasValueSequence ? reader.ValueSequence.ToArray() : reader.ValueSpan; 38var bytes = value.AsSpan(); 43private static bool TryDecodeBase64Url(ReadOnlySpan<byte> utf8Unescaped, [NotNullWhen(true)] out byte[]? bytes) 75private static void WriteBase64UrlStringValue(Utf8JsonWriter writer, ReadOnlySpan<byte> bytes)
Passkeys\CredentialPublicKey.cs (2)
107public bool Verify(ReadOnlySpan<byte> data, ReadOnlySpan<byte> signature)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (1)
Internal\ParsedPath.cs (1)
44var span = path.AsSpan();
Microsoft.AspNetCore.Localization (5)
CookieRequestCultureProvider.cs (5)
73var valueSpan = value.AsSpan(); 79var potentialCultureName = valueSpan[parts[0]]; 80var potentialUICultureName = valueSpan[parts[1]]; 88var cultureName = potentialCultureName.Slice(_culturePrefix.Length); 89var uiCultureName = potentialUICultureName.Slice(_uiCulturePrefix.Length);
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
src\aspnetcore\src\Shared\PropertyAsParameterInfo.cs (1)
63public static ReadOnlySpan<ParameterInfo> Flatten(ParameterInfo[] parameters, ParameterBindingMethodCache cache)
Microsoft.AspNetCore.Mvc.Core (3)
src\aspnetcore\src\Shared\HttpRuleParser.cs (2)
67var subspan = input.AsSpan(startIndex); 222ReadOnlySpan<char> inputSpan = input.AsSpan();
src\aspnetcore\src\Shared\ResultsHelpers\SharedUrlHelper.cs (1)
82static bool HasControlCharacter(ReadOnlySpan<char> readOnlySpan)
Microsoft.AspNetCore.Mvc.Razor (2)
TagHelpers\UrlResolutionTagHelper.cs (2)
285var url = input.AsSpan(); 328var key = value.AsSpan();
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
DefaultEditorTemplates.cs (1)
474public override void Write(ReadOnlySpan<char> buffer)
Rendering\TagBuilder.cs (1)
179var remainingName = name.AsSpan(1);
src\aspnetcore\src\Shared\PooledArrayBufferWriter.cs (1)
37public ReadOnlySpan<T> WrittenSpan
Microsoft.AspNetCore.OpenApi (12)
Services\OpenApiGenerator.cs (2)
261var parameters = PropertyAsParameterInfo.Flatten(methodInfo.GetParameters(), ParameterBindingMethodCache.Instance); 368var parameters = PropertyAsParameterInfo.Flatten(methodInfo.GetParameters(), ParameterBindingMethodCache.Instance);
Services\Schemas\OpenApiSchemaService.cs (6)
236static JsonArray JsonArray(ReadOnlySpan<JsonNode> values) 670var currentPath = refPath.AsSpan().Slice(OpenApiConstants.RefPrefix.Length); 682var currentPathWithoutSlash = currentPath.Slice(1); 685var currentReferenceToken = 694? ReadOnlySpan<char>.Empty 701private static string ParseReferenceToken(ReadOnlySpan<char> referenceToken)
src\aspnetcore\src\Shared\PropertyAsParameterInfo.cs (1)
63public static ReadOnlySpan<ParameterInfo> Flatten(ParameterInfo[] parameters, ParameterBindingMethodCache cache)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
315public override void Write(ReadOnlySpan<byte> span) 391public ReadOnlySpan<byte> Span => Buffer.AsSpan(0, Length);
src\aspnetcore\src\SignalR\common\Shared\Utf8BufferTextWriter.cs (1)
173private void WriteInternal(ReadOnlySpan<char> buffer)
Microsoft.AspNetCore.OutputCaching (7)
FormatterBinaryReader.cs (2)
158public ReadOnlySpan<byte> ReadBytesSpan(int count) 170var result = MemoryMarshal.CreateReadOnlySpan(ref Unsafe.Add(ref _root, _offset), count);
FormatterBinaryWriter.cs (2)
178public void WriteRaw(scoped ReadOnlySpan<byte> value) 194private void SlowWriteRaw(scoped ReadOnlySpan<byte> value)
OutputCacheEntryFormatter.cs (1)
173var span = body.FirstSpan;
RecyclableSequenceBuilder.cs (1)
87public void Write(ReadOnlySpan<byte> buffer)
Streams\OutputCacheStream.cs (1)
130public override void Write(ReadOnlySpan<byte> buffer)
Microsoft.AspNetCore.Razor (1)
TagHelpers\NullHtmlEncoder.cs (1)
64var span = value.AsSpan(startIndex, characterCount);
Microsoft.AspNetCore.Razor.Utilities.Shared (57)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\FileUtilities.cs (7)
15public static bool IsAnyRazorFilePath(ReadOnlySpan<char> filePath, StringComparison comparison) 21public static bool IsRazorComponentFilePath(ReadOnlySpan<char> filePath, StringComparison comparison) 26public static bool IsMvcFilePath(ReadOnlySpan<char> filePath, StringComparison comparison) 33var adjustedPath = AdjustToUsableFilePath(filePath.AsSpan()); 37public static ReadOnlySpan<char> AdjustToUsableFilePath(ReadOnlySpan<char> filePath) 80public static bool IsUriShapedFilePath(ReadOnlySpan<char> filePath)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\ImmutableArrayExtensions.cs (2)
27public static void InsertRange<T>(this ImmutableArray<T>.Builder builder, int index, ReadOnlySpan<T> items) 1239var items = array.AsSpan();
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\MemoryBuilder`1.cs (2)
96public void Append(ReadOnlySpan<T> source) 123private void AppendWithResize(ReadOnlySpan<T> source)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PathUtilities.cs (7)
55public static ReadOnlySpan<char> GetDirectoryName(ReadOnlySpan<char> path) 325public static ReadOnlySpan<char> GetExtension(ReadOnlySpan<char> path) 359public static bool HasExtension(ReadOnlySpan<char> path) 390public static bool IsPathFullyQualified(ReadOnlySpan<char> path) 444public static bool IsPathRooted(ReadOnlySpan<char> path)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PooledObjects\PooledArrayBuilder.cs (1)
10public static PooledArrayBuilder<T> Create<T>(ReadOnlySpan<T> source)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PooledObjects\PooledArrayBuilder`1.cs (2)
259public void AddRange(ReadOnlySpan<T> items) 417public void InsertRange(int index, ReadOnlySpan<T> items)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\SpanExtensions.cs (5)
90extension<T>(ReadOnlySpan<T> span) 95public readonly ref struct ReversedEnumerable<T>(ReadOnlySpan<T> span) 97private readonly ReadOnlySpan<T> _span = span; 102public ref struct ReverseEnumerator<T>(ReadOnlySpan<T> span) 104private readonly ReadOnlySpan<T> _span = span;
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\StringExtensions.cs (19)
48/// Creates a new <see cref="ReadOnlySpan{T}"/> over a portion of the target string from 60public static ReadOnlySpan<char> AsSpan(this string? text, Index startIndex) 80/// Creates a new <see cref="ReadOnlySpan{T}"/> over a portion of a target string using 95public static ReadOnlySpan<char> AsSpan(this string? text, Range range) 116/// Creates a new <see cref="ReadOnlySpan{T}"/> over a string. If the target string 117/// is <see langword="null"/> a <see langword="default"/>(<see cref="ReadOnlySpan{T}"/>) is returned. 122public static ReadOnlySpan<char> AsSpanOrDefault(this string? text) 126/// Creates a new <see cref="ReadOnlySpan{T}"/> over a portion of the target string from 128/// a <see langword="default"/>(<see cref="ReadOnlySpan{T}"/>) is returned. 139public static ReadOnlySpan<char> AsSpanOrDefault(this string? text, int start) 143/// Creates a new <see cref="ReadOnlySpan{T}"/> over a portion of the target string from 145/// <see langword="null"/> a <see langword="default"/>(<see cref="ReadOnlySpan{T}"/>) is returned. 160public static ReadOnlySpan<char> AsSpanOrDefault(this string? text, int start, int length) 164/// Creates a new <see cref="ReadOnlySpan{T}"/> over a portion of the target string from 166/// a <see langword="default"/>(<see cref="ReadOnlySpan{T}"/>) is returned. 174public static ReadOnlySpan<char> AsSpanOrDefault(this string? text, Index startIndex) 189/// Creates a new <see cref="ReadOnlySpan{T}"/> over a portion of the target string using the range 191/// <see langword="default"/>(<see cref="ReadOnlySpan{T}"/>) is returned. 205public static ReadOnlySpan<char> AsSpanOrDefault(this string? text, Range range)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\Utilities\SortHelper`1.cs (2)
71public bool ComputeKeys<TElement>(ReadOnlySpan<TElement> items, Func<TElement, T> keySelector, Span<SortKey<T>> keys) 104private bool ComputeIdentityKeys<TElement>(ReadOnlySpan<TElement> items, Span<SortKey<T>> keys)
Utilities\Checksum.cs (1)
44public static Checksum From(ReadOnlySpan<byte> bytes)
Utilities\Hashing\NonCryptographicHashAlgorithm.cs (1)
52public abstract void Append(ReadOnlySpan<byte> source);
Utilities\Hashing\XxHash128.cs (6)
75public static byte[] Hash(ReadOnlySpan<byte> source, long seed = 0) 88public static int Hash(ReadOnlySpan<byte> source, Span<byte> destination, long seed = 0) 104public static bool TryHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, long seed = 0) 124public static UInt128 HashToUInt128(ReadOnlySpan<byte> source, long seed = 0) 131private static Hash128 HashToHash128(ReadOnlySpan<byte> source, long seed = 0) 163public override void Append(ReadOnlySpan<byte> source)
Utilities\Hashing\XxHashShared.cs (2)
41public static ReadOnlySpan<byte> DefaultSecret => 248public static void Append(ref State state, ReadOnlySpan<byte> source)
Microsoft.AspNetCore.ResponseCaching (2)
ResponseCachingPolicyProvider.cs (1)
104var rawHeader = varyHeader[i].AsSpan();
src\aspnetcore\src\Shared\SegmentWriteStream.cs (1)
133public override void Write(ReadOnlySpan<byte> buffer)
Microsoft.AspNetCore.Rewrite (1)
ApacheModRewrite\FlagParser.cs (1)
73var tokenSpan = token.AsSpan();
Microsoft.AspNetCore.Routing (35)
Constraints\FileNameRouteConstraint.cs (1)
122internal static bool IsFileName(ReadOnlySpan<char> value)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\RegexGenerator.g.cs (4)
66protected override void Scan(ReadOnlySpan<char> inputSpan) 78private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 96private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 100ReadOnlySpan<char> slice = inputSpan.Slice(pos);
Matching\ContentEncodingNegotiationMatcherPolicy.cs (1)
19private protected override bool IsDefaultMetadataValue(ReadOnlySpan<char> candidate) =>
Matching\DfaMatcher.cs (5)
212ReadOnlySpan<PathSegment> segments) 238ReadOnlySpan<PathSegment> segments) 261ReadOnlySpan<PathSegment> segments) 279ReadOnlySpan<PathSegment> segments, 286var text = path.AsSpan(segment.Start, segment.Length);
Matching\DictionaryJumpTable.cs (3)
15private readonly FrozenDictionary<string, int>.AlternateLookup<ReadOnlySpan<char>> _lookup; 26_lookup = _dictionary.GetAlternateLookup<ReadOnlySpan<char>>(); 36var text = path.AsSpan(segment.Start, segment.Length);
Matching\FastPathTokenizer.cs (1)
26var span = path.AsSpan(start);
Matching\HostMatcherPolicy.cs (4)
94var host = hosts[j].AsSpan(); 95var port = ReadOnlySpan<char>.Empty; 167var hostSpan = host.AsSpan();
Matching\ILEmitTrieFactory.cs (5)
535var span = text.AsSpan(index, 4); 545var span = text.ToLowerOrdinal().AsSpan(index); 589Span = il.DeclareLocal(typeof(ReadOnlySpan<char>)); 705types: new[] { typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), }, 755/// <see cref="MemoryMarshal.GetReference{T}(ReadOnlySpan{T})"/> - GetReference[char]
Matching\LinearSearchJumpTable.cs (1)
33var pathSpan = path.AsSpan(segment.Start, segment.Length);
Matching\NegotiationMatcherPolicy.cs (1)
50private protected abstract bool IsDefaultMetadataValue(ReadOnlySpan<char> candidate);
Matching\SingleEntryAsciiJumpTable.cs (2)
44var a = path.AsSpan(segment.Start, length); 45var b = text.AsSpan();
Matching\SingleEntryJumpTable.cs (1)
33var pathSpan = path.AsSpan(segment.Start, length);
Patterns\RoutePatternMatcher.cs (3)
288ReadOnlySpan<char> requestSegment, 334ReadOnlySpan<char> requestSegment, 462var parameterValueSpan = requestSegment.Slice(parameterStartIndex, parameterTextLength);
src\aspnetcore\src\Shared\Debugger\DebuggerHelpers.cs (1)
28public static string GetDebugText(ReadOnlySpan<KeyValuePair<string, object?>> values, bool includeNullValues = true, string? prefix = null)
src\aspnetcore\src\Shared\HttpRuleParser.cs (2)
67var subspan = input.AsSpan(startIndex); 222ReadOnlySpan<char> inputSpan = input.AsSpan();
Microsoft.AspNetCore.Server.HttpSys (58)
Generated\361d1da7f942c932\Windows.Win32.HTTP_KNOWN_HEADER.InlineArrays.g.cs (4)
47 internal unsafe readonly ReadOnlySpan<winmdroot.Networking.HttpServer.HTTP_KNOWN_HEADER> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in _0), SpanLength); 49 public static implicit operator __HTTP_KNOWN_HEADER_41(ReadOnlySpan<winmdroot.Networking.HttpServer.HTTP_KNOWN_HEADER> value) 87 internal unsafe readonly ReadOnlySpan<winmdroot.Networking.HttpServer.HTTP_KNOWN_HEADER> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in _0), SpanLength); 89 public static implicit operator __HTTP_KNOWN_HEADER_30(ReadOnlySpan<winmdroot.Networking.HttpServer.HTTP_KNOWN_HEADER> value)
Generated\361d1da7f942c932\Windows.Win32.InlineArrayIndexerExtensions.g.cs (2)
23 internal static ReadOnlySpan<char> SliceAtNull(this ReadOnlySpan<char>value)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.byte.InlineArrays.g.cs (3)
52 internal unsafe readonly ReadOnlySpan<byte> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength); 54 internal readonly bool Equals(ReadOnlySpan<byte> value) => AsReadOnlySpan().SequenceEqual(value); 56 public static implicit operator __byte_16(ReadOnlySpan<byte> value)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.char.InlineArrays.g.cs (7)
53 internal unsafe readonly ReadOnlySpan<char> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength); 55 internal readonly bool Equals(ReadOnlySpan<char> value) => value.Length == SpanLength ? AsReadOnlySpan().SequenceEqual(value) : AsReadOnlySpan().SliceAtNull().SequenceEqual(value); 74 public static implicit operator __char_256(ReadOnlySpan<char> value) 111 internal unsafe readonly ReadOnlySpan<winmdroot.Foundation.CHAR> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in _0), SpanLength); 113 public static implicit operator __CHAR_14(ReadOnlySpan<winmdroot.Foundation.CHAR> value) 151 internal unsafe readonly ReadOnlySpan<winmdroot.Foundation.CHAR> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in _0), SpanLength); 153 public static implicit operator __CHAR_8(ReadOnlySpan<winmdroot.Foundation.CHAR> value)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PCSTR.g.cs (2)
75 internal ReadOnlySpan<byte> AsSpan() => this.Value is null ? default(ReadOnlySpan<byte>) : new ReadOnlySpan<byte>(this.Value, this.Length);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PCWSTR.g.cs (2)
75 internal ReadOnlySpan<char> AsSpan() => this.Value is null ? default(ReadOnlySpan<char>) : new ReadOnlySpan<char>(this.Value, this.Length);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PInvoke.HTTPAPI.dll.g.cs (4)
623 internal static unsafe uint HttpSendResponseEntityBody(SafeHandle RequestQueueHandle, ulong RequestId, uint Flags, [Optional] ReadOnlySpan<winmdroot.Networking.HttpServer.HTTP_DATA_CHUNK> EntityChunks, out uint BytesSent, [Optional] global::System.Threading.NativeOverlapped* Overlapped, [Optional] winmdroot.Networking.HttpServer.HTTP_LOG_DATA? LogData) 655 internal static unsafe uint HttpSendResponseEntityBody(SafeHandle RequestQueueHandle, ulong RequestId, uint Flags, [Optional] ReadOnlySpan<winmdroot.Networking.HttpServer.HTTP_DATA_CHUNK> EntityChunks, [Optional] global::System.Threading.NativeOverlapped* Overlapped, [Optional] winmdroot.Networking.HttpServer.HTTP_LOG_DATA? LogData) 729 internal static unsafe uint HttpSetRequestQueueProperty(SafeHandle RequestQueueHandle, winmdroot.Networking.HttpServer.HTTP_SERVER_PROPERTY Property, ReadOnlySpan<byte> PropertyInformation) 786 internal static unsafe uint HttpSetUrlGroupProperty(ulong UrlGroupId, winmdroot.Networking.HttpServer.HTTP_SERVER_PROPERTY Property, ReadOnlySpan<byte> PropertyInformation)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.ushort.InlineArrays.g.cs (3)
52 internal unsafe readonly ReadOnlySpan<ushort> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength); 54 internal readonly bool Equals(ReadOnlySpan<ushort> value) => AsReadOnlySpan().SequenceEqual(value); 56 public static implicit operator __ushort_8(ReadOnlySpan<ushort> value)
Helpers.cs (3)
13private static ReadOnlySpan<byte> ChunkTerminator => "0\r\n\r\n"u8; 14private static ReadOnlySpan<byte> CRLF => "\r\n"u8; 27private static byte[] AllocatePinned(ReadOnlySpan<byte> bytes)
IHttpSysRequestPropertyFeature.cs (1)
69bool TryGetRequestProperty(int propertyId, ReadOnlySpan<byte> qualifier, Span<byte> output, out int bytesReturned)
IHttpSysRequestTimingFeature.cs (1)
19ReadOnlySpan<long> Timestamps { get; }
RequestProcessing\Request.cs (2)
26private static ReadOnlySpan<char> TrimChars => [' ', '\t', ',']; 565var span = transferEncoding.AsSpan().TrimEnd(TrimChars);
RequestProcessing\RequestContext.cs (1)
322ReadOnlySpan<byte> qualifier,
RequestProcessing\RequestContext.FeatureCollection.cs (1)
801public bool TryGetRequestProperty(int propertyId, ReadOnlySpan<byte> qualifier, Span<byte> output, out int bytesReturned)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (3)
87public ReadOnlySpan<long> Timestamps 105return ReadOnlySpan<long>.Empty; 196var timestamps = Timestamps;
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (1)
2703private static ReadOnlySpan<HttpSysRequestHeader> HeaderKeys =>
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestUriBuilder.cs (2)
266private static int? UnescapePercentEncoding(ref int scan, int end, ReadOnlySpan<byte> buffer) 306private static int? ReadHex(ref int scan, int end, ReadOnlySpan<byte> buffer)
src\aspnetcore\src\Shared\PathNormalizer\PathNormalizer.cs (2)
18ReadOnlySpan<byte> dotSlash = "./"u8; 19ReadOnlySpan<byte> slashDot = "/."u8;
src\aspnetcore\src\Shared\ServerInfrastructure\HttpCharacters.cs (7)
58public static bool ContainsInvalidAuthorityChar(ReadOnlySpan<byte> span) => span.ContainsAnyExcept(_allowedAuthorityBytes); 60public static int IndexOfInvalidHostChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedHostChars); 62public static int IndexOfInvalidTokenChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedTokenChars); 64public static int IndexOfInvalidTokenChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedTokenBytes); 70public static int IndexOfInvalidFieldValueChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedFieldChars); 73public static int IndexOfInvalidFieldValueCharExtended(ReadOnlySpan<char> span) => span.IndexOfAny(_invalidFieldChars); 76public static bool ContainsInvalidQueryChar(ReadOnlySpan<char> span) => span.ContainsAny(_invalidQueryChars);
src\aspnetcore\src\Shared\ServerInfrastructure\StringUtilities.cs (5)
19public static string GetAsciiOrUTF8String(this ReadOnlySpan<byte> span, Encoding defaultEncoding) 54public static string GetAsciiString(this ReadOnlySpan<byte> span) 68public static string GetLatin1String(this ReadOnlySpan<byte> span) 79public static bool BytesOrdinalEqualsStringAndAscii(string previousValue, ReadOnlySpan<byte> newValue) 185ReadOnlySpan<byte> hexEncodeMap = "0123456789ABCDEF"u8;
UrlPrefix.cs (2)
127var portString = whole.AsSpan(hostDelimiterEnd, pathDelimiterStart - hostDelimiterEnd); // The leading ":" is included 131var portValueString = portString.Slice(1); // Trim the leading ":"
Microsoft.AspNetCore.Server.IIS (47)
Core\IISHttpContext.cs (2)
974ReadOnlySpan<char> trimChars = [' ', '\t', ',']; 975var span = transferEncoding.AsSpan().TrimEnd(trimChars);
Generated\361d1da7f942c932\Windows.Win32.HTTP_KNOWN_HEADER.InlineArrays.g.cs (2)
47 internal unsafe readonly ReadOnlySpan<winmdroot.Networking.HttpServer.HTTP_KNOWN_HEADER> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in _0), SpanLength); 49 public static implicit operator __HTTP_KNOWN_HEADER_41(ReadOnlySpan<winmdroot.Networking.HttpServer.HTTP_KNOWN_HEADER> value)
Generated\361d1da7f942c932\Windows.Win32.InlineArrayIndexerExtensions.g.cs (2)
23 internal static ReadOnlySpan<char> SliceAtNull(this ReadOnlySpan<char>value)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.byte.InlineArrays.g.cs (3)
52 internal unsafe readonly ReadOnlySpan<byte> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength); 54 internal readonly bool Equals(ReadOnlySpan<byte> value) => AsReadOnlySpan().SequenceEqual(value); 56 public static implicit operator __byte_16(ReadOnlySpan<byte> value)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.char.InlineArrays.g.cs (7)
53 internal unsafe readonly ReadOnlySpan<char> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength); 55 internal readonly bool Equals(ReadOnlySpan<char> value) => value.Length == SpanLength ? AsReadOnlySpan().SequenceEqual(value) : AsReadOnlySpan().SliceAtNull().SequenceEqual(value); 74 public static implicit operator __char_256(ReadOnlySpan<char> value) 111 internal unsafe readonly ReadOnlySpan<winmdroot.Foundation.CHAR> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in _0), SpanLength); 113 public static implicit operator __CHAR_14(ReadOnlySpan<winmdroot.Foundation.CHAR> value) 151 internal unsafe readonly ReadOnlySpan<winmdroot.Foundation.CHAR> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in _0), SpanLength); 153 public static implicit operator __CHAR_8(ReadOnlySpan<winmdroot.Foundation.CHAR> value)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PCSTR.g.cs (2)
75 internal ReadOnlySpan<byte> AsSpan() => this.Value is null ? default(ReadOnlySpan<byte>) : new ReadOnlySpan<byte>(this.Value, this.Length);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PCWSTR.g.cs (2)
75 internal ReadOnlySpan<char> AsSpan() => this.Value is null ? default(ReadOnlySpan<char>) : new ReadOnlySpan<char>(this.Value, this.Length);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.ushort.InlineArrays.g.cs (3)
52 internal unsafe readonly ReadOnlySpan<ushort> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength); 54 internal readonly bool Equals(ReadOnlySpan<ushort> value) => AsReadOnlySpan().SequenceEqual(value); 56 public static implicit operator __ushort_8(ReadOnlySpan<ushort> value)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (3)
87public ReadOnlySpan<long> Timestamps 105return ReadOnlySpan<long>.Empty; 196var timestamps = Timestamps;
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (1)
2703private static ReadOnlySpan<HttpSysRequestHeader> HeaderKeys =>
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestUriBuilder.cs (2)
266private static int? UnescapePercentEncoding(ref int scan, int end, ReadOnlySpan<byte> buffer) 306private static int? ReadHex(ref int scan, int end, ReadOnlySpan<byte> buffer)
src\aspnetcore\src\Shared\PathNormalizer\PathNormalizer.cs (2)
18ReadOnlySpan<byte> dotSlash = "./"u8; 19ReadOnlySpan<byte> slashDot = "/."u8;
src\aspnetcore\src\Shared\ServerInfrastructure\BufferExtensions.cs (2)
23public static ReadOnlySpan<byte> ToSpan(in this ReadOnlySequence<byte> buffer) 218var source = data.AsSpan();
src\aspnetcore\src\Shared\ServerInfrastructure\BufferWriter.cs (2)
92public void Write(ReadOnlySpan<byte> source) 142private void WriteMultiBuffer(ReadOnlySpan<byte> source)
src\aspnetcore\src\Shared\ServerInfrastructure\HttpCharacters.cs (7)
58public static bool ContainsInvalidAuthorityChar(ReadOnlySpan<byte> span) => span.ContainsAnyExcept(_allowedAuthorityBytes); 60public static int IndexOfInvalidHostChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedHostChars); 62public static int IndexOfInvalidTokenChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedTokenChars); 64public static int IndexOfInvalidTokenChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedTokenBytes); 70public static int IndexOfInvalidFieldValueChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedFieldChars); 73public static int IndexOfInvalidFieldValueCharExtended(ReadOnlySpan<char> span) => span.IndexOfAny(_invalidFieldChars); 76public static bool ContainsInvalidQueryChar(ReadOnlySpan<char> span) => span.ContainsAny(_invalidQueryChars);
src\aspnetcore\src\Shared\ServerInfrastructure\StringUtilities.cs (5)
19public static string GetAsciiOrUTF8String(this ReadOnlySpan<byte> span, Encoding defaultEncoding) 54public static string GetAsciiString(this ReadOnlySpan<byte> span) 68public static string GetLatin1String(this ReadOnlySpan<byte> span) 79public static bool BytesOrdinalEqualsStringAndAscii(string previousValue, ReadOnlySpan<byte> newValue) 185ReadOnlySpan<byte> hexEncodeMap = "0123456789ABCDEF"u8;
Microsoft.AspNetCore.Server.Kestrel.Core (294)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\RegexGenerator.g.cs (12)
116protected override void Scan(ReadOnlySpan<char> inputSpan) 134private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 159private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 164ReadOnlySpan<char> slice = inputSpan.Slice(pos); 277protected override void Scan(ReadOnlySpan<char> inputSpan) 289private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 311private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 315ReadOnlySpan<char> slice = inputSpan.Slice(pos); 410protected override void Scan(ReadOnlySpan<char> inputSpan) 428private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 451private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 459ReadOnlySpan<char> slice = inputSpan.Slice(pos);
Internal\Http\ChunkWriter.cs (1)
28ReadOnlySpan<byte> hex = "0123456789abcdef"u8;
Internal\Http\DateHeaderValueManager.cs (1)
16private static ReadOnlySpan<byte> DatePreambleBytes => "\r\nDate: "u8;
Internal\Http\Http1ChunkedEncodingMessageBody.cs (2)
455var suffixSpan = suffixBuffer.ToSpan(); 483var trailerSpan = trailerBuffer.ToSpan();
Internal\Http\Http1Connection.cs (12)
21internal static ReadOnlySpan<byte> Http2GoAwayHttp11RequiredBytes => [0, 0, 8, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13]; 28private static ReadOnlySpan<byte> BadRequestResponsePrefix => 30private static ReadOnlySpan<byte> HttpVersionNotSupportedResponsePrefix => 32private static ReadOnlySpan<byte> RequestTimeoutResponsePrefix => 34private static ReadOnlySpan<byte> HeadersTooLargeResponsePrefix => 36private static ReadOnlySpan<byte> RequestLineTooLongResponsePrefix => 39private static ReadOnlySpan<byte> ErrorResponseSuffix => "\r\n\r\n"u8; 40private static ReadOnlySpan<byte> ServerHeaderBytes => "\r\nServer: Kestrel"u8; 1076var errorBytes = errorSlice.IsSingleSegment ? errorSlice.FirstSpan : errorSlice.ToArray(); 1114var clientPrefaceRequestLine = Http2.Http2Connection.ClientPreface.Slice(0, PrefaceLineLength); 1115var currentRequestLine = requestData.Slice(0, PrefaceLineLength).ToSpan(); 1161private ReadOnlySpan<byte> GetStaticErrorResponsePrefix()
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, 817public ReadOnlySpan<byte> Span => Buffer.Span.Slice(0, Length);
Internal\Http\Http1ParsingHandler.cs (3)
23public void OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 55public void OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value)
Internal\Http\HttpHeaders.cs (9)
354var value = connection[i].AsSpan(); 381var byteValue = MemoryMarshal.AsBytes(value); 499private static ulong ReadLowerCaseUInt64(ReadOnlySpan<byte> value, ulong lowerCaseMask = 0x0020_0020_0020_0020) 513private static uint ReadLowerCaseUInt32(ReadOnlySpan<byte> value) 525private static ushort ReadLowerCaseUInt16(ReadOnlySpan<byte> value) 540var values = transferEncoding[i].AsSpan(); 568var byteValue = MemoryMarshal.AsBytes(values); 642private static bool TryReadLowerCaseUInt64(ReadOnlySpan<byte> byteValue, out ulong value) 662private static bool TryReadLowerCaseUInt32(ReadOnlySpan<byte> byteValue, out uint value)
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\HttpParser.cs (14)
64private static ReadOnlySpan<byte> RequestLineDelimiters => [ByteLF, 0]; 110private static byte[] AppendEndOfLine(ReadOnlySpan<byte> span, bool lineFeedOnly) 261private static bool TryTakeSingleHeader(TRequestHandler handler, ReadOnlySpan<byte> headerLine) 354private static bool IsTlsHandshake(ReadOnlySpan<byte> requestLine) 365private void RejectRequestHeader(ReadOnlySpan<byte> headerLine) 369private BadHttpRequestException GetInvalidRequestException(RequestRejectionReason reason, ReadOnlySpan<byte> headerLine) 395var errorBytes = errorSlice.IsSingleSegment ? errorSlice.FirstSpan : errorSlice.ToArray().AsSpan(); 414if (!reader.TryReadToAny(out ReadOnlySpan<byte> requestLine, RequestLineDelimiters, advancePastDelimiter: false)) 525var remaining = requestLine.Slice(offset); 544private static HttpParseResult TryGetUnknownMethodLength(ReadOnlySpan<byte> span, int baseOffset, out int methodEnd) 561private static HttpParseResult GetRequestLineError(ReadOnlySpan<byte> requestLine, int baseOffset) 569private static HttpParseResult GetRequestLineError(ReadOnlySpan<byte> requestLine, ref SequenceReader<byte> reader, int baseOffset) 574var fullLine = requestLineSequence.IsSingleSegment ? requestLineSequence.FirstSpan : requestLineSequence.ToArray(); 589var span = reader.UnreadSpan;
Internal\Http\HttpProtocol.cs (7)
549public virtual void OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value, bool checkForNewlineChars) 556public virtual void OnHeader(int index, bool indexOnly, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 564public void OnTrailer(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 1432private BadHttpRequestException GetInvalidRequestTargetException(ReadOnlySpan<byte> target)
Internal\Http\HttpRequestHeaders.cs (2)
94private void AppendContentLength(ReadOnlySpan<byte> value) 119private unsafe void AppendContentLengthCustomEncoding(ReadOnlySpan<byte> value, Encoding customEncoding)
Internal\Http\HttpResponseHeaders.cs (2)
18private static ReadOnlySpan<byte> CrLf => "\r\n"u8; 19private static ReadOnlySpan<byte> ColonSpace => ": "u8;
Internal\Http\IHttpHeadersHandler.cs (3)
22void OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value); 28void OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value);
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 (31)
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> TransferEncodingBytes => "transfer-encoding"u8; 53private static ReadOnlySpan<byte> KeepAliveBytes => "keep-alive"u8; 54private static ReadOnlySpan<byte> ProxyConnectionBytes => "proxy-connection"u8; 55private static ReadOnlySpan<byte> UpgradeBytes => "upgrade"u8; 56private static ReadOnlySpan<byte> ConnectBytes => "CONNECT"u8; 57private static ReadOnlySpan<byte> ProtocolBytes => ":protocol"u8; 59public static ReadOnlySpan<byte> ClientPreface => ClientPrefaceBytes; 642if (reader.TryReadTo(out ReadOnlySpan<byte> requestLine, (byte)'\n')) 670var span = preface.ToSpan(); 1571public void OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 1576public void OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 1589public void OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value) 1607private void OnHeaderCore(HeaderType headerType, int? staticTableIndex, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 1701private void ValidateHeaderContent(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 1721private void UpdateHeaderParsingState(ReadOnlySpan<byte> value, PseudoHeaderFields headerField) 1815private static PseudoHeaderFields GetPseudoHeaderField(ReadOnlySpan<byte> name) 1852private static bool IsConnectionSpecificHeaderField(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
Internal\Http2\Http2FrameWriter.cs (2)
35private static ReadOnlySpan<byte> ContinueBytes => [0x08, 0x03, (byte)'1', (byte)'0', (byte)'0']; 614private void SplitHeaderAcrossFrames(int streamId, ReadOnlySpan<byte> dataToFrame, bool endOfHeaders, bool isFramePrepared)
Internal\Http2\Http2OutputProducer.cs (5)
402public Task WriteDataAsync(ReadOnlySpan<byte> data, CancellationToken cancellationToken) 538public ValueTask<FlushResult> WriteDataToPipeAsync(ReadOnlySpan<byte> data, CancellationToken cancellationToken) 569public ValueTask<FlushResult> FirstWriteAsync(int statusCode, string? reasonPhrase, HttpResponseHeaders responseHeaders, ResponseBodyMode responseBodyMode, ReadOnlySpan<byte> data, CancellationToken cancellationToken) 579ValueTask<FlushResult> IHttpOutputProducer.WriteChunkAsync(ReadOnlySpan<byte> data, CancellationToken cancellationToken) 584public ValueTask<FlushResult> FirstWriteChunkedAsync(int statusCode, string? reasonPhrase, HttpResponseHeaders responseHeaders, ResponseBodyMode responseBodyMode, ReadOnlySpan<byte> data, CancellationToken cancellationToken)
Internal\Http2\Http2Stream.cs (6)
349var pathSegment = queryIndex == -1 ? path.AsSpan() : path.AsSpan(0, queryIndex); 418private bool TryValidatePath(ReadOnlySpan<char> pathSegment) 699public override void OnHeader(int index, bool indexOnly, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 739private void AppendHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
Internal\Http3\Http3FrameWriter.cs (1)
26private static ReadOnlySpan<byte> ContinueBytes => [0x00, 0x00, 0xff, 0x00];
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) 328public ValueTask<FlushResult> WriteChunkAsync(ReadOnlySpan<byte> data, CancellationToken cancellationToken) 333public Task WriteDataAsync(ReadOnlySpan<byte> data, CancellationToken cancellationToken) 358public ValueTask<FlushResult> WriteDataToPipeAsync(ReadOnlySpan<byte> data, CancellationToken cancellationToken)
Internal\Http3\Http3Stream.cs (33)
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> TransferEncodingBytes => "transfer-encoding"u8; 39private static ReadOnlySpan<byte> KeepAliveBytes => "keep-alive"u8; 40private static ReadOnlySpan<byte> ProxyConnectionBytes => "proxy-connection"u8; 41private static ReadOnlySpan<byte> UpgradeBytes => "upgrade"u8; 42private static ReadOnlySpan<byte> ConnectBytes => "CONNECT"u8; 275public void OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value) 282public void OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 287public void OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 300public override void OnHeader(int index, bool indexOnly, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 340private void AppendHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 345private void OnHeaderCore(HeaderType headerType, int? staticTableIndex, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 419private void ValidateHeaderContent(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 439private void UpdateHeaderParsingState(ReadOnlySpan<byte> value, PseudoHeaderFields headerField) 548private static PseudoHeaderFields GetPseudoHeaderField(ReadOnlySpan<byte> name) 585private static bool IsConnectionSpecificHeaderField(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 1167var pathSegment = queryIndex == -1 ? path.AsSpan() : path.AsSpan(0, queryIndex); 1236private bool TryValidatePath(ReadOnlySpan<char> pathSegment)
Internal\Http3\QPack\DecoderStreamReader.cs (1)
57var span = segment.Span;
Internal\Http3\QPack\EncoderStreamReader.cs (1)
104var span = segment.Span;
Internal\Http3\QPackHeaderWriter.cs (1)
125ReadOnlySpan<byte> statusBytes = System.Net.Http.HPack.StatusCodes.ToStatusBytes(statusCode);
Internal\HttpConnection.cs (1)
27private static ReadOnlySpan<byte> Http2Id => "h2"u8;
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)
Middleware\Internal\LoggingStream.cs (2)
132public override void Write(ReadOnlySpan<byte> source) 150private void Log(string method, ReadOnlySpan<byte> buffer)
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
52public readonly ReadOnlySpan<T> WrittenSpan
src\aspnetcore\src\Shared\PathNormalizer\PathNormalizer.cs (2)
18ReadOnlySpan<byte> dotSlash = "./"u8; 19ReadOnlySpan<byte> slashDot = "/."u8;
src\aspnetcore\src\Shared\runtime\Http2\Hpack\DynamicTable.cs (4)
53public void Insert(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 58public void Insert(int? staticTableIndex, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\aspnetcore\src\Shared\runtime\Http2\Hpack\HeaderField.cs (2)
14public HeaderField(int? staticTableIndex, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\aspnetcore\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 649private bool TryDecodeInteger(ReadOnlySpan<byte> data, ref int currentIndex, out int result)
src\aspnetcore\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\aspnetcore\src\Shared\runtime\Http2\Hpack\Huffman.cs (5)
14private static ReadOnlySpan<uint> EncodingTableCodes => // 257 275private static ReadOnlySpan<byte> EncodingTableBitLengths => // 257 577ReadOnlySpan<uint> encodingTableCodes = EncodingTableCodes; 578ReadOnlySpan<byte> encodingTableBitLengths = EncodingTableBitLengths; 669public static int Decode(ReadOnlySpan<byte> src, ref byte[] dstArray)
src\aspnetcore\src\Shared\runtime\Http2\Hpack\StatusCodes.cs (1)
11public static ReadOnlySpan<byte> ToStatusBytes(int statusCode)
src\aspnetcore\src\Shared\runtime\Http3\Frames\Http3Frame.cs (1)
15public static bool TryReadIntegerPair(ReadOnlySpan<byte> buffer, out long a, out long b, out int bytesRead)
src\aspnetcore\src\Shared\runtime\Http3\Helpers\VariableLengthIntegerHelper.cs (2)
40public static bool TryRead(ReadOnlySpan<byte> buffer, out long value, out int bytesRead) 101ReadOnlySpan<byte> span = reader.CurrentSpan;
src\aspnetcore\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 693private bool TryDecodeInteger(ReadOnlySpan<byte> data, ref int currentIndex, out int result)
src\aspnetcore\src\Shared\runtime\Http3\QPack\QPackEncoder.cs (2)
147public static bool EncodeLiteralHeaderFieldWithoutNameReference(string name, ReadOnlySpan<string> values, byte[] separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten) 220public static bool EncodeValueString(ReadOnlySpan<string> values, byte[]? separator, Encoding? valueEncoding, Span<byte> buffer, out int length)
src\aspnetcore\src\Shared\runtime\IHttpStreamHeadersHandler.cs (5)
9void OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value); 10void OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value); 12void OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value);
src\aspnetcore\src\Shared\ServerInfrastructure\BufferExtensions.cs (2)
23public static ReadOnlySpan<byte> ToSpan(in this ReadOnlySequence<byte> buffer) 218var source = data.AsSpan();
src\aspnetcore\src\Shared\ServerInfrastructure\BufferWriter.cs (2)
92public void Write(ReadOnlySpan<byte> source) 142private void WriteMultiBuffer(ReadOnlySpan<byte> source)
src\aspnetcore\src\Shared\ServerInfrastructure\Http2\Bitshifter.cs (2)
16public static uint ReadUInt24BigEndian(ReadOnlySpan<byte> source) 32public static uint ReadUInt31BigEndian(ReadOnlySpan<byte> source)
src\aspnetcore\src\Shared\ServerInfrastructure\Http2\Http2FrameReader.cs (4)
49var header = headerSlice.ToSpan(); 89var extendedHeaders = readableBuffer.Slice(HeaderLength, extendedHeaderLength).ToSpan(); 228var data = payload.ToSpan(); 241private static Http2PeerSetting ReadSetting(ReadOnlySpan<byte> payload)
src\aspnetcore\src\Shared\ServerInfrastructure\HttpCharacters.cs (7)
58public static bool ContainsInvalidAuthorityChar(ReadOnlySpan<byte> span) => span.ContainsAnyExcept(_allowedAuthorityBytes); 60public static int IndexOfInvalidHostChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedHostChars); 62public static int IndexOfInvalidTokenChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedTokenChars); 64public static int IndexOfInvalidTokenChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedTokenBytes); 70public static int IndexOfInvalidFieldValueChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedFieldChars); 73public static int IndexOfInvalidFieldValueCharExtended(ReadOnlySpan<char> span) => span.IndexOfAny(_invalidFieldChars); 76public static bool ContainsInvalidQueryChar(ReadOnlySpan<char> span) => span.ContainsAny(_invalidQueryChars);
src\aspnetcore\src\Shared\ServerInfrastructure\StringUtilities.cs (5)
19public static string GetAsciiOrUTF8String(this ReadOnlySpan<byte> span, Encoding defaultEncoding) 54public static string GetAsciiString(this ReadOnlySpan<byte> span) 68public static string GetLatin1String(this ReadOnlySpan<byte> span) 79public static bool BytesOrdinalEqualsStringAndAscii(string previousValue, ReadOnlySpan<byte> newValue) 185ReadOnlySpan<byte> hexEncodeMap = "0123456789ABCDEF"u8;
src\aspnetcore\src\Shared\UrlDecoder\UrlDecoder.cs (6)
18public static int DecodeRequestLine(ReadOnlySpan<byte> source, Span<byte> destination, bool isFormEncoding) 355/// Form Encoding is not supported compared to the <see cref="DecodeRequestLine(ReadOnlySpan{byte}, Span{byte}, bool)" /> 358public static int DecodeRequestLine(ReadOnlySpan<char> source, Span<char> destination) 555private static int UnescapePercentEncoding(ref int scan, ReadOnlySpan<char> buffer) 587private static int ReadHex(ref int scan, ReadOnlySpan<char> buffer) 606private static ReadOnlySpan<sbyte> CharToHexLookup =>
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (5)
src\aspnetcore\src\Shared\ServerInfrastructure\StringUtilities.cs (5)
19public static string GetAsciiOrUTF8String(this ReadOnlySpan<byte> span, Encoding defaultEncoding) 54public static string GetAsciiString(this ReadOnlySpan<byte> span) 68public static string GetLatin1String(this ReadOnlySpan<byte> span) 79public static bool BytesOrdinalEqualsStringAndAscii(string previousValue, ReadOnlySpan<byte> newValue) 185ReadOnlySpan<byte> hexEncodeMap = "0123456789ABCDEF"u8;
Microsoft.AspNetCore.SignalR.Common (7)
IInvocationBinder.cs (1)
49string? GetTarget(ReadOnlySpan<byte> utf8Bytes) => null;
Protocol\HandshakeProtocol.cs (1)
49public static ReadOnlySpan<byte> GetSuccessfulHandshake(IHubProtocol protocol) => _successHandshakeData.Span;
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
315public override void Write(ReadOnlySpan<byte> span) 391public ReadOnlySpan<byte> Span => Buffer.AsSpan(0, Length);
src\aspnetcore\src\SignalR\common\Shared\TextMessageParser.cs (1)
17var span = buffer.First.Span;
src\aspnetcore\src\SignalR\common\Shared\Utf8BufferTextReader.cs (1)
72var source = _utf8Buffer.First.Span;
src\aspnetcore\src\SignalR\common\Shared\Utf8BufferTextWriter.cs (1)
173private void WriteInternal(ReadOnlySpan<char> buffer)
Microsoft.AspNetCore.SignalR.Core (8)
Internal\DefaultHubDispatcher.cs (1)
962public override string? GetTargetName(ReadOnlySpan<byte> targetUtf8Bytes)
Internal\HubConnectionBinder.cs (1)
41public string? GetTarget(ReadOnlySpan<byte> targetUtf8Bytes)
Internal\HubDispatcher.cs (1)
16public abstract string? GetTargetName(ReadOnlySpan<byte> targetUtf8Bytes);
Internal\Utf8HashLookup.cs (5)
61internal bool TryGetValue(ReadOnlySpan<byte> encodedValue, [MaybeNullWhen(false), AllowNull] out string value) 79private bool TryGetValueSlow(ReadOnlySpan<byte> encodedValue, [MaybeNullWhen(false), AllowNull] out string value) 98private bool TryGetValueFromChars(ReadOnlySpan<char> key, [MaybeNullWhen(false), AllowNull] out string value) 115private static int GetHashCode(ReadOnlySpan<char> value) => 118private static int GetCaseSensitiveHashCode(ReadOnlySpan<byte> encodedValue)
Microsoft.AspNetCore.SignalR.Protocols.Json (3)
src\aspnetcore\src\SignalR\common\Shared\TextMessageParser.cs (1)
17var span = buffer.First.Span;
src\aspnetcore\src\SignalR\common\Shared\Utf8BufferTextReader.cs (1)
72var source = _utf8Buffer.First.Span;
src\aspnetcore\src\SignalR\common\Shared\Utf8BufferTextWriter.cs (1)
173private void WriteInternal(ReadOnlySpan<char> buffer)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (5)
Protocol\MessagePackHubProtocolWorker.cs (1)
656if (reader.TryReadStringSpan(out var span))
src\aspnetcore\src\SignalR\common\Shared\BinaryMessageParser.cs (2)
37var span = GetSpan(lengthPrefixBuffer); 75private static ReadOnlySpan<byte> GetSpan(in ReadOnlySequence<byte> lengthPrefixBuffer)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
315public override void Write(ReadOnlySpan<byte> span) 391public ReadOnlySpan<byte> Span => Buffer.AsSpan(0, Length);
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (5)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
315public override void Write(ReadOnlySpan<byte> span) 391public ReadOnlySpan<byte> Span => Buffer.AsSpan(0, Length);
src\aspnetcore\src\SignalR\common\Shared\TextMessageParser.cs (1)
17var span = buffer.First.Span;
src\aspnetcore\src\SignalR\common\Shared\Utf8BufferTextReader.cs (1)
72var source = _utf8Buffer.First.Span;
src\aspnetcore\src\SignalR\common\Shared\Utf8BufferTextWriter.cs (1)
173private void WriteInternal(ReadOnlySpan<char> buffer)
Microsoft.AspNetCore.SignalR.Specification.Tests (2)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
315public override void Write(ReadOnlySpan<byte> span) 391public ReadOnlySpan<byte> Span => Buffer.AsSpan(0, Length);
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
315public override void Write(ReadOnlySpan<byte> span) 391public ReadOnlySpan<byte> Span => Buffer.AsSpan(0, Length);
Microsoft.AspNetCore.TestHost (1)
WebHostBuilderExtensions.cs (1)
181ReadOnlySpan<string> solutionNames = default)
Microsoft.AspNetCore.WebSockets (10)
HandshakeHelpers.cs (4)
18private static ReadOnlySpan<byte> EncodedWebSocketKey => "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"u8; 75public static bool ParseDeflateOptions(ReadOnlySpan<char> extension, bool serverContextTakeover, 95ReadOnlySpan<char> value = (end >= 0 ? extension[..end] : extension).Trim(); 209static bool ParseWindowBits(ReadOnlySpan<char> value, out int? parsedValue)
src\aspnetcore\src\Shared\ValueStringBuilder\ValueListBuilder.cs (1)
54public ReadOnlySpan<T> AsSpan() => _span.Slice(0, _pos);
src\aspnetcore\src\Shared\ValueStringBuilder\ValueStringBuilder.cs (5)
105public ReadOnlySpan<char> AsSpan(bool terminate) 115public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 116public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 117public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 246public void Append(ReadOnlySpan<char> value)
Microsoft.AspNetCore.WebUtilities (38)
FormPipeReader.cs (13)
29private static ReadOnlySpan<byte> UTF8EqualEncoded => "="u8; 30private static ReadOnlySpan<byte> UTF8AndEncoded => "&"u8; 150private void ParseFormValuesFast(ReadOnlySpan<byte> span, 156ReadOnlySpan<byte> key; 157ReadOnlySpan<byte> value; 159var equalsDelimiter = GetEqualsForEncoding(); 160var andDelimiter = GetAndForEncoding(); 173ReadOnlySpan<byte> keyValuePair; 257var equalsDelimiter = GetEqualsForEncoding(); 258var andDelimiter = GetAndForEncoding(); 423private string GetDecodedString(ReadOnlySpan<byte> readOnlySpan) 459private ReadOnlySpan<byte> GetEqualsForEncoding() 471private ReadOnlySpan<byte> GetAndForEncoding()
HttpRequestStreamReader.cs (1)
192var source = new ReadOnlySpan<char>(_charBuffer, _charBufferIndex, charsRemaining);
HttpResponseStreamWriter.cs (4)
141public override void Write(ReadOnlySpan<char> value) 184public override void WriteLine(ReadOnlySpan<char> value) 658private int CopyToCharBuffer(ReadOnlySpan<char> value) 662var source = value.Slice(0, remaining);
MultipartBoundary.cs (1)
35public ReadOnlySpan<byte> BoundaryBytes => _boundaryBytes.AsSpan(_expectLeadingCrlf ? 0 : 2);
MultipartReaderStream.cs (2)
231var remainder = stream._innerStream.ReadLine(lengthLimit: 100).AsSpan(); // Whitespace may exceed the buffer. 341private static bool SubMatch(ArraySegment<byte> segment1, ReadOnlySpan<byte> matchBytes, out int matchOffset, out int matchCount)
QueryHelpers.cs (3)
85var uriToBeAppended = uri.AsSpan(); 86var anchorText = ReadOnlySpan<char>.Empty;
src\aspnetcore\src\Shared\PooledMemoryStream.cs (1)
113public override void Write(ReadOnlySpan<byte> buffer)
src\aspnetcore\src\Shared\QueryStringDecoder.cs (3)
20var source = chars.Span; 48var source = chars.Span; 75public static int Decode(ReadOnlySpan<char> source, Span<char> destination)
src\aspnetcore\src\Shared\UrlDecoder\UrlDecoder.cs (6)
18public static int DecodeRequestLine(ReadOnlySpan<byte> source, Span<byte> destination, bool isFormEncoding) 355/// Form Encoding is not supported compared to the <see cref="DecodeRequestLine(ReadOnlySpan{byte}, Span{byte}, bool)" /> 358public static int DecodeRequestLine(ReadOnlySpan<char> source, Span<char> destination) 555private static int UnescapePercentEncoding(ref int scan, ReadOnlySpan<char> buffer) 587private static int ReadHex(ref int scan, ReadOnlySpan<char> buffer) 606private static ReadOnlySpan<sbyte> CharToHexLookup =>
src\aspnetcore\src\Shared\WebEncoders\WebEncoders.cs (4)
79ReadOnlySpan<char> inputSpan = input.AsSpan(offset, count); 136ReadOnlySpan<char> inputSpan = input.AsSpan(offset, count); 399public static string Base64UrlEncode(ReadOnlySpan<byte> input) 437public static int Base64UrlEncode(ReadOnlySpan<byte> input, Span<char> output)
Microsoft.Build (107)
BackEnd\Components\Logging\BuildErrorTelemetryTracker.cs (3)
248private static ErrorCategory CategorizeMSBError(ReadOnlySpan<char> codeSpan) 275private static bool TryParseErrorNumber(ReadOnlySpan<char> codeSpan, out int errorNumber) 278ReadOnlySpan<char> digits = codeSpan.Slice(3, 4);
BuildCheck\Checks\ExecCliBuildCheck.cs (3)
72var commandSpan = execCommandValue.AsSpan(); 95var command = commandSpan.Slice(start, nextSeparatorIndex); 115private static bool TryGetMatchingKnownBuildCommand(ReadOnlySpan<char> command, out string knownBuildCommand)
Construction\Solution\SolutionFile.cs (2)
570var fileVersionFromHeader = 1393var aspNetPropertyName = ((propertyName.Length - indexOfFirstDot) > 0) ?
Definition\ToolsetReader.cs (1)
700ReadOnlySpan<char> remainder = expression.AsSpan(pos + PathBase.Length);
Evaluation\ConditionEvaluator.cs (4)
56if (TryGetSingleProperty(leftValue.AsSpan(), pieceStart, pieceEnd - pieceStart, out ReadOnlySpan<char> propertyName)) 109internal static bool TryGetSingleProperty(ReadOnlySpan<char> input, int beginning, int length, out ReadOnlySpan<char> propertyName) 125static bool ContainsInvalidCharacter(ReadOnlySpan<char> span)
Evaluation\Expander.cs (3)
487private static int ScanForClosingParenthesis(ReadOnlySpan<char> expression, int index) 530private static int ScanForClosingQuote(char quoteChar, ReadOnlySpan<char> expression, int index) 586ReadOnlySpan<char> argumentsSpan = argumentsMemory.Span;
Evaluation\Expander.Function.cs (9)
220ReadOnlySpan<char> expressionRoot = expressionFunction == null ? ReadOnlySpan<char>.Empty : expressionFunction.AsSpan(); 898ReadOnlySpan<char> functionName; 901ReadOnlySpan<char> remainder = ReadOnlySpan<char>.Empty; 906ReadOnlySpan<char> expressionFunctionAsSpan = expressionFunction.AsSpan(); 908ReadOnlySpan<char> expressionSubstringAsSpan = argumentStartIndex > -1 ? expressionFunctionAsSpan.Slice(methodStartIndex, argumentStartIndex - methodStartIndex) : ReadOnlySpan<char>.Empty; 974ReadOnlySpan<char> netPropertyName = expressionFunctionAsSpan.Slice(methodStartIndex, methodLength).Trim();
Evaluation\Expander.ItemExpander.Transforms.cs (1)
792ReadOnlySpan<char> span = stringToCheck.AsSpan(2, length - QuotedExpressionSurroundCharCount);
FileSystem\DirectoryCacheFileSystemWrapper.cs (2)
85FindPredicate predicate = (ref ReadOnlySpan<char> fileName) => 93FindTransform<string> transform = (ref ReadOnlySpan<char> fileName) => Path.Join(path.AsSpan(), fileName);
FileSystem\IDirectoryCache.cs (2)
33public delegate bool FindPredicate(ref ReadOnlySpan<char> fileName); 40public delegate TResult FindTransform<TResult>(ref ReadOnlySpan<char> fileName);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\RegexGenerator.g.cs (54)
588protected override void Scan(ReadOnlySpan<char> inputSpan) 600private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 622private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 634ReadOnlySpan<char> slice = inputSpan.Slice(pos); 1003protected override void Scan(ReadOnlySpan<char> inputSpan) 1015private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 1037private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 1057ReadOnlySpan<char> slice = inputSpan.Slice(pos); 1449protected override void Scan(ReadOnlySpan<char> inputSpan) 1467private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 1492private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 1500ReadOnlySpan<char> slice = inputSpan.Slice(pos); 1751protected override void Scan(ReadOnlySpan<char> inputSpan) 1769private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 1794private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 1805ReadOnlySpan<char> slice = inputSpan.Slice(pos); 1996protected override void Scan(ReadOnlySpan<char> inputSpan) 2014private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 2039private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 2047ReadOnlySpan<char> slice = inputSpan.Slice(pos); 2234protected override void Scan(ReadOnlySpan<char> inputSpan) 2252private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 2277private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 2285ReadOnlySpan<char> slice = inputSpan.Slice(pos); 2472protected override void Scan(ReadOnlySpan<char> inputSpan) 2490private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 2515private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 2530ReadOnlySpan<char> slice = inputSpan.Slice(pos); 2864protected override void Scan(ReadOnlySpan<char> inputSpan) 2882private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 2907private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 2915ReadOnlySpan<char> slice = inputSpan.Slice(pos); 3176protected override void Scan(ReadOnlySpan<char> inputSpan) 3188private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 3210private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 3216ReadOnlySpan<char> slice = inputSpan.Slice(pos); 3386protected override void Scan(ReadOnlySpan<char> inputSpan) 3398private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 3420private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 3436ReadOnlySpan<char> slice = inputSpan.Slice(pos); 3856protected override void Scan(ReadOnlySpan<char> inputSpan) 3868private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 3890private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 3902ReadOnlySpan<char> slice = inputSpan.Slice(pos); 4121protected override void Scan(ReadOnlySpan<char> inputSpan) 4133private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 4155private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 4161ReadOnlySpan<char> slice = inputSpan.Slice(pos); 4292protected override void Scan(ReadOnlySpan<char> inputSpan) 4310private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 4335private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 4339ReadOnlySpan<char> slice = inputSpan.Slice(pos); 4402ReadOnlySpan<byte> ascii = WordCharBitmap; 4510private static ReadOnlySpan<byte> WordCharBitmap => new byte[]
Logging\OptimizedStringIndenter.cs (2)
74ReadOnlySpan<char> input = state.s; 113private static Span<StringSegment> GetStringSegments(ReadOnlySpan<char> input, Span<StringSegment> segments, out StringSegment[]? pooledArray)
Logging\TerminalLogger\ITerminal.cs (2)
60void Write(ReadOnlySpan<char> text); 71void WriteLineFitToWidth(ReadOnlySpan<char> text);
Logging\TerminalLogger\Terminal.cs (3)
177public void Write(ReadOnlySpan<char> text) 203public void WriteLineFitToWidth(ReadOnlySpan<char> text) 205ReadOnlySpan<char> truncatedText = text.Slice(0, Math.Min(text.Length, Width - 1));
Logging\TerminalLogger\TerminalLogger.cs (5)
940ReadOnlySpan<char> outputPathSpan = outputPath.Span; 956var projectDisplayPathSpan = outputPathSpan; 957var workingDirectorySpan = workingDir.Span; 971var relativePathFromWorkingDirToSourceRoot = Path.GetRelativePath(workingDirectorySpan.ToString(), sourceRootSpan.ToString()).AsSpan(); 1228var projectFileName = Path.GetFileName(e.ProjectFile.AsSpan());
Logging\TerminalLogger\TerminalNodesFrame.cs (3)
53internal ReadOnlySpan<char> RenderNodeStatus(int i) 116var span = builder.ToString().AsSpan(); 151ReadOnlySpan<char> needed = RenderNodeStatus(i);
src\5057ed6cf5d6323b\SegmentedDictionary`2.cs (1)
194ReadOnlySpan<KeyValuePair<TKey, TValue>> span;
src\9f0d3f3da306d8cf\ImmutableArrayExtensions.cs (1)
1322internal static int BinarySearch<TElement, TValue>(this ReadOnlySpan<TElement> array, TValue value, Func<TElement, TValue, int> comparer)
Utilities\SimpleVersion.cs (6)
112var span = RemoveTrivia(input); 128private static ReadOnlySpan<char> RemoveTrivia(string input) 131ReadOnlySpan<char> span = input.AsSpan().Trim(); 149private static bool ParseComponent(ref ReadOnlySpan<char> span, out int value) 165private static int ParseComponent(ReadOnlySpan<char> span) 171var spanOrString = span;
Microsoft.Build.Framework (174)
Collections\RefArrayBuilder.cs (5)
107/// Returns a <see cref="ReadOnlySpan{T}"/> view of the elements in the builder. 153public void AddRange(scoped ReadOnlySpan<T> source) 170private void AddRangeCore(scoped ReadOnlySpan<T> source) 235public void InsertRange(int index, scoped ReadOnlySpan<T> source) 260private void InsertRangeCore(int index, scoped ReadOnlySpan<T> source)
Coordinator\CoordinatorSettings.cs (6)
190public readonly ReadOnlySpan<char> Prefix; 191public readonly ReadOnlySpan<byte> Hash; 193public PrefixAndHash(ReadOnlySpan<char> prefix, ReadOnlySpan<byte> hash) 199public void Deconstruct(out ReadOnlySpan<char> prefix, out ReadOnlySpan<byte> hash)
EscapingUtilities.cs (7)
268static string Encode(string value, ReadOnlySpan<int> specialCharIndices) 348private readonly ref struct EncodingHelper(ReadOnlySpan<char> value, ReadOnlySpan<int> indices) 350public readonly ReadOnlySpan<char> Value = value; 351public readonly ReadOnlySpan<int> Indices = indices; 353public void Deconstruct(out ReadOnlySpan<char> value, out ReadOnlySpan<int> indices)
FileClassifier.cs (2)
80private static ReadOnlySpan<char> MicrosoftAssemblyPrefixSpan => s_microsoftAssemblyPrefixChars; 222public static bool IsMicrosoftAssembly(ReadOnlySpan<char> assemblyName)
FileUtilities.cs (5)
653internal static bool ContainsParentTraversalSegment(ReadOnlySpan<char> path) 659ReadOnlySpan<char> segment = sep < 0 ? path : path.Slice(0, sep); 751var span = value.Span; 822internal static bool LooksLikeUnixFilePath(ReadOnlySpan<char> value, string baseDirectory = "") 842ReadOnlySpan<char> directory = value.Slice(0, directoryLength);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LibraryImports.g.cs (2)
10private static partial int sysctl(global::System.ReadOnlySpan<int> name, uint namelen, global::System.Span<byte> oldp, ref nuint oldlenp, global::System.ReadOnlySpan<byte> newp, nuint newlen)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\RegexGenerator.g.cs (37)
383protected override void Scan(ReadOnlySpan<char> inputSpan) 401private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 426private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 434ReadOnlySpan<char> slice = inputSpan.Slice(pos); 719protected override void Scan(ReadOnlySpan<char> inputSpan) 731private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 753private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 793ReadOnlySpan<char> slice = inputSpan.Slice(pos); 1572protected override void Scan(ReadOnlySpan<char> inputSpan) 1584private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 1606private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 1621ReadOnlySpan<char> slice = inputSpan.Slice(pos); 1930protected override void Scan(ReadOnlySpan<char> inputSpan) 1942private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 1964private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 1976ReadOnlySpan<char> slice = inputSpan.Slice(pos); 2227protected override void Scan(ReadOnlySpan<char> inputSpan) 2239private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 2257private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 2262ReadOnlySpan<char> slice = inputSpan.Slice(pos); 2349protected override void Scan(ReadOnlySpan<char> inputSpan) 2361private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 2383private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 2389ReadOnlySpan<char> slice = inputSpan.Slice(pos); 2504protected override void Scan(ReadOnlySpan<char> inputSpan) 2516private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 2538private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 2544ReadOnlySpan<char> slice = inputSpan.Slice(pos); 2659protected override void Scan(ReadOnlySpan<char> inputSpan) 2671private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 2693private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 2700ReadOnlySpan<char> slice = inputSpan.Slice(pos); 2843protected override void Scan(ReadOnlySpan<char> inputSpan) 2855private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 2877private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 2885ReadOnlySpan<char> slice = inputSpan.Slice(pos); 3036internal static int IndexOfNonAsciiOrAny_F3AB3F3F4FCE6B47736BA4E76A9A11DA2B4447C69F4C9FA350AE81D34C1A226B(this ReadOnlySpan<char> span)
Globbing\GlobPattern.cs (10)
43ReadOnlySpan<char> normalizedFilename = NormalizeFilename(filename, _trailingDot); 66internal bool IsMatch(ReadOnlySpan<char> input) 77ReadOnlySpan<char> filename = input[start..]; 100private int Match(ReadOnlySpan<char> input, out int wildcardStart, out int filenameStart, int matchedFilename = -1) 211private static bool TryNext(ReadOnlySpan<char> input, ref Backtrack state, out int position) 273private static bool IsAsciiName(ReadOnlySpan<char> name) 286internal static bool MatchesName(ReadOnlySpan<char> input, string pattern, bool ignoreCase = true) 288if (ignoreCase && input == ReadOnlySpan<char>.Empty) 297private static bool MatchOrdinal(ReadOnlySpan<char> input, ReadOnlySpan<char> pattern, bool ignoreCase = true)
Globbing\MSBuildPathMatcher.cs (37)
157internal bool MatchesFile(ReadOnlySpan<char> relativeDirectory, ReadOnlySpan<char> fileName) 167internal bool MatchesFile(ReadOnlySpan<char> relativeDirectory, string filePath) 177internal bool MatchesFilesInDirectory(ReadOnlySpan<char> relativeDirectory) 186internal bool MatchesFileName(ReadOnlySpan<char> fileName) => 197internal bool CanMatchDescendants(ReadOnlySpan<char> relativeDirectory) 207ReadOnlySpan<char> currentDirectory, 208ReadOnlySpan<char> directoryName) 226ReadOnlySpan<char> relativeDirectory, 240ReadOnlySpan<char> currentDirectory, 241ReadOnlySpan<char> directoryName, 419ReadOnlySpan<char> segment = segments.Current; 495private static ReadOnlySpan<char> GetFileName(string path) 497ReadOnlySpan<char> span = path.AsSpan(); 510ReadOnlySpan<char> name, 523private bool MatchesFileNameCore(ReadOnlySpan<char> fileName) 534private bool MatchesDirectoryName(ReadOnlySpan<char> directoryName, int patternIndex) 571ReadOnlySpan<char> segment = segments.Current; 596private readonly ReadOnlySpan<char> _firstPath; 597private readonly ReadOnlySpan<char> _secondPath; 599private ReadOnlySpan<char> _current; 604ReadOnlySpan<char> path, 611ReadOnlySpan<char> firstPath, 612ReadOnlySpan<char> secondPath) 618ReadOnlySpan<char> firstPath, 619ReadOnlySpan<char> secondPath, 627internal readonly ReadOnlySpan<char> Current => _current; 628internal readonly ReadOnlySpan<char> FirstPath => _firstPath; 629internal readonly ReadOnlySpan<char> SecondPath => _secondPath; 635ReadOnlySpan<char> path = _readingSecondPath ? _secondPath : _firstPath; 672private readonly ReadOnlySpan<char> _firstPath; 673private readonly ReadOnlySpan<char> _secondPath; 674private ReadOnlySpan<char> _current; 679ReadOnlySpan<char> firstPath, 680ReadOnlySpan<char> secondPath) 688internal readonly ReadOnlySpan<char> Current => _current; 694ReadOnlySpan<char> path = _readingSecondPath ? _secondPath : _firstPath;
NodeMode.cs (2)
70public static bool TryParse(ReadOnlySpan<char> value, [NotNullWhen(true)] out NodeMode? nodeMode) 77private static bool TryParseImpl(ReadOnlySpan<char> value, [NotNullWhen(true)] out NodeMode? nodeMode)
Utilities\AssemblyNameExtension.cs (2)
585ReadOnlySpan<char> nameThis = asString1.AsSpan(0, baseLenThis); 586ReadOnlySpan<char> nameThat = asString2.AsSpan(0, baseLenThat);
Utilities\BufferScope.cs (2)
158/// Implicitly converts a <see cref="BufferScope{T}"/> to a <see cref="ReadOnlySpan{T}"/>. 162public static implicit operator ReadOnlySpan<T>(BufferScope<T> scope)
Utilities\FileMatcher.cs (36)
1588internal static bool IsWin32FileNameMatch(ReadOnlySpan<char> fileName, string pattern) 2446ReadOnlySpan<char> span = spec.AsSpan(); 2473ReadOnlySpan<char> includeBaseDirectory = GetFixedDirectory(fileSpec); 2483ReadOnlySpan<char> excludeBaseDirectory = GetFixedDirectory(excludeSpec); 2497static ReadOnlySpan<char> GetFixedDirectory(string spec) 2499ReadOnlySpan<char> span = spec.AsSpan(); 2501ReadOnlySpan<char> beforeWildcard = firstWildcard >= 0 2507: ReadOnlySpan<char>.Empty; 2513ReadOnlySpan<char> includeBaseDirectory, 2515ReadOnlySpan<char> excludeBaseDirectory) 2554ReadOnlySpan<char> includeBaseDirectory, 2555ReadOnlySpan<char> excludeBaseDirectory) 2561ReadOnlySpan<char> possibleChild, 2562ReadOnlySpan<char> possibleParent) 2773out ReadOnlySpan<char> excludeRelativeDirectory) 2968if (TryGetRelativeDirectory(exclude.BaseDirectory, directory, out ReadOnlySpan<char> relativeDirectory) 2969&& exclude.Matcher.MatchesDirectory(ReadOnlySpan<char>.Empty, relativeDirectory) == DirectoryMatchType.AllDescendantFilesMatch) 2982out ReadOnlySpan<char> relativeDirectory) 2984ReadOnlySpan<char> baseSpan = baseDirectory.AsSpan(); 2990ReadOnlySpan<char> directorySpan = directory.AsSpan(); 3128out ReadOnlySpan<char> relativeDirectory)) 3182if (!TryGetRelativeDirectory(_enumerationRoot, directory, out ReadOnlySpan<char> relativeDirectory) 3183|| _includeMatcher.MatchesDirectory(ReadOnlySpan<char>.Empty, relativeDirectory) == DirectoryMatchType.NoDescendantFilesMatch) 3195&& exclude.Matcher.MatchesDirectory(ReadOnlySpan<char>.Empty, relativeDirectory) == DirectoryMatchType.AllDescendantFilesMatch) 3206if (!TryGetRelativeDirectory(_enumerationRoot, entry.Directory, out ReadOnlySpan<char> relativeDirectory)) 3218protected override void OnDirectoryFinished(ReadOnlySpan<char> directory) 3234private void EnsureFileState(ReadOnlySpan<char> directory) 3242TryGetRelativeDirectory(_enumerationRoot, directory, out ReadOnlySpan<char> relativeDirectory) 3265out ReadOnlySpan<char> relativeDirectory) => 3274ReadOnlySpan<char> directory, 3275out ReadOnlySpan<char> relativeDirectory) => 3284ReadOnlySpan<char> directory, 3286out ReadOnlySpan<char> relativeDirectory) 3288ReadOnlySpan<char> baseSpan = baseDirectory.AsSpan(); 3323ReadOnlySpan<char> projectDirectorySpan = projectDirectory.AsSpan(); 3357private static void AppendPathPart(ref ValueStringBuilder builder, ReadOnlySpan<char> part)
Utilities\HexConverter.cs (1)
25private static ReadOnlySpan<byte> CharToHexLookup =>
Utilities\MessageFormatter.cs (3)
80public static string Format(string format, params ReadOnlySpan<object?> args) 175public static string Format(CultureInfo? culture, string format, params ReadOnlySpan<object?> args) 199private static void ValidateArgs(ReadOnlySpan<object?> args)
Utilities\ProcessExtensions.cs (9)
163private static string ParseNullSeparatedArguments(ReadOnlySpan<byte> data, int maxArgs = int.MaxValue) 179ReadOnlySpan<byte> segment = nullIndex >= 0 ? data.Slice(0, nullIndex) : data; 514ReadOnlySpan<int> name, 518ReadOnlySpan<byte> newp, 524private static int Sysctl(ReadOnlySpan<int> name, Span<byte> oldp, ref nuint oldlenp) 525=> sysctl(name, (uint)name.Length, oldp, ref oldlenp, ReadOnlySpan<byte>.Empty, 0); 543ReadOnlySpan<int> mib = OperatingSystem.IsFreeBSD() 568ReadOnlySpan<byte> data = buffer.AsSpan().Slice(0, (int)size); 613ReadOnlySpan<int> mib = [CTL_KERN, KERN_PROC_ARGS_OPENBSD, processId, KERN_PROC_ARGV_OPENBSD];
Utilities\ValueStringBuilder.cs (8)
148public ReadOnlySpan<char> AsSpan(bool terminate) 162public readonly ReadOnlySpan<char> AsSpan() => _chars[.._length]; 167public readonly ReadOnlySpan<char> this[Range range] => _chars[.._length][range]; 172public readonly ReadOnlySpan<char> Slice(int start) 182public readonly ReadOnlySpan<char> Slice(int start, int length) 368public void Append(scoped ReadOnlySpan<char> value) 457/// Implicitly converts a <see cref="ValueStringBuilder"/> to a <see cref="ReadOnlySpan{T}"/>. 459public static implicit operator ReadOnlySpan<char>(ValueStringBuilder builder) => builder._chars[..builder._length];
Microsoft.Build.NuGetSdkResolver (3)
src\nuget-client\build\Shared\Utf8JsonStreamReader.cs (3)
85internal bool ValueTextEquals(ReadOnlySpan<byte> utf8Text) => _reader.ValueTextEquals(utf8Text); 360ReadOnlySpan<byte> leftover = oldBuffer.AsSpan(bytesConsumed); 390ReadOnlySpan<byte> value = _reader.ValueSpan;
Microsoft.Build.Tasks.CodeAnalysis (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\CommandLineUtilities.cs (1)
61public static void SplitCommandLineIntoArguments(ReadOnlySpan<char> commandLine, bool removeHashComments, StringBuilder builder, List<string> list, out char? illegalChar)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
102public void AppendFormatted(ReadOnlySpan<char> value) => _builder!.Append(value.ToString());
Microsoft.Build.Tasks.Core (22)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\RegexGenerator.g.cs (22)
206protected override void Scan(ReadOnlySpan<char> inputSpan) 224private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 249private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 253ReadOnlySpan<char> slice = inputSpan.Slice(pos); 326protected override void Scan(ReadOnlySpan<char> inputSpan) 338private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 360private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 366ReadOnlySpan<char> slice = inputSpan.Slice(pos); 494protected override void Scan(ReadOnlySpan<char> inputSpan) 506private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 524private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 542ReadOnlySpan<char> slice = inputSpan.Slice(pos); 1197protected override void Scan(ReadOnlySpan<char> inputSpan) 1209private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 1231private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 1239ReadOnlySpan<char> slice = inputSpan.Slice(pos); 1322ReadOnlySpan<char> repeaterSlice = slice.Slice(0, 16); 1397protected override void Scan(ReadOnlySpan<char> inputSpan) 1409private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 1431private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 1437ReadOnlySpan<char> slice = inputSpan.Slice(pos); 1545internal static int IndexOfAnyDigit(this ReadOnlySpan<char> span)
Microsoft.Build.Tasks.Git (3)
parent\Common\Utilities\Hash.cs (3)
222internal static int GetFNVHashCode(ReadOnlySpan<byte> data, out bool isAscii) 265internal static int GetFNVHashCode(ReadOnlySpan<char> data) 408internal static int CombineFNVHash(int hashCode, ReadOnlySpan<char> data)
Microsoft.CodeAnalysis (116)
CaseInsensitiveComparison.cs (8)
125public int Compare(ReadOnlySpan<char> str1, ReadOnlySpan<char> str2) 174public bool Equals(ReadOnlySpan<char> str1, ReadOnlySpan<char> str2) 307public static bool Equals(ReadOnlySpan<char> left, ReadOnlySpan<char> right) => s_comparer.Equals(left, right); 347public static int Compare(ReadOnlySpan<char> left, ReadOnlySpan<char> right) => s_comparer.Compare(left, right);
CodeGen\TokenMap.cs (1)
105public ReadOnlySpan<object> GetAllItems()
CommandLine\CommandLineParser.cs (9)
91/// Determines if a <see cref="ReadOnlySpan{Char}"/> is equal to the provided option name 94/// Prefer this over the Equals methods on <see cref="ReadOnlySpan{Char}"/>. The 100internal static bool IsOptionName(string optionName, ReadOnlySpan<char> value) 125static void assertAllAscii(ReadOnlySpan<char> span) 140internal static bool IsOption(ReadOnlySpan<char> arg) => 955var arg = argMemory.Span; 979static void processSlashes(StringBuilder builder, ReadOnlySpan<char> arg, ref int i) 1034var span = arg.Span; 1090var span = memory.Span;
Compilation\DeterministicKeyBuilder.cs (3)
62internal static string EncodeByteArrayValue(ReadOnlySpan<byte> value) 69internal static void EncodeByteArrayValue(ReadOnlySpan<byte> value, StringBuilder builder) 77protected static void WriteByteArrayValue(JsonWriter writer, string name, ReadOnlySpan<byte> value) =>
DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (1)
448private static string HashToHex(ReadOnlySpan<char> value)
DiaSymReader\Writer\SymUnmanagedWriter.cs (4)
52public abstract int DefineDocument(string name, Guid language, Guid vendor, Guid type, Guid algorithmId, ReadOnlySpan<byte> checksum, ReadOnlySpan<byte> source); 135ReadOnlySpan<int> yieldOffsets, 136ReadOnlySpan<int> resumeOffsets);
DiaSymReader\Writer\SymUnmanagedWriterImpl.cs (4)
149public override int DefineDocument(string name, Guid language, Guid vendor, Guid type, Guid algorithmId, ReadOnlySpan<byte> checksum, ReadOnlySpan<byte> source) 483ReadOnlySpan<int> yieldOffsets, 484ReadOnlySpan<int> resumeOffsets)
Emit\CommonPEModuleBuilder.cs (1)
522public ReadOnlySpan<object> ReferencesInIL()
FileSystem\PathUtilities.cs (1)
826public static string CollapseWithForwardSlash(ReadOnlySpan<char> path)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\RegexGenerator.g.cs (8)
112protected override void Scan(ReadOnlySpan<char> inputSpan) 124private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 146private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 158ReadOnlySpan<char> slice = inputSpan.Slice(pos); 527protected override void Scan(ReadOnlySpan<char> inputSpan) 539private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 561private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 581ReadOnlySpan<char> slice = inputSpan.Slice(pos);
Hashing\NonCryptographicHashAlgorithm.cs (1)
53public abstract void Append(ReadOnlySpan<byte> source);
Hashing\XxHash128.cs (6)
77public static byte[] Hash(ReadOnlySpan<byte> source, long seed = 0) 90public static int Hash(ReadOnlySpan<byte> source, Span<byte> destination, long seed = 0) 106public static bool TryHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, long seed = 0) 126public static UInt128 HashToUInt128(ReadOnlySpan<byte> source, long seed = 0) 133private static Hash128 HashToHash128(ReadOnlySpan<byte> source, long seed = 0) 165public override void Append(ReadOnlySpan<byte> source)
Hashing\XxHashShared.cs (2)
42public static ReadOnlySpan<byte> DefaultSecret => 249public static void Append(ref State state, ReadOnlySpan<byte> source)
InternalSpecialType.cs (2)
20/// Indicates that the type is <see cref="System.ReadOnlySpan{T}"/> from the COR library. 23/// Check for this special type cannot be used to find the "canonical" definition of <see cref="ReadOnlySpan{T}"/>
InternalUtilities\CommandLineUtilities.cs (1)
61public static void SplitCommandLineIntoArguments(ReadOnlySpan<char> commandLine, bool removeHashComments, StringBuilder builder, List<string> list, out char? illegalChar)
InternalUtilities\Debug.cs (1)
102public void AppendFormatted(ReadOnlySpan<char> value) => _builder!.Append(value.ToString());
InternalUtilities\FileNameUtilities.cs (1)
48private static int IndexOfExtension(ReadOnlySpan<char> path)
InternalUtilities\Hash.cs (4)
229internal static int GetFNVHashCode(ReadOnlySpan<byte> data, out bool isAscii) 272internal static int GetFNVHashCode(ReadOnlySpan<char> data) 295internal static int GetCaseInsensitiveFNVHashCode(ReadOnlySpan<char> data) 401internal static int CombineFNVHash(int hashCode, ReadOnlySpan<char> data)
InternalUtilities\HexUtilities.cs (4)
11internal static string ToHexString(ReadOnlySpan<byte> bytes) 14internal static string ToHexStringLower(ReadOnlySpan<byte> bytes) 17private static string ToHexString(ReadOnlySpan<byte> bytes, bool upperCase) 29static void toHex(ReadOnlySpan<byte> source, Span<char> destination, char firstHexLetter)
InternalUtilities\LittleEndianReader.cs (4)
16private ReadOnlySpan<byte> _span; 18public LittleEndianReader(ReadOnlySpan<byte> span) 44internal ReadOnlySpan<byte> ReadBytes(int byteCount) 46var result = _span.Slice(0, byteCount);
InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (1)
22public static bool Equals(ReadOnlySpan<char> x, ReadOnlyMemory<char> y)
InternalUtilities\SpanUtilities.cs (2)
11public static bool All<TElement, TParam>(this ReadOnlySpan<TElement> span, TParam param, Func<TElement, TParam, bool> predicate) 24public static bool All<TElement>(this ReadOnlySpan<TElement> span, Func<TElement, bool> predicate)
InternalUtilities\StringTable.cs (8)
122internal string Add(ReadOnlySpan<char> chars) 199private static string? FindSharedEntry(ReadOnlySpan<char> chars, int hashCode) 237private static string? FindSharedEntryASCII(int hashCode, ReadOnlySpan<byte> asciiChars) 313private string AddItem(ReadOnlySpan<char> chars, int hashCode) 389internal static string AddSharedUtf8(ReadOnlySpan<byte> bytes) 405private static string AddSharedSlow(int hashCode, ReadOnlySpan<byte> utf8Bytes, bool isAscii) 529internal static bool TextEqualsASCII(string text, ReadOnlySpan<byte> ascii) 554internal static bool TextEquals(string array, ReadOnlySpan<char> text)
InternalUtilities\TextKeyedCache.cs (3)
114internal T? FindItem(ReadOnlySpan<char> chars, int hashCode) 144private SharedEntryValue? FindSharedEntry(ReadOnlySpan<char> chars, int hashCode) 186internal void AddItem(ReadOnlySpan<char> chars, int hashCode, T item)
MemoryExtensions.cs (4)
13public static int IndexOf(this ReadOnlySpan<char> span, char target, int startIndex) 26public static int IndexOfAny(this ReadOnlySpan<char> span, char[] characters) 79var span = memory.Span; 95var span = memory.Span;
MetadataReader\MetadataHelpers.cs (3)
509private static short InferTypeArityFromMetadataName(ReadOnlySpan<char> emittedTypeName, out int suffixStartsAt) 541static short? tryScanArity(ReadOnlySpan<char> aritySpan) 632var nameSpan = nameMemory.Span;
NativePdbWriter\PdbWriter.cs (2)
603ReadOnlySpan<byte> checksum; 604ReadOnlySpan<byte> embeddedSource;
Operations\ControlFlowGraphBuilder.cs (1)
7851private void VisitUsingVariableDeclarationOperation(IUsingDeclarationOperation operation, ReadOnlySpan<IOperation> statements)
PEWriter\InstructionOperandTypes.cs (2)
27internal static ReadOnlySpan<byte> OneByte => new byte[] 287internal static ReadOnlySpan<byte> TwoByte => new byte[]
PEWriter\MetadataWriter.cs (1)
462var referencesInIL = module.ReferencesInIL();
SourceGeneration\CompilationCache.cs (2)
161var aSpan = a.AsSpan(); 162var bSpan = b.AsSpan();
src\roslyn\src\Dependencies\Collections\Extensions\MemoryExtensions.cs (2)
15/// Variant of <see cref="System.MemoryExtensions.BinarySearch{T, TComparer}(ReadOnlySpan{T}, T, TComparer)"/>. 17public static int BinarySearch<TElement, TValue>(this ReadOnlySpan<TElement> span, TValue value, Func<TElement, TValue, int> comparer)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
194ReadOnlySpan<KeyValuePair<TKey, TValue>> span;
StrongName\CryptoBlobParser.cs (3)
160ReadOnlySpan<byte> pubKeyData) 229var modulus = br.ReadBytes(modulusLength); 257internal static RSAParameters ToRSAParameters(this ReadOnlySpan<byte> cspBlob, bool includePrivateParameters)
Symbols\WellKnownGeneratedNameParser.cs (1)
22public static bool TryParseDebugIds(ReadOnlySpan<char> metadataNameSuffix, char idSeparator, bool isMethodIdOptional, out DebugId methodId, out DebugId entityId)
Syntax\SeparatedSyntaxList.cs (1)
20public static SeparatedSyntaxList<TNode> Create<TNode>(ReadOnlySpan<TNode> nodes) where TNode : SyntaxNode
Syntax\SyntaxList`1.cs (2)
21public static SyntaxList<TNode> Create<TNode>(ReadOnlySpan<TNode> nodes) where TNode : SyntaxNode 28static GreenNode createGreenNode(ReadOnlySpan<TNode> nodes)
Syntax\SyntaxNodeOrTokenList.cs (2)
69public static SyntaxNodeOrTokenList Create(ReadOnlySpan<SyntaxNodeOrToken> nodesAndTokens) 77private static SyntaxNode? CreateNodeFromSpan(ReadOnlySpan<SyntaxNodeOrToken> nodesAndTokens)
Syntax\SyntaxNodeOrTokenListBuilder.cs (1)
111public void Add(ReadOnlySpan<SyntaxNodeOrToken> nodeOrTokens)
Syntax\SyntaxTokenList.cs (2)
65public static SyntaxTokenList Create(ReadOnlySpan<SyntaxToken> tokens) 73private static GreenNode? CreateNodeFromSpan(ReadOnlySpan<SyntaxToken> tokens)
Syntax\SyntaxTriviaList.cs (2)
71public static SyntaxTriviaList Create(ReadOnlySpan<SyntaxTrivia> trivias) 79private static GreenNode? CreateNodeFromSpan(ReadOnlySpan<SyntaxTrivia> trivias)
Syntax\SyntaxTriviaListBuilder.cs (2)
86public void Add(ReadOnlySpan<SyntaxTrivia> items) 94public void Add(ReadOnlySpan<SyntaxTrivia> items, int offset, int length)
Text\SourceText.cs (2)
370internal static bool IsBinary(ReadOnlySpan<char> text) 398/// <inheritdoc cref="IsBinary(ReadOnlySpan{char})" />
Microsoft.CodeAnalysis.Analyzers (86)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
826public static string CollapseWithForwardSlash(ReadOnlySpan<char> path)
src\roslyn\src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
53public abstract void Append(ReadOnlySpan<byte> source);
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHash128.cs (5)
77public static byte[] Hash(ReadOnlySpan<byte> source, long seed = 0) 90public static int Hash(ReadOnlySpan<byte> source, Span<byte> destination, long seed = 0) 106public static bool TryHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, long seed = 0) 133private static Hash128 HashToHash128(ReadOnlySpan<byte> source, long seed = 0) 165public override void Append(ReadOnlySpan<byte> source)
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHashShared.cs (2)
42public static ReadOnlySpan<byte> DefaultSecret => 249public static void Append(ref State state, ReadOnlySpan<byte> source)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
102public void AppendFormatted(ReadOnlySpan<char> value) => _builder!.Append(value.ToString());
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
48private static int IndexOfExtension(ReadOnlySpan<char> path)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Hash.cs (4)
229internal static int GetFNVHashCode(ReadOnlySpan<byte> data, out bool isAscii) 272internal static int GetFNVHashCode(ReadOnlySpan<char> data) 295internal static int GetCaseInsensitiveFNVHashCode(ReadOnlySpan<char> data) 401internal static int CombineFNVHash(int hashCode, ReadOnlySpan<char> data)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\HexUtilities.cs (4)
11internal static string ToHexString(ReadOnlySpan<byte> bytes) 14internal static string ToHexStringLower(ReadOnlySpan<byte> bytes) 17private static string ToHexString(ReadOnlySpan<byte> bytes, bool upperCase) 29static void toHex(ReadOnlySpan<byte> source, Span<char> destination, char firstHexLetter)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (1)
22public static bool Equals(ReadOnlySpan<char> x, ReadOnlyMemory<char> y)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (8)
122internal string Add(ReadOnlySpan<char> chars) 199private static string? FindSharedEntry(ReadOnlySpan<char> chars, int hashCode) 237private static string? FindSharedEntryASCII(int hashCode, ReadOnlySpan<byte> asciiChars) 313private string AddItem(ReadOnlySpan<char> chars, int hashCode) 389internal static string AddSharedUtf8(ReadOnlySpan<byte> bytes) 405private static string AddSharedSlow(int hashCode, ReadOnlySpan<byte> utf8Bytes, bool isAscii) 529internal static bool TextEqualsASCII(string text, ReadOnlySpan<byte> ascii) 554internal static bool TextEquals(string array, ReadOnlySpan<char> text)
src\roslyn\src\Dependencies\Collections\Extensions\MemoryExtensions.cs (2)
15/// Variant of <see cref="System.MemoryExtensions.BinarySearch{T, TComparer}(ReadOnlySpan{T}, T, TComparer)"/>. 17public static int BinarySearch<TElement, TValue>(this ReadOnlySpan<TElement> span, TValue value, Func<TElement, TValue, int> comparer)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (1)
1224private static ReadOnlySpan<byte> Log2DeBruijn => new byte[32]
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
194ReadOnlySpan<KeyValuePair<TKey, TValue>> span;
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (2)
183public void AddWork(ReadOnlySpan<TItem> items, bool cancelExistingWork = false) 210void AddItemsToBatch(ReadOnlySpan<TItem> items)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (8)
102ReadOnlySpan<char> remainingTrivia = fullTrivia.AsSpan(); 106static bool TryTakeNextLine(ref ReadOnlySpan<char> remaining, out ReadOnlySpan<char> next, bool leading) 110next = ReadOnlySpan<char>.Empty; 120remaining = ReadOnlySpan<char>.Empty; 142remaining = ReadOnlySpan<char>.Empty; 160static int GetNewlineCount(ReadOnlySpan<char> trivia, bool leading) 163while (TryTakeNextLine(ref trivia, out var next, leading))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PathHelper.cs (2)
15public static ReadOnlySpan<char> GetFileName(string? path) 18return ReadOnlySpan<char>.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
96private static bool TryParseNotification(ReadOnlySpan<char> value, out NotificationOption2 notification)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (1)
138/// <item>They must have a final parameter that is the <see cref="ReadOnlySpan{T}"/> containing the elements of the
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReadOnlySpanExtensions.cs (1)
13public static bool Contains<T>(this ReadOnlySpan<T> values, T value)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\IMetricSink.cs (2)
23void Count(string eventName, string metricName, long delta, ReadOnlySpan<KeyValuePair<string, object?>> tags); 28void Record(string eventName, string metricName, long value, ReadOnlySpan<KeyValuePair<string, object?>> tags);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\RoslynTelemetry_Metrics.cs (4)
71public void Count(FunctionId functionId, string metricName, long delta, ReadOnlySpan<KeyValuePair<string, object?>> tags) 74private void CountCore(FunctionId functionId, string metricName, long delta, ReadOnlySpan<KeyValuePair<string, object?>> tags) 113public void Record(FunctionId functionId, string metricName, long value, ReadOnlySpan<KeyValuePair<string, object?>> tags) 116private void RecordCore(FunctionId functionId, string metricName, long value, ReadOnlySpan<KeyValuePair<string, object?>> tags)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (3)
325/// cref="ReadOnlySpan{T}">ReadOnlySpan</see>&lt;<see cref="byte"/>&gt;, and deserialized to a byte array. 328public void WriteSpan(ReadOnlySpan<byte> span) 365ReadOnlySpan<T> span,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
364var keySpan1 = _symbolKeyData.AsSpan(position1); 365var keySpan2 = other._symbolKeyData.AsSpan(position2);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\System.Text\Rune.cs (8)
44private static ReadOnlySpan<byte> AsciiCharInfo => new byte[] 286public static OperationStatus DecodeFromUtf16(ReadOnlySpan<char> source, out Rune result, out int charsConsumed) 370public static OperationStatus DecodeFromUtf8(ReadOnlySpan<byte> source, out Rune result, out int bytesConsumed) 538/// This method is very similar to <see cref="DecodeFromUtf16(ReadOnlySpan{char}, out Rune, out int)"/>, but it allows 543public static OperationStatus DecodeLastFromUtf16(ReadOnlySpan<char> source, out Rune result, out int charsConsumed) 598/// This method is very similar to <see cref="DecodeFromUtf8(ReadOnlySpan{byte}, out Rune, out int)"/>, but it allows 603public static OperationStatus DecodeLastFromUtf8(ReadOnlySpan<byte> source, out Rune value, out int bytesConsumed) 779internal static int ReadFirstRuneFromUtf16Buffer(ReadOnlySpan<char> input)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Base64Utilities.cs (4)
20private static ReadOnlySpan<sbyte> DecodingMap => 79public static bool TryFromBase64Chars(ReadOnlySpan<char> chars, Span<byte> bytes, out int bytesWritten) 173private static void CopyToTempBufferWithoutWhiteSpace(ReadOnlySpan<char> chars, Span<char> tempBuffer, out int consumed, out int charsWritten) 194private static bool TryDecodeFromUtf16(ReadOnlySpan<char> utf16, Span<byte> bytes, out int consumed, out int written)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (4)
168public static int GetEditDistance(ReadOnlySpan<char> source, ReadOnlySpan<char> target, int threshold = int.MaxValue) 175private static int GetEditDistanceWorker(ReadOnlySpan<char> source, ReadOnlySpan<char> target, int threshold)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringBreaker.cs (9)
17public static void AddWordParts(ReadOnlySpan<char> identifier, ref TemporaryArray<TextSpan> parts) 20public static void AddCharacterParts(ReadOnlySpan<char> identifier, ref TemporaryArray<TextSpan> parts) 23public static void AddParts(ReadOnlySpan<char> text, bool word, ref TemporaryArray<TextSpan> parts) 41public static TextSpan GenerateSpan(ReadOnlySpan<char> identifier, int wordStart, bool word) 81private static TextSpan ScanCharacterRun(ReadOnlySpan<char> identifier, int length, int wordStart) 102private static TextSpan ScanWordRun(ReadOnlySpan<char> identifier, int length, int wordStart) 151private static TextSpan ScanLowerCaseRun(ReadOnlySpan<char> identifier, int length, int wordStart) 162private static TextSpan ScanNumber(ReadOnlySpan<char> identifier, int length, int wordStart) 173private static int SkipPunctuation(ReadOnlySpan<char> identifier, int length, int wordStart)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
295=> compilation.GetTypeByMetadataName(typeof(ReadOnlySpan<>).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (2)
751or nameof(ReadOnlySpan<>) 794Name: nameof(ReadOnlySpan<>),
Microsoft.CodeAnalysis.AnalyzerUtilities (86)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
826public static string CollapseWithForwardSlash(ReadOnlySpan<char> path)
src\roslyn\src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
53public abstract void Append(ReadOnlySpan<byte> source);
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHash128.cs (5)
77public static byte[] Hash(ReadOnlySpan<byte> source, long seed = 0) 90public static int Hash(ReadOnlySpan<byte> source, Span<byte> destination, long seed = 0) 106public static bool TryHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, long seed = 0) 133private static Hash128 HashToHash128(ReadOnlySpan<byte> source, long seed = 0) 165public override void Append(ReadOnlySpan<byte> source)
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHashShared.cs (2)
42public static ReadOnlySpan<byte> DefaultSecret => 249public static void Append(ref State state, ReadOnlySpan<byte> source)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
102public void AppendFormatted(ReadOnlySpan<char> value) => _builder!.Append(value.ToString());
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
48private static int IndexOfExtension(ReadOnlySpan<char> path)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Hash.cs (4)
229internal static int GetFNVHashCode(ReadOnlySpan<byte> data, out bool isAscii) 272internal static int GetFNVHashCode(ReadOnlySpan<char> data) 295internal static int GetCaseInsensitiveFNVHashCode(ReadOnlySpan<char> data) 401internal static int CombineFNVHash(int hashCode, ReadOnlySpan<char> data)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\HexUtilities.cs (4)
11internal static string ToHexString(ReadOnlySpan<byte> bytes) 14internal static string ToHexStringLower(ReadOnlySpan<byte> bytes) 17private static string ToHexString(ReadOnlySpan<byte> bytes, bool upperCase) 29static void toHex(ReadOnlySpan<byte> source, Span<char> destination, char firstHexLetter)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (1)
22public static bool Equals(ReadOnlySpan<char> x, ReadOnlyMemory<char> y)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (8)
122internal string Add(ReadOnlySpan<char> chars) 199private static string? FindSharedEntry(ReadOnlySpan<char> chars, int hashCode) 237private static string? FindSharedEntryASCII(int hashCode, ReadOnlySpan<byte> asciiChars) 313private string AddItem(ReadOnlySpan<char> chars, int hashCode) 389internal static string AddSharedUtf8(ReadOnlySpan<byte> bytes) 405private static string AddSharedSlow(int hashCode, ReadOnlySpan<byte> utf8Bytes, bool isAscii) 529internal static bool TextEqualsASCII(string text, ReadOnlySpan<byte> ascii) 554internal static bool TextEquals(string array, ReadOnlySpan<char> text)
src\roslyn\src\Dependencies\Collections\Extensions\MemoryExtensions.cs (2)
15/// Variant of <see cref="System.MemoryExtensions.BinarySearch{T, TComparer}(ReadOnlySpan{T}, T, TComparer)"/>. 17public static int BinarySearch<TElement, TValue>(this ReadOnlySpan<TElement> span, TValue value, Func<TElement, TValue, int> comparer)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (1)
1224private static ReadOnlySpan<byte> Log2DeBruijn => new byte[32]
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
194ReadOnlySpan<KeyValuePair<TKey, TValue>> span;
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (2)
183public void AddWork(ReadOnlySpan<TItem> items, bool cancelExistingWork = false) 210void AddItemsToBatch(ReadOnlySpan<TItem> items)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (8)
102ReadOnlySpan<char> remainingTrivia = fullTrivia.AsSpan(); 106static bool TryTakeNextLine(ref ReadOnlySpan<char> remaining, out ReadOnlySpan<char> next, bool leading) 110next = ReadOnlySpan<char>.Empty; 120remaining = ReadOnlySpan<char>.Empty; 142remaining = ReadOnlySpan<char>.Empty; 160static int GetNewlineCount(ReadOnlySpan<char> trivia, bool leading) 163while (TryTakeNextLine(ref trivia, out var next, leading))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PathHelper.cs (2)
15public static ReadOnlySpan<char> GetFileName(string? path) 18return ReadOnlySpan<char>.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
96private static bool TryParseNotification(ReadOnlySpan<char> value, out NotificationOption2 notification)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (1)
138/// <item>They must have a final parameter that is the <see cref="ReadOnlySpan{T}"/> containing the elements of the
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReadOnlySpanExtensions.cs (1)
13public static bool Contains<T>(this ReadOnlySpan<T> values, T value)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\IMetricSink.cs (2)
23void Count(string eventName, string metricName, long delta, ReadOnlySpan<KeyValuePair<string, object?>> tags); 28void Record(string eventName, string metricName, long value, ReadOnlySpan<KeyValuePair<string, object?>> tags);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\RoslynTelemetry_Metrics.cs (4)
71public void Count(FunctionId functionId, string metricName, long delta, ReadOnlySpan<KeyValuePair<string, object?>> tags) 74private void CountCore(FunctionId functionId, string metricName, long delta, ReadOnlySpan<KeyValuePair<string, object?>> tags) 113public void Record(FunctionId functionId, string metricName, long value, ReadOnlySpan<KeyValuePair<string, object?>> tags) 116private void RecordCore(FunctionId functionId, string metricName, long value, ReadOnlySpan<KeyValuePair<string, object?>> tags)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (3)
325/// cref="ReadOnlySpan{T}">ReadOnlySpan</see>&lt;<see cref="byte"/>&gt;, and deserialized to a byte array. 328public void WriteSpan(ReadOnlySpan<byte> span) 365ReadOnlySpan<T> span,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
364var keySpan1 = _symbolKeyData.AsSpan(position1); 365var keySpan2 = other._symbolKeyData.AsSpan(position2);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\System.Text\Rune.cs (8)
44private static ReadOnlySpan<byte> AsciiCharInfo => new byte[] 286public static OperationStatus DecodeFromUtf16(ReadOnlySpan<char> source, out Rune result, out int charsConsumed) 370public static OperationStatus DecodeFromUtf8(ReadOnlySpan<byte> source, out Rune result, out int bytesConsumed) 538/// This method is very similar to <see cref="DecodeFromUtf16(ReadOnlySpan{char}, out Rune, out int)"/>, but it allows 543public static OperationStatus DecodeLastFromUtf16(ReadOnlySpan<char> source, out Rune result, out int charsConsumed) 598/// This method is very similar to <see cref="DecodeFromUtf8(ReadOnlySpan{byte}, out Rune, out int)"/>, but it allows 603public static OperationStatus DecodeLastFromUtf8(ReadOnlySpan<byte> source, out Rune value, out int bytesConsumed) 779internal static int ReadFirstRuneFromUtf16Buffer(ReadOnlySpan<char> input)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Base64Utilities.cs (4)
20private static ReadOnlySpan<sbyte> DecodingMap => 79public static bool TryFromBase64Chars(ReadOnlySpan<char> chars, Span<byte> bytes, out int bytesWritten) 173private static void CopyToTempBufferWithoutWhiteSpace(ReadOnlySpan<char> chars, Span<char> tempBuffer, out int consumed, out int charsWritten) 194private static bool TryDecodeFromUtf16(ReadOnlySpan<char> utf16, Span<byte> bytes, out int consumed, out int written)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (4)
168public static int GetEditDistance(ReadOnlySpan<char> source, ReadOnlySpan<char> target, int threshold = int.MaxValue) 175private static int GetEditDistanceWorker(ReadOnlySpan<char> source, ReadOnlySpan<char> target, int threshold)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringBreaker.cs (9)
17public static void AddWordParts(ReadOnlySpan<char> identifier, ref TemporaryArray<TextSpan> parts) 20public static void AddCharacterParts(ReadOnlySpan<char> identifier, ref TemporaryArray<TextSpan> parts) 23public static void AddParts(ReadOnlySpan<char> text, bool word, ref TemporaryArray<TextSpan> parts) 41public static TextSpan GenerateSpan(ReadOnlySpan<char> identifier, int wordStart, bool word) 81private static TextSpan ScanCharacterRun(ReadOnlySpan<char> identifier, int length, int wordStart) 102private static TextSpan ScanWordRun(ReadOnlySpan<char> identifier, int length, int wordStart) 151private static TextSpan ScanLowerCaseRun(ReadOnlySpan<char> identifier, int length, int wordStart) 162private static TextSpan ScanNumber(ReadOnlySpan<char> identifier, int length, int wordStart) 173private static int SkipPunctuation(ReadOnlySpan<char> identifier, int length, int wordStart)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
295=> compilation.GetTypeByMetadataName(typeof(ReadOnlySpan<>).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (2)
751or nameof(ReadOnlySpan<>) 794Name: nameof(ReadOnlySpan<>),
Microsoft.CodeAnalysis.BuildClient.Package (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
102public void AppendFormatted(ReadOnlySpan<char> value) => _builder!.Append(value.ToString());
Microsoft.CodeAnalysis.CodeStyle (79)
src\roslyn\src\Analyzers\Core\Analyzers\DiagnosticCustomTags.cs (1)
62private static void Assert(string[] customTags, params ReadOnlySpan<string> tags)
src\roslyn\src\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderHelper.cs (1)
61var commentText = GetTextContextOfComment(trivia).Span.Trim();
src\roslyn\src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (1)
346public LocalizableStringWithArguments(LocalizableString messageFormat, params ReadOnlySpan<object> formatArguments)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
826public static string CollapseWithForwardSlash(ReadOnlySpan<char> path)
src\roslyn\src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
53public abstract void Append(ReadOnlySpan<byte> source);
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHash128.cs (5)
77public static byte[] Hash(ReadOnlySpan<byte> source, long seed = 0) 90public static int Hash(ReadOnlySpan<byte> source, Span<byte> destination, long seed = 0) 106public static bool TryHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, long seed = 0) 133private static Hash128 HashToHash128(ReadOnlySpan<byte> source, long seed = 0) 165public override void Append(ReadOnlySpan<byte> source)
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHashShared.cs (2)
42public static ReadOnlySpan<byte> DefaultSecret => 249public static void Append(ref State state, ReadOnlySpan<byte> source)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
102public void AppendFormatted(ReadOnlySpan<char> value) => _builder!.Append(value.ToString());
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
48private static int IndexOfExtension(ReadOnlySpan<char> path)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Hash.cs (4)
229internal static int GetFNVHashCode(ReadOnlySpan<byte> data, out bool isAscii) 272internal static int GetFNVHashCode(ReadOnlySpan<char> data) 295internal static int GetCaseInsensitiveFNVHashCode(ReadOnlySpan<char> data) 401internal static int CombineFNVHash(int hashCode, ReadOnlySpan<char> data)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\HexUtilities.cs (4)
11internal static string ToHexString(ReadOnlySpan<byte> bytes) 14internal static string ToHexStringLower(ReadOnlySpan<byte> bytes) 17private static string ToHexString(ReadOnlySpan<byte> bytes, bool upperCase) 29static void toHex(ReadOnlySpan<byte> source, Span<char> destination, char firstHexLetter)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (1)
22public static bool Equals(ReadOnlySpan<char> x, ReadOnlyMemory<char> y)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (8)
122internal string Add(ReadOnlySpan<char> chars) 199private static string? FindSharedEntry(ReadOnlySpan<char> chars, int hashCode) 237private static string? FindSharedEntryASCII(int hashCode, ReadOnlySpan<byte> asciiChars) 313private string AddItem(ReadOnlySpan<char> chars, int hashCode) 389internal static string AddSharedUtf8(ReadOnlySpan<byte> bytes) 405private static string AddSharedSlow(int hashCode, ReadOnlySpan<byte> utf8Bytes, bool isAscii) 529internal static bool TextEqualsASCII(string text, ReadOnlySpan<byte> ascii) 554internal static bool TextEquals(string array, ReadOnlySpan<char> text)
src\roslyn\src\Dependencies\Collections\Extensions\MemoryExtensions.cs (2)
15/// Variant of <see cref="System.MemoryExtensions.BinarySearch{T, TComparer}(ReadOnlySpan{T}, T, TComparer)"/>. 17public static int BinarySearch<TElement, TValue>(this ReadOnlySpan<TElement> span, TValue value, Func<TElement, TValue, int> comparer)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (1)
1224private static ReadOnlySpan<byte> Log2DeBruijn => new byte[32]
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
194ReadOnlySpan<KeyValuePair<TKey, TValue>> span;
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (2)
183public void AddWork(ReadOnlySpan<TItem> items, bool cancelExistingWork = false) 210void AddItemsToBatch(ReadOnlySpan<TItem> items)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
96private static bool TryParseNotification(ReadOnlySpan<char> value, out NotificationOption2 notification)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (1)
138/// <item>They must have a final parameter that is the <see cref="ReadOnlySpan{T}"/> containing the elements of the
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReadOnlySpanExtensions.cs (1)
13public static bool Contains<T>(this ReadOnlySpan<T> values, T value)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\IMetricSink.cs (2)
23void Count(string eventName, string metricName, long delta, ReadOnlySpan<KeyValuePair<string, object?>> tags); 28void Record(string eventName, string metricName, long value, ReadOnlySpan<KeyValuePair<string, object?>> tags);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\RoslynTelemetry_Metrics.cs (4)
71public void Count(FunctionId functionId, string metricName, long delta, ReadOnlySpan<KeyValuePair<string, object?>> tags) 74private void CountCore(FunctionId functionId, string metricName, long delta, ReadOnlySpan<KeyValuePair<string, object?>> tags) 113public void Record(FunctionId functionId, string metricName, long value, ReadOnlySpan<KeyValuePair<string, object?>> tags) 116private void RecordCore(FunctionId functionId, string metricName, long value, ReadOnlySpan<KeyValuePair<string, object?>> tags)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (3)
325/// cref="ReadOnlySpan{T}">ReadOnlySpan</see>&lt;<see cref="byte"/>&gt;, and deserialized to a byte array. 328public void WriteSpan(ReadOnlySpan<byte> span) 365ReadOnlySpan<T> span,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
364var keySpan1 = _symbolKeyData.AsSpan(position1); 365var keySpan2 = other._symbolKeyData.AsSpan(position2);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\System.Text\Rune.cs (8)
44private static ReadOnlySpan<byte> AsciiCharInfo => new byte[] 286public static OperationStatus DecodeFromUtf16(ReadOnlySpan<char> source, out Rune result, out int charsConsumed) 370public static OperationStatus DecodeFromUtf8(ReadOnlySpan<byte> source, out Rune result, out int bytesConsumed) 538/// This method is very similar to <see cref="DecodeFromUtf16(ReadOnlySpan{char}, out Rune, out int)"/>, but it allows 543public static OperationStatus DecodeLastFromUtf16(ReadOnlySpan<char> source, out Rune result, out int charsConsumed) 598/// This method is very similar to <see cref="DecodeFromUtf8(ReadOnlySpan{byte}, out Rune, out int)"/>, but it allows 603public static OperationStatus DecodeLastFromUtf8(ReadOnlySpan<byte> source, out Rune value, out int bytesConsumed) 779internal static int ReadFirstRuneFromUtf16Buffer(ReadOnlySpan<char> input)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Base64Utilities.cs (4)
20private static ReadOnlySpan<sbyte> DecodingMap => 79public static bool TryFromBase64Chars(ReadOnlySpan<char> chars, Span<byte> bytes, out int bytesWritten) 173private static void CopyToTempBufferWithoutWhiteSpace(ReadOnlySpan<char> chars, Span<char> tempBuffer, out int consumed, out int charsWritten) 194private static bool TryDecodeFromUtf16(ReadOnlySpan<char> utf16, Span<byte> bytes, out int consumed, out int written)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (4)
168public static int GetEditDistance(ReadOnlySpan<char> source, ReadOnlySpan<char> target, int threshold = int.MaxValue) 175private static int GetEditDistanceWorker(ReadOnlySpan<char> source, ReadOnlySpan<char> target, int threshold)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringBreaker.cs (9)
17public static void AddWordParts(ReadOnlySpan<char> identifier, ref TemporaryArray<TextSpan> parts) 20public static void AddCharacterParts(ReadOnlySpan<char> identifier, ref TemporaryArray<TextSpan> parts) 23public static void AddParts(ReadOnlySpan<char> text, bool word, ref TemporaryArray<TextSpan> parts) 41public static TextSpan GenerateSpan(ReadOnlySpan<char> identifier, int wordStart, bool word) 81private static TextSpan ScanCharacterRun(ReadOnlySpan<char> identifier, int length, int wordStart) 102private static TextSpan ScanWordRun(ReadOnlySpan<char> identifier, int length, int wordStart) 151private static TextSpan ScanLowerCaseRun(ReadOnlySpan<char> identifier, int length, int wordStart) 162private static TextSpan ScanNumber(ReadOnlySpan<char> identifier, int length, int wordStart) 173private static int SkipPunctuation(ReadOnlySpan<char> identifier, int length, int wordStart)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
295=> compilation.GetTypeByMetadataName(typeof(ReadOnlySpan<>).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (2)
751or nameof(ReadOnlySpan<>) 794Name: nameof(ReadOnlySpan<>),
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceService.cs (1)
94params ReadOnlySpan<string> comments)
Microsoft.CodeAnalysis.CSharp (36)
Binder\Binder_Conversions.cs (2)
1488/// For the <c>params</c> case, the collection builder method itself can only contain a single <see cref="ReadOnlySpan{T}"/> parameter. 1489/// In the general case, any method that <em>ends</em> with a <see cref="ReadOnlySpan{T}"/> parameter,
CommandLine\CSharpCommandLineParser.cs (3)
1828var valueSpan = valueMemory.Span; 1982var valueSpan = value.Span; 2132var nullableSpan = "nullable".AsSpan();
CSharpParseOptions.cs (1)
219static void addSingleNamespaceParts(ArrayBuilder<ImmutableArray<string>> namespacesBuilder, ArrayBuilder<string> singleNamespaceBuilder, ReadOnlySpan<char> @namespace)
FlowAnalysis\AbstractFlowPass.cs (1)
2770ReadOnlySpan<BoundExpression> parts;
Lowering\ExtensionMethodBodyRewriter.cs (1)
51private (RewrittenMethodSymbol, ImmutableDictionary<Symbol, Symbol>) EnterMethod(MethodSymbol symbol, RewrittenMethodSymbol rewritten, ReadOnlySpan<ParameterSymbol> rewrittenParameters)
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (1)
1235nameof(ReadOnlySpan<>) => tryGetWellKnownSliceStartOverload(WellKnownMember.System_ReadOnlySpan_T__Slice_Int_Int, WellKnownMember.System_ReadOnlySpan_T__Slice_Int, originalDefinition, syntax),
Parser\LanguageParser_InterpolatedString.cs (15)
131var originalTextSpan = originalText.AsSpan(); 191CodeAnalysis.Syntax.InternalSyntax.SyntaxList<InterpolatedStringContentSyntax> getContent(ReadOnlySpan<char> originalTextSpan) 196var indentationWhitespace = needsDedentation ? getIndentationWhitespace(originalTextSpan) : default; 232ReadOnlySpan<char> getIndentationWhitespace(ReadOnlySpan<char> originalTextSpan) 236var closeQuoteText = originalTextSpan[closeQuoteRange]; 249ReadOnlySpan<char> indentationWhitespace, StringBuilder content, bool isFirst, bool isLast, ReadOnlySpan<char> text) 291var currentLineWhitespace = text[lineStartPosition..currentIndex]; 386ReadOnlySpan<char> indentationWhitespace, 420ReadOnlySpan<char> currentLineWhitespace, 421ReadOnlySpan<char> indentationLineWhitespace, 450private static int SkipWhitespace(ReadOnlySpan<char> text, int currentIndex) 457private static int ConsumeRemainingContentThroughNewLine(StringBuilder content, ReadOnlySpan<char> text, int currentIndex) 473var slice = text[start..currentIndex];
Parser\Lexer.cs (1)
1329var textWindowCharSpan = this.TextWindow.CurrentWindowSpan;
Parser\LexerCache.cs (2)
194if (textWindow.TryGetTextIfWithinWindow(span, out var lexemeTextSpan)) 232ReadOnlySpan<char> textBuffer,
Parser\QuickScanner.cs (2)
197var textWindowCharSpan = TextWindow.CurrentWindowSpan; 278private static ReadOnlySpan<byte> CharProperties => new[]
Parser\SlidingTextWindow.cs (3)
155public readonly ReadOnlySpan<char> CurrentWindowSpan 203public readonly bool TryGetTextIfWithinWindow(TextSpan span, out ReadOnlySpan<char> textSpan) 386public readonly string Intern(ReadOnlySpan<char> chars)
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
558static ImmutableArray<FunctionPointerParameterSymbol> makeParametersFromMetadata(ReadOnlySpan<ParamInfo<TypeSymbol>> parameterTypes, FunctionPointerMethodSymbol parent)
Symbols\MemberSignatureComparer.cs (2)
732ReadOnlySpan<ParameterSymbol> params1, 734ReadOnlySpan<ParameterSymbol> params2,
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (1)
1148ReadOnlySpan<char> charSpan = rawName.AsSpan();
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
45nameof(ReadOnlySpan<>),
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (2)
201convertedType.Name == nameof(ReadOnlySpan<>) && 998Name: nameof(Span<>) or nameof(ReadOnlySpan<>),
src\roslyn\src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
51if (context.Compilation.GetBestTypeByMetadataName(typeof(ReadOnlySpan<>).FullName!) is null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (1)
291private static bool ContainsEscape(ReadOnlySpan<char> tokenText, bool escapeBraces)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (2)
47var readOnlySpanType = semanticModel.Compilation.GetBestTypeByMetadataName(typeof(ReadOnlySpan<>).FullName!); 204IdentifierName(nameof(ReadOnlySpan<>.ToArray))))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
307private static ExpressionSyntax GenerateMemberAccess(params ReadOnlySpan<string> names)
Microsoft.CodeAnalysis.CSharp.Features (10)
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (1)
403private static RecursivePatternSyntax RecursivePattern(params ReadOnlySpan<SubpatternSyntax> subpatterns)
Completion\CompletionProviders\FileBasedPrograms\AbstractAppDirectiveCompletionProvider.cs (1)
91static int ClampStart(ReadOnlySpan<char> span)
LanguageServices\CSharpSymbolDisplayService.SymbolDescriptionBuilder.cs (1)
134var displayPartsSpans = displayParts.AsSpan();
QuickInfo\CSharpDiagnosticAnalyzerQuickInfoProvider.cs (1)
143params ReadOnlySpan<TextSpan> relatedSpans)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
45nameof(ReadOnlySpan<>),
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (2)
201convertedType.Name == nameof(ReadOnlySpan<>) && 998Name: nameof(Span<>) or nameof(ReadOnlySpan<>),
src\roslyn\src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
51if (context.Compilation.GetBestTypeByMetadataName(typeof(ReadOnlySpan<>).FullName!) is null)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (2)
47var readOnlySpanType = semanticModel.Compilation.GetBestTypeByMetadataName(typeof(ReadOnlySpan<>).FullName!); 204IdentifierName(nameof(ReadOnlySpan<>.ToArray))))
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (5)
Microsoft.NetCore.Analyzers\Runtime\CSharpPreferReadOnlySpanPropertiesOverReadOnlyArrayFields.Fixer.cs (3)
189SyntaxFactory.Identifier(nameof(ReadOnlySpan<byte>)), 521SyntaxFactory.IdentifierName(nameof(ReadOnlySpan<byte>.Slice))) 533SyntaxFactory.IdentifierName(nameof(ReadOnlySpan<byte>.Slice)).WithTriviaFrom(memberAccessSyntax.Name)));
Microsoft.NetCore.Analyzers\Usage\CSharpMissingShebangInFileBasedProgram.cs (2)
69var trimmedContent = content.Text.AsSpan().TrimStart(); 73static bool isDirective(ReadOnlySpan<char> content, string directiveName)
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
Classification\Worker_Preprocesser.cs (4)
341var contentText = node.Content.Text.AsSpan(); 367var directiveKind = contentText[..firstWhitespaceIndex]; 392private void ClassifyAppDirectiveNameAndOptionalSeparatorValue(int contentStart, ReadOnlySpan<char> contentText, int nameStart, char separator) 422private void ClassifyDottedName(int contentStart, ReadOnlySpan<char> contentText, int start, int end)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (1)
291private static bool ContainsEscape(ReadOnlySpan<char> tokenText, bool escapeBraces)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
307private static ExpressionSyntax GenerateMemberAccess(params ReadOnlySpan<string> names)
SyncedSource\FileBasedPrograms\FileLevelDirectiveHelpers.cs (3)
132ReadOnlySpan<char> message; 136var contentText = content.Text.AsSpan(); 137var trimmedStart = contentText.TrimStart();
Microsoft.CodeAnalysis.Extensions.Package (11)
Compilation\CompilationExtensions.cs (1)
295=> compilation.GetTypeByMetadataName(typeof(ReadOnlySpan<>).FullName!);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Hash.cs (4)
229internal static int GetFNVHashCode(ReadOnlySpan<byte> data, out bool isAscii) 272internal static int GetFNVHashCode(ReadOnlySpan<char> data) 295internal static int GetCaseInsensitiveFNVHashCode(ReadOnlySpan<char> data) 401internal static int CombineFNVHash(int hashCode, ReadOnlySpan<char> data)
src\roslyn\src\Dependencies\Collections\Extensions\MemoryExtensions.cs (2)
15/// Variant of <see cref="System.MemoryExtensions.BinarySearch{T, TComparer}(ReadOnlySpan{T}, T, TComparer)"/>. 17public static int BinarySearch<TElement, TValue>(this ReadOnlySpan<TElement> span, TValue value, Func<TElement, TValue, int> comparer)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (1)
1224private static ReadOnlySpan<byte> Log2DeBruijn => new byte[32]
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
194ReadOnlySpan<KeyValuePair<TKey, TValue>> span;
Symbols\ITypeSymbolExtensions.cs (2)
751or nameof(ReadOnlySpan<>) 794Name: nameof(ReadOnlySpan<>),
Microsoft.CodeAnalysis.Features (17)
Common\GlyphExtensions.cs (4)
19public static ImmutableArray<Glyph> GetGlyphs(this ReadOnlySpan<string> tags) 36public static Glyph GetFirstGlyph(this ReadOnlySpan<string> tags) 48private static Glyph GetGlyph(string tag, ReadOnlySpan<string> allTags) 232public static Accessibility GetAccessibility(ReadOnlySpan<string> tags)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (2)
73public (ImmutableArray<AnalyzedSwitchSection>, TExpressionSyntax TargetExpression) AnalyzeIfStatementSequence(ReadOnlySpan<IOperation> operations) 98ReadOnlySpan<IOperation> operations,
EmbeddedLanguages\RegularExpressions\RegexCharClass.cs (1)
200ReadOnlySpan<byte> asciiLookup = [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x03, 0xFE, 0xFF, 0xFF, 0x87, 0xFE, 0xFF, 0xFF, 0x07];
GenerateType\TypeKindOptions.cs (1)
59public static TypeKindOptions RemoveOptions(TypeKindOptions fromValue, params ReadOnlySpan<TypeKindOptions> removeValues)
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (1)
491private static bool IsAnyThrowInvocation(IOperation statement, IParameterSymbol? parameter, ReadOnlySpan<string> possibleTypeNames, Func<string, bool> methodNamePredicate)
MetadataAsSource\AbstractMetadataAsSourceService.DocCommentFormatter.cs (2)
174var span = line.Span; 217ReadOnlySpan<char> separator)
QuickInfo\Presentation\TaggedTextExtensions.cs (2)
21var span = taggedTexts.AsSpan(); 29ref ReadOnlySpan<TaggedText> taggedTexts,
src\roslyn\src\Analyzers\Core\Analyzers\DiagnosticCustomTags.cs (1)
62private static void Assert(string[] customTags, params ReadOnlySpan<string> tags)
src\roslyn\src\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderHelper.cs (1)
61var commentText = GetTextContextOfComment(trivia).Span.Trim();
src\roslyn\src\Analyzers\Core\Analyzers\Helpers\DiagnosticHelper.cs (1)
346public LocalizableStringWithArguments(LocalizableString messageFormat, params ReadOnlySpan<object> formatArguments)
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceService.cs (1)
94params ReadOnlySpan<string> comments)
Microsoft.CodeAnalysis.NetAnalyzers (12)
Microsoft.NetCore.Analyzers\Runtime\PreferAsSpanOverSubstring.cs (1)
146static int EvaluateCandidateQuality(in RequiredSymbols symbols, ReadOnlySpan<bool> isSubstringLookup, IInvocationOperation invocation, IMethodSymbol candidate)
Microsoft.NetCore.Analyzers\Runtime\PreferReadOnlySpanPropertiesOverReadOnlyArrayFieldsAnalyzer.cs (1)
298/// are used in ways that prohibit conversion to <see cref="ReadOnlySpan{T}"/>.
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (8)
101ReadOnlySpan<char> remainingTrivia = fullTrivia.AsSpan(); 105static bool TryTakeNextLine(ref ReadOnlySpan<char> remaining, out ReadOnlySpan<char> next, bool leading) 109next = ReadOnlySpan<char>.Empty; 119remaining = ReadOnlySpan<char>.Empty; 141remaining = ReadOnlySpan<char>.Empty; 159static int GetNewlineCount(ReadOnlySpan<char> trivia, bool leading) 162while (TryTakeNextLine(ref trivia, out var next, leading))
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\PathHelper.cs (2)
13public static ReadOnlySpan<char> GetFileName(string? path) 16return ReadOnlySpan<char>.Empty;
Microsoft.CodeAnalysis.Razor.Compiler (136)
CSharp\RequiredAttributeParser.cs (2)
73ReadOnlySpan<RazorDiagnostic> diagnostics) 85private ReadOnlySpan<char> _span = input.AsSpan();
CSharp\SymbolExtensions.cs (2)
85var fullNameSpan = fullName.AsSpan(); 102var symbolNameSpan = symbol.Name.AsSpan();
Language\BoundAttributeDescriptorBuilder.cs (2)
226var name = Name.AsSpan(); 277var indexerPrefix = IndexerAttributeNamePrefix.AsSpan();
Language\CodeGeneration\CodeWriter.cs (3)
250var span = value.Span; 427var source = chunk.Span; 515var source = chunk.Span;
Language\Components\ComponentChildContentDiagnosticPass.cs (1)
56var ancestors = Ancestors;
Language\Components\ComponentLoweringPass.cs (4)
428static bool EqualsWithOptionalChangedOrExpressionSuffix(ReadOnlySpan<char> specifiedName, string requiredName) 430var requiredNameSpan = requiredName.AsSpan(); 437static bool EqualsWithSuffix(ReadOnlySpan<char> specifiedName, ReadOnlySpan<char> requiredName, string suffix)
Language\Components\TypeNameHelper.cs (1)
97var typeNameSpan = typeName.Span;
Language\ConfigureDirectivesFeature.cs (1)
14public void AddDirective(DirectiveDescriptor directive, params ReadOnlySpan<RazorFileKind> fileKinds)
Language\CSharpIdentifier.cs (3)
15var span = path.AsSpanOrDefault(); 32public static string SanitizeIdentifier(ReadOnlySpan<char> inputName) 44public static void AppendSanitized(StringBuilder builder, ReadOnlySpan<char> inputName)
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (5)
101(!TryRemoveGlobalPrefixFromDefaultUsing(in importedUsing, out var trimmedUsingNamespace) || 154static bool TryRemoveGlobalPrefixFromDefaultUsing(in UsingReference usingReference, out ReadOnlySpan<char> trimmedNamespace) 167static bool Contains(List<UsingReference> usingReferences, ReadOnlySpan<char> usingNamespace) 290public readonly bool Equals(ReadOnlySpan<char> otherNamespace) 2147public readonly ReadOnlySpan<char> Span = original.StartsWith('@') ? original.AsSpan()[1..] : original;
Language\DefaultRazorProjectFileSystem.cs (2)
137var rootSpan = root.AsSpan(); 138var pathSpan = normalizedPath.AsSpan();
Language\DefaultRazorTagHelperContextDiscoveryPhase.cs (1)
554internal static bool IsTypeNamespaceInScope(ReadOnlySpan<char> typeNamespace, string @namespace)
Language\Extensions\ViewCssScopePass.cs (1)
60var content = token.Content.AsSpan();
Language\FileKinds.cs (2)
41var adjustedPath = FileUtilities.AdjustToUsableFilePath(filePath.AsSpan()); 43var fileName = adjustedPath[(adjustedPath.LastIndexOfAny('/', '\\') + 1)..];
Language\HtmlConventions.cs (2)
53private static bool TryGetKebabCaseString(ReadOnlySpan<char> input, [NotNullWhen(true)] out string? result) 92private static bool ShouldInsertHyphenBeforeUppercase(ReadOnlySpan<char> input, int i)
Language\Intermediate\ComponentAttributeIntermediateNode.cs (1)
224var eventCallbackName = ComponentsApi.EventCallback.FullTypeName.AsSpan();
Language\Intermediate\IntermediateNodeWalker.cs (1)
12protected ReadOnlySpan<IntermediateNode> Ancestors => _ancestorStack.Span;
Language\Intermediate\IntermediateNodeWalker.Stack.cs (2)
29public readonly ReadOnlySpan<IntermediateNode> Span 31? ReadOnlySpan<IntermediateNode>.Empty
Language\Legacy\CSharpCodeParser.cs (9)
1423var directiveTextSpan = directiveText.AsSpanOrDefault(); 1446var contentSpan = token.Content.AsSpan(); 1479if (!TrySplitDirectiveText(text.AsSpanOrDefault(), out var typeName, out var assemblyName)) 1494ReadOnlySpan<char> directiveText, 1495out ReadOnlySpan<char> typeName, 1496out ReadOnlySpan<char> assemblyName) 2067var trimmedContent = content.AsSpan().TrimStart(); 3275protected internal bool At(params ReadOnlySpan<CSharpSyntaxKind> keywords)
Language\Legacy\HtmlMarkupParser.cs (1)
2226var possibleStart = CurrentToken.Content.AsSpan(position, sequence.Length);
Language\Legacy\ImplicitExpressionEditHandler.cs (1)
244var deletionContent = target.GetContent().AsSpan(relativePosition, changeLength);
Language\Legacy\ParserHelpers.cs (3)
64var span = content.Span; 107var digitsSpan = entity.Span[2..^1]; 155else if (s_namedHtmlEntities.GetAlternateLookup<ReadOnlySpan<char>>().TryGetValue(entity.Span, out replacement))
Language\Legacy\RoslynCSharpTokenizer.cs (2)
827var suffix = tokenText.AsSpan(tokenText.Length - 2); 831var textBeforeSuffix = tokenText.AsSpan(0, tokenText.Length - 2);
Language\Legacy\SourceLocationTracker.cs (1)
14public static SourceLocation Advance(SourceLocation location, ReadOnlySpan<char> text)
Language\Legacy\TagHelperParseTreeRewriter.cs (1)
579var trimmedStart = content.AsSpan().TrimStart();
Language\NamespaceComputer.cs (10)
16private static ReadOnlySpan<char> PathSeparators => ['/', '\\']; 17private static ReadOnlySpan<char> NamespaceSeparators => ['.']; 43var sourceFilePath = filePath.AsSpan(); 44var directiveDirectorySpan = NormalizeDirectory(directiveNamespaceSpan.FilePath); 52var suffix = sourceFilePath[directiveDirectorySpan.Length..]; 93private static ReadOnlySpan<char> NormalizeDirectory(string path) 95var span = path.AsSpanOrDefault(); 134foreach (var token in tokenizer) 150public void AppendRelativePath(ReadOnlySpan<char> relativePath) 163foreach (var token in tokenizer)
Language\RazorProjectEngineBuilderExtensions.cs (2)
22var configurationName = builder.Configuration.ConfigurationName.AsSpanOrDefault(); 144internal static RazorProjectEngineBuilder AddDirective(this RazorProjectEngineBuilder builder, DirectiveDescriptor directive, params ReadOnlySpan<RazorFileKind> fileKinds)
Language\ReadOnlyMemoryOfCharComparer.cs (1)
19public static bool Equals(ReadOnlySpan<char> x, ReadOnlyMemory<char> y)
Language\RequiredAttributeDescriptorBuilder.cs (1)
70var nameSpan = name.AsSpan();
Language\StringTokenizer.cs (12)
10private readonly ReadOnlySpan<char> _value; 11private readonly ReadOnlySpan<char> _separators; 14private StringTokenizer(ReadOnlySpan<char> value, ReadOnlySpan<char> separators, bool hasValue) 26public StringTokenizer(ReadOnlySpan<char> value, ReadOnlySpan<char> separators) 36public StringTokenizer(string? value, ReadOnlySpan<char> separators) 45private ReadOnlySpan<char> _span; 46private readonly ReadOnlySpan<char> _separators; 49internal Enumerator(ReadOnlySpan<char> span, ReadOnlySpan<char> separators, bool done) 57public ReadOnlySpan<char> Current { get; private set; }
Language\Syntax\GreenNode.cs (1)
215var content = token.Content.AsSpan();
Language\Syntax\InternalSyntax\SyntaxList.cs (4)
25public static SyntaxList<TNode> Create<TNode>(params ReadOnlySpan<TNode> nodes) 38public static SyntaxList<GreenNode> Create(params ReadOnlySpan<GreenNode> nodes) 74internal static GreenNode List<TNode>(ReadOnlySpan<TNode> nodes) 89internal static GreenNode List(ReadOnlySpan<GreenNode> nodes)
Language\Syntax\SyntaxFactory.cs (2)
45public static SyntaxList<TNode> List<TNode>(params ReadOnlySpan<TNode> nodes) 59public static SyntaxTokenList TokenList(params ReadOnlySpan<SyntaxToken> tokens)
Language\Syntax\SyntaxList.cs (2)
12public static SyntaxList<TNode> Create<TNode>(params ReadOnlySpan<TNode> nodes) 35public static SyntaxTokenList Create(params ReadOnlySpan<SyntaxToken> tokens)
Language\Syntax\SyntaxList`1.cs (5)
31public SyntaxList(params ReadOnlySpan<TNode> nodes) 41private static SyntaxNode? CreateRedListNode(ReadOnlySpan<TNode> nodes) 135public SyntaxList<TNode> AddRange(ReadOnlySpan<TNode> nodes) 162public SyntaxList<TNode> InsertRange(int index, ReadOnlySpan<TNode> tokens) 310public SyntaxList<TNode> ReplaceRange(TNode nodeInList, ReadOnlySpan<TNode> nodes)
Language\Syntax\SyntaxNodeExtensions.cs (1)
20public static TNode AppendDiagnostic<TNode>(this TNode node, params ReadOnlySpan<RazorDiagnostic> diagnostics) where TNode : SyntaxNode
Language\Syntax\SyntaxTokenList.cs (5)
50public SyntaxTokenList(params ReadOnlySpan<SyntaxToken> tokens) 60private static GreenNode? CreateGreenListNode(ReadOnlySpan<SyntaxToken> tokens) 161public SyntaxTokenList AddRange(ReadOnlySpan<SyntaxToken> tokens) 177public SyntaxTokenList InsertRange(int index, ReadOnlySpan<SyntaxToken> tokens) 303public SyntaxTokenList ReplaceRange(SyntaxToken tokenInList, ReadOnlySpan<SyntaxToken> tokens)
Language\Syntax\SyntaxUtilities.cs (1)
85private static MarkupTextLiteralSyntax MergeTextLiterals(ReadOnlySpan<MarkupTextLiteralSyntax?> literals, SpanEditHandler? editHandler)
Language\TagHelperBinder.cs (5)
131var tagNameSpan = tagName.AsSpan(); 132var parentTagNameSpan = parentTagName.AsSpan(); 133var tagNamePrefixSpan = TagNamePrefix.AsSpan(); 180ReadOnlySpan<char> tagName, 181ReadOnlySpan<char> parentTagName,
Language\TagHelperCollection_Factories.cs (7)
33public static TagHelperCollection Create(ReadOnlySpan<TagHelperDescriptor> span) 42static TagHelperCollection BuildCollection(ReadOnlySpan<TagHelperDescriptor> span) 171public static TagHelperCollection Merge(params ReadOnlySpan<TagHelperCollection> collections) 183using var _ = CollectMergeableCollections(collections, out var mergeableCollections); 193ReadOnlySpan<TagHelperCollection> collections, out ReadOnlySpan<TagHelperCollection> result) 214static TagHelperCollection MergeMultipleCollections(ReadOnlySpan<TagHelperCollection> collections)
Language\TagHelperCollection.Builder.cs (1)
82public void AddRange(ReadOnlySpan<TagHelperDescriptor> span)
Language\TagHelperCollection.cs (2)
264var span = segment.Span; 339var span = segment.Span;
Language\TagHelperCollection.FixedSizeBuilder.cs (1)
70public void AddRange(ReadOnlySpan<TagHelperDescriptor> span)
Language\TagHelperCollection.RefBuilder.cs (1)
91public void AddRange(ReadOnlySpan<TagHelperDescriptor> span)
Language\TagHelperCollection.SegmentBuilder.cs (1)
66var span = segment.Span;
Language\TagHelperMatchingConventions.cs (13)
20ReadOnlySpan<char> tagNameWithoutPrefix, 21ReadOnlySpan<char> parentTagNameWithoutPrefix, 31ReadOnlySpan<char> tagNameWithoutPrefix, 56ReadOnlySpan<char> parentTagNameWithoutPrefix) 115public static bool SatisfiesBoundAttributeIndexer(BoundAttributeDescriptor descriptor, ReadOnlySpan<char> name) 124if (TryGetBoundAttributeParameter(name, out var attributeName, out var parameterName)) 135public static bool TryGetBoundAttributeParameter(string fullAttributeName, out ReadOnlySpan<char> boundAttributeName) 139var span = fullAttributeName.AsSpanOrDefault(); 156private static bool TryGetBoundAttributeParameter(string fullAttributeName, out ReadOnlySpan<char> boundAttributeName, out ReadOnlySpan<char> parameterName) 161var span = fullAttributeName.AsSpanOrDefault(); 254private static bool SatisfiesBoundAttributeName(BoundAttributeDescriptor descriptor, ReadOnlySpan<char> name)
SourceGenerators\RazorSourceGenerator.Helpers.cs (2)
20internal static string GetIdentifierFromPath(ReadOnlySpan<char> filePath) 81internal static void BuildIdentifierFromPath(StringBuilder builder, ReadOnlySpan<char> filePath)
SourceGenerators\SourceGeneratorProjectEngine.cs (2)
23private ReadOnlySpan<IRazorEnginePhase> Phases => _projectEngine.Engine.Phases.AsSpan(); 230private static RazorCodeDocument ExecutePhases(ReadOnlySpan<IRazorEnginePhase> phases, RazorCodeDocument codeDocument, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Razor.DotNetFormat (10)
src\roslyn\src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.Formatting\FormattingUtilities.cs (4)
109var extractedTextSpan = extractedText.AsSpan(); 114var lineSpan = extractedTextSpan[lineRange]; 127static ReadOnlySpan<char> UnindentLine(ReadOnlySpan<char> line, int indentation)
src\roslyn\src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.Formatting\Passes\CSharpFormattingPass.CSharpDocumentGenerator.cs (4)
128var span = line.ToString().AsSpan(); 129var toParse = span[3..]; 136var startSpan = toParse[..space]; 137var lengthSpan = toParse[(space + 1)..];
src\roslyn\src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.Workspaces.Shared\RazorSyntaxFacts.cs (2)
111public static bool TryGetComponentParameterNameFromFullAttributeName(string fullAttributeName, out ReadOnlySpan<char> componentParameterName, out ReadOnlySpan<char> directiveAttributeParameter)
Microsoft.CodeAnalysis.ResxSourceGenerator (86)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
826public static string CollapseWithForwardSlash(ReadOnlySpan<char> path)
src\roslyn\src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
53public abstract void Append(ReadOnlySpan<byte> source);
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHash128.cs (5)
77public static byte[] Hash(ReadOnlySpan<byte> source, long seed = 0) 90public static int Hash(ReadOnlySpan<byte> source, Span<byte> destination, long seed = 0) 106public static bool TryHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, long seed = 0) 133private static Hash128 HashToHash128(ReadOnlySpan<byte> source, long seed = 0) 165public override void Append(ReadOnlySpan<byte> source)
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHashShared.cs (2)
42public static ReadOnlySpan<byte> DefaultSecret => 249public static void Append(ref State state, ReadOnlySpan<byte> source)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
102public void AppendFormatted(ReadOnlySpan<char> value) => _builder!.Append(value.ToString());
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
48private static int IndexOfExtension(ReadOnlySpan<char> path)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Hash.cs (4)
229internal static int GetFNVHashCode(ReadOnlySpan<byte> data, out bool isAscii) 272internal static int GetFNVHashCode(ReadOnlySpan<char> data) 295internal static int GetCaseInsensitiveFNVHashCode(ReadOnlySpan<char> data) 401internal static int CombineFNVHash(int hashCode, ReadOnlySpan<char> data)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\HexUtilities.cs (4)
11internal static string ToHexString(ReadOnlySpan<byte> bytes) 14internal static string ToHexStringLower(ReadOnlySpan<byte> bytes) 17private static string ToHexString(ReadOnlySpan<byte> bytes, bool upperCase) 29static void toHex(ReadOnlySpan<byte> source, Span<char> destination, char firstHexLetter)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (1)
22public static bool Equals(ReadOnlySpan<char> x, ReadOnlyMemory<char> y)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (8)
122internal string Add(ReadOnlySpan<char> chars) 199private static string? FindSharedEntry(ReadOnlySpan<char> chars, int hashCode) 237private static string? FindSharedEntryASCII(int hashCode, ReadOnlySpan<byte> asciiChars) 313private string AddItem(ReadOnlySpan<char> chars, int hashCode) 389internal static string AddSharedUtf8(ReadOnlySpan<byte> bytes) 405private static string AddSharedSlow(int hashCode, ReadOnlySpan<byte> utf8Bytes, bool isAscii) 529internal static bool TextEqualsASCII(string text, ReadOnlySpan<byte> ascii) 554internal static bool TextEquals(string array, ReadOnlySpan<char> text)
src\roslyn\src\Dependencies\Collections\Extensions\MemoryExtensions.cs (2)
15/// Variant of <see cref="System.MemoryExtensions.BinarySearch{T, TComparer}(ReadOnlySpan{T}, T, TComparer)"/>. 17public static int BinarySearch<TElement, TValue>(this ReadOnlySpan<TElement> span, TValue value, Func<TElement, TValue, int> comparer)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (1)
1224private static ReadOnlySpan<byte> Log2DeBruijn => new byte[32]
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
194ReadOnlySpan<KeyValuePair<TKey, TValue>> span;
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (2)
183public void AddWork(ReadOnlySpan<TItem> items, bool cancelExistingWork = false) 210void AddItemsToBatch(ReadOnlySpan<TItem> items)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (8)
102ReadOnlySpan<char> remainingTrivia = fullTrivia.AsSpan(); 106static bool TryTakeNextLine(ref ReadOnlySpan<char> remaining, out ReadOnlySpan<char> next, bool leading) 110next = ReadOnlySpan<char>.Empty; 120remaining = ReadOnlySpan<char>.Empty; 142remaining = ReadOnlySpan<char>.Empty; 160static int GetNewlineCount(ReadOnlySpan<char> trivia, bool leading) 163while (TryTakeNextLine(ref trivia, out var next, leading))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PathHelper.cs (2)
15public static ReadOnlySpan<char> GetFileName(string? path) 18return ReadOnlySpan<char>.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
96private static bool TryParseNotification(ReadOnlySpan<char> value, out NotificationOption2 notification)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (1)
138/// <item>They must have a final parameter that is the <see cref="ReadOnlySpan{T}"/> containing the elements of the
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReadOnlySpanExtensions.cs (1)
13public static bool Contains<T>(this ReadOnlySpan<T> values, T value)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\IMetricSink.cs (2)
23void Count(string eventName, string metricName, long delta, ReadOnlySpan<KeyValuePair<string, object?>> tags); 28void Record(string eventName, string metricName, long value, ReadOnlySpan<KeyValuePair<string, object?>> tags);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\RoslynTelemetry_Metrics.cs (4)
71public void Count(FunctionId functionId, string metricName, long delta, ReadOnlySpan<KeyValuePair<string, object?>> tags) 74private void CountCore(FunctionId functionId, string metricName, long delta, ReadOnlySpan<KeyValuePair<string, object?>> tags) 113public void Record(FunctionId functionId, string metricName, long value, ReadOnlySpan<KeyValuePair<string, object?>> tags) 116private void RecordCore(FunctionId functionId, string metricName, long value, ReadOnlySpan<KeyValuePair<string, object?>> tags)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (3)
325/// cref="ReadOnlySpan{T}">ReadOnlySpan</see>&lt;<see cref="byte"/>&gt;, and deserialized to a byte array. 328public void WriteSpan(ReadOnlySpan<byte> span) 365ReadOnlySpan<T> span,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
364var keySpan1 = _symbolKeyData.AsSpan(position1); 365var keySpan2 = other._symbolKeyData.AsSpan(position2);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\System.Text\Rune.cs (8)
44private static ReadOnlySpan<byte> AsciiCharInfo => new byte[] 286public static OperationStatus DecodeFromUtf16(ReadOnlySpan<char> source, out Rune result, out int charsConsumed) 370public static OperationStatus DecodeFromUtf8(ReadOnlySpan<byte> source, out Rune result, out int bytesConsumed) 538/// This method is very similar to <see cref="DecodeFromUtf16(ReadOnlySpan{char}, out Rune, out int)"/>, but it allows 543public static OperationStatus DecodeLastFromUtf16(ReadOnlySpan<char> source, out Rune result, out int charsConsumed) 598/// This method is very similar to <see cref="DecodeFromUtf8(ReadOnlySpan{byte}, out Rune, out int)"/>, but it allows 603public static OperationStatus DecodeLastFromUtf8(ReadOnlySpan<byte> source, out Rune value, out int bytesConsumed) 779internal static int ReadFirstRuneFromUtf16Buffer(ReadOnlySpan<char> input)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Base64Utilities.cs (4)
20private static ReadOnlySpan<sbyte> DecodingMap => 79public static bool TryFromBase64Chars(ReadOnlySpan<char> chars, Span<byte> bytes, out int bytesWritten) 173private static void CopyToTempBufferWithoutWhiteSpace(ReadOnlySpan<char> chars, Span<char> tempBuffer, out int consumed, out int charsWritten) 194private static bool TryDecodeFromUtf16(ReadOnlySpan<char> utf16, Span<byte> bytes, out int consumed, out int written)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (4)
168public static int GetEditDistance(ReadOnlySpan<char> source, ReadOnlySpan<char> target, int threshold = int.MaxValue) 175private static int GetEditDistanceWorker(ReadOnlySpan<char> source, ReadOnlySpan<char> target, int threshold)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringBreaker.cs (9)
17public static void AddWordParts(ReadOnlySpan<char> identifier, ref TemporaryArray<TextSpan> parts) 20public static void AddCharacterParts(ReadOnlySpan<char> identifier, ref TemporaryArray<TextSpan> parts) 23public static void AddParts(ReadOnlySpan<char> text, bool word, ref TemporaryArray<TextSpan> parts) 41public static TextSpan GenerateSpan(ReadOnlySpan<char> identifier, int wordStart, bool word) 81private static TextSpan ScanCharacterRun(ReadOnlySpan<char> identifier, int length, int wordStart) 102private static TextSpan ScanWordRun(ReadOnlySpan<char> identifier, int length, int wordStart) 151private static TextSpan ScanLowerCaseRun(ReadOnlySpan<char> identifier, int length, int wordStart) 162private static TextSpan ScanNumber(ReadOnlySpan<char> identifier, int length, int wordStart) 173private static int SkipPunctuation(ReadOnlySpan<char> identifier, int length, int wordStart)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
295=> compilation.GetTypeByMetadataName(typeof(ReadOnlySpan<>).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (2)
751or nameof(ReadOnlySpan<>) 794Name: nameof(ReadOnlySpan<>),
Microsoft.CodeAnalysis.Workspaces (103)
Diagnostics\Extensions.cs (1)
98var fileNameSpan = reference.FullPath.AsSpan(FileNameUtilities.IndexOfFileName(reference.FullPath));
FindSymbols\FindReferences\Finders\AbstractReferenceFinder_GlobalSuppressions.cs (2)
96FindReferencesDocumentState state, SyntaxToken token, ReadOnlySpan<char> expectedDocCommentId, 304ReadOnlySpan<char> argumentSeparators = stackalloc[] { '(', '[' };
FindSymbols\TopLevelSyntaxTree\NavigateToSearchIndex.NavigateToSearchInfo.cs (18)
260void AddHumpPrefixData(ReadOnlySpan<char> loweredName) 275void AddNgramData(ReadOnlySpan<char> loweredName) 299static void AddToSet(HashSet<string> set, ReadOnlySpan<char> value) 302set.GetAlternateLookup<ReadOnlySpan<char>>().Add(value); 362private bool NonFuzzyCheckPasses(ReadOnlySpan<char> pattern) 390private bool HumpOrNgramCheckPasses(ReadOnlySpan<char> pattern) 426public bool ContainerCheckPasses(ReadOnlySpan<char> patternContainer) 471public bool HumpCheckPasses(ReadOnlySpan<char> patternName) 474private bool HumpCheckPasses(ReadOnlySpan<char> patternName, bool isAllLowercase) 523private static bool AllLowercaseHumpCheckPasses(ReadOnlySpan<char> pattern, BloomFilter? humpPrefixFilter) 577private static bool MixedCaseHumpCheckPasses(ReadOnlySpan<char> pattern, FrozenSet<string>? humpSet) 612public bool NgramCheckPasses(ReadOnlySpan<char> pattern) 615private bool NgramCheckPasses(ReadOnlySpan<char> pattern, bool isAllLowercase) 633public bool LengthCheckPasses(ReadOnlySpan<char> pattern) 690public bool BigramCountCheckPasses(ReadOnlySpan<char> pattern) 715return set.GetAlternateLookup<ReadOnlySpan<char>>().Contains([c]); 724return set.GetAlternateLookup<ReadOnlySpan<char>>().Contains([c1, c2]); 730private static bool IsAllLowercase(ReadOnlySpan<char> text)
FindSymbols\TopLevelSyntaxTree\SparseNgramGenerator.cs (4)
73private static uint HashBigram(ReadOnlySpan<char> text, int pos) 103public static void BuildAllNgrams(ReadOnlySpan<char> text, ref TemporaryArray<(int start, int length)> results) 172ReadOnlySpan<char> text, 245ReadOnlySpan<char> text, Shared.Utilities.BloomFilter filter)
PatternMatching\CompoundPatternMatcher.cs (1)
21public CompoundPatternMatcher(ReadOnlySpan<PatternMatcher> matchers)
Shared\Utilities\BloomFilter.cs (4)
123private static int ComputeHash(ReadOnlySpan<char> key, int seed, bool isCaseSensitive) 235private static char GetCharacter(ReadOnlySpan<char> key, int index, bool isCaseSensitive) 331public void Add(ReadOnlySpan<char> value) 384public bool ProbablyContains(ReadOnlySpan<char> value)
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (1)
448private static string HashToHex(ReadOnlySpan<char> value)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
826public static string CollapseWithForwardSlash(ReadOnlySpan<char> path)
src\roslyn\src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
53public abstract void Append(ReadOnlySpan<byte> source);
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHash128.cs (6)
77public static byte[] Hash(ReadOnlySpan<byte> source, long seed = 0) 90public static int Hash(ReadOnlySpan<byte> source, Span<byte> destination, long seed = 0) 106public static bool TryHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, long seed = 0) 126public static UInt128 HashToUInt128(ReadOnlySpan<byte> source, long seed = 0) 133private static Hash128 HashToHash128(ReadOnlySpan<byte> source, long seed = 0) 165public override void Append(ReadOnlySpan<byte> source)
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHashShared.cs (2)
42public static ReadOnlySpan<byte> DefaultSecret => 249public static void Append(ref State state, ReadOnlySpan<byte> source)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
102public void AppendFormatted(ReadOnlySpan<char> value) => _builder!.Append(value.ToString());
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
48private static int IndexOfExtension(ReadOnlySpan<char> path)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Hash.cs (4)
229internal static int GetFNVHashCode(ReadOnlySpan<byte> data, out bool isAscii) 272internal static int GetFNVHashCode(ReadOnlySpan<char> data) 295internal static int GetCaseInsensitiveFNVHashCode(ReadOnlySpan<char> data) 401internal static int CombineFNVHash(int hashCode, ReadOnlySpan<char> data)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\HexUtilities.cs (4)
11internal static string ToHexString(ReadOnlySpan<byte> bytes) 14internal static string ToHexStringLower(ReadOnlySpan<byte> bytes) 17private static string ToHexString(ReadOnlySpan<byte> bytes, bool upperCase) 29static void toHex(ReadOnlySpan<byte> source, Span<char> destination, char firstHexLetter)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (1)
22public static bool Equals(ReadOnlySpan<char> x, ReadOnlyMemory<char> y)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (8)
122internal string Add(ReadOnlySpan<char> chars) 199private static string? FindSharedEntry(ReadOnlySpan<char> chars, int hashCode) 237private static string? FindSharedEntryASCII(int hashCode, ReadOnlySpan<byte> asciiChars) 313private string AddItem(ReadOnlySpan<char> chars, int hashCode) 389internal static string AddSharedUtf8(ReadOnlySpan<byte> bytes) 405private static string AddSharedSlow(int hashCode, ReadOnlySpan<byte> utf8Bytes, bool isAscii) 529internal static bool TextEqualsASCII(string text, ReadOnlySpan<byte> ascii) 554internal static bool TextEquals(string array, ReadOnlySpan<char> text)
src\roslyn\src\Dependencies\Collections\Extensions\MemoryExtensions.cs (2)
15/// Variant of <see cref="System.MemoryExtensions.BinarySearch{T, TComparer}(ReadOnlySpan{T}, T, TComparer)"/>. 17public static int BinarySearch<TElement, TValue>(this ReadOnlySpan<TElement> span, TValue value, Func<TElement, TValue, int> comparer)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
194ReadOnlySpan<KeyValuePair<TKey, TValue>> span;
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (2)
183public void AddWork(ReadOnlySpan<TItem> items, bool cancelExistingWork = false) 210void AddItemsToBatch(ReadOnlySpan<TItem> items)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
96private static bool TryParseNotification(ReadOnlySpan<char> value, out NotificationOption2 notification)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (1)
138/// <item>They must have a final parameter that is the <see cref="ReadOnlySpan{T}"/> containing the elements of the
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\IMetricSink.cs (2)
23void Count(string eventName, string metricName, long delta, ReadOnlySpan<KeyValuePair<string, object?>> tags); 28void Record(string eventName, string metricName, long value, ReadOnlySpan<KeyValuePair<string, object?>> tags);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\RoslynTelemetry_Metrics.cs (4)
71public void Count(FunctionId functionId, string metricName, long delta, ReadOnlySpan<KeyValuePair<string, object?>> tags) 74private void CountCore(FunctionId functionId, string metricName, long delta, ReadOnlySpan<KeyValuePair<string, object?>> tags) 113public void Record(FunctionId functionId, string metricName, long value, ReadOnlySpan<KeyValuePair<string, object?>> tags) 116private void RecordCore(FunctionId functionId, string metricName, long value, ReadOnlySpan<KeyValuePair<string, object?>> tags)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (3)
325/// cref="ReadOnlySpan{T}">ReadOnlySpan</see>&lt;<see cref="byte"/>&gt;, and deserialized to a byte array. 328public void WriteSpan(ReadOnlySpan<byte> span) 365ReadOnlySpan<T> span,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
364var keySpan1 = _symbolKeyData.AsSpan(position1); 365var keySpan2 = other._symbolKeyData.AsSpan(position2);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Base64Utilities.cs (4)
20private static ReadOnlySpan<sbyte> DecodingMap => 79public static bool TryFromBase64Chars(ReadOnlySpan<char> chars, Span<byte> bytes, out int bytesWritten) 173private static void CopyToTempBufferWithoutWhiteSpace(ReadOnlySpan<char> chars, Span<char> tempBuffer, out int consumed, out int charsWritten) 194private static bool TryDecodeFromUtf16(ReadOnlySpan<char> utf16, Span<byte> bytes, out int consumed, out int written)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (4)
168public static int GetEditDistance(ReadOnlySpan<char> source, ReadOnlySpan<char> target, int threshold = int.MaxValue) 175private static int GetEditDistanceWorker(ReadOnlySpan<char> source, ReadOnlySpan<char> target, int threshold)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringBreaker.cs (9)
17public static void AddWordParts(ReadOnlySpan<char> identifier, ref TemporaryArray<TextSpan> parts) 20public static void AddCharacterParts(ReadOnlySpan<char> identifier, ref TemporaryArray<TextSpan> parts) 23public static void AddParts(ReadOnlySpan<char> text, bool word, ref TemporaryArray<TextSpan> parts) 41public static TextSpan GenerateSpan(ReadOnlySpan<char> identifier, int wordStart, bool word) 81private static TextSpan ScanCharacterRun(ReadOnlySpan<char> identifier, int length, int wordStart) 102private static TextSpan ScanWordRun(ReadOnlySpan<char> identifier, int length, int wordStart) 151private static TextSpan ScanLowerCaseRun(ReadOnlySpan<char> identifier, int length, int wordStart) 162private static TextSpan ScanNumber(ReadOnlySpan<char> identifier, int length, int wordStart) 173private static int SkipPunctuation(ReadOnlySpan<char> identifier, int length, int wordStart)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
295=> compilation.GetTypeByMetadataName(typeof(ReadOnlySpan<>).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (2)
751or nameof(ReadOnlySpan<>) 794Name: nameof(ReadOnlySpan<>),
Workspace\Solution\Checksum_Factory.cs (3)
49public static Checksum Create(ReadOnlySpan<string> values) 113public static Checksum Create(ReadOnlySpan<Checksum> hashes) 167public static Checksum Create(ReadOnlySpan<byte> bytes)
Workspace\Solution\Checksum.cs (1)
52public static Checksum From(ReadOnlySpan<byte> checksum)
Workspace\Solution\SourceGeneratedDocumentIdentity.cs (1)
56ReadOnlySpan<string> stringsToChecksum = [assemblyNameToHash, generatorIdentity.TypeName, hintName];
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
826public static string CollapseWithForwardSlash(ReadOnlySpan<char> path)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
102public void AppendFormatted(ReadOnlySpan<char> value) => _builder!.Append(value.ToString());
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
48private static int IndexOfExtension(ReadOnlySpan<char> path)
Microsoft.CSharp (2)
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (2)
1303private static ReadOnlySpan<PredefinedType> RgptIntOp => 1603private static ReadOnlySpan<PredefinedName> EK2NAME =>
Microsoft.Data.Analysis (553)
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.net8.cs (153)
20static abstract void And(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination); 21static abstract void And(ReadOnlySpan<T> x, T y, Span<T> destination); 22static abstract void And(T x, ReadOnlySpan<T> y, Span<T> destination); 23static abstract void Or(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination); 24static abstract void Or(ReadOnlySpan<T> x, T y, Span<T> destination); 25static abstract void Or(T x, ReadOnlySpan<T> y, Span<T> destination); 26static abstract void Xor(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination); 27static abstract void Xor(ReadOnlySpan<T> x, T y, Span<T> destination); 28static abstract void Xor(T x, ReadOnlySpan<T> y, Span<T> destination); 34static abstract void LeftShift(ReadOnlySpan<T> x, int shiftAmount, Span<T> destination); 35static abstract void RightShift(ReadOnlySpan<T> x, int shiftAmount, Span<T> destination); 41static abstract void Add(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination); 42static abstract void Add(ReadOnlySpan<T> x, T y, Span<T> destination); 43static abstract void Add(T x, ReadOnlySpan<T> y, Span<T> destination); 44static abstract void Subtract(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination); 45static abstract void Subtract(ReadOnlySpan<T> x, T y, Span<T> destination); 46static abstract void Subtract(T x, ReadOnlySpan<T> y, Span<T> destination); 47static abstract void Multiply(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination); 48static abstract void Multiply(ReadOnlySpan<T> x, T y, Span<T> destination); 49static abstract void Multiply(T x, ReadOnlySpan<T> y, Span<T> destination); 50static abstract void Divide(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination); 51static abstract void Divide(ReadOnlySpan<T> x, T y, Span<T> destination); 52static abstract void Divide(T x, ReadOnlySpan<T> y, Span<T> destination); 54static abstract void Modulo(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination); 55static abstract void Modulo(ReadOnlySpan<T> x, T y, Span<T> destination); 56static abstract void Modulo(T x, ReadOnlySpan<T> y, Span<T> destination); 59static abstract void ElementwiseEquals(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<bool> destination); 60static abstract void ElementwiseEquals(ReadOnlySpan<T> x, T y, Span<bool> destination); 61static abstract void ElementwiseNotEquals(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<bool> destination); 62static abstract void ElementwiseNotEquals(ReadOnlySpan<T> x, T y, Span<bool> destination); 63static abstract void ElementwiseGreaterThanOrEqual(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<bool> destination); 64static abstract void ElementwiseGreaterThanOrEqual(ReadOnlySpan<T> x, T y, Span<bool> destination); 65static abstract void ElementwiseLessThanOrEqual(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<bool> destination); 66static abstract void ElementwiseLessThanOrEqual(ReadOnlySpan<T> x, T y, Span<bool> destination); 67static abstract void ElementwiseGreaterThan(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<bool> destination); 68static abstract void ElementwiseGreaterThan(ReadOnlySpan<T> x, T y, Span<bool> destination); 69static abstract void ElementwiseLessThan(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<bool> destination); 70static abstract void ElementwiseLessThan(ReadOnlySpan<T> x, T y, Span<bool> destination); 76public static void And(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) => TensorPrimitives.BitwiseAnd(x, y, destination); 77public static void And(ReadOnlySpan<T> x, T y, Span<T> destination) => TensorPrimitives.BitwiseAnd(x, y, destination); 78public static void And(T x, ReadOnlySpan<T> y, Span<T> destination) => TensorPrimitives.BitwiseAnd(y, x, destination); 79public static void Or(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) => TensorPrimitives.BitwiseOr(x, y, destination); 80public static void Or(ReadOnlySpan<T> x, T y, Span<T> destination) => TensorPrimitives.BitwiseOr(x, y, destination); 81public static void Or(T x, ReadOnlySpan<T> y, Span<T> destination) => TensorPrimitives.BitwiseOr(y, x, destination); 82public static void Xor(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) => TensorPrimitives.Xor(x, y, destination); 83public static void Xor(ReadOnlySpan<T> x, T y, Span<T> destination) => TensorPrimitives.Xor(x, y, destination); 84public static void Xor(T x, ReadOnlySpan<T> y, Span<T> destination) => TensorPrimitives.Xor(y, x, destination); 90public static void LeftShift(ReadOnlySpan<T> x, int shiftAmount, Span<T> destination) => TensorPrimitives.ShiftLeft(x, shiftAmount, destination); 91public static void RightShift(ReadOnlySpan<T> x, int shiftAmount, Span<T> destination) => TensorPrimitives.ShiftRightArithmetic(x, shiftAmount, destination); 97public static void Add(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) => TensorPrimitives.Add(x, y, destination); 98public static void Add(ReadOnlySpan<T> x, T y, Span<T> destination) => TensorPrimitives.Add(x, y, destination); 99public static void Add(T x, ReadOnlySpan<T> y, Span<T> destination) => TensorPrimitives.Add(y, x, destination); 100public static void Subtract(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) => TensorPrimitives.Subtract(x, y, destination); 101public static void Subtract(ReadOnlySpan<T> x, T y, Span<T> destination) => TensorPrimitives.Subtract(x, y, destination); 102public static void Subtract(T x, ReadOnlySpan<T> y, Span<T> destination) => TensorPrimitives.Subtract(x, y, destination); 103public static void Multiply(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) => TensorPrimitives.Multiply(x, y, destination); 104public static void Multiply(ReadOnlySpan<T> x, T y, Span<T> destination) => TensorPrimitives.Multiply(x, y, destination); 105public static void Multiply(T x, ReadOnlySpan<T> y, Span<T> destination) => TensorPrimitives.Multiply(y, x, destination); 106public static void Divide(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) => TensorPrimitives.Divide(x, y, destination); 107public static void Divide(ReadOnlySpan<T> x, T y, Span<T> destination) => TensorPrimitives.Divide(x, y, destination); 108public static void Divide(T x, ReadOnlySpan<T> y, Span<T> destination) => TensorPrimitives.Divide(x, y, destination); 111public static void Modulo(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 119public static void Modulo(ReadOnlySpan<T> x, T y, Span<T> destination) 127public static void Modulo(T x, ReadOnlySpan<T> y, Span<T> destination) 137public static void ElementwiseEquals(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<bool> destination) 145public static void ElementwiseEquals(ReadOnlySpan<T> x, T y, Span<bool> destination) 153public static void ElementwiseNotEquals(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<bool> destination) 161public static void ElementwiseNotEquals(ReadOnlySpan<T> x, T y, Span<bool> destination) 169public static void ElementwiseGreaterThanOrEqual(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<bool> destination) 177public static void ElementwiseGreaterThanOrEqual(ReadOnlySpan<T> x, T y, Span<bool> destination) 185public static void ElementwiseLessThanOrEqual(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<bool> destination) 193public static void ElementwiseLessThanOrEqual(ReadOnlySpan<T> x, T y, Span<bool> destination) 201public static void ElementwiseGreaterThan(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<bool> destination) 209public static void ElementwiseGreaterThan(ReadOnlySpan<T> x, T y, Span<bool> destination) 217public static void ElementwiseLessThan(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<bool> destination) 225public static void ElementwiseLessThan(ReadOnlySpan<T> x, T y, Span<bool> destination) 240public virtual void HandleOperation(BinaryOperation operation, ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 264public virtual void HandleOperation(BinaryOperation operation, ReadOnlySpan<T> x, T y, Span<T> destination) 288public virtual void HandleOperation(BinaryOperation operation, T x, ReadOnlySpan<T> y, Span<T> destination) 323public virtual void HandleOperation(BinaryIntOperation operation, ReadOnlySpan<T> x, int y, Span<T> destination) 328public void HandleOperation(ComparisonOperation operation, ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<bool> destination) 355public void HandleOperation(ComparisonOperation operation, ReadOnlySpan<T> x, T y, Span<bool> destination) 388public override void HandleOperation(BinaryOperation operation, ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 406public override void HandleOperation(BinaryOperation operation, ReadOnlySpan<T> x, T y, Span<T> destination) 424public override void HandleOperation(BinaryOperation operation, T x, ReadOnlySpan<T> y, Span<T> destination) 450public override void HandleOperation(BinaryIntOperation operation, ReadOnlySpan<T> x, int y, Span<T> destination) 469protected override void ElementwiseEquals(ReadOnlySpan<DateTime> x, ReadOnlySpan<DateTime> y, Span<bool> destination) 477protected override void ElementwiseEquals(ReadOnlySpan<DateTime> x, DateTime y, Span<bool> destination) 485protected override void ElementwiseNotEquals(ReadOnlySpan<DateTime> x, ReadOnlySpan<DateTime> y, Span<bool> destination) 493protected override void ElementwiseNotEquals(ReadOnlySpan<DateTime> x, DateTime y, Span<bool> destination) 501protected override void ElementwiseGreaterThanOrEqual(ReadOnlySpan<DateTime> x, ReadOnlySpan<DateTime> y, Span<bool> destination) 509protected override void ElementwiseGreaterThanOrEqual(ReadOnlySpan<DateTime> x, DateTime y, Span<bool> destination) 517protected override void ElementwiseLessThanOrEqual(ReadOnlySpan<DateTime> x, ReadOnlySpan<DateTime> y, Span<bool> destination) 525protected override void ElementwiseLessThanOrEqual(ReadOnlySpan<DateTime> x, DateTime y, Span<bool> destination) 533protected override void ElementwiseGreaterThan(ReadOnlySpan<DateTime> x, ReadOnlySpan<DateTime> y, Span<bool> destination) 541protected override void ElementwiseGreaterThan(ReadOnlySpan<DateTime> x, DateTime y, Span<bool> destination) 549protected override void ElementwiseLessThan(ReadOnlySpan<DateTime> x, ReadOnlySpan<DateTime> y, Span<bool> destination) 557protected override void ElementwiseLessThan(ReadOnlySpan<DateTime> x, DateTime y, Span<bool> destination) 568protected override void And(ReadOnlySpan<bool> x, ReadOnlySpan<bool> y, Span<bool> destination) 579protected override void And(ReadOnlySpan<bool> x, bool y, Span<bool> destination) 590protected override void And(bool x, ReadOnlySpan<bool> y, Span<bool> destination) 601protected override void Or(ReadOnlySpan<bool> x, ReadOnlySpan<bool> y, Span<bool> destination) 612protected override void Or(ReadOnlySpan<bool> x, bool y, Span<bool> destination) 623protected override void Or(bool x, ReadOnlySpan<bool> y, Span<bool> destination) 634protected override void Xor(ReadOnlySpan<bool> x, ReadOnlySpan<bool> y, Span<bool> destination) 645protected override void Xor(ReadOnlySpan<bool> x, bool y, Span<bool> destination) 656protected override void Xor(bool x, ReadOnlySpan<bool> y, Span<bool> destination) 667protected override void ElementwiseEquals(ReadOnlySpan<bool> x, ReadOnlySpan<bool> y, Span<bool> destination) 675protected override void ElementwiseEquals(ReadOnlySpan<bool> x, bool y, Span<bool> destination) 683protected override void ElementwiseNotEquals(ReadOnlySpan<bool> x, ReadOnlySpan<bool> y, Span<bool> destination) 691protected override void ElementwiseNotEquals(ReadOnlySpan<bool> x, bool 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 (9)
567ReadOnlySpan<T> span, 577private static int CompareSortIndices<T>(ReadOnlySpan<T> span, int left, int right, IComparer<T> comparer, bool ascending) 584ReadOnlySpan<T> span, 633ReadOnlySpan<TKey> span, int lo, int hi, 692ReadOnlySpan<TKey> span, int lo, int hi, 715ReadOnlySpan<TKey> span, int i, int n, int lo, 748ReadOnlySpan<TKey> span, int lo, int hi, 776ReadOnlySpan<TKey> span, int i, int j, int k, 788ReadOnlySpan<TKey> span, int i, int j,
DataFrameColumns\ArrowStringDataFrameColumn.cs (15)
181private void Append(ReadOnlySpan<byte> value) 239private ReadOnlySpan<byte> GetBytes(long index) 242ReadOnlySpan<int> offsetBufferSpan = _offsetsBuffers[offsetsBufferIndex].ReadOnlySpan; 258var bytes = GetBytes(rowIndex); 386ret.Append(IsValid(i) ? GetBytes(i) : default(ReadOnlySpan<byte>)); 431ret.Append(IsValid(i) ? GetBytes(i) : default(ReadOnlySpan<byte>)); 450ret.Append(IsValid(index.Value) ? GetBytes(index.Value) : default(ReadOnlySpan<byte>)); 470ret.Append(IsValid(index.Value) ? GetBytes(index.Value) : default(ReadOnlySpan<byte>)); 603ReadOnlySpan<byte> bytes = value != null ? Encoding.UTF8.GetBytes(value) : default(ReadOnlySpan<byte>); 616var strBytes = GetBytes(i); 644ReadOnlySpan<byte> bytes = value != null ? Encoding.UTF8.GetBytes(value) : default(ReadOnlySpan<byte>); 657var strBytes = GetBytes(i); 694ret.Append(funcResult != null ? encoding.GetBytes(funcResult) : default(ReadOnlySpan<byte>));
DataFrameColumns\StringDataFrameColumn.cs (4)
350var span = mapIndices.ColumnContainer.Buffers[b].ReadOnlySpan; 351var validitySpan = mapIndices.ColumnContainer.NullBitMapBuffers[b].ReadOnlySpan; 372var span = mapIndices.ColumnContainer.Buffers[b].ReadOnlySpan; 373var validitySpan = mapIndices.ColumnContainer.NullBitMapBuffers[b].ReadOnlySpan;
DataFrameColumns\VBufferDataFrameColumn.cs (4)
234var span = mapIndices.ColumnContainer.Buffers[b].ReadOnlySpan; 235var validitySpan = mapIndices.ColumnContainer.NullBitMapBuffers[b].ReadOnlySpan; 256var span = mapIndices.ColumnContainer.Buffers[b].ReadOnlySpan; 257var validitySpan = mapIndices.ColumnContainer.NullBitMapBuffers[b].ReadOnlySpan;
DateTimeComputation.cs (8)
38var readOnlySpan = buffer.ReadOnlySpan; 110var readOnlySpan = buffer.ReadOnlySpan; 201var readOnlySpan = column.Buffers[b].ReadOnlySpan; 202var bitmapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 225var readOnlySpan = column.Buffers[0].ReadOnlySpan; 258var readOnlySpan = column.Buffers[b].ReadOnlySpan; 259var bitmapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 283var readOnlySpan = column.Buffers[0].ReadOnlySpan;
PrimitiveColumnContainer.BinaryOperations.cs (19)
24var rightSpan = right.Buffers[i].ReadOnlySpan; 27var rightValidity = right.NullBitMapBuffers[i].ReadOnlySpan; 77var rightValidity = this.NullBitMapBuffers[i].ReadOnlySpan; 122var leftSpan = this.Buffers[i].ReadOnlySpan; 123var rightSpan = right.Buffers[i].ReadOnlySpan; 126var leftValidity = leftHasNulls ? this.NullBitMapBuffers[i].ReadOnlySpan : ReadOnlySpan<byte>.Empty; 127var rightValidity = rightHasNulls ? right.NullBitMapBuffers[i].ReadOnlySpan : ReadOnlySpan<byte>.Empty; 184var leftSpan = this.Buffers[i].ReadOnlySpan; 185var leftValidity = hasNulls ? this.NullBitMapBuffers[i].ReadOnlySpan : ReadOnlySpan<byte>.Empty; 213ApplyNullComparisonResults(operation, leftValidity, ReadOnlySpan<byte>.Empty, 0, firstRetSpan); 214ApplyNullComparisonResults(operation, leftValidity, ReadOnlySpan<byte>.Empty, availableInRetSpan, nextRetSpan); 223ApplyNullComparisonResults(operation, leftValidity, ReadOnlySpan<byte>.Empty, 0, currentRetSpan); 247private static void ApplyNullComparisonResults(ComparisonOperation operation, ReadOnlySpan<byte> leftValidity, ReadOnlySpan<byte> rightValidity, int start, Span<bool> destination) 282private static void ValidityElementwiseAnd(ReadOnlySpan<byte> left, ReadOnlySpan<byte> right, Span<byte> destination)
PrimitiveColumnContainer.cs (18)
221var sourceNullBitMap = NullBitMapBuffers[b].ReadOnlySpan; 470ReadOnlySpan<T> thisSpan = Buffers[0].ReadOnlySpan; 471ReadOnlySpan<byte> thisNullBitMapSpan = NullBitMapBuffers[0].ReadOnlySpan; 482ReadOnlySpan<byte> mapIndicesNullBitMapSpan = mapIndices.NullBitMapBuffers[index].ReadOnlySpan; 483ReadOnlySpan<U> mapIndicesSpan = buffer.ReadOnlySpan; 484ReadOnlySpan<long> mapIndicesLongSpan = default; 485ReadOnlySpan<int> mapIndicesIntSpan = default; 580ReadOnlySpan<T> span = buffer.ReadOnlySpan; 599ReadOnlySpan<T> span = buffer.ReadOnlySpan; 618ReadOnlySpan<T> span = buffer.ReadOnlySpan; 637ReadOnlySpan<T> span = buffer.ReadOnlySpan; 656ReadOnlySpan<T> span = buffer.ReadOnlySpan; 675ReadOnlySpan<T> span = buffer.ReadOnlySpan; 694ReadOnlySpan<T> span = buffer.ReadOnlySpan; 713ReadOnlySpan<T> span = buffer.ReadOnlySpan; 732ReadOnlySpan<T> span = buffer.ReadOnlySpan; 751ReadOnlySpan<T> span = buffer.ReadOnlySpan; 770ReadOnlySpan<T> span = buffer.ReadOnlySpan;
PrimitiveDataFrameColumn.cs (5)
150ReadOnlySpan<DateTime> valueSpan = MemoryMarshal.Cast<T, DateTime>(valueBuffer.ReadOnlySpan); 367var span = ColumnContainer.Buffers[b].ReadOnlySpan; 368var validitySpan = ColumnContainer.NullBitMapBuffers[b].ReadOnlySpan; 660ReadOnlySpan<T> readOnlySpan = buffer.ReadOnlySpan; 661ReadOnlySpan<byte> nullBitMapSpan = _columnContainer.NullBitMapBuffers[b].ReadOnlySpan;
PrimitiveDataFrameColumn.Sort.cs (1)
32ReadOnlySpan<byte> nullBitMapSpan = _columnContainer.NullBitMapBuffers[b].ReadOnlySpan;
PrimitiveDataFrameColumnComputations.cs (242)
128var span = buffer.ReadOnlySpan; 146var span = buffer.ReadOnlySpan; 279var readOnlySpan = buffer.ReadOnlySpan; 280var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 343var readOnlySpan = buffer.ReadOnlySpan; 344var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 407var readOnlySpan = buffer.ReadOnlySpan; 408var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 471var readOnlySpan = buffer.ReadOnlySpan; 472var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 534var readOnlySpan = buffer.ReadOnlySpan; 535var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 553var readOnlySpan = column.Buffers[0].ReadOnlySpan; 582var readOnlySpan = buffer.ReadOnlySpan; 583var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 601var readOnlySpan = column.Buffers[0].ReadOnlySpan; 629var readOnlySpan = buffer.ReadOnlySpan; 630var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 645var readOnlySpan = column.Buffers[0].ReadOnlySpan; 674var readOnlySpan = buffer.ReadOnlySpan; 675var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 693var readOnlySpan = column.Buffers[0].ReadOnlySpan; 766var readOnlySpan = buffer.ReadOnlySpan; 767var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 830var readOnlySpan = buffer.ReadOnlySpan; 831var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 894var readOnlySpan = buffer.ReadOnlySpan; 895var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 958var readOnlySpan = buffer.ReadOnlySpan; 959var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 1021var readOnlySpan = buffer.ReadOnlySpan; 1022var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 1040var readOnlySpan = column.Buffers[0].ReadOnlySpan; 1069var readOnlySpan = buffer.ReadOnlySpan; 1070var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 1088var readOnlySpan = column.Buffers[0].ReadOnlySpan; 1116var readOnlySpan = buffer.ReadOnlySpan; 1117var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 1132var readOnlySpan = column.Buffers[0].ReadOnlySpan; 1161var readOnlySpan = buffer.ReadOnlySpan; 1162var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 1180var readOnlySpan = column.Buffers[0].ReadOnlySpan; 1253var readOnlySpan = buffer.ReadOnlySpan; 1254var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 1317var readOnlySpan = buffer.ReadOnlySpan; 1318var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 1381var readOnlySpan = buffer.ReadOnlySpan; 1382var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 1445var readOnlySpan = buffer.ReadOnlySpan; 1446var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 1508var readOnlySpan = buffer.ReadOnlySpan; 1509var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 1527var readOnlySpan = column.Buffers[0].ReadOnlySpan; 1556var readOnlySpan = buffer.ReadOnlySpan; 1557var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 1575var readOnlySpan = column.Buffers[0].ReadOnlySpan; 1603var readOnlySpan = buffer.ReadOnlySpan; 1604var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 1619var readOnlySpan = column.Buffers[0].ReadOnlySpan; 1648var readOnlySpan = buffer.ReadOnlySpan; 1649var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 1667var readOnlySpan = column.Buffers[0].ReadOnlySpan; 1740var readOnlySpan = buffer.ReadOnlySpan; 1741var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 1804var readOnlySpan = buffer.ReadOnlySpan; 1805var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 1868var readOnlySpan = buffer.ReadOnlySpan; 1869var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 1932var readOnlySpan = buffer.ReadOnlySpan; 1933var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 1995var readOnlySpan = buffer.ReadOnlySpan; 1996var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 2014var readOnlySpan = column.Buffers[0].ReadOnlySpan; 2043var readOnlySpan = buffer.ReadOnlySpan; 2044var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 2062var readOnlySpan = column.Buffers[0].ReadOnlySpan; 2090var readOnlySpan = buffer.ReadOnlySpan; 2091var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 2106var readOnlySpan = column.Buffers[0].ReadOnlySpan; 2135var readOnlySpan = buffer.ReadOnlySpan; 2136var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 2154var readOnlySpan = column.Buffers[0].ReadOnlySpan; 2227var readOnlySpan = buffer.ReadOnlySpan; 2228var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 2291var readOnlySpan = buffer.ReadOnlySpan; 2292var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 2355var readOnlySpan = buffer.ReadOnlySpan; 2356var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 2419var readOnlySpan = buffer.ReadOnlySpan; 2420var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 2482var readOnlySpan = buffer.ReadOnlySpan; 2483var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 2501var readOnlySpan = column.Buffers[0].ReadOnlySpan; 2530var readOnlySpan = buffer.ReadOnlySpan; 2531var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 2549var readOnlySpan = column.Buffers[0].ReadOnlySpan; 2577var readOnlySpan = buffer.ReadOnlySpan; 2578var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 2593var readOnlySpan = column.Buffers[0].ReadOnlySpan; 2622var readOnlySpan = buffer.ReadOnlySpan; 2623var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 2641var readOnlySpan = column.Buffers[0].ReadOnlySpan; 2714var readOnlySpan = buffer.ReadOnlySpan; 2715var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 2778var readOnlySpan = buffer.ReadOnlySpan; 2779var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 2842var readOnlySpan = buffer.ReadOnlySpan; 2843var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 2906var readOnlySpan = buffer.ReadOnlySpan; 2907var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 2969var readOnlySpan = buffer.ReadOnlySpan; 2970var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 2988var readOnlySpan = column.Buffers[0].ReadOnlySpan; 3017var readOnlySpan = buffer.ReadOnlySpan; 3018var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 3036var readOnlySpan = column.Buffers[0].ReadOnlySpan; 3064var readOnlySpan = buffer.ReadOnlySpan; 3065var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 3080var readOnlySpan = column.Buffers[0].ReadOnlySpan; 3109var readOnlySpan = buffer.ReadOnlySpan; 3110var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 3128var readOnlySpan = column.Buffers[0].ReadOnlySpan; 3201var readOnlySpan = buffer.ReadOnlySpan; 3202var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 3265var readOnlySpan = buffer.ReadOnlySpan; 3266var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 3329var readOnlySpan = buffer.ReadOnlySpan; 3330var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 3393var readOnlySpan = buffer.ReadOnlySpan; 3394var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 3456var readOnlySpan = buffer.ReadOnlySpan; 3457var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 3475var readOnlySpan = column.Buffers[0].ReadOnlySpan; 3504var readOnlySpan = buffer.ReadOnlySpan; 3505var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 3523var readOnlySpan = column.Buffers[0].ReadOnlySpan; 3551var readOnlySpan = buffer.ReadOnlySpan; 3552var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 3567var readOnlySpan = column.Buffers[0].ReadOnlySpan; 3596var readOnlySpan = buffer.ReadOnlySpan; 3597var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 3615var readOnlySpan = column.Buffers[0].ReadOnlySpan; 3688var readOnlySpan = buffer.ReadOnlySpan; 3689var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 3752var readOnlySpan = buffer.ReadOnlySpan; 3753var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 3816var readOnlySpan = buffer.ReadOnlySpan; 3817var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 3880var readOnlySpan = buffer.ReadOnlySpan; 3881var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 3943var readOnlySpan = buffer.ReadOnlySpan; 3944var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 3962var readOnlySpan = column.Buffers[0].ReadOnlySpan; 3991var readOnlySpan = buffer.ReadOnlySpan; 3992var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 4010var readOnlySpan = column.Buffers[0].ReadOnlySpan; 4038var readOnlySpan = buffer.ReadOnlySpan; 4039var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 4054var readOnlySpan = column.Buffers[0].ReadOnlySpan; 4083var readOnlySpan = buffer.ReadOnlySpan; 4084var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 4102var readOnlySpan = column.Buffers[0].ReadOnlySpan; 4175var readOnlySpan = buffer.ReadOnlySpan; 4176var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 4239var readOnlySpan = buffer.ReadOnlySpan; 4240var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 4303var readOnlySpan = buffer.ReadOnlySpan; 4304var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 4367var readOnlySpan = buffer.ReadOnlySpan; 4368var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 4430var readOnlySpan = buffer.ReadOnlySpan; 4431var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 4449var readOnlySpan = column.Buffers[0].ReadOnlySpan; 4478var readOnlySpan = buffer.ReadOnlySpan; 4479var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 4497var readOnlySpan = column.Buffers[0].ReadOnlySpan; 4525var readOnlySpan = buffer.ReadOnlySpan; 4526var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 4541var readOnlySpan = column.Buffers[0].ReadOnlySpan; 4570var readOnlySpan = buffer.ReadOnlySpan; 4571var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 4589var readOnlySpan = column.Buffers[0].ReadOnlySpan; 4662var readOnlySpan = buffer.ReadOnlySpan; 4663var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 4726var readOnlySpan = buffer.ReadOnlySpan; 4727var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 4790var readOnlySpan = buffer.ReadOnlySpan; 4791var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 4854var readOnlySpan = buffer.ReadOnlySpan; 4855var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 4917var readOnlySpan = buffer.ReadOnlySpan; 4918var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 4936var readOnlySpan = column.Buffers[0].ReadOnlySpan; 4965var readOnlySpan = buffer.ReadOnlySpan; 4966var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 4984var readOnlySpan = column.Buffers[0].ReadOnlySpan; 5012var readOnlySpan = buffer.ReadOnlySpan; 5013var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 5028var readOnlySpan = column.Buffers[0].ReadOnlySpan; 5057var readOnlySpan = buffer.ReadOnlySpan; 5058var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 5076var readOnlySpan = column.Buffers[0].ReadOnlySpan; 5149var readOnlySpan = buffer.ReadOnlySpan; 5150var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 5213var readOnlySpan = buffer.ReadOnlySpan; 5214var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 5277var readOnlySpan = buffer.ReadOnlySpan; 5278var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 5341var readOnlySpan = buffer.ReadOnlySpan; 5342var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 5404var readOnlySpan = buffer.ReadOnlySpan; 5405var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 5423var readOnlySpan = column.Buffers[0].ReadOnlySpan; 5452var readOnlySpan = buffer.ReadOnlySpan; 5453var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 5471var readOnlySpan = column.Buffers[0].ReadOnlySpan; 5499var readOnlySpan = buffer.ReadOnlySpan; 5500var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 5515var readOnlySpan = column.Buffers[0].ReadOnlySpan; 5544var readOnlySpan = buffer.ReadOnlySpan; 5545var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 5563var readOnlySpan = column.Buffers[0].ReadOnlySpan; 5636var readOnlySpan = buffer.ReadOnlySpan; 5637var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 5700var readOnlySpan = buffer.ReadOnlySpan; 5701var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 5764var readOnlySpan = buffer.ReadOnlySpan; 5765var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 5828var readOnlySpan = buffer.ReadOnlySpan; 5829var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 5891var readOnlySpan = buffer.ReadOnlySpan; 5892var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 5910var readOnlySpan = column.Buffers[0].ReadOnlySpan; 5939var readOnlySpan = buffer.ReadOnlySpan; 5940var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 5958var readOnlySpan = column.Buffers[0].ReadOnlySpan; 5986var readOnlySpan = buffer.ReadOnlySpan; 5987var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 6002var readOnlySpan = column.Buffers[0].ReadOnlySpan; 6031var readOnlySpan = buffer.ReadOnlySpan; 6032var readOnlyBitMapSpan = column.NullBitMapBuffers[b].ReadOnlySpan; 6050var readOnlySpan = column.Buffers[0].ReadOnlySpan;
ReadOnlyDataFrameBuffer.cs (2)
41public ReadOnlySpan<T> ReadOnlySpan 80ReadOnlySpan<T> span = ReadOnlySpan;
Utils\BitUtility.cs (5)
20private static ReadOnlySpan<byte> PopcountTable => new byte[] { 31private static ReadOnlySpan<byte> BitMask => new byte[] { 36public static bool IsValid(ReadOnlySpan<byte> bitMapBufferSpan, int index) 56public static bool GetBit(ReadOnlySpan<byte> data, int index) => 147public static long GetBitCount(ReadOnlySpan<byte> span, long length)
Microsoft.Data.Analysis.Tests (1)
VBufferColumnTests.cs (1)
84var values = vBufferColumn[index].GetValues();
Microsoft.Diagnostics.DataContractReader (8)
ContractDescriptorParser.cs (1)
33public static ContractDescriptor? ParseCompact(ReadOnlySpan<byte> json)
ContractDescriptorTarget.cs (7)
77public delegate int SetTargetThreadContextDelegate(uint threadId, ReadOnlySpan<byte> context); 406ReadOnlySpan<byte> magicLE = "DNCCDAC\0"u8; 407ReadOnlySpan<byte> magicBE = "\0CADCCND"u8; 507public override bool TrySetThreadContext(ulong threadId, ReadOnlySpan<byte> context) 611private static T Read<T>(ReadOnlySpan<byte> bytes, bool isLittleEndian) where T : unmanaged, IBinaryInteger<T>, IMinMaxValue<T> 683public override TargetPointer ReadPointerFromSpan(ReadOnlySpan<byte> bytes) 1076public int SetThreadContext(uint threadId, ReadOnlySpan<byte> context)
Microsoft.Diagnostics.DataContractReader.Abstractions (8)
Contracts\INotifications.cs (1)
65bool TryParseNotification(ReadOnlySpan<TargetPointer> exceptionInformation, [NotNullWhen(true)] out NotificationData? notification) => throw new NotImplementedException();
Contracts\IRuntimeTypeSystem.cs (4)
236ReadOnlySpan<ITypeHandle> GetInstantiation(ITypeHandle typeHandle) => throw new NotImplementedException(); 268bool IsFunctionPointer(ITypeHandle typeHandle, out ReadOnlySpan<ITypeHandle> retAndArgTypes, out SignatureCallingConvention callConv) => throw new NotImplementedException(); 280ReadOnlySpan<ITypeHandle> GetGenericMethodInstantiation(MethodDescHandle methodDesc) => throw new NotImplementedException(); 303bool TryGetMethodSignature(MethodDescHandle methodDesc, out ReadOnlySpan<byte> signature) => throw new NotImplementedException();
Contracts\IStackWalk.cs (1)
93ReadOnlySpan<byte> GetRawContext(IStackDataFrameHandle stackDataFrameHandle) => throw new NotImplementedException();
Target.cs (2)
50public abstract bool TrySetThreadContext(ulong threadId, ReadOnlySpan<byte> context); 245public abstract TargetPointer ReadPointerFromSpan(ReadOnlySpan<byte> bytes);
Microsoft.Diagnostics.DataContractReader.Contracts (55)
Contracts\CallingConvention\CallingConvention_1.cs (1)
64if (!rts.TryGetMethodSignature(methodDesc, out ReadOnlySpan<byte> signature))
Contracts\CallingConvention\SignatureTypeInfoProvider.cs (1)
158ReadOnlySpan<ITypeHandle> exactArguments = _rts.GetInstantiation(exactType);
Contracts\DacStreams_1.cs (1)
86ReadOnlySpan<byte> miniMdBuffer = bytes.AsSpan();
Contracts\Debugger\Debugger_1.cs (4)
254private uint ReadExceptionRecordNumberParameters(ReadOnlySpan<byte> record) 257ReadOnlySpan<byte> slice = record.Slice(numberParametersOffset, sizeof(uint)); 323ReadOnlySpan<TargetNUInt> args = 343public static void PlaceArgs(Target target, IPlatformAgnosticContext ctx, ref TargetPointer sp, ReadOnlySpan<TargetNUInt> args)
Contracts\EcmaMetadata_1.cs (3)
342public readonly ReadOnlySpan<int> RowCount => _rowCount; 345public readonly ReadOnlySpan<bool> IsSorted => _isSorted; 372public ReadOnlySpan<byte[]> Tables => _tables;
Contracts\GCInfo\X86\CallPattern.cs (2)
27public static ReadOnlySpan<uint> CallCommonDelta => [6, 8, 10, 12]; 32private static ReadOnlySpan<uint> CallPatternTable =>
Contracts\Notifications_1.cs (2)
40bool INotifications.TryParseNotification(ReadOnlySpan<TargetPointer> exceptionInformation, [NotNullWhen(true)] out NotificationData? notification) 61private static GcNotificationData ParseGcNotification(ReadOnlySpan<TargetPointer> exceptionInformation)
Contracts\RuntimeTypeSystem_1.cs (10)
777ReadOnlySpan<ITypeHandle> instantiation = ((IRuntimeTypeSystem)this).GetInstantiation(typeHandle); 1025public ReadOnlySpan<ITypeHandle> GetInstantiation(ITypeHandle typeHandle) 1099_ = IsFunctionPointer(typeHandle, out ReadOnlySpan<ITypeHandle> signatureTypeArgs, out _); 1280ReadOnlySpan<ITypeHandle> instantiation = GetInstantiation(potentialMatch); 1310if (!IsFunctionPointer(candidate, out ReadOnlySpan<ITypeHandle> candidateRetAndArgs, out SignatureCallingConvention candidateCallConv)) 1530public bool IsFunctionPointer(ITypeHandle typeHandle, out ReadOnlySpan<ITypeHandle> retAndArgTypes, out SignatureCallingConvention callConv) 1678public ReadOnlySpan<ITypeHandle> GetGenericMethodInstantiation(MethodDescHandle methodDescHandle) 1823private bool IsStoredSigMethodDesc(MethodDescHandle methodDescHandle, out ReadOnlySpan<byte> signature) 1843public bool TryGetMethodSignature(MethodDescHandle methodDescHandle, out ReadOnlySpan<byte> signature) 2393if (!TryGetMethodSignature(methodDescHandle, out ReadOnlySpan<byte> signature) || signature.IsEmpty)
Contracts\StackWalk\Context\AMD64Context.cs (1)
211public void CopyContext(ReadOnlySpan<byte> source)
Contracts\StackWalk\Context\ARM\LookupValues.cs (3)
16public static ReadOnlySpan<uint> RegisterMaskLookup => 96public static ReadOnlySpan<byte> UnwindOpTable => 145public static ReadOnlySpan<ushort> ConditionTable =>
Contracts\StackWalk\Context\ARM64\ARM64Unwinder.cs (2)
19private static ReadOnlySpan<byte> UnwindCodeSizeTable => 31private static ReadOnlySpan<byte> UnwindCodeInstructionCountTable =>
Contracts\StackWalk\Context\ARM64Context.cs (1)
259public void CopyContext(ReadOnlySpan<byte> source)
Contracts\StackWalk\Context\ARMContext.cs (1)
177public void CopyContext(ReadOnlySpan<byte> source)
Contracts\StackWalk\Context\ContextHolder.cs (1)
47public ReadOnlySpan<byte> GetBytes() => MemoryMarshal.AsBytes(MemoryMarshal.CreateReadOnlySpan(ref Context, 1));
Contracts\StackWalk\Context\FloatConversion.cs (1)
16public static double X87ExtendedToDouble(ReadOnlySpan<byte> slot10)
Contracts\StackWalk\Context\IPlatformAgnosticContext.cs (1)
27public abstract ReadOnlySpan<byte> GetBytes();
Contracts\StackWalk\Context\IPlatformContext.cs (1)
43void CopyContext(ReadOnlySpan<byte> source);
Contracts\StackWalk\Context\LoongArch64\LoongArch64Unwinder.cs (1)
18private static ReadOnlySpan<byte> UnwindCodeSizeTable =>
Contracts\StackWalk\Context\LoongArch64Context.cs (1)
246public void CopyContext(ReadOnlySpan<byte> source)
Contracts\StackWalk\Context\RISCV64\RISCV64Unwinder.cs (1)
18private static ReadOnlySpan<byte> UnwindCodeSizeTable =>
Contracts\StackWalk\Context\RISCV64Context.cs (1)
243public void CopyContext(ReadOnlySpan<byte> source)
Contracts\StackWalk\Context\SimdRegisterAccess.cs (1)
20public static bool TryReadRegister(ReadOnlySpan<byte> context, int fileOffset, int registerStride, int registerCount, int index, out double value)
Contracts\StackWalk\Context\WasmContext.cs (1)
183public readonly void CopyContext(ReadOnlySpan<byte> source) { }
Contracts\StackWalk\Context\X86Context.cs (3)
198ReadOnlySpan<byte> context = MemoryMarshal.AsBytes(MemoryMarshal.CreateReadOnlySpan(in this, 1)); 226private static bool TryGetX87SlotOffset(ReadOnlySpan<byte> context, int logicalIndex, out int offset) 240public void CopyContext(ReadOnlySpan<byte> source)
Contracts\StackWalk\FrameHandling\MethodGCRefMapLookup.cs (1)
30ReadOnlySpan<uint> bases = [0, 1, 3, 11, 139, 32907];
Contracts\StackWalk\StackWalk_1.cs (1)
1075ReadOnlySpan<byte> IStackWalk.GetRawContext(IStackDataFrameHandle stackDataFrameHandle)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TypeLayout.g.cs (3)
40public bool TrySelect(TargetPointer address, out Target.TypeInfo type, out TargetPointer baseAddr, out string name, params ReadOnlySpan<string> names) 56public void Select(TargetPointer address, out Target.TypeInfo type, out TargetPointer baseAddr, out string name, params ReadOnlySpan<string> names) 64private static string FormatMissing(ReadOnlySpan<string> names)
parent\parent\parent\parent\coreclr\tools\Common\Compiler\ObjectWriter\Dwarf\DwarfHelper.cs (4)
108public static ulong ReadULEB128(ReadOnlySpan<byte> buffer) => ReadULEB128(buffer, out _); 110public static ulong ReadULEB128(ReadOnlySpan<byte> buffer, out int bytesRead) 161public static long ReadSLEB128(ReadOnlySpan<byte> buffer) => ReadSLEB128(buffer, out _); 163public static long ReadSLEB128(ReadOnlySpan<byte> buffer, out int bytesRead)
PrintfStressMessageFormatter.cs (1)
139ReadOnlySpan<char> value = ptr.Value.ToString(format);
Microsoft.Diagnostics.DataContractReader.Legacy (60)
ClrDataFrame.cs (6)
58ReadOnlySpan<byte> context = stackWalk.GetRawContext(_dataFrame); 156if (!_target.Contracts.RuntimeTypeSystem.TryGetMethodSignature(mdh, out ReadOnlySpan<byte> signature)) 211if (!rts.TryGetMethodSignature(mdh, out ReadOnlySpan<byte> signature)) 335if (!rts.TryGetMethodSignature(mdh, out ReadOnlySpan<byte> signature)) 837ReadOnlySpan<ITypeHandle> methodInst = rts.GetGenericMethodInstantiation(mdh); 850ReadOnlySpan<ITypeHandle> typeInst = rts.GetInstantiation(declaringType);
ClrDataStackWalk.cs (1)
94ReadOnlySpan<byte> context = sw.GetRawContext(dataFrame);
Dbi\DacDbiImpl.cs (7)
3872ReadOnlySpan<ITypeHandle> classInst = thMatchingParent is null 3875ReadOnlySpan<ITypeHandle> methodInst = rts.GetGenericMethodInstantiation(pSpecificMethod); 4149ReadOnlySpan<ITypeHandle> instantiation = rts.GetInstantiation(typeHandle); 7071ReadOnlySpan<byte> valueBytes = new ReadOnlySpan<byte>(pValue, (int)valueSize); 7384ReadOnlySpan<char> productVersion = _target.Contracts.RuntimeInfo.GetRuntimeProductVersion().AsSpan(); 7629ReadOnlySpan<ITypeHandle> instantiation = rts.GetInstantiation(typeHandle); 7685ReadOnlySpan<ITypeHandle> instantiation = rts.GetInstantiation(typeHandle);
Dbi\DacDbiImpl.NativeCodeInfo.cs (1)
22if (!rts.TryGetMethodSignature(mdh, out ReadOnlySpan<byte> signature))
Dbi\Helpers\RefWalk.cs (1)
212internal void AddBatch(ReadOnlySpan<DacGcReference> references, bool legacy, bool endOfWalk)
Entrypoints\EntrypointHelpers.cs (1)
143private static int SetThreadContext(ICLRDataTarget dataTarget, uint threadId, ReadOnlySpan<byte> context)
EnumMemory\MemoryRegionEmitter.cs (1)
121public bool Update(ulong address, ReadOnlySpan<byte> buffer)
Generated\361d1da7f942c932\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface.cs (10)
325global::System.ReadOnlySpan<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress> __values_native__managedSpan = __values_native__marshaller.GetManagedValuesSource(); 386global::System.ReadOnlySpan<ulong> __values_native__nativeSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress, ulong>.GetUnmanagedValuesSource(__values_native, __values_native__numElements); 576global::System.ReadOnlySpan<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress> __values_native__managedSpan = __values_native__marshaller.GetManagedValuesSource(); 639global::System.ReadOnlySpan<ulong> __values_native__nativeSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress, ulong>.GetUnmanagedValuesSource(__values_native, __values_native__numElements); 952global::System.ReadOnlySpan<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress> __modules_native__managedSpan = __modules_native__marshaller.GetManagedValuesSource(); 1015global::System.ReadOnlySpan<ulong> __modules_native__nativeSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress, ulong>.GetUnmanagedValuesSource(__modules_native, __modules_native__numElements); 2472global::System.ReadOnlySpan<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress> __heaps_native__managedSpan = __heaps_native__marshaller.GetManagedValuesSource(); 2533global::System.ReadOnlySpan<ulong> __heaps_native__nativeSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress, ulong>.GetUnmanagedValuesSource(__heaps_native, __heaps_native__numElements); 4274global::System.ReadOnlySpan<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress> __values_native__managedSpan = __values_native__marshaller.GetManagedValuesSource(); 4337global::System.ReadOnlySpan<ulong> __values_native__nativeSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress, ulong>.GetUnmanagedValuesSource(__values_native, __values_native__numElements);
Generated\361d1da7f942c932\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface10.cs (2)
78global::System.ReadOnlySpan<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress> __mowList_native__managedSpan = __mowList_native__marshaller.GetManagedValuesSource(); 141global::System.ReadOnlySpan<ulong> __mowList_native__nativeSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress, ulong>.GetUnmanagedValuesSource(__mowList_native, __mowList_native__numElements);
Generated\361d1da7f942c932\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface4.cs (2)
69global::System.ReadOnlySpan<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress> __arguments_native__managedSpan = __arguments_native__marshaller.GetManagedValuesSource(); 130global::System.ReadOnlySpan<ulong> __arguments_native__nativeSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress, ulong>.GetUnmanagedValuesSource(__arguments_native, __arguments_native__numElements);
Generated\361d1da7f942c932\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSStressLogMsgEnum.cs (2)
126global::System.ReadOnlySpan<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress> __args_native__managedSpan = __args_native__marshaller.GetManagedValuesSource(); 187global::System.ReadOnlySpan<ulong> __args_native__nativeSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.Diagnostics.DataContractReader.Legacy.ClrDataAddress, ulong>.GetUnmanagedValuesSource(__args_native, __args_native__numElements);
MethodSignatureHelpers.cs (1)
17public static unsafe void GetSignatureInfo(ReadOnlySpan<byte> signature, out SignatureHeader header, out uint numArgs)
OutputBufferHelpers.cs (1)
18ReadOnlySpan<char> strSpan = str.AsSpan();
PEImageInfo.cs (2)
178public bool TryGetExport(TryReadMemory readMemory, ReadOnlySpan<byte> symbolName, out ulong address) 245private TargetDirectory GetDirectory(ReadOnlySpan<byte> peHeader, int dataDirectoryOffset, int directoryIndex)
SigFormat.cs (9)
16ReadOnlySpan<byte> signature, 21ReadOnlySpan<ITypeHandle> typeInstantiation, 22ReadOnlySpan<ITypeHandle> methodInstantiation, 39ReadOnlySpan<ITypeHandle> typeInstantiation, 40ReadOnlySpan<ITypeHandle> methodInstantiation, 98ReadOnlySpan<ITypeHandle> typeInstantiation, 99ReadOnlySpan<ITypeHandle> methodInstantiation, 364ReadOnlySpan<ITypeHandle> instantiation = runtimeTypeSystem.GetInstantiation(typeHandle); 420runtimeTypeSystem.IsFunctionPointer(typeHandle, out ReadOnlySpan<ITypeHandle> retAndArgTypes, out SignatureCallingConvention callConv);
SOSDacImpl.cs (1)
2743ReadOnlySpan<char> moduleSpan = modulePath.AsSpan();
TypeHandleExtensions.cs (1)
55ReadOnlySpan<ITypeHandle> instantiation = runtimeTypeSystem.GetInstantiation(typeHandle);
TypeNameBuilder.cs (11)
65public static void AppendMethodImpl(Target target, StringBuilder stringBuilder, Contracts.MethodDescHandle method, ReadOnlySpan<ITypeHandle> typeInstantiation, TypeNameFormat format) 133ReadOnlySpan<ITypeHandle> genericMethodInstantiation = runtimeTypeSystem.GetGenericMethodInstantiation(method); 140runtimeTypeSystem.TryGetMethodSignature(method, out ReadOnlySpan<byte> signature)) 146ReadOnlySpan<ITypeHandle> typeInstantiationSigFormat = default; 193public static void AppendType(Target target, StringBuilder stringBuilder, ITypeHandle? typeHandle, ReadOnlySpan<ITypeHandle> typeInstantiation, TypeNameFormat format) 199private static void AppendTypeCore(ref TypeNameBuilder tnb, ITypeHandle? typeHandle, ReadOnlySpan<ITypeHandle> instantiation, TypeNameFormat format) 245else if (typeSystemContract.IsFunctionPointer(typeHandle, out ReadOnlySpan<ITypeHandle> retAndArgTypes, out SignatureCallingConvention callConv)) 303ReadOnlySpan<ITypeHandle> instantiationSpan = typeSystemContract.GetInstantiation(typeHandle); 333internal static void AppendInst(Target target, StringBuilder stringBuilder, ReadOnlySpan<ITypeHandle> inst, TypeNameFormat format) 339private static void AppendInst(ref TypeNameBuilder tnb, ReadOnlySpan<ITypeHandle> inst, TypeNameFormat format) 650private static ReadOnlySpan<char> TypeNameReservedChars()
Microsoft.Diagnostics.NETCore.Client (2)
DiagnosticsIpc\ProcessInfo.cs (2)
113ReadOnlySpan<char> versionSpan = ClrProductVersionString.AsSpan(); 120ReadOnlySpan<char> noMetadataVersion = versionSpan.Slice(0, metadataIndex);
Microsoft.DiaSymReader (109)
Generated\361d1da7f942c932\Microsoft.DiaSymReader.ISymEncUnmanagedMethod.cs (3)
251global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedDocument> __documents_native__managedSpan = __documents_native__marshaller.GetManagedValuesSource(); 292global::System.ReadOnlySpan<global::System.IntPtr> __documents_native__nativeSpan = __documents_native__marshaller.GetUnmanagedValuesDestination(); 325global::System.ReadOnlySpan<global::System.IntPtr> __documents_native__nativeSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument, global::System.IntPtr>.GetUnmanagedValuesSource(__documents_native, __documents_native__numElements);
Generated\361d1da7f942c932\Microsoft.DiaSymReader.ISymUnmanagedEncUpdate.cs (3)
189global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __variables_native__managedSpan = __variables_native__marshaller.GetManagedValuesSource(); 230global::System.ReadOnlySpan<global::System.IntPtr> __variables_native__nativeSpan = __variables_native__marshaller.GetUnmanagedValuesDestination(); 263global::System.ReadOnlySpan<global::System.IntPtr> __variables_native__nativeSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable, global::System.IntPtr>.GetUnmanagedValuesSource(__variables_native, __variables_native__numElements);
Generated\361d1da7f942c932\Microsoft.DiaSymReader.ISymUnmanagedMethod.cs (9)
439global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __parameters_native__managedSpan = __parameters_native__marshaller.GetManagedValuesSource(); 480global::System.ReadOnlySpan<global::System.IntPtr> __parameters_native__nativeSpan = __parameters_native__marshaller.GetUnmanagedValuesDestination(); 513global::System.ReadOnlySpan<global::System.IntPtr> __parameters_native__nativeSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable, global::System.IntPtr>.GetUnmanagedValuesSource(__parameters_native, __parameters_native__numElements); 633global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedDocument> __documents_native__managedSpan = __documents_native__marshaller.GetManagedValuesSource(); 676global::System.ReadOnlySpan<global::System.IntPtr> __documents_native__nativeSpan = __documents_native__marshaller.GetUnmanagedValuesDestination(); 721global::System.ReadOnlySpan<global::System.IntPtr> __documents_native__nativeSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument, global::System.IntPtr>.GetUnmanagedValuesSource(__documents_native, __documents_native__numElements); 780global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedDocument> __documents_native__managedSpan = __documents_native__marshaller.GetManagedValuesSource(); 826global::System.ReadOnlySpan<global::System.IntPtr> __documents_native__nativeSpan = __documents_native__marshaller.GetUnmanagedValuesDestination(); 886global::System.ReadOnlySpan<global::System.IntPtr> __documents_native__nativeSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument, global::System.IntPtr>.GetUnmanagedValuesSource(__documents_native, __documents_native__numElements);
Generated\361d1da7f942c932\Microsoft.DiaSymReader.ISymUnmanagedMethod2.cs (6)
317global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __parameters_native__managedSpan = __parameters_native__marshaller.GetManagedValuesSource(); 358global::System.ReadOnlySpan<global::System.IntPtr> __parameters_native__nativeSpan = __parameters_native__marshaller.GetUnmanagedValuesDestination(); 433global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedDocument> __documents_native__managedSpan = __documents_native__marshaller.GetManagedValuesSource(); 476global::System.ReadOnlySpan<global::System.IntPtr> __documents_native__nativeSpan = __documents_native__marshaller.GetUnmanagedValuesDestination(); 513global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedDocument> __documents_native__managedSpan = __documents_native__marshaller.GetManagedValuesSource(); 559global::System.ReadOnlySpan<global::System.IntPtr> __documents_native__nativeSpan = __documents_native__marshaller.GetUnmanagedValuesDestination();
Generated\361d1da7f942c932\Microsoft.DiaSymReader.ISymUnmanagedNamespace.cs (6)
131global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace> __namespaces_native__managedSpan = __namespaces_native__marshaller.GetManagedValuesSource(); 172global::System.ReadOnlySpan<global::System.IntPtr> __namespaces_native__nativeSpan = __namespaces_native__marshaller.GetUnmanagedValuesDestination(); 205global::System.ReadOnlySpan<global::System.IntPtr> __namespaces_native__nativeSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace, global::System.IntPtr>.GetUnmanagedValuesSource(__namespaces_native, __namespaces_native__numElements); 262global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __variables_native__managedSpan = __variables_native__marshaller.GetManagedValuesSource(); 303global::System.ReadOnlySpan<global::System.IntPtr> __variables_native__nativeSpan = __variables_native__marshaller.GetUnmanagedValuesDestination(); 336global::System.ReadOnlySpan<global::System.IntPtr> __variables_native__nativeSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable, global::System.IntPtr>.GetUnmanagedValuesSource(__variables_native, __variables_native__numElements);
Generated\361d1da7f942c932\Microsoft.DiaSymReader.ISymUnmanagedReader.cs (15)
168global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedDocument> __documents_native__managedSpan = __documents_native__marshaller.GetManagedValuesSource(); 209global::System.ReadOnlySpan<global::System.IntPtr> __documents_native__nativeSpan = __documents_native__marshaller.GetUnmanagedValuesDestination(); 242global::System.ReadOnlySpan<global::System.IntPtr> __documents_native__nativeSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedDocument, global::System.IntPtr>.GetUnmanagedValuesSource(__documents_native, __documents_native__numElements); 471global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __variables_native__managedSpan = __variables_native__marshaller.GetManagedValuesSource(); 512global::System.ReadOnlySpan<global::System.IntPtr> __variables_native__nativeSpan = __variables_native__marshaller.GetUnmanagedValuesDestination(); 545global::System.ReadOnlySpan<global::System.IntPtr> __variables_native__nativeSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable, global::System.IntPtr>.GetUnmanagedValuesSource(__variables_native, __variables_native__numElements); 602global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __variables_native__managedSpan = __variables_native__marshaller.GetManagedValuesSource(); 643global::System.ReadOnlySpan<global::System.IntPtr> __variables_native__nativeSpan = __variables_native__marshaller.GetUnmanagedValuesDestination(); 676global::System.ReadOnlySpan<global::System.IntPtr> __variables_native__nativeSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable, global::System.IntPtr>.GetUnmanagedValuesSource(__variables_native, __variables_native__numElements); 862global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace> __namespaces_native__managedSpan = __namespaces_native__marshaller.GetManagedValuesSource(); 903global::System.ReadOnlySpan<global::System.IntPtr> __namespaces_native__nativeSpan = __namespaces_native__marshaller.GetUnmanagedValuesDestination(); 936global::System.ReadOnlySpan<global::System.IntPtr> __namespaces_native__nativeSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace, global::System.IntPtr>.GetUnmanagedValuesSource(__namespaces_native, __namespaces_native__numElements); 1233global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedMethod> __methods_native__managedSpan = __methods_native__marshaller.GetManagedValuesSource(); 1275global::System.ReadOnlySpan<global::System.IntPtr> __methods_native__nativeSpan = __methods_native__marshaller.GetUnmanagedValuesDestination(); 1310global::System.ReadOnlySpan<global::System.IntPtr> __methods_native__nativeSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedMethod, global::System.IntPtr>.GetUnmanagedValuesSource(__methods_native, __methods_native__numElements);
Generated\361d1da7f942c932\Microsoft.DiaSymReader.ISymUnmanagedReader2.cs (13)
214global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedMethod> __methods_native__managedSpan = __methods_native__marshaller.GetManagedValuesSource(); 256global::System.ReadOnlySpan<global::System.IntPtr> __methods_native__nativeSpan = __methods_native__marshaller.GetUnmanagedValuesDestination(); 291global::System.ReadOnlySpan<global::System.IntPtr> __methods_native__nativeSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedMethod, global::System.IntPtr>.GetUnmanagedValuesSource(__methods_native, __methods_native__numElements); 388global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedDocument> __documents_native__managedSpan = __documents_native__marshaller.GetManagedValuesSource(); 429global::System.ReadOnlySpan<global::System.IntPtr> __documents_native__nativeSpan = __documents_native__marshaller.GetUnmanagedValuesDestination(); 563global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __variables_native__managedSpan = __variables_native__marshaller.GetManagedValuesSource(); 604global::System.ReadOnlySpan<global::System.IntPtr> __variables_native__nativeSpan = __variables_native__marshaller.GetUnmanagedValuesDestination(); 641global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __variables_native__managedSpan = __variables_native__marshaller.GetManagedValuesSource(); 682global::System.ReadOnlySpan<global::System.IntPtr> __variables_native__nativeSpan = __variables_native__marshaller.GetUnmanagedValuesDestination(); 786global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace> __namespaces_native__managedSpan = __namespaces_native__marshaller.GetManagedValuesSource(); 827global::System.ReadOnlySpan<global::System.IntPtr> __namespaces_native__nativeSpan = __namespaces_native__marshaller.GetUnmanagedValuesDestination(); 992global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedMethod> __methods_native__managedSpan = __methods_native__marshaller.GetManagedValuesSource(); 1034global::System.ReadOnlySpan<global::System.IntPtr> __methods_native__nativeSpan = __methods_native__marshaller.GetUnmanagedValuesDestination();
Generated\361d1da7f942c932\Microsoft.DiaSymReader.ISymUnmanagedReader3.cs (12)
251global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedDocument> __documents_native__managedSpan = __documents_native__marshaller.GetManagedValuesSource(); 292global::System.ReadOnlySpan<global::System.IntPtr> __documents_native__nativeSpan = __documents_native__marshaller.GetUnmanagedValuesDestination(); 426global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __variables_native__managedSpan = __variables_native__marshaller.GetManagedValuesSource(); 467global::System.ReadOnlySpan<global::System.IntPtr> __variables_native__nativeSpan = __variables_native__marshaller.GetUnmanagedValuesDestination(); 504global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __variables_native__managedSpan = __variables_native__marshaller.GetManagedValuesSource(); 545global::System.ReadOnlySpan<global::System.IntPtr> __variables_native__nativeSpan = __variables_native__marshaller.GetUnmanagedValuesDestination(); 649global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace> __namespaces_native__managedSpan = __namespaces_native__marshaller.GetManagedValuesSource(); 690global::System.ReadOnlySpan<global::System.IntPtr> __namespaces_native__nativeSpan = __namespaces_native__marshaller.GetUnmanagedValuesDestination(); 855global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedMethod> __methods_native__managedSpan = __methods_native__marshaller.GetManagedValuesSource(); 897global::System.ReadOnlySpan<global::System.IntPtr> __methods_native__nativeSpan = __methods_native__marshaller.GetUnmanagedValuesDestination(); 1070global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedMethod> __methods_native__managedSpan = __methods_native__marshaller.GetManagedValuesSource(); 1112global::System.ReadOnlySpan<global::System.IntPtr> __methods_native__nativeSpan = __methods_native__marshaller.GetUnmanagedValuesDestination();
Generated\361d1da7f942c932\Microsoft.DiaSymReader.ISymUnmanagedReader4.cs (12)
290global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedDocument> __documents_native__managedSpan = __documents_native__marshaller.GetManagedValuesSource(); 331global::System.ReadOnlySpan<global::System.IntPtr> __documents_native__nativeSpan = __documents_native__marshaller.GetUnmanagedValuesDestination(); 465global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __variables_native__managedSpan = __variables_native__marshaller.GetManagedValuesSource(); 506global::System.ReadOnlySpan<global::System.IntPtr> __variables_native__nativeSpan = __variables_native__marshaller.GetUnmanagedValuesDestination(); 543global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __variables_native__managedSpan = __variables_native__marshaller.GetManagedValuesSource(); 584global::System.ReadOnlySpan<global::System.IntPtr> __variables_native__nativeSpan = __variables_native__marshaller.GetUnmanagedValuesDestination(); 688global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace> __namespaces_native__managedSpan = __namespaces_native__marshaller.GetManagedValuesSource(); 729global::System.ReadOnlySpan<global::System.IntPtr> __namespaces_native__nativeSpan = __namespaces_native__marshaller.GetUnmanagedValuesDestination(); 894global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedMethod> __methods_native__managedSpan = __methods_native__marshaller.GetManagedValuesSource(); 936global::System.ReadOnlySpan<global::System.IntPtr> __methods_native__nativeSpan = __methods_native__marshaller.GetUnmanagedValuesDestination(); 1109global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedMethod> __methods_native__managedSpan = __methods_native__marshaller.GetManagedValuesSource(); 1151global::System.ReadOnlySpan<global::System.IntPtr> __methods_native__nativeSpan = __methods_native__marshaller.GetUnmanagedValuesDestination();
Generated\361d1da7f942c932\Microsoft.DiaSymReader.ISymUnmanagedReader5.cs (12)
187global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedDocument> __documents_native__managedSpan = __documents_native__marshaller.GetManagedValuesSource(); 228global::System.ReadOnlySpan<global::System.IntPtr> __documents_native__nativeSpan = __documents_native__marshaller.GetUnmanagedValuesDestination(); 362global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __variables_native__managedSpan = __variables_native__marshaller.GetManagedValuesSource(); 403global::System.ReadOnlySpan<global::System.IntPtr> __variables_native__nativeSpan = __variables_native__marshaller.GetUnmanagedValuesDestination(); 440global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __variables_native__managedSpan = __variables_native__marshaller.GetManagedValuesSource(); 481global::System.ReadOnlySpan<global::System.IntPtr> __variables_native__nativeSpan = __variables_native__marshaller.GetUnmanagedValuesDestination(); 585global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace> __namespaces_native__managedSpan = __namespaces_native__marshaller.GetManagedValuesSource(); 626global::System.ReadOnlySpan<global::System.IntPtr> __namespaces_native__nativeSpan = __namespaces_native__marshaller.GetUnmanagedValuesDestination(); 791global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedMethod> __methods_native__managedSpan = __methods_native__marshaller.GetManagedValuesSource(); 833global::System.ReadOnlySpan<global::System.IntPtr> __methods_native__nativeSpan = __methods_native__marshaller.GetUnmanagedValuesDestination(); 1006global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedMethod> __methods_native__managedSpan = __methods_native__marshaller.GetManagedValuesSource(); 1048global::System.ReadOnlySpan<global::System.IntPtr> __methods_native__nativeSpan = __methods_native__marshaller.GetUnmanagedValuesDestination();
Generated\361d1da7f942c932\Microsoft.DiaSymReader.ISymUnmanagedScope.cs (9)
208global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedScope> __children_native__managedSpan = __children_native__marshaller.GetManagedValuesSource(); 249global::System.ReadOnlySpan<global::System.IntPtr> __children_native__nativeSpan = __children_native__marshaller.GetUnmanagedValuesDestination(); 282global::System.ReadOnlySpan<global::System.IntPtr> __children_native__nativeSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedScope, global::System.IntPtr>.GetUnmanagedValuesSource(__children_native, __children_native__numElements); 483global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __locals_native__managedSpan = __locals_native__marshaller.GetManagedValuesSource(); 524global::System.ReadOnlySpan<global::System.IntPtr> __locals_native__nativeSpan = __locals_native__marshaller.GetUnmanagedValuesDestination(); 557global::System.ReadOnlySpan<global::System.IntPtr> __locals_native__nativeSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedVariable, global::System.IntPtr>.GetUnmanagedValuesSource(__locals_native, __locals_native__numElements); 614global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace> __namespaces_native__managedSpan = __namespaces_native__marshaller.GetManagedValuesSource(); 655global::System.ReadOnlySpan<global::System.IntPtr> __namespaces_native__nativeSpan = __namespaces_native__marshaller.GetUnmanagedValuesDestination(); 688global::System.ReadOnlySpan<global::System.IntPtr> __namespaces_native__nativeSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace, global::System.IntPtr>.GetUnmanagedValuesSource(__namespaces_native, __namespaces_native__numElements);
Generated\361d1da7f942c932\Microsoft.DiaSymReader.ISymUnmanagedScope2.cs (9)
128global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedConstant> __constants_native__managedSpan = __constants_native__marshaller.GetManagedValuesSource(); 169global::System.ReadOnlySpan<global::System.IntPtr> __constants_native__nativeSpan = __constants_native__marshaller.GetUnmanagedValuesDestination(); 202global::System.ReadOnlySpan<global::System.IntPtr> __constants_native__nativeSpan = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<global::Microsoft.DiaSymReader.ISymUnmanagedConstant, global::System.IntPtr>.GetUnmanagedValuesSource(__constants_native, __constants_native__numElements); 333global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedScope> __children_native__managedSpan = __children_native__marshaller.GetManagedValuesSource(); 374global::System.ReadOnlySpan<global::System.IntPtr> __children_native__nativeSpan = __children_native__marshaller.GetUnmanagedValuesDestination(); 480global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedVariable> __locals_native__managedSpan = __locals_native__marshaller.GetManagedValuesSource(); 521global::System.ReadOnlySpan<global::System.IntPtr> __locals_native__nativeSpan = __locals_native__marshaller.GetUnmanagedValuesDestination(); 558global::System.ReadOnlySpan<global::Microsoft.DiaSymReader.ISymUnmanagedNamespace> __namespaces_native__managedSpan = __namespaces_native__marshaller.GetManagedValuesSource(); 599global::System.ReadOnlySpan<global::System.IntPtr> __namespaces_native__nativeSpan = __namespaces_native__marshaller.GetUnmanagedValuesDestination();
Microsoft.DotNet.ApiCompatibility (3)
Rules\AssemblyIdentityMustMatch.cs (3)
78ReadOnlySpan<byte> leftAssemblyPublicKeyToken = leftIdentity.PublicKeyToken.AsSpan(); 83ReadOnlySpan<byte> rightAssemblyPublicKeyToken = rightIdentity.PublicKeyToken.AsSpan(); 162private static string GetStringRepresentation(ReadOnlySpan<byte> publicKeyToken)
Microsoft.DotNet.Build.Tasks.Installers (4)
src\RpmHeader.cs (3)
74private static IndexEntry ReadIndexEntry(ReadOnlySpan<byte> bytes) 95if (!stream.ReadExactly(3).SequenceEqual((ReadOnlySpan<byte>)[0x8e, 0xad, 0xe8 ])) 107if (!stream.ReadExactly(4).SequenceEqual((ReadOnlySpan<byte>)[ 0x00, 0x00, 0x00, 0x00 ]))
src\RpmLead.cs (1)
28if (!stream.ReadExactly(4).SequenceEqual((ReadOnlySpan<byte>)[0xed, 0xab, 0xee, 0xdb]))
Microsoft.DotNet.Cli.CoreUtils (30)
Resources\MappedMemoryManager.cs (1)
24/// consuming it as <see cref="ReadOnlyMemory{T}"/> / <see cref="ReadOnlySpan{T}"/>.
Resources\RawResourceReader.cs (8)
278public bool TryFindResource(ReadOnlySpan<char> name, out ResourceLocation location) 292ReadOnlySpan<byte> resources = _resources.Span; 293ReadOnlySpan<int> hashes = MemoryMarshal.Cast<byte, int>(resources.Slice(_nameHashesOffset, _numResources * 4)); 353if (!reader.TryRead(nameByteLength, out ReadOnlySpan<byte> nameBytes)) 375/// <inheritdoc cref="TryFindResource(ReadOnlySpan{char}, out ResourceLocation)"/> 437if (!reader.TryRead(byteLength, out ReadOnlySpan<byte> nameBytes)) 559if (!reader.TryRead(nameByteLength, out ReadOnlySpan<byte> nameBytes)) 622if (!reader.TryRead(typeNameLength, out ReadOnlySpan<byte> typeNameBytes))
Resources\ResourceRuntimeExtensions.cs (1)
21internal static int Compute(ReadOnlySpan<char> value)
Resources\SpanReader.cs (19)
7/// Fast stack based <see cref="ReadOnlySpan{T}"/> reader. 20internal unsafe ref struct SpanReader<T>(ReadOnlySpan<T> span) where T : unmanaged, IEquatable<T> 23private ReadOnlySpan<T> _unread = span; 28public ReadOnlySpan<T> Span { get; } = span; 33public readonly ReadOnlySpan<T> Unread => _unread; 66public bool TrySplit(T delimiter, out ReadOnlySpan<T> span) 95public bool TrySplitAny(scoped ReadOnlySpan<T> delimiters, out ReadOnlySpan<T> span) 121/// <inheritdoc cref="TryReadTo(T, bool, out ReadOnlySpan{T})"/> 123public bool TryReadTo(T delimiter, out ReadOnlySpan<T> span) => 136public bool TryReadTo(T delimiter, bool advancePastDelimiter, out ReadOnlySpan<T> span) 172public bool TryReadToAny(scoped ReadOnlySpan<T> delimiters, bool advancePastDelimiter, out ReadOnlySpan<T> span) 245public bool TryRead(int count, out ReadOnlySpan<T> span) 331/// This effectively does a <see cref="MemoryMarshal.Cast{TFrom, TTo}(ReadOnlySpan{TFrom})"/> and the same 335public bool TryRead<TValue>(int count, out ReadOnlySpan<TValue> value) where TValue : unmanaged 389public bool TryAdvancePast(ReadOnlySpan<T> next) 481private static void UncheckedSliceTo(ref ReadOnlySpan<T> span, int length) 492private static void UncheckedSlice(ref ReadOnlySpan<T> span, int start, int length)
Resources\SpanReaderExtensions.cs (1)
53if (reader.TryRead(sizeof(int), out ReadOnlySpan<byte> bytes))
Microsoft.DotNet.Cli.Definitions (4)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\RegexGenerator.g.cs (4)
136protected override void Scan(ReadOnlySpan<char> inputSpan) 148private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 170private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 193ReadOnlySpan<char> slice = inputSpan.Slice(pos);
Microsoft.DotNet.Cli.InternalMicrosoft (12)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\RegexGenerator.g.cs (12)
152protected override void Scan(ReadOnlySpan<char> inputSpan) 164private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 186private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 190ReadOnlySpan<char> slice = inputSpan.Slice(pos); 260protected override void Scan(ReadOnlySpan<char> inputSpan) 272private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 294private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 300ReadOnlySpan<char> slice = inputSpan.Slice(pos); 459protected override void Scan(ReadOnlySpan<char> inputSpan) 477private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 502private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 517ReadOnlySpan<char> slice = inputSpan.Slice(pos);
Microsoft.DotNet.Cli.Utils (8)
BufferScope.cs (1)
166public static implicit operator ReadOnlySpan<T>(BufferScope<T> scope)
FileLockOwnerFinder.Linux.cs (5)
72ReadOnlySpan<char> lockEntry, 91private static ReadOnlySpan<char> ReadNextField(ref ReadOnlySpan<char> remaining) 106ReadOnlySpan<char> field = remaining[..fieldLength]; 160ReadOnlySpan<char> remaining = fdInfoEntry;
MSBuildArgs.cs (2)
149public static MSBuildArgs FromOtherArgs(params ReadOnlySpan<string> args) 312public MSBuildArgs CloneWithAdditionalTargets(params ReadOnlySpan<string> additionalTargets)
Microsoft.DotNet.HotReload.Watch (15)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\RegexGenerator.g.cs (12)
121protected override void Scan(ReadOnlySpan<char> inputSpan) 139private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 164private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 171ReadOnlySpan<char> slice = inputSpan.Slice(pos); 300protected override void Scan(ReadOnlySpan<char> inputSpan) 318private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 343private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 350ReadOnlySpan<char> slice = inputSpan.Slice(pos); 477protected override void Scan(ReadOnlySpan<char> inputSpan) 495private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 520private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 525ReadOnlySpan<char> slice = inputSpan.Slice(pos);
src\sdk\src\Dotnet.Watch\HotReloadClient\Utilities\ResponseFunc.cs (1)
12internal delegate TResult ResponseFunc<TResult>(ReadOnlySpan<byte> data, ILogger logger);
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\BrowserRefreshServer.cs (2)
361internal static bool ReceiveUpdateApplyResponse(ReadOnlySpan<byte> value, ILogger logger) 529public static TValue DeserializeJson<TValue>(ReadOnlySpan<byte> value)
Microsoft.DotNet.HotReload.WebAssembly.Browser (6)
src\sdk\src\Dotnet.Watch\HotReloadAgent\HotReloadAgent.cs (6)
27private delegate void ApplyUpdateDelegate(Assembly assembly, ReadOnlySpan<byte> metadataDelta, ReadOnlySpan<byte> ilDelta, ReadOnlySpan<byte> pdbDelta); 74var applyUpdateMethod = metadataUpdater.GetMethod(ApplyUpdateMethodName, BindingFlags.Public | BindingFlags.Static, binder: null, [typeof(Assembly), typeof(ReadOnlySpan<byte>), typeof(ReadOnlySpan<byte>), typeof(ReadOnlySpan<byte>)], modifiers: null);
Microsoft.DotNet.ILAssembler (17)
Actions\GrammarActions.Bytes.cs (1)
30ReadOnlySpan<char> text = token.Text.AsSpan();
Actions\GrammarActions.CustomAttributes.Serialization.cs (2)
341ReadOnlySpan<byte> valueBytes = bytes.AsSpan().Slice(1); 365private static string? ExtractSerString(ReadOnlySpan<byte> bytes)
Actions\GrammarActions.Instructions.cs (3)
178ReadOnlySpan<byte> byteSpan = bytes.AsSpan(); 234private static string ReadUtf16String(ReadOnlySpan<byte> bytes) 236ReadOnlySpan<char> chars = MemoryMarshal.Cast<byte, char>(bytes);
Actions\GrammarActions.Literals.cs (5)
95private static bool ParseIntegerValue(ReadOnlySpan<char> value, out long result) 98private static bool ParseIntegerValue(ReadOnlySpan<char> value, out long result, out bool invalidOctal, bool restrictToInt32 = false) 171var truncated = value.Slice(value.Length - 16); 204ReadOnlySpan<char> value = token.Text.AsSpan(); 217ReadOnlySpan<char> value = token.Text.AsSpan();
Actions\GrammarActions.MethodBodies.Locals.cs (1)
104ReadOnlySpan<char> digits = text.AsSpan();
ILAssemblerPEBuilder.cs (1)
796private static void WriteBytesAtOffset(BlobBuilder builder, int offset, ReadOnlySpan<byte> value)
NameHelpers.cs (2)
20ReadOnlySpan<char> token = name.AsSpan(markerIndex + PrivateScopeMarker.Length); 30static bool IsHexToken(ReadOnlySpan<char> token)
PreprocessedTokenSource.cs (1)
348var array = s.AsSpan();
StringHelpers.cs (1)
33ReadOnlySpan<char> content = rawText.AsSpan(1, rawText.Length - 2);
Microsoft.DotNet.NativeWrapper (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LibraryImports.g.cs (2)
204global::System.ReadOnlySpan<string> __argv_native__managedSpan = __argv_native__marshaller.GetManagedValuesSource(); 231global::System.ReadOnlySpan<nint> __argv_native__nativeSpan = __argv_native__marshaller.GetUnmanagedValuesDestination();
Microsoft.DotNet.ProjectTools (7)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\RegexGenerator.g.cs (4)
67protected override void Scan(ReadOnlySpan<char> inputSpan) 85private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 110private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 114ReadOnlySpan<char> slice = inputSpan.Slice(pos);
src\sdk\src\Cli\Microsoft.DotNet.FileBasedPrograms\FileLevelDirectiveHelpers.cs (3)
132ReadOnlySpan<char> message; 136var contentText = content.Text.AsSpan(); 137var trimmedStart = contentText.TrimStart();
Microsoft.DotNet.StrongName (1)
Signing.cs (1)
256ReadOnlySpan<byte> pubKeyData)
Microsoft.DotNet.TemplateLocator (2)
parent\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestReader.SystemTextJson.cs (1)
38static ReadOnlySpan<byte> utf8Bom => new byte[] { 0xEF, 0xBB, 0xBF };
src\sdk\src\Common\EnvironmentVariableNames.cs (1)
104var span = runtimeIdentifier.AsSpan(archStart, (archEnd > 0 ? archEnd : runtimeIdentifier.Length) - archStart);
Microsoft.Extensions.AI (14)
ChatCompletion\CachingChatClient.cs (1)
150protected abstract string GetCacheKey(IEnumerable<ChatMessage> messages, ChatOptions? options, params ReadOnlySpan<object?> additionalValues);
ChatCompletion\ChatResponse{T}.cs (1)
100var utf8Span = new ReadOnlySpan<byte>(buffer, 0, utf8SpanLength);
ChatCompletion\DistributedCachingChatClient.cs (1)
135protected override string GetCacheKey(IEnumerable<ChatMessage> messages, ChatOptions? options, params ReadOnlySpan<object?> additionalValues)
ChatCompletion\FunctionInvokingChatClient.cs (4)
803private static bool AnyToolsRequireApproval(params ReadOnlySpan<IList<AITool>?> toolLists) 826private static AIFunctionDeclaration? FindTool(string name, params ReadOnlySpan<IList<AITool>?> toolLists) 848private static bool HasAnyTools(params ReadOnlySpan<IList<AITool>?> toolLists) 1268ReadOnlySpan<FunctionInvocationResult> results)
ChatCompletion\ImageGeneratingChatClient.cs (1)
285ReadOnlySpan<AITool> tools =
ChatRouting\SemanticRoutingChatClient.cs (1)
195ReadOnlySpan<float> queryVector = generated[0].Vector.Span;
Common\OtelMessageSerializer.cs (1)
266ReadOnlySpan<char> topLevel = mediaType.AsSpan(0, pos);
Embeddings\CachingEmbeddingGenerator.cs (1)
117protected abstract string GetCacheKey(params ReadOnlySpan<object?> values);
Embeddings\DistributedCachingEmbeddingGenerator.cs (1)
111protected override string GetCacheKey(params ReadOnlySpan<object?> values)
Realtime\FunctionInvokingRealtimeClientSession.cs (2)
232private static AIFunctionDeclaration? FindTool(string name, params ReadOnlySpan<IEnumerable<AITool>?> toolLists) 252private static bool HasAnyTools(params ReadOnlySpan<IEnumerable<AITool>?> toolLists)
Microsoft.Extensions.AI.Abstractions (12)
Contents\DataUriParser.cs (4)
68ReadOnlySpan<char> span = metadata.Span.Trim(); 99public static bool IsValidMediaType(ReadOnlySpan<char> mediaTypeSpan, [NotNull] ref string? mediaType) 145ReadOnlySpan<char> span = slashIndex < 0 ? mediaType.AsSpan() : mediaType.AsSpan(0, slashIndex); 152private static bool IsValidBase64Data(ReadOnlySpan<char> value)
Embeddings\BinaryEmbedding.cs (1)
55ReadOnlySpan<byte> utf8;
Files\HostedFileDownloadStream.cs (1)
75public override void Write(ReadOnlySpan<byte> buffer) => throw new NotSupportedException();
Functions\AIFunctionFactory.cs (1)
1387public ReadOnlySpan<byte> GetBuffer() => _buffer.AsSpan(0, _position);
Utilities\AIJsonSchemaCreateContext.cs (1)
33public ReadOnlySpan<string> Path => _exporterContext.Path;
Utilities\AIJsonSchemaTransformContext.cs (1)
29public ReadOnlySpan<string> Path => _path;
Utilities\AIJsonUtilities.cs (2)
77public static string HashDataToString(ReadOnlySpan<object?> values, JsonSerializerOptions? serializerOptions = null) 237public override void Write(ReadOnlySpan<byte> buffer) => _hash.AppendData(buffer);
Utilities\AIJsonUtilities.Schema.Transform.cs (1)
105ReadOnlySpan<string> combinatorKeywords = ["anyOf", "oneOf", "allOf"];
Microsoft.Extensions.AI.Evaluation.NLP (9)
Common\NGram.cs (1)
19public NGram(ReadOnlySpan<T> values)
Common\NGramExtensions.cs (6)
13public static NGram<T> CreateNGram<T>(this ReadOnlySpan<T> values) 18=> CreateNGrams((ReadOnlySpan<T>)input, n); 25internal static List<NGram<T>> CreateNGrams<T>(this ReadOnlySpan<T> input, int n) 35ReadOnlySpan<T> next = input.Slice(0, Math.Min(n, input.Length)); 50=> CreateAllNGrams((ReadOnlySpan<T>)input, minN, maxN); 58internal static List<NGram<T>> CreateAllNGrams<T>(this ReadOnlySpan<T> input, int minN, int maxN = -1)
Common\SimpleWordTokenizer.cs (2)
60var span = text.Span; 212private static bool IsPunctuationFollowedByNumber(ReadOnlySpan<char> text) =>
Microsoft.Extensions.AI.Evaluation.NLP.Tests (2)
NGramTests.cs (2)
66ReadOnlySpan<int> data = [1, 2, 3]; 90ReadOnlySpan<int> arr = [1, 2, 3];
Microsoft.Extensions.AI.Evaluation.Quality (4)
IntentResolutionRating.cs (1)
78ReadOnlySpan<char> trimmed = JsonOutputFixer.TrimMarkdownDelimiters(jsonResponse);
RelevanceTruthAndCompletenessRating.cs (1)
77ReadOnlySpan<char> trimmed = JsonOutputFixer.TrimMarkdownDelimiters(jsonResponse);
Utilities\JsonOutputFixer.cs (2)
13internal static ReadOnlySpan<char> TrimMarkdownDelimiters(string json) 16ReadOnlySpan<char> trimmed = json;
Microsoft.Extensions.AI.Integration.Tests (2)
QuantizationEmbeddingGenerator.cs (2)
48ReadOnlySpan<float> vector = embedding.Vector.Span; 81ReadOnlySpan<float> vector = embedding.Vector.Span;
Microsoft.Extensions.AI.OpenAI (3)
OpenAIClientExtensions.cs (1)
63ReadOnlySpan<string> unsupportedProperties =
OpenAISpeechToTextClient.cs (2)
217private static string DetectAudioExtension(ReadOnlySpan<byte> header) 229header.Slice(0, 4).SequenceEqual((ReadOnlySpan<byte>)[0x1A, 0x45, 0xDF, 0xA3]))
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIResponseClientTests.cs (1)
7653static string ReadPatchValue(WebSearchActionUriSource source, ReadOnlySpan<byte> path)
Microsoft.Extensions.AI.Templates.Tests (3)
test\ProjectTemplates\Infrastructure\DotNetCommand.cs (1)
10public DotNetCommand(params ReadOnlySpan<string> args)
test\ProjectTemplates\Infrastructure\DotNetNewCommand.cs (1)
14public DotNetNewCommand(params ReadOnlySpan<string> args)
test\ProjectTemplates\Infrastructure\TemplateExecutionTestClassFixtureBase.cs (1)
97ReadOnlySpan<string> dotNetNewCommandArgs = [
Microsoft.Extensions.AI.Tests (2)
ChatCompletion\DistributedCachingChatClientTest.cs (1)
878protected override string GetCacheKey(IEnumerable<ChatMessage> messages, ChatOptions? options, params ReadOnlySpan<object?> additionalValues)
Embeddings\DistributedCachingEmbeddingGeneratorTest.cs (1)
416protected override string GetCacheKey(params ReadOnlySpan<object?> values)
Microsoft.Extensions.Caching.Abstractions (4)
Hybrid\HybridCache.cs (4)
61ReadOnlySpan<char> key, 82ReadOnlySpan<char> key, 244ReadOnlySpan<char> key, 264ReadOnlySpan<char> key,
Microsoft.Extensions.Caching.Hybrid (10)
Internal\BufferChunk.cs (1)
89internal ReadOnlySpan<byte> AsSpan() => Length == 0 ? default : new(OversizedArray!, Offset, Length);
Internal\DefaultHybridCache.cs (1)
368private static bool ContainsReservedCharacters(ReadOnlySpan<char> key)
Internal\DefaultHybridCache.TagInvalidation.cs (2)
18private readonly ConcurrentDictionary<string, Task<long>>.AlternateLookup<ReadOnlySpan<char>> _tagInvalidationTimesBySpan; 83public bool IsTagExpired(ReadOnlySpan<char> tag, long timestamp, out bool isPending)
Internal\HybridCachePayload.cs (5)
244ReadOnlySpan<byte> bytes = new(source.Array!, source.Offset, source.Count); 317if (!TryReadString(ref bytes, ref scratch, out ReadOnlySpan<char> stringSpan)) 403static bool TryReadString(ref ReadOnlySpan<byte> buffer, ref char[] scratch, out ReadOnlySpan<char> value) 443static bool TryRead7BitEncodedInt64(ref ReadOnlySpan<byte> buffer, out ulong result)
Internal\TagSet.cs (1)
177internal bool TryFind(ReadOnlySpan<char> span, [NotNullWhen(true)] out string? tag)
Microsoft.Extensions.Caching.Hybrid.Tests (4)
SerializerTests.cs (4)
236private static T RoundTrip<T>(T value, ReadOnlySpan<byte> expectedBytes, JsonSerializer expectedJsonOptions, JsonSerializer addSerializers = JsonSerializer.None, bool binary = false) 277var actual = target.GetCommittedMemory().Span; 291private static string FormatText(ReadOnlySpan<byte> value) 297private static string FormatBytes(ReadOnlySpan<byte> value)
Microsoft.Extensions.Caching.Memory (7)
CacheEntry.ExpirationTokensList.cs (2)
39internal ReadOnlySpan<IChangeToken> Snapshot 106internal void AddRange(ReadOnlySpan<IChangeToken> source)
MemoryCache.cs (5)
259public bool TryGetValue(ReadOnlySpan<char> key, out object? value) 275public bool TryGetValue<TItem>(ReadOnlySpan<char> key, out TItem? value) 798private readonly ConcurrentDictionary<string, CacheEntry>.AlternateLookup<ReadOnlySpan<char>> _stringAltLookup; 802_stringAltLookup = _stringEntries.GetAlternateLookup<ReadOnlySpan<char>>(); 826internal bool TryGetValue(ReadOnlySpan<char> key, [NotNullWhen(true)] out CacheEntry? entry)
Microsoft.Extensions.Compliance.Abstractions (11)
Classification\DataClassificationTypeConverter.cs (1)
95ReadOnlySpan<char> valueSpan = value.AsSpan();
Redaction\NullRedactor.cs (2)
20public override int GetRedactedLength(ReadOnlySpan<char> input) => input.Length; 23public override int Redact(ReadOnlySpan<char> source, Span<char> destination)
Redaction\RedactionStringBuilderExtensions.cs (1)
45public static StringBuilder AppendRedacted(this StringBuilder stringBuilder, Redactor redactor, ReadOnlySpan<char> value)
Redaction\Redactor.cs (7)
28public string Redact(ReadOnlySpan<char> source) 44static (destination, state) => state.Item1.Redact(*(ReadOnlySpan<char>*)state.Item2, destination)); 71public abstract int Redact(ReadOnlySpan<char> source, Span<char> destination); 131static (destination, state) => state.Item1.Redact(*(ReadOnlySpan<char>*)state.Item2, destination)); 222public bool TryRedact<T>(T value, Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider = null) 248ReadOnlySpan<char> ros = default; 292public abstract int GetRedactedLength(ReadOnlySpan<char> input);
Microsoft.Extensions.Compliance.Abstractions.Tests (3)
Redaction\RedactorTest.cs (2)
331public override int GetRedactedLength(ReadOnlySpan<char> input) => input.Length; 333public override int Redact(ReadOnlySpan<char> source, Span<char> destination)
Redaction\TestSpanFormattable.cs (1)
25System.ReadOnlySpan<char> format, System.IFormatProvider? provider)
Microsoft.Extensions.Compliance.Redaction (5)
ErasingRedactor.cs (2)
19public override int Redact(ReadOnlySpan<char> source, Span<char> destination) => 0; 22public override int GetRedactedLength(ReadOnlySpan<char> input) => 0;
HmacRedactor.cs (3)
52public override int GetRedactedLength(ReadOnlySpan<char> input) 64public override int Redact(ReadOnlySpan<char> source, Span<char> destination) 79private static int CreateSha256Hash(ReadOnlySpan<char> source, Span<char> destination, byte[] hashKey)
Microsoft.Extensions.Compliance.Redaction.Tests (2)
FakePlaintextRedactor.cs (2)
10public override int GetRedactedLength(ReadOnlySpan<char> input) => input.Length; 12public override int Redact(ReadOnlySpan<char> source, Span<char> destination)
Microsoft.Extensions.Compliance.Testing (2)
FakeRedactor.cs (2)
74public override int Redact(ReadOnlySpan<char> source, Span<char> destination) 90public override int GetRedactedLength(ReadOnlySpan<char> input)
Microsoft.Extensions.Configuration (14)
ConfigurationKeyComparer.cs (6)
32ReadOnlySpan<char> xSpan = x.AsSpan(); 33ReadOnlySpan<char> ySpan = y.AsSpan(); 61static ReadOnlySpan<char> SkipAheadOnDelimiter(ReadOnlySpan<char> a) 70static int Compare(ReadOnlySpan<char> a, ReadOnlySpan<char> b)
ReferenceResolver.cs (1)
100private static string? BuildKey(IList<IConfigurationProvider> providers, ReadOnlySpan<char> body, string baseKey, int nesting, int hops, ref int remainingReads, ref ErrorTrail errorTrail)
ReferenceSyntax.cs (3)
50internal static int SkipQuoted(ReadOnlySpan<char> s, int start) 94internal static int FindMatchingBrace(ReadOnlySpan<char> s, int open, string key) 131internal static int MoveLength(ReadOnlySpan<char> s, int i, int written)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
101public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 102public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 103public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 209public void Append(scoped ReadOnlySpan<char> value)
Microsoft.Extensions.Configuration.Binder.SourceGeneration (13)
src\runtime\src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
160public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span)
src\runtime\src\libraries\Common\src\SourceGenerators\ImmutableEquatableArray.cs (1)
28=> other != null && ((ReadOnlySpan<T>)_values).SequenceEqual(other._values);
src\runtime\src\libraries\Common\src\SourceGenerators\SourceWriter.cs (7)
50ReadOnlySpan<char> remainingText = text.AsSpan(); 53ReadOnlySpan<char> nextLine = GetNextLine(ref remainingText, out isFinalLine); 79private static ReadOnlySpan<char> GetNextLine(ref ReadOnlySpan<char> remainingText, out bool isFinalLine) 87ReadOnlySpan<char> next; 88ReadOnlySpan<char> rest; 113private static unsafe void AppendSpan(StringBuilder builder, ReadOnlySpan<char> span)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (4)
65public void Append(scoped ReadOnlySpan<T> source) 81private void AppendMultiChar(scoped ReadOnlySpan<T> source) 92public void Insert(int index, scoped ReadOnlySpan<T> source) 144public ReadOnlySpan<T> AsSpan()
Microsoft.Extensions.Configuration.EnvironmentVariables (4)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
101public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 102public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 103public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 209public void Append(scoped ReadOnlySpan<char> value)
Microsoft.Extensions.DataIngestion (15)
Chunkers\DocumentTokenChunker.cs (1)
110ReadOnlySpan<char> overlapContent = chunk.Content.AsSpan().Slice(index);
Chunkers\ElementsChunker.cs (4)
149ReadOnlySpan<char> remainingContent = semanticContent.AsSpan(); 174ReadOnlySpan<char> spanToAppend = remainingContent.Slice(0, index); 221private static void AppendNewLineAndSpan(StringBuilder stringBuilder, ReadOnlySpan<char> chars) 271private int CountTokens(ReadOnlySpan<char> input)
Chunkers\ValueStringBuilder.cs (4)
101public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 102public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 103public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 209public void Append(scoped ReadOnlySpan<char> value)
Processors\ClassificationEnricher.cs (3)
32public ClassificationEnricher(EnricherOptions options, ReadOnlySpan<string> predefinedClasses, 55private static void Validate(ReadOnlySpan<string> predefinedClasses, string fallbackClass) 77private static ChatMessage CreateSystemPrompt(ReadOnlySpan<string> predefinedClasses, string fallbackClass)
Processors\KeywordEnricher.cs (3)
38public KeywordEnricher(EnricherOptions options, ReadOnlySpan<string> predefinedKeywords, 63private static void Validate(ReadOnlySpan<string> predefinedKeywords) 80private static ChatMessage CreateSystemPrompt(int maxKeywords, ReadOnlySpan<string> predefinedKeywords, double confidenceThreshold)
Microsoft.Extensions.DataIngestion.Markdig (3)
MarkdownParser.cs (3)
130ReadOnlySpan<char> url = link.Url.AsSpan("data:".Length); 136ReadOnlySpan<char> mediaType = url.Slice(0, semicolonIndex); 143ReadOnlySpan<char> encoding = url.Slice(semicolonIndex + 1, commaIndex - semicolonIndex - 1);
Microsoft.Extensions.DataIngestion.MarkItDown (3)
src\Libraries\Microsoft.Extensions.DataIngestion.Markdig\MarkdownParser.cs (3)
130ReadOnlySpan<char> url = link.Url.AsSpan("data:".Length); 136ReadOnlySpan<char> mediaType = url.Slice(0, semicolonIndex); 143ReadOnlySpan<char> encoding = url.Slice(semicolonIndex + 1, commaIndex - semicolonIndex - 1);
Microsoft.Extensions.DependencyModel (2)
DependencyContextJsonReader.cs (2)
18private static ReadOnlySpan<byte> Utf8Bom => [0xEF, 0xBB, 0xBF]; 58ReadOnlySpan<byte> utf8Bom = Utf8Bom;
Microsoft.Extensions.Diagnostics (4)
Metrics\DebugConsoleMetricListener.cs (1)
61private void MeasurementHandler<T>(Instrument instrument, T measurement, ReadOnlySpan<KeyValuePair<string, object?>> tags, object? state) where T : struct
Metrics\ListenerSubscription.cs (1)
182ReadOnlySpan<char> prefix, suffix;
Tracing\DefaultActivitySourceFactory.cs (2)
541ReadOnlySpan<char> prefix; 542ReadOnlySpan<char> suffix;
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization (1)
ResourceUtilizationHealthCheck.cs (1)
194ReadOnlySpan<KeyValuePair<string, object?>> tags, object? state)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (52)
Linux\LinuxUtilizationParserCgroupV1.cs (18)
107ReadOnlySpan<char> usage = bufferWriter.Buffer.WrittenSpan; 128ReadOnlySpan<char> stat = bufferWriter.Buffer.WrittenSpan; 194ReadOnlySpan<char> memoryBuffer = bufferWriter.Buffer.WrittenSpan; 214ReadOnlySpan<char> memoryFile = bufferWriter.Buffer.WrittenSpan; 223ReadOnlySpan<char> inactiveMemorySlice = memoryFile.Slice(index + TotalInactiveFile.Length, memoryFile.Length - index - TotalInactiveFile.Length); 235ReadOnlySpan<char> containerMemoryUsageFile = bufferWriter.Buffer.WrittenSpan; 264ReadOnlySpan<char> firstLine = bufferWriter.Buffer.WrittenSpan; 271ReadOnlySpan<char> totalMemory = firstLine.Slice(MemTotal.Length, firstLine.Length - MemTotal.Length); 285ReadOnlySpan<char> unit = totalMemory.Slice(totalMemory.Length - 2, 2); 309ReadOnlySpan<char> stats = bufferWriter.Buffer.WrittenSpan; 323ReadOnlySpan<char> group = groupIndex == -1 ? stats : stats.Slice(0, groupIndex); 342ReadOnlySpan<char> first = group.Slice(0, rangeIndex); 345ReadOnlySpan<char> second = group.Slice(rangeIndex + 1); 366static void ThrowException(ReadOnlySpan<char> content) => 380private static int GetNextNumber(ReadOnlySpan<char> buffer, out long number) 414ReadOnlySpan<char> quotaBuffer = bufferWriter.Buffer.WrittenSpan; 432ReadOnlySpan<char> periodBuffer = bufferWriter.Buffer.WrittenSpan; 469ReadOnlySpan<char> cpuPodWeightBuffer = bufferWriter.Buffer.WrittenSpan;
Linux\LinuxUtilizationParserCgroupV2.cs (29)
119ReadOnlySpan<char> fileContent = bufferWriter.Buffer.WrittenSpan; 135ReadOnlySpan<char> trimmedPath = fileContent[(colonIndex + 1)..]; 174ReadOnlySpan<char> stat = bufferWriter.Buffer.WrittenSpan; 289ReadOnlySpan<char> memoryBuffer = bufferWriter.Buffer.WrittenSpan; 327ReadOnlySpan<char> memoryUsageFile = bufferWriter.Buffer.WrittenSpan; 362ReadOnlySpan<char> memoryFile = bufferWriter.Buffer.WrittenSpan; 371ReadOnlySpan<char> inactiveMemorySlice = memoryFile.Slice(index + InactiveFile.Length, memoryFile.Length - index - InactiveFile.Length); 408ReadOnlySpan<char> firstLine = bufferWriter.Buffer.WrittenSpan; 415ReadOnlySpan<char> totalMemory = firstLine.Slice(MemTotal.Length, firstLine.Length - MemTotal.Length); 429ReadOnlySpan<char> unit = totalMemory.Slice(totalMemory.Length - 2, 2); 453ReadOnlySpan<char> stats = bufferWriter.Buffer.WrittenSpan; 467ReadOnlySpan<char> group = groupIndex == -1 ? stats : stats.Slice(0, groupIndex); 486ReadOnlySpan<char> first = group.Slice(0, rangeIndex); 489ReadOnlySpan<char> second = group.Slice(rangeIndex + 1); 510static void ThrowException(ReadOnlySpan<char> content) => 523ReadOnlySpan<char> memoryMinBuffer = bufferWriter.Buffer.WrittenSpan; 544ReadOnlySpan<char> memoryLowBuffer = bufferWriter.Buffer.WrittenSpan; 567ReadOnlySpan<char> content = bufferWriter.Buffer.WrittenSpan; 576ReadOnlySpan<char> usageSlice = content.Slice(usageIndex + UsageUsec.Length); 591ReadOnlySpan<char> periodsSlice = content.Slice(periodsIndex + NrPeriods.Length); 607private static int GetNextNumber(ReadOnlySpan<char> buffer, out long number) 669ReadOnlySpan<char> quotaBuffer = bufferWriter.Buffer.WrittenSpan; 692ReadOnlySpan<char> cpuPeriodSlice = quotaBuffer.Slice(index + quotaString.Length, quotaBuffer.Length - index - quotaString.Length); 710ReadOnlySpan<char> content = bufferWriter.Buffer.WrittenSpan; 721ReadOnlySpan<char> periodSlice = content.Slice(3); 736ReadOnlySpan<char> periodSlice = content.Slice(2); 761ReadOnlySpan<char> periodSlice = content.Slice(index + quotaString.Length); 802ReadOnlySpan<char> cpuPodWeightBuffer = bufferWriter.Buffer.WrittenSpan; 853ReadOnlySpan<char> memoryUsageFile = bufferWriter.Buffer.WrittenSpan;
Linux\Network\LinuxNetworkUtilizationParser.cs (4)
51private static void UpdateTcpStateInfo(ReadOnlySpan<char> buffer, TcpStateInfo tcpStateInfo) 59ReadOnlySpan<char> line = buffer.TrimStart(); 84ReadOnlySpan<char> tcpConnectionState = line.Slice(range[Target - 2].Start.Value, range[Target - 2].End.Value - range[Target - 2].Start.Value); 150ReadOnlySpan<char> firstLine = enumerableLines.Current.TrimStart().Span;
src\Shared\BufferWriterPool\BufferWriter.cs (1)
54public ReadOnlySpan<T> WrittenSpan => _buffer.AsSpan(0, WrittenCount);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Linux\AcceptanceTest.cs (1)
509ReadOnlySpan<KeyValuePair<string, object?>> tags,
Microsoft.Extensions.Diagnostics.Testing (2)
Metrics\CollectedMeasurement.cs (1)
26internal CollectedMeasurement(T value, ReadOnlySpan<KeyValuePair<string, object?>> tags, DateTimeOffset timestamp)
Metrics\MetricCollector.cs (1)
294private void OnMeasurementRecorded(Instrument instrument, T measurement, ReadOnlySpan<KeyValuePair<string, object?>> tags, object? state)
Microsoft.Extensions.DotNetDeltaApplier (6)
src\sdk\src\Dotnet.Watch\HotReloadAgent\HotReloadAgent.cs (6)
27private delegate void ApplyUpdateDelegate(Assembly assembly, ReadOnlySpan<byte> metadataDelta, ReadOnlySpan<byte> ilDelta, ReadOnlySpan<byte> pdbDelta); 74var applyUpdateMethod = metadataUpdater.GetMethod(ApplyUpdateMethodName, BindingFlags.Public | BindingFlags.Static, binder: null, [typeof(Assembly), typeof(ReadOnlySpan<byte>), typeof(ReadOnlySpan<byte>), typeof(ReadOnlySpan<byte>)], modifiers: null);
Microsoft.Extensions.FileProviders.Physical (2)
PhysicalFilesWatcher.cs (2)
964ReadOnlySpan<char> remaining = target.AsSpan(existingAncestor.Length).TrimStart(PathUtils.PathSeparators); 972ReadOnlySpan<char> target = _targetDirectory.AsSpan().TrimEnd(PathUtils.PathSeparators);
Microsoft.Extensions.Http (1)
src\runtime\src\libraries\Common\src\System\Net\Http\UriRedactionHelper.cs (1)
88private static ReadOnlySpan<char> Slice(string text, int startIndex, int length) => text.AsSpan(startIndex, length);
Microsoft.Extensions.Http.Diagnostics (11)
Http\HttpDependencyMetadataResolver.cs (2)
107var routeSpan = route.AsSpan(); 365ReadOnlySpan<char> requestRouteAsSpan = requestPath.AsSpan();
Logging\Internal\HttpHeadersRedactor.cs (4)
47var firstItem = enumerator.Current.AsSpan(); 49ReadOnlySpan<char> currentItem; 110var firstItem = input[0].AsSpan(); 122ReadOnlySpan<char> currentItem;
Logging\Internal\HttpRequestReader.cs (4)
148private static string UnescapeDataString(ReadOnlySpan<char> value) 162ReadOnlySpan<char> querySpan = query.AsSpan(); 180var keySpan = querySpan.Slice(start, eq); 181var valueSpan = querySpan.Slice(start + eq + 1, end - (start + eq + 1));
src\Shared\BufferWriterPool\BufferWriter.cs (1)
54public ReadOnlySpan<T> WrittenSpan => _buffer.AsSpan(0, WrittenCount);
Microsoft.Extensions.Identity.Core (8)
AuthenticatorTokenProvider.cs (1)
70ReadOnlySpan<byte> keyBytes = keyBuffer.Slice(0, keyByteCount);
Base32.cs (3)
77var trimmedInput = input.AsSpan().TrimEnd('='); 100internal static bool TryFromBase32(ReadOnlySpan<char> input, Span<byte> destination, out int bytesWritten) 102var trimmedInput = input.TrimEnd('=');
Rfc6238AuthenticationService.cs (2)
25ReadOnlySpan<byte> key, 78private static byte[] ApplyModifier(ReadOnlySpan<byte> input, byte[] modifierBytes)
UserManager.cs (1)
2522private static ReadOnlySpan<char> AllowedChars =>
UserManagerMetrics.cs (1)
195ReadOnlySpan<char> trimmedPurpose = purpose;
Microsoft.Extensions.Logging (3)
Logger.cs (1)
241ReadOnlySpan<LogLevel> logLevels =
LoggerRuleSelector.cs (1)
61ReadOnlySpan<char> prefix, suffix;
src\runtime\src\libraries\Common\src\Extensions\Logging\DebuggerDisplayFormatting.cs (1)
34ReadOnlySpan<LogLevel> logLevels =
Microsoft.Extensions.Logging.Abstractions (5)
src\runtime\src\libraries\Common\src\Extensions\Logging\DebuggerDisplayFormatting.cs (1)
34ReadOnlySpan<LogLevel> logLevels =
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
101public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 102public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 103public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 209public void Append(scoped ReadOnlySpan<char> value)
Microsoft.Extensions.Logging.Console (11)
AnsiParser.cs (1)
52var span = message.AsSpan();
AnsiParsingLogConsole.cs (1)
63ReadOnlySpan<char> span = message.AsSpan(startIndex, length);
ConsoleControlCharacterSanitizer.cs (2)
27ReadOnlySpan<char> remaining = value.AsSpan(); 75private static int IndexOfFirstCharToEscape(ReadOnlySpan<char> value)
JsonConsoleFormatter.cs (1)
104var messageBytes = output.WrittenSpan;
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
82public ReadOnlySpan<byte> ActiveReadOnlySpan => new ReadOnlySpan<byte>(_bytes, _activeStart, _availableStart - _activeStart);
src\runtime\src\libraries\Common\src\System\Text\Json\PooledByteBufferWriter.cs (1)
30public ReadOnlySpan<byte> WrittenSpan => _buffer.ActiveSpan;
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
101public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 102public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 103public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 209public void Append(scoped ReadOnlySpan<char> value)
Microsoft.Extensions.Logging.Generators (13)
LoggerMessageGenerator.Emitter.cs (7)
72ReadOnlySpan<char> template = RemoveSpecialSymbol(lm.TemplateList[i].AsSpan()); 73ReadOnlySpan<char> parameter = RemoveSpecialSymbol(lm.TemplateParameters[i].CodeName.AsSpan()); 245ReadOnlySpan<char> template = RemoveSpecialSymbol(t.Key.AsSpan()); 246ReadOnlySpan<char> parameter = RemoveSpecialSymbol(p.Name.AsSpan()); 726private static bool ContainsSpecialSymbol(ReadOnlySpan<char> variableOrTemplateName) 744private static ReadOnlySpan<char> RemoveSpecialSymbol(ReadOnlySpan<char> variableOrTemplateName)
src\runtime\src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
160public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span)
src\runtime\src\libraries\Common\src\SourceGenerators\ImmutableEquatableArray.cs (1)
28=> other != null && ((ReadOnlySpan<T>)_values).SequenceEqual(other._values);
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (4)
65public void Append(scoped ReadOnlySpan<T> source) 81private void AppendMultiChar(scoped ReadOnlySpan<T> source) 92public void Insert(int index, scoped ReadOnlySpan<T> source) 144public ReadOnlySpan<T> AsSpan()
Microsoft.Extensions.Options.SourceGeneration (1)
src\runtime\src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
160public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span)
Microsoft.Extensions.Primitives (14)
StringSegment.cs (14)
114/// Gets a <see cref="ReadOnlySpan{T}"/> from the current <see cref="StringSegment"/>. 116/// <returns>The <see cref="ReadOnlySpan{T}"/> from this <see cref="StringSegment"/>.</returns> 117public ReadOnlySpan<char> AsSpan() => Buffer.AsSpan(Offset, Length); 120/// Gets a <see cref="ReadOnlySpan{T}"/> from the current <see cref="StringSegment"/> that starts 124/// <returns>A <see cref="ReadOnlySpan{T}"/> with the remaining chars that begins at <paramref name="start"/> in 129public ReadOnlySpan<char> AsSpan(int start) 140/// Gets a <see cref="ReadOnlySpan{T}"/> from the current <see cref="StringSegment"/> that starts 145/// <returns>A <see cref="ReadOnlySpan{T}"/> with <paramref name="length"/> that begins at 151public ReadOnlySpan<char> AsSpan(int start, int length) 310/// Creates a see <see cref="ReadOnlySpan{T}"/> from the given <see cref="StringSegment"/>. 312/// <param name="segment">The <see cref="StringSegment"/> to convert to a <see cref="ReadOnlySpan{T}"/>.</param> 313public static implicit operator ReadOnlySpan<char>(StringSegment segment) => segment.AsSpan(); 587ReadOnlySpan<char> span = AsSpan(); 607ReadOnlySpan<char> span = AsSpan();
Microsoft.Extensions.Resilience.PerformanceTests (1)
MetricsUtil.cs (1)
31ReadOnlySpan<KeyValuePair<string, object?>> tags,
Microsoft.Extensions.ServiceDiscovery (1)
Configuration\ConfigurationServiceEndpointProvider.cs (1)
80ReadOnlySpan<string> candidateNames = [DefaultEndpointName, .. _schemes];
Microsoft.Extensions.ServiceDiscovery.Dns (5)
Resolver\DnsDataReader.cs (1)
110public bool TryReadSpan(int length, out ReadOnlySpan<byte> name)
Resolver\DnsDataWriter.cs (1)
110internal bool TryWriteRawData(ReadOnlySpan<byte> value)
Resolver\DnsPrimitives.cs (1)
16internal static bool TryReadMessageHeader(ReadOnlySpan<byte> buffer, out DnsMessageHeader header, out int bytesRead)
Resolver\DnsResolver.cs (2)
951ReadOnlySpan<char> nameAsSpan = name; 966static bool MatchesReservedName(ReadOnlySpan<char> name, string reservedName)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests.Fuzzing (4)
Fuzzers\DnsResponseFuzzer.cs (1)
18public void FuzzTarget(ReadOnlySpan<byte> data)
Fuzzers\EncodedDomainNameFuzzer.cs (1)
8public void FuzzTarget(ReadOnlySpan<byte> data)
Fuzzers\WriteDomainNameRoundTripFuzzer.cs (1)
11public void FuzzTarget(ReadOnlySpan<byte> data)
IFuzzer.cs (1)
9void FuzzTarget(ReadOnlySpan<byte> data);
Microsoft.Extensions.Telemetry (17)
Buffering\LogBufferingFilterRuleSelector.cs (1)
114ReadOnlySpan<char> prefix, suffix;
Http\HttpRouteFormatter.cs (4)
52var httpPathAsSpan = httpPath.AsSpan().TrimStart(ForwardSlash); 177ReadOnlySpan<char> httpPath, 198ReadOnlySpan<char> httpPath, 240ReadOnlySpan<char> httpPath,
Http\HttpRouteParser.cs (7)
45var httpPathAsSpan = httpPath.AsSpan(); 161internal static int GetParameterLength(ReadOnlySpan<char> httpPath, Segment[] segments, int index) 182var literal = segments[i].Content.AsSpan(); 191var value = slashIndex > 0 ? literal.Slice(0, slashIndex) : literal; 302ReadOnlySpan<char> httpPath, 320ReadOnlySpan<char> httpPathAsSpan, 351ReadOnlySpan<char> httpPathAsSpan,
Logging\Import\LoggerRuleSelector.cs (1)
65ReadOnlySpan<char> prefix, suffix;
Logging\JustInTimeRedactor.cs (3)
61public bool TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) 80private bool TryRedactWithDiscriminator(object? value, Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? formatProvider, 111ReadOnlySpan<char> inputAsSpan = default;
Sampling\LogSamplingRuleSelector.cs (1)
46ReadOnlySpan<char> prefix, suffix;
Microsoft.Extensions.Telemetry.Abstractions (3)
Latency\LatencyData.cs (3)
39public ReadOnlySpan<Checkpoint> Checkpoints => _checkpoints; 44public ReadOnlySpan<Tag> Tags => _tags; 49public ReadOnlySpan<Measure> Measures => _measures;
Microsoft.Extensions.Telemetry.Tests (9)
Latency\Internal\LatencyContextTests.cs (7)
91var measures = context.LatencyData.Measures; 116var measures = context.LatencyData.Measures; 142var measures = context.LatencyData.Measures; 168var tags2 = context.LatencyData.Tags; 200var tags = context.LatencyData.Tags; 252var checkpoints = context.LatencyData.Checkpoints; 277var checkpoints = context.LatencyData.Checkpoints;
Latency\Internal\TagCollectionTests.cs (1)
101private static int GetNumberOfNonEmptyTags(ReadOnlySpan<Tag> tags)
Logging\JustInTimeRedactorTests.cs (1)
121public bool TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider)
Microsoft.Extensions.VectorData.Abstractions (2)
ProviderServices\Filter\FilterTranslatorBase.cs (2)
113&& (gtd == typeof(Span<>) || gtd == typeof(ReadOnlySpan<>)) 133&& (genericTypeDefinition == typeof(Span<>) || genericTypeDefinition == typeof(ReadOnlySpan<>)))
Microsoft.Gen.ContextualOptions.Unit.Tests (2)
EmitterTests.cs (1)
141typeof(ReadOnlySpan<>).Assembly
ParserTests.cs (1)
106new[] { typeof(OptionsContextAttribute).Assembly, typeof(ReadOnlySpan<>).Assembly },
Microsoft.Gen.Logging.Generated.Tests (2)
SimpleRedactors.cs (2)
21public override int GetRedactedLength(ReadOnlySpan<char> source) 26public override int Redact(ReadOnlySpan<char> source, Span<char> destination)
Microsoft.Interop.ComInterfaceGenerator (2)
ComInterfaceGeneratorHelpers.cs (1)
35public static string CreateEmbeddedDataBlobExpression(ReadOnlySpan<byte> bytes)
src\runtime\src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
160public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span)
Microsoft.Interop.LibraryImportGenerator (1)
src\runtime\src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
160public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
src\runtime\src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
160public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span)
Microsoft.Interop.SourceGeneration (2)
MarshallingInfoParser.cs (1)
256private MarshallingInfo? GetMarshallingInfoForAttributes(ReadOnlySpan<AttributeData> attrs, ITypeSymbol type, int indirectionDepth, UseSiteAttributeProvider useSiteAttributes, GetMarshallingInfoCallback marshallingInfoCallback)
src\runtime\src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
160public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span)
Microsoft.JSInterop (1)
src\aspnetcore\src\Components\Shared\src\ArrayBuilder.cs (1)
85internal int Append(ReadOnlySpan<T> source)
Microsoft.Maui (2)
Converters\FlexEnumsConverters.cs (1)
279 var value =
Debugger\DebuggerDisplayHelpers.cs (1)
35 public static string GetDebugText(ReadOnlySpan<KeyValuePair<string, object?>> values, bool includeNullValues = true)
Microsoft.Maui.Controls.BindingSourceGen (1)
EquatableArray.cs (1)
68 public ReadOnlySpan<T> AsSpan()
Microsoft.Maui.Controls.Xaml (1)
XamlLoader.cs (1)
431 var slice = xaml.AsSpan().Slice(index, fullName.Length);
Microsoft.Maui.Essentials (3)
Types\Shared\WebUtils.shared.cs (3)
32 static void UnpackParameters(ReadOnlySpan<char> query, Dictionary<string, string> parameters) 37 ReadOnlySpan<char> segment; 60 var span = segment.Slice(equalIndex + 1);
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)
SkiaTextLayout.cs (1)
241 var line = _value.AsSpan(index, count);
Microsoft.ML.Core (93)
Data\AnnotationUtils.cs (1)
399var catIndicesValues = catIndices.GetValues();
Data\ReadOnlyMemoryUtils.cs (6)
47var span = memory.Span; 161var span = memory.Span; 182var span = memory.Span; 203var span = memory.Span; 213public static void AddLowerCaseToStringBuilder(ReadOnlySpan<char> span, StringBuilder sb) 246public static StringBuilder AppendSpan(this StringBuilder sb, ReadOnlySpan<char> span)
Utilities\ArrayUtils.cs (1)
49public static int FindIndexSorted(ReadOnlySpan<int> input, int min, int lim, int value)
Utilities\BigArray.cs (1)
319public void AddRange(ReadOnlySpan<T> src)
Utilities\Contracts.cs (1)
954public static void AssertNonEmpty<T>(ReadOnlySpan<T> args)
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) 161public static Result Parse(ReadOnlySpan<char> span, out Double value, OptionFlags flags = OptionFlags.Default) 214public static bool TryParse(ReadOnlySpan<char> span, out Single value, out int ichEnd, OptionFlags flags = OptionFlags.Default) 303public static bool TryParse(ReadOnlySpan<char> span, out Double value, out int ichEnd, OptionFlags flags = OptionFlags.Default) 486private static bool TryParseSpecial(ReadOnlySpan<char> span, ref int ich, out Double value) 494private static bool TryParseSpecial(ReadOnlySpan<char> span, ref int ich, out Single value) 551private static bool TryParseCore(ReadOnlySpan<char> span, ref int ich, ref bool neg, ref ulong num, ref long exp, OptionFlags flags = OptionFlags.Default)
Utilities\FloatUtils.cs (2)
440public static bool IsFinite(ReadOnlySpan<double> values) 453public static bool IsFinite(ReadOnlySpan<float> values)
Utilities\Hashing.cs (4)
68/// Hash the characters in a <see cref="ReadOnlySpan{T}"/> of <see cref="char"/>. 71public static uint HashString(ReadOnlySpan<char> str) => MurmurHash(_defaultSeed, str); 118public static uint MurmurHash(uint hash, ReadOnlySpan<char> span, bool toUpper = false) 184public static uint MurmurHashV2(uint hash, ReadOnlySpan<char> span, bool toUpper = false)
Utilities\LineParser.cs (3)
18ReadOnlySpan<char> trimmedLine = line.AsSpan().TrimEnd(); // TrimEnd creates a Span, no allocations 21ReadOnlySpan<char> valuesToParse = trimmedLine.Slice(start: firstSeparatorIndex + 1); 57private static float[] AllocateFixedSizeArrayToStoreParsedValues(ReadOnlySpan<char> valuesToParse)
Utilities\MathUtils.cs (5)
143public static int ArgMax(ReadOnlySpan<float> a) 172public static int ArgMin(ReadOnlySpan<float> a) 203public static float SoftMax(ReadOnlySpan<float> inputs) 735public static Double CosineSimilarity(ReadOnlySpan<float> a, ReadOnlySpan<float> b, int aIdx, int bIdx, int len)
Utilities\NormStr.cs (2)
100var strSpan = str.AsSpan(); 123var span = str.Span;
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)
Utilities\VBufferUtils.cs (40)
25var values = buffer.GetValues(); 36var values = buffer.GetValues(); 47var values = buffer.GetValues(); 58var values = buffer.GetValues(); 89var aValues = a.GetValues(); 97var aIndices = a.GetIndices(); 118var aValues = a.GetValues(); 119var bValues = b.GetValues(); 127var aIndices = a.GetIndices(); 133var bIndices = b.GetIndices(); 142var aIndices = a.GetIndices(); 143var bIndices = b.GetIndices(); 169var aValues = a.GetValues(); 170var bValues = b.GetValues(); 179var aIndices = a.GetIndices(); 189var bIndices = b.GetIndices(); 201var aIndices = a.GetIndices(); 202var bIndices = b.GetIndices(); 282var dstIndices = dst.GetIndices(); 359var indices = dst.GetIndices(); 360var values = dst.GetValues(); 402var dstValues = dst.GetValues(); 403var dstIndices = dst.GetIndices(); 459var srcValues = src.GetValues(); 620var srcValues = src.GetValues(); 621var dstValues = dst.GetValues(); 622var dstIndices = dst.GetIndices(); 657var srcIndices = src.GetIndices(); 883var srcValues = src.GetValues(); 884var dstValues = dst.GetValues(); 906var srcIndices = src.GetIndices(); 950var srcIndices = src.GetIndices(); 987var dstIndices = dst.GetIndices(); 1036var srcIndices = src.GetIndices(); 1129var srcValues = src.GetValues(); 1151var srcIndices = src.GetIndices(); 1183var aValues = a.GetValues(); 1184var bValues = b.GetValues(); 1194ReadOnlySpan<int> aIndices; 1195ReadOnlySpan<int> bIndices;
Microsoft.ML.Core.Tests (6)
UnitTests\TestEntryPoints.cs (6)
2310var dense1Values = dense1.GetValues(); 2311var dense2Values = dense2.GetValues(); 5450var slotNameValues = slotNames.GetValues(); 6131var stdevValues = stdev.GetValues(); 6151var avgValues = avg.GetValues(); 6152var sumValues = sum.GetValues();
Microsoft.ML.CpuMath (92)
AlignedArray.cs (4)
126public void CopyFrom(ReadOnlySpan<float> src) 132public void CopyFrom(int start, ReadOnlySpan<float> src) 142public void CopyFrom(ReadOnlySpan<int> rgposSrc, ReadOnlySpan<float> valuesSrc, int posMin, int iposMin, int iposLim, bool zeroItems)
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)
parent\Microsoft.ML.Core\Utilities\Contracts.cs (1)
954public static void AssertNonEmpty<T>(ReadOnlySpan<T> args)
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)
Data\BufferBuilder.cs (2)
397var values = buffer.GetValues(); 420var indices = buffer.GetIndices();
Data\Conversion.cs (17)
771private bool HasNA(in VBuffer<R4> src) { var srcValues = src.GetValues(); for (int i = 0; i < srcValues.Length; i++) { if (R4.IsNaN(srcValues[i])) return true; } return false; } 772private bool HasNA(in VBuffer<R8> src) { var srcValues = src.GetValues(); for (int i = 0; i < srcValues.Length; i++) { if (R8.IsNaN(srcValues[i])) return true; } return false; } 795private bool HasZero(in VBuffer<U1> src) { if (!src.IsDense) return true; var srcValues = src.GetValues(); for (int i = 0; i < srcValues.Length; i++) { if (srcValues[i] == 0) return true; } return false; } 796private bool HasZero(in VBuffer<U2> src) { if (!src.IsDense) return true; var srcValues = src.GetValues(); for (int i = 0; i < srcValues.Length; i++) { if (srcValues[i] == 0) return true; } return false; } 797private bool HasZero(in VBuffer<U4> src) { if (!src.IsDense) return true; var srcValues = src.GetValues(); for (int i = 0; i < srcValues.Length; i++) { if (srcValues[i] == 0) return true; } return false; } 798private bool HasZero(in VBuffer<U8> src) { if (!src.IsDense) return true; var srcValues = src.GetValues(); for (int i = 0; i < srcValues.Length; i++) { if (srcValues[i] == 0) return true; } return false; } 1051var span = src.Span; 1101private bool IsStdMissing(ref ReadOnlySpan<char> span) 1150var span = src.Span; 1183private bool TryParseCore(ReadOnlySpan<char> span, out ulong dst) 1291private bool TryParseNonNegative(ReadOnlySpan<char> span, out long result) 1338var span = text.Span; 1377var span = src.Span; 1391var span = src.Span; 1532var span = src.Span; 1684var span = src.Span; 1692var span = src.Span;
Data\DataViewTypeManager.cs (1)
31typeof(string), typeof(ReadOnlySpan<char>), typeof(ReadOnlyMemory<char>),
Data\RowCursorUtils.cs (2)
278var srcValues = src.GetValues(); 290var srcIndices = src.GetIndices();
DataLoadSave\Binary\Codecs.cs (4)
50public virtual void Write(ReadOnlySpan<T> values) 202public override void Write(ReadOnlySpan<T> values) 918var valueValues = value.GetValues(); 929var valueIndices = value.GetIndices();
DataLoadSave\Binary\IValueCodec.cs (1)
109void Write(ReadOnlySpan<T> values);
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)
DataLoadSave\Text\TextLoaderParser.cs (4)
845private ReadOnlyMemory<char> TrimEndWhiteSpace(ReadOnlyMemory<char> memory, ReadOnlySpan<char> span) 869var span = lineSpan.Span; 976public int GatherFields(ReadOnlyMemory<char> lineSpan, ReadOnlySpan<char> span, string path = null, long line = 0) 1144private bool FetchNextField(ref ScanInfo scan, ReadOnlySpan<char> span)
DataLoadSave\Text\TextSaver.cs (5)
179var srcValues = _src.GetValues(); 190var srcIndices = _src.GetIndices(); 203var slotNamesValues = _slotNames.GetValues(); 207var slotNamesIndices = _slotNames.GetIndices(); 802internal static void MapText(ReadOnlySpan<char> span, ref StringBuilder sb, char sep)
DataView\Transposer.cs (5)
571var rbuffValues = rbuff.GetValues(); 583var rbuffIndices = rbuff.GetIndices(); 623var rbuffValues = rbuff.GetValues(); 624var rbuffIndices = rbuff.GetIndices(); 1232var indices = _inputValue.GetIndices();
Deprecated\Instances\HeaderSchema.cs (2)
166var nameValues = names.GetValues(); 175var nameIndices = names.GetIndices();
Deprecated\Vector\VBufferMathUtils.cs (18)
21var aValues = a.GetValues(); 30public static float NormSquared(ReadOnlySpan<float> a) 50var aValues = a.GetValues(); 62var aValues = a.GetValues(); 73var aValues = a.GetValues(); 103var srcValues = src.GetValues(); 143var srcValues = src.GetValues(); 171var srcValues = src.GetValues(); 197var srcValues = src.GetValues(); 245var srcValues = src.GetValues(); 267var dstIndices = dst.GetIndices(); 278var srcIndices = src.GetIndices(); 295var dstValues = dst.GetValues(); 339var srcIndices = src.GetIndices(); 412var srcValues = src.GetValues(); 423var srcIndices = src.GetIndices(); 448var srcValues = src.GetValues(); 459var srcIndices = src.GetIndices();
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();
Evaluators\EvaluatorUtils.cs (3)
694var srcValues = src.GetValues(); 711var srcIndices = src.GetIndices(); 1451var values = labelNames.GetValues();
Evaluators\MultiOutputRegressionEvaluator.cs (4)
248public void Update(ReadOnlySpan<float> score, ReadOnlySpan<float> label, int length, float weight) 342ReadOnlySpan<float> label; 350ReadOnlySpan<float> score;
Evaluators\QuantileRegressionEvaluator.cs (7)
145var scoreValues = score.GetValues(); 160var scoreIndices = score.GetIndices(); 176var lossValues = loss.GetValues(); 186var lossIndices = loss.GetIndices(); 198var srcValues = src.GetValues(); 340var quantiles = _quantiles.GetValues(); 373var quantiles = _quantiles.GetValues();
Transforms\ColumnConcatenatingTransformer.cs (2)
745var bufferValues = buffer.GetValues(); 758var bufferIndices = buffer.GetIndices();
Transforms\Hashing.cs (19)
1042var srcValues = src.GetValues(); 1064var srcValues = src.GetValues(); 1079var srcIndices = src.GetIndices(); 1096var srcValues = src.GetValues(); 1118var srcValues = src.GetValues(); 1133var srcIndices = src.GetIndices(); 1160var srcValues = src.GetValues(); 1175var srcIndices = src.GetIndices(); 1190var srcValues = src.GetValues(); 1198var srcIndices = src.GetIndices(); 1224var srcValues = src.GetValues(); 1239var srcIndices = src.GetIndices(); 1254var srcValues = src.GetValues(); 1262var srcIndices = src.GetIndices(); 1676var valueValues = _value.GetValues(); 1677var hashValues = _hash.GetValues(); 1721var valueValues = _value.GetValues(); 1722var hashValues = _hash.GetValues(); 1735var hashIndices = _hash.GetIndices();
Transforms\InvertHashUtils.cs (1)
435var span = text.Span;
Transforms\KeyToValue.cs (6)
343private void MapKey(in TKey src, ReadOnlySpan<TValue> values, ref TValue dst) 389var srcValues = src.GetValues(); 392var keyValues = _values.GetValues(); 417var srcIndices = src.GetIndices(); 442var srcIndices = src.GetIndices(); 478var keyValues = _values.GetValues();
Transforms\KeyToVector.cs (3)
530var values = src.GetValues(); 575var values = src.GetValues(); 595var indices = src.GetIndices();
Transforms\NormalizeColumn.cs (3)
935var values = _buffer.GetValues(); 941var indices = _buffer.GetIndices(); 942var values = _buffer.GetValues();
Transforms\NormalizeColumnDbl.cs (18)
358var values = value.GetValues(); 374var indices = value.GetIndices(); 469var values = value.GetValues(); 484var indices = value.GetIndices(); 827var values = input.GetValues(); 843var indices = input.GetIndices(); 857var values = input.GetValues(); 878var indices = input.GetIndices(); 902var values = input.GetValues(); 923var indices = input.GetIndices(); 1101var values = input.GetValues(); 1126var indices = input.GetIndices(); 1312var values = input.GetValues(); 1342var indices = input.GetIndices(); 1364var indices = input.GetIndices(); 1936var values = buffer.GetValues(); 1948var indices = buffer.GetIndices(); 2144var span = val.GetValues();
Transforms\NormalizeColumnSng.cs (18)
358var values = value.GetValues(); 375var indices = value.GetIndices(); 470var values = value.GetValues(); 486var indices = value.GetIndices(); 984var values = input.GetValues(); 1001var indices = input.GetIndices(); 1015var values = input.GetValues(); 1037var indices = input.GetIndices(); 1061var values = input.GetValues(); 1083var indices = input.GetIndices(); 1261var values = input.GetValues(); 1287var indices = input.GetIndices(); 1473var values = input.GetValues(); 1504var indices = input.GetIndices(); 1526var indices = input.GetIndices(); 2099var values = buffer.GetValues(); 2112var indices = buffer.GetIndices(); 2306var span = val.GetValues();
Transforms\ValueMapping.cs (1)
922var values = src.GetValues();
Transforms\ValueToKeyMappingTransformerImpl.cs (7)
398var values = _val.GetValues(); 418var valIndices = _val.GetIndices(); 792var srcValues = src.GetValues(); 963var values = src.GetValues(); 964var indices = src.GetIndices(); 1001var values = src.GetValues(); 1013var indices = src.GetIndices();
Utilities\SlotDropper.cs (3)
124var srcValues = src.GetValues(); 154var indices = dst.GetIndices(); 155var srcIndices = src.GetIndices();
Microsoft.ML.DataView (8)
parent\Microsoft.ML.Core\Utilities\ArrayUtils.cs (1)
49public static int FindIndexSorted(ReadOnlySpan<int> input, int min, int lim, int value)
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)
EnsembleUtils.cs (2)
53var srcValues = src.GetValues(); 89var srcIndices = src.GetIndices();
Microsoft.ML.EntryPoints (1)
FeatureCombiner.cs (1)
132var metadataValues = metadata.GetValues();
Microsoft.ML.FastTree (18)
BinFile\BinFinder.cs (1)
56var explicitValues = values.GetValues();
FastTree.cs (9)
1008private static IEnumerable<KeyValuePair<int, int>> NonZeroBinnedValuesForSparse(ReadOnlySpan<double> values, ReadOnlySpan<int> indices, double[] binUpperBounds) 1206var valuesValues = values.GetValues(); 1230var valuesIndices = values.GetIndices(); 1310var srcValues = src.GetValues(); 1506var doubleTempValues = doubleTemp.GetValues(); 1507var doubleTempIndices = doubleTemp.GetIndices(); 1589var tempValues = temp.GetValues(); 1590var tempIndices = temp.GetIndices();
GamModelParameters.cs (4)
207var featuresValues = features.GetValues(); 219var featuresIndices = features.GetIndices(); 239var featuresValues = features.GetValues(); 250var featuresIndices = features.GetIndices();
TreeEnsemble\InternalRegressionTree.cs (3)
838private int GetLeafCore(ReadOnlySpan<float> nonBinnedInstance, List<int> path = null, int root = 0) 916private int GetLeafCore(ReadOnlySpan<int> featIndices, ReadOnlySpan<float> featValues, List<int> path = null, int root = 0)
Utils\LinqExtensions.cs (1)
26public static int ArgMax<T>(this ReadOnlySpan<T> span) where T : IComparable<T>
Microsoft.ML.ImageAnalytics (4)
ImagePixelExtractor.cs (1)
365ReadOnlySpan<byte> pixelData = src.Pixels;
MLImage.cs (2)
81public static unsafe MLImage CreateFromPixels(int width, int height, MLPixelFormat pixelFormat, ReadOnlySpan<byte> imagePixelData) 158public unsafe ReadOnlySpan<byte> Pixels
VectorToImageTransform.cs (1)
366var values = dense.GetValues();
Microsoft.ML.IntegrationTests (1)
ModelFiles.cs (1)
494private int FindIndex(ReadOnlySpan<ReadOnlyMemory<char>> values, string slotName)
Microsoft.ML.KMeansClustering (2)
KMeansModelParameters.cs (2)
186var values = _centroids[i].GetValues(); 244var values = _centroids[i].GetValues();
Microsoft.ML.LightGbm (12)
LightGbmTrainerBase.cs (12)
849private void GetFeatureValueDense(IChannel ch, FloatLabelCursor cursor, CategoricalMetaData catMetaData, Random rand, out ReadOnlySpan<float> featureValues) 887CategoricalMetaData catMetaData, Random rand, out ReadOnlySpan<int> indices, 888out ReadOnlySpan<float> featureValues, out int cnt) 971GetFeatureValueDense(ch, cursor, catMetaData, rand, out ReadOnlySpan<float> featureValues); 995GetFeatureValueSparse(ch, cursor, catMetaData, rand, out ReadOnlySpan<int> featureIndices, out ReadOnlySpan<float> featureValues, out int cnt); 1143GetFeatureValueDense(ch, cursor, catMetaData, rand, out ReadOnlySpan<float> featureValues); 1150GetFeatureValueSparse(ch, cursor, catMetaData, rand, out ReadOnlySpan<int> indices, out ReadOnlySpan<float> featureValues, out int cnt); 1185GetFeatureValueDense(ch, cursor, catMetaData, rand, out ReadOnlySpan<float> featureValues); 1198GetFeatureValueSparse(ch, cursor, catMetaData, rand, out ReadOnlySpan<int> featureIndices, out ReadOnlySpan<float> featureValues, out int cnt);
Microsoft.ML.Mkl.Components (9)
OlsLinearRegression.cs (3)
837var weightValues = Weight.GetValues(); 915var coeffs = Weight.GetValues(); 930var coeffs = Weight.GetValues();
SymSgdClassificationTrainer.cs (1)
424public bool AddToStorage(ReadOnlySpan<T> instArray)
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)
OnnxUtils.cs (1)
554public static NamedOnnxValue CreateNamedOnnxValue<T>(string name, ReadOnlySpan<T> data, OnnxShape shape)
Microsoft.ML.PCA (1)
PcaTransformer.cs (1)
438var featureValues = features.GetValues();
Microsoft.ML.Predictor.Tests (2)
TestTransposer.cs (2)
45var tempValues = temp.GetValues(); 46var tempIndices = temp.GetIndices();
Microsoft.ML.Samples (11)
Dynamic\NgramExtraction.cs (1)
74var slots = names.GetValues();
Dynamic\Transforms\Conversion\Hash.cs (2)
83var indices = slotNames.GetIndices(); 84var categoryNames = slotNames.GetValues();
Dynamic\Transforms\Conversion\HashWithOptions.cs (2)
97var indices = slotNames.GetIndices(); 98var categoryNames = slotNames.GetValues();
Dynamic\Transforms\ImageAnalytics\ConvertToGrayScaleInMemory.cs (2)
42ReadOnlySpan<byte> imageData = image.Pixels; 50ReadOnlySpan<byte> grayImageData = grayImage.Pixels;
Dynamic\Transforms\Text\ProduceHashedNgrams.cs (1)
80var slots = slotNames.GetValues();
Dynamic\Transforms\Text\ProduceHashedWordBags.cs (1)
81var slots = slotNames.GetValues();
Dynamic\Transforms\Text\ProduceNgrams.cs (1)
87var slots = slotNames.GetValues();
Dynamic\Transforms\Text\ProduceWordBags.cs (1)
87var slots = slotNames.GetValues();
Microsoft.ML.StandardTrainers (25)
Optimizer\SgdOptimizer.cs (6)
401var xValues = x.GetValues(); 405var xprevValues = xprev.GetValues(); 416var xIndices = x.GetIndices(); 439var xprevIndices = xprev.GetIndices(); 463var xIndices = x.GetIndices(); 464var xprevIndices = xprev.GetIndices();
Standard\LogisticRegression\LbfgsPredictorBase.cs (1)
775var values = xDense.GetValues();
Standard\LogisticRegression\LogisticRegression.cs (1)
235var currentWeightsValues = CurrentWeights.GetValues();
Standard\LogisticRegression\MulticlassLogisticRegression.cs (5)
203ReadOnlySpan<ReadOnlyMemory<char>> values = labelNames.GetValues(); 695var fwValues = fw.GetValues(); 709var fwIndices = fw.GetIndices(); 723var fwValues = fw.GetValues(); 758var values = vector.GetValues();
Standard\ModelStatistics.cs (7)
319var coeffStdErrorValues = _coeffStdError.GetValues(); 372ReadOnlySpan<int> stdErrorIndices = _coeffStdError.GetIndices(); 373ReadOnlySpan<float> coeffStdErrorValues = _coeffStdError.GetValues(); 394ReadOnlySpan<int> stdErrorIndices2 = _coeffStdError.GetIndices(); 410ReadOnlySpan<float> stdErrorValues = _coeffStdError.GetValues(); 415ReadOnlySpan<int> stdErrorIndices = _coeffStdError.GetIndices(); 438ReadOnlySpan<int> stdErrorIndices = _coeffStdError.GetIndices();
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (2)
600var srcValues = src.GetValues(); 601var srcIndices = src.GetIndices();
Standard\SdcaBinary.cs (1)
878var featureValues = features.GetValues();
Standard\SdcaMulticlass.cs (2)
296var featureValues = features.GetValues(); 327var featureValues = features.GetValues();
Microsoft.ML.TensorFlow.Tests (20)
TensorFlowEstimatorTests.cs (3)
324var aValues = avalue.GetValues(); 325var bValues = bvalue.GetValues(); 326var cValues = cvalue.GetValues();
TensorflowTests.cs (17)
203var cValues = c.GetValues(); 312var oneDimValues = oneDim.GetValues(); 316var twoDimValues = twoDim.GetValues(); 320var threeDimValues = threeDim.GetValues(); 324var fourDimValues = fourDim.GetValues(); 328var fourDimKnownValues = fourDimKnown.GetValues(); 453var f64Values = f64.GetValues(); 456var f32Values = f32.GetValues(); 459var i64Values = i64.GetValues(); 462var i32Values = i32.GetValues(); 465var i16Values = i16.GetValues(); 468var i8Values = i8.GetValues(); 471var u64Values = u64.GetValues(); 474var u32Values = u32.GetValues(); 477var u16Values = u16.GetValues(); 480var u8Values = u8.GetValues(); 483var bValues = b.GetValues();
Microsoft.ML.TestFrameworkCommon (4)
TestCommon.cs (4)
144var v1Values = v1.GetValues(); 145var v2Values = v2.GetValues(); 162var v1Indices = v1.GetIndices(); 163var v2Indices = v2.GetIndices();
Microsoft.ML.Tests (26)
ImagesTests.cs (22)
210ReadOnlySpan<byte> imageData = image.Pixels; 260ReadOnlySpan<byte> imageData = grayImage.Pixels; 283ReadOnlySpan<byte> imageData1 = transformedSingleImage.GrayImage.Pixels; 375ReadOnlySpan<byte> restoredImageData = restoredImage.Pixels; 383ReadOnlySpan<byte> croppedImageData = croppedImage.Pixels; 450ReadOnlySpan<byte> restoredImageData = restoredImage.Pixels; 458ReadOnlySpan<byte> croppedImageData = croppedImage.Pixels; 526ReadOnlySpan<byte> restoredImageData = restoredImage.Pixels; 534ReadOnlySpan<byte> croppedImageData = croppedImage.Pixels; 601ReadOnlySpan<byte> restoredImageData = restoredImage.Pixels; 609ReadOnlySpan<byte> croppedImageData = croppedImage.Pixels; 676ReadOnlySpan<byte> restoredImageData = restoredImage.Pixels; 684ReadOnlySpan<byte> croppedImageData = croppedImage.Pixels; 752ReadOnlySpan<byte> restoredImageData = restoredImage.Pixels; 760ReadOnlySpan<byte> croppedImageData = croppedImage.Pixels; 827ReadOnlySpan<byte> restoredImageData = restoredImage.Pixels; 835ReadOnlySpan<byte> croppedImageData = croppedImage.Pixels; 903ReadOnlySpan<byte> restoredImageData = restoredImage.Pixels; 911ReadOnlySpan<byte> croppedImageData = croppedImage.Pixels; 977ReadOnlySpan<byte> restoredImageData = restoredImage.Pixels; 985ReadOnlySpan<byte> croppedImageData = croppedImage.Pixels; 1030ReadOnlySpan<byte> imageData = image.Pixels;
Scenarios\Api\TestApi.cs (1)
281var span = new ReadOnlySpan<char>(parts[0].ToCharArray());
TextLoaderTests.cs (1)
799var vals4 = featureValue.GetValues();
Transformers\CountTargetEncodingTests.cs (2)
149var values = buffer.GetValues(); 150var values1 = buffer1.GetValues();
Microsoft.ML.TimeSeries (2)
AdaptiveSingularSpectrumSequenceModeler.cs (2)
1506var meanForecast = forecast.PointForecast.GetValues(); 1508var sdForecast = forecast.ForecastStandardDeviation.GetValues();
Microsoft.ML.Tokenizers (294)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\RegexGenerator.g.cs (27)
255protected override void Scan(ReadOnlySpan<char> inputSpan) 270private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 288private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 297ReadOnlySpan<char> slice = inputSpan.Slice(pos); 705protected override void Scan(ReadOnlySpan<char> inputSpan) 720private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 738private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 745ReadOnlySpan<char> slice = inputSpan.Slice(pos); 1079protected override void Scan(ReadOnlySpan<char> inputSpan) 1094private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 1112private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 1131ReadOnlySpan<char> slice = inputSpan.Slice(pos); 1914protected override void Scan(ReadOnlySpan<char> inputSpan) 1929private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 1954private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 1958ReadOnlySpan<char> slice = inputSpan.Slice(pos); 2044protected override void Scan(ReadOnlySpan<char> inputSpan) 2059private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 2077private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 2082ReadOnlySpan<char> slice = inputSpan.Slice(pos); 2177protected override void Scan(ReadOnlySpan<char> inputSpan) 2192private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 2217private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 2221ReadOnlySpan<char> slice = inputSpan.Slice(pos); 2256internal static int IndexOfAnyExceptWhiteSpace(this ReadOnlySpan<char> span) 2282internal static int IndexOfNonAsciiOrAny_A2156A68B3FF2CEFCBABF7078C1AEC356AC590A34A9D31C18E0C21F77ECF6097(this ReadOnlySpan<char> span) 2322ReadOnlySpan<byte> ascii = new byte[]
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 (26)
436protected override EncodeResults<EncodedToken> EncodeToTokens(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings) 451out ReadOnlySpan<char> textSpanToEncode, 489protected override EncodeResults<int> EncodeToIds(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings) 510out ReadOnlySpan<char> textSpanToEncode, 556protected override int CountTokens(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings) 577out ReadOnlySpan<char> textSpanToEncode, 626protected override int GetIndexByTokenCount(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings, bool fromEnd, out string? normalizedText, out int tokenCount) 637private int CountTokens(string? text, ReadOnlySpan<char> textSpan, bool considerPreTokenization, bool considerNormalization, out string? normalizedText, out int charsConsumed, int maxTokenCount = int.MaxValue) 659out ReadOnlySpan<char> textSpanToEncode, 690private int LastIndexOf(string? text, ReadOnlySpan<char> textSpan, int maxTokenCount, bool considerPreTokenization, bool considerNormalization, out string? normalizedText, out int tokenCount) 712out ReadOnlySpan<char> textSpanToEncode, 746private int? MapTokenToId(ReadOnlySpan<char> token) => _vocab.TryGetValue(token, out int value) ? value : null; 857ReadOnlySpan<char> span = s.AsSpan(); 947ReadOnlySpan<char> sSpan = s.AsSpan(); 1015ReadOnlySpan<char> specialTokenSpan = specialToken.AsSpan(); 1033ReadOnlySpan<char> span = s.AsSpan(); 1172ReadOnlySpan<char> line = content.AsSpan(lineStart, lineLength); 1206internal Word MergeWord(ReadOnlySpan<char> w, ref PriorityQueue<Merge>? priorityQueue) 1213scoped ReadOnlySpan<char> s; 1321internal void WordToTokens(ref Word word, List<EncodedToken> tokens, int offset, ReadOnlySpan<int> mapping) => word.ToTokens(VocabReverse, tokens, offset, mapping); 1323internal void EncodeWithCache(ReadOnlySpan<char> text, List<EncodedToken> tokens, int offset, ref PriorityQueue<Merge>? priorityQueue) 1331scoped ReadOnlySpan<char> textSpan = text; 1432private int EncodeToIdsWithCache(ReadOnlySpan<char> text, List<int>? accumulatedIds, int maxTokens, out int charsConsumed, ref PriorityQueue<Merge>? priorityQueue) 1443scoped ReadOnlySpan<char> textSpan = text; 1512internal int EncodeToIdsFromEndWithCache(ReadOnlySpan<char> text, IList<int>? accumulatedIds, int maxTokens, out int textIndex, ref PriorityQueue<Merge>? priorityQueue) 1523scoped 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\SentencePieceBaseModel.cs (6)
69ReadOnlySpan<byte> precompiledCharsmap, bool removeExtraWhitespaces, 150ReadOnlySpan<char> textSpan, 158ReadOnlySpan<char> textSpan, 168ReadOnlySpan<char> textSpan, 178ReadOnlySpan<char> textSpan, 718ReadOnlySpan<char> tokenSpan = token.AsSpan();
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 (16)
125protected override EncodeResults<EncodedToken> EncodeToTokens(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings) 158public IReadOnlyList<EncodedToken> EncodeToTokens(ReadOnlySpan<char> text, out string? normalizedText, bool addBeginningOfSentence, bool addEndOfSentence, bool considerPreTokenization = true, bool considerNormalization = true) 169protected override EncodeResults<int> EncodeToIds(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings) 200public IReadOnlyList<int> EncodeToIds(ReadOnlySpan<char> text, bool addBeginningOfSentence, bool addEndOfSentence, bool considerPreTokenization = true, bool considerNormalization = true) 230public IReadOnlyList<int> EncodeToIds(ReadOnlySpan<char> text, bool addBeginningOfSentence, bool addEndOfSentence, int maxTokenCount, out string? normalizedText, out int charsConsumed, bool considerPreTokenization = true, bool considerNormalization = true) 240protected override int CountTokens(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings) 253=> _model.CountTokens(text, ReadOnlySpan<char>.Empty, addBeginningOfSentence, addEndOfSentence, considerNormalization, out _, out _, int.MaxValue); 264public int CountTokens(ReadOnlySpan<char> text, bool addBeginningOfSentence, bool addEndOfSentence, bool considerPreTokenization = true, bool considerNormalization = true) 280=> _model.CountTokens(text, ReadOnlySpan<char>.Empty, addBeginningOfSentence, addEndOfSentence, considerNormalization, out normalizedText, out charsConsumed, maxTokenCount); 294public int CountTokens(ReadOnlySpan<char> text, bool addBeginningOfSentence, bool addEndOfSentence, bool considerPreTokenization, bool considerNormalization, out string? normalizedText, out int charsConsumed, int maxTokenCount = int.MaxValue) 313protected override int GetIndexByTokenCount(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings, bool fromEnd, out string? normalizedText, out int tokenCount) 342tokenCount = _model.CountTokens(text, ReadOnlySpan<char>.Empty, addBeginningOfSentence, addEndOfSentence, considerNormalization, out normalizedText, out int charsConsumed, maxTokenCount); 362public int GetIndexByTokenCount(ReadOnlySpan<char> text, bool addBeginningOfSentence, bool addEndOfSentence, int maxTokenCount, out string? normalizedText, out int tokenCount, bool considerPreTokenization = true, bool considerNormalization = true) 383=> _model.GetIndexByTokenCountFromEnd(text, ReadOnlySpan<char>.Empty, addBeginningOfSentence, addEndOfSentence, maxTokenCount, considerNormalization, out normalizedText, out tokenCount); 399public int GetIndexByTokenCountFromEnd(ReadOnlySpan<char> text, bool addBeginningOfSentence, bool addEndOfSentence, int maxTokenCount, bool considerNormalization, out string? normalizedText, out int tokenCount) 503ReadOnlySpan<byte> precompiledCharsMap = default,
Model\SentencePieceUnigramModel.cs (33)
110ReadOnlySpan<byte> precompiledCharsmap, 133ReadOnlySpan<byte> precompiledCharsmap, 154ReadOnlySpan<byte> precompiledCharsmap, 375public override IReadOnlyList<EncodedToken> EncodeToTokens(string? text, ReadOnlySpan<char> textSpan, out string? normalizedText, bool addBeginningOfSentence, bool addEndOfSentence, bool considerNormalization) 377ReadOnlySpan<char> textToEncode = string.IsNullOrEmpty(text) ? textSpan : text.AsSpan(); 419private void StoreNormalizedTextFromEnd(ReadOnlySpan<char> text, ref char[] normalizedString, ref int normalizedStringCountFromEnd) 434private void StoreNormalizedTextFromEnd(ReadOnlySpan<byte> utf8Bytes, ref char[] normalizedString, ref int normalizedStringCountFromEnd) 454private void StoreNormalizedText(ReadOnlySpan<char> text, ref char[] normalizedString, ref int normalizedStringIndex) 468private void StoreNormalizedText(ReadOnlySpan<byte> normalizationSpan, ref char[] normalizedString, ref int normalizedStringIndex) 483ReadOnlySpan<char> text, 535ReadOnlySpan<char> text, 563ReadOnlySpan<char> text, 602ReadOnlySpan<char> text, 687private void FallbackToByteEncoding(ReadOnlySpan<char> normalizationSpan, List<EncodedToken> tokens, int insertionStartPosition) 746private void Encode(ReadOnlySpan<byte> normalized, Span<BestPathNode> bestPathEndsAt) 828ReadOnlySpan<char> textSpan, 836ReadOnlySpan<char> textToEncode = string.IsNullOrEmpty(text) ? textSpan : text.AsSpan(); 899private void StoreNormalizedText(ReadOnlySpan<char> text, bool considerNormalization, int[] buffer, ref char[]? normalizedString, ref int normalizedStringIndex) 919ReadOnlySpan<char> text, 991ReadOnlySpan<char> text, 1012private void FallbackToByteEncoding(List<int> ids, ReadOnlySpan<byte> normalizationSpan, (int IdsIndex, int Utf8Index, int Utf8Length)[] unknownTokensTracking, int unknownTokensCount) 1047ReadOnlySpan<char> text, 1173ReadOnlySpan<byte> utf8UnknownBytes = normalizationSpan.Slice(unknownTokensTracking![j].Utf8Index, unknownTokensTracking![j].Utf8Length); 1228ReadOnlySpan<char> textSpan, 1236ReadOnlySpan<char> textToEncode = string.IsNullOrEmpty(text) ? textSpan : text.AsSpan(); 1300ReadOnlySpan<char> text, 1371ReadOnlySpan<char> text, 1393ReadOnlySpan<char> text, 1508ReadOnlySpan<char> textSpan, 1516ReadOnlySpan<char> textToEncode = string.IsNullOrEmpty(text) ? textSpan : text.AsSpan(); 1574ReadOnlySpan<char> text, 1636ReadOnlySpan<char> text, 1654ReadOnlySpan<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\Word.cs (1)
292public void ToTokens(SortedDictionary<int, string> vocabReverse, List<EncodedToken> tokens, int offset, ReadOnlySpan<int> mapping)
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\BertNormalizer.cs (1)
126public override string Normalize(ReadOnlySpan<char> original)
Normalizer\LowerCaseNormalizer.cs (1)
38public override string Normalize(ReadOnlySpan<char> original)
Normalizer\Normalizer.cs (1)
26public abstract string Normalize(ReadOnlySpan<char> original);
Normalizer\SentencePieceNormalizationStep.cs (1)
475public PrecompiledStep(ReadOnlySpan<byte> precompiledCharsMap)
Normalizer\SentencePieceNormalizer.cs (10)
48ReadOnlySpan<byte> precompiledCharsMap, 140public override string Normalize(ReadOnlySpan<char> original) 152private string NormalizeCore(ReadOnlySpan<char> original) 249private void InsertDummyPrefix(ReadOnlySpan<char> original, ref int startIndex, int endIndex, Span<char> span, ref int bufferIndex) 321private int NormalizePrefix(ReadOnlySpan<byte> input, out Memory<byte> normalizedPrefix) 383internal int Normalize(ReadOnlySpan<byte> input, ref Span<byte> normalized, ref byte[]? poolArray) 416private int NormalizeCore(ReadOnlySpan<byte> input, ref Span<byte> normalized, ref byte[]? poolArray) 439ReadOnlySpan<byte> normalizedByte = normalizedPrefix.Length == 0 ? input.Slice(0, p) : normalizedPrefix.Span; 470ReadOnlySpan<byte> sp = normalizedPrefix.Length == 0 ? input.Slice(0, p) : normalizedPrefix.Span; 567private unsafe void DecodePrecompiledCharsMap(ReadOnlySpan<byte> blob, out DoubleArrayUnit[]? trieBlob, out byte[]? normalized)
Normalizer\UpperCaseNormalizer.cs (1)
38public override string Normalize(ReadOnlySpan<char> original)
PreTokenizer\CompositePreTokenizer.cs (1)
144public override IEnumerable<(int Offset, int Length)> PreTokenize(ReadOnlySpan<char> text)
PreTokenizer\PreTokenizer.cs (3)
30public abstract IEnumerable<(int Offset, int Length)> PreTokenize(ReadOnlySpan<char> text); 133internal static IEnumerable<(int Offset, int Length)> SplitText(ReadOnlySpan<char> text, Regex regex) 178internal static bool TryGetMatch(Regex regex, scoped ReadOnlySpan<char> text, int beginning, int length, out (int offset, int length) match)
PreTokenizer\RegexPreTokenizer.cs (1)
96public override IEnumerable<(int Offset, int Length)> PreTokenize(ReadOnlySpan<char> text)
PreTokenizer\RobertaPreTokenizer.cs (1)
40public override IEnumerable<(int Offset, int Length)> PreTokenize(ReadOnlySpan<char> text)
SentencepieceModel.cs (2)
166internal ReadOnlySpan<byte> Span => data is null ? ReadOnlySpan<byte>.Empty : data.AsSpan(offset, length);
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\BytePairEncoder.cs (2)
16public static (int Id, int TokenIndex, int TokenLength)[] BytePairEncode(ReadOnlyMemory<byte> mergingBytes, IReadOnlyDictionary<ReadOnlyMemory<byte>, int> ranks, ReadOnlySpan<int> indexMappingSpan) 156private static (int Id, int TokenIndex, int TokenLength)[] BytePairEncodeLarge(ReadOnlyMemory<byte> mergingBytes, IReadOnlyDictionary<ReadOnlyMemory<byte>, int> ranks, ReadOnlySpan<int> indexMappingSpan)
Utils\DoubleArrayTrie.cs (3)
338public void Insert(ReadOnlySpan<byte> key, int length, int value) 1065public int CommonPrefixSearch(ReadOnlySpan<byte> key, Span<DoubleArrayResultPair> results, int nodePos = 0) 1099public int Traverse(ReadOnlySpan<byte> key, ref int nodePos, ref int keyPos, int length)
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.netcoreapp.cs (7)
56internal static int GetHashCode(ReadOnlySpan<char> span) => string.GetHashCode(span); 58internal static unsafe int GetUtf8Bytes(ReadOnlySpan<char> source, Span<byte> destination) 61internal static unsafe bool TryGetUtf8Bytes(ReadOnlySpan<char> source, Span<byte> destination, out int bytesWritten) 64internal static string GetString(ReadOnlySpan<byte> utf8Bytes) 67internal static int GetChars(ReadOnlySpan<byte> bytes, Span<char> chars) 72internal static void Replace(ReadOnlySpan<char> source, Span<char> destination, char oldValue, char newValue) => source.Replace(destination, oldValue, newValue); 82internal static int EncodeCodePointToUtf8(ReadOnlySpan<char> text, int textIndex, ref byte[] destination, ref int bytesIndex)
Utils\LruCache.cs (1)
72public unsafe bool TryGetValue(ReadOnlySpan<char> key, out TValue value)
Utils\StringSpanOrdinalKey.cs (5)
34private ReadOnlySpan<char> Span => Ptr is not null ? 97internal unsafe bool TryGetValue(ReadOnlySpan<char> key, out TValue value) 177public static unsafe bool TryGetValue<TValue>(this Dictionary<StringSpanOrdinalKey, TValue> map, ReadOnlySpan<char> key, out TValue value) 188public static unsafe bool TryGetValue<TValue>(this Dictionary<StringSpanOrdinalKeyPair, TValue> map, ReadOnlySpan<char> key1, ReadOnlySpan<char> key2, out TValue value)
Utils\ValueStringBuilder.cs (6)
116public ReadOnlySpan<char> AsSpan(bool terminate) 137public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 138public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 139public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 165ReadOnlySpan<char> buffer = _chars.Slice(index, _pos - index); 349public void Append(scoped ReadOnlySpan<char> value)
Microsoft.ML.Tokenizers.Tests (23)
NormalizerTests.cs (3)
82public override string Normalize(ReadOnlySpan<char> original) 93private string RemoveQuotes(ReadOnlySpan<char> original, int index) 151public override string Normalize(ReadOnlySpan<char> original)
parent\parent\src\Microsoft.ML.Tokenizers\Utils\DoubleArrayTrie.cs (3)
338public void Insert(ReadOnlySpan<byte> key, int length, int value) 1065public int CommonPrefixSearch(ReadOnlySpan<byte> key, Span<DoubleArrayResultPair> results, int nodePos = 0) 1099public int Traverse(ReadOnlySpan<byte> key, ref int nodePos, ref int keyPos, int length)
parent\parent\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)
parent\parent\src\Microsoft.ML.Tokenizers\Utils\Helpers.netcoreapp.cs (7)
56internal static int GetHashCode(ReadOnlySpan<char> span) => string.GetHashCode(span); 58internal static unsafe int GetUtf8Bytes(ReadOnlySpan<char> source, Span<byte> destination) 61internal static unsafe bool TryGetUtf8Bytes(ReadOnlySpan<char> source, Span<byte> destination, out int bytesWritten) 64internal static string GetString(ReadOnlySpan<byte> utf8Bytes) 67internal static int GetChars(ReadOnlySpan<byte> bytes, Span<char> chars) 72internal static void Replace(ReadOnlySpan<char> source, Span<char> destination, char oldValue, char newValue) => source.Replace(destination, oldValue, newValue); 82internal static int EncodeCodePointToUtf8(ReadOnlySpan<char> text, int textIndex, ref byte[] destination, ref int bytesIndex)
PreTokenizerTests.cs (1)
78public override IEnumerable<(int Offset, int Length)> PreTokenize(ReadOnlySpan<char> text)
TokenizerTests.cs (1)
105protected override EncodeResults<EncodedToken> EncodeToTokens(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings)
Microsoft.ML.TorchSharp (11)
AutoFormerV2\ObjectDetectionMetrics.cs (2)
317var boxes = box.GetValues(); 359var boxes = box.GetValues();
AutoFormerV2\ObjectDetectionTrainer.cs (2)
396var labelValues = labels.GetValues(); 397var boxValues = boxes.GetValues();
Utils\DataUtils.cs (7)
77public static T[] Concat<T>(ReadOnlySpan<T> s1, ReadOnlySpan<T> s2) 85public static T[] Concat<T>(ReadOnlySpan<T> s1, ReadOnlySpan<T> s2, ReadOnlySpan<T> s3) 94public static T[] Concat<T>(ReadOnlySpan<T> s1, T s2) 102public static T[] Concat<T>(ReadOnlySpan<T> s1, T s2, T s3)
Microsoft.ML.Transforms (78)
Dracula\CountTable.cs (2)
26ReadOnlySpan<double> PriorFrequencies { get; } 45public ReadOnlySpan<double> PriorFrequencies => _priorFrequencies;
Dracula\CountTableTransformer.cs (6)
282var values = srcBuffer.GetValues(); 283var indices = srcBuffer.GetIndices(); 656var featureNamesValues = featureNames.GetValues(); 713var srcValues = src.GetValues(); 719var srcValues = src.GetValues(); 720var srcIndices = src.GetIndices();
Dracula\Featurizer.cs (1)
43public ReadOnlySpan<int> SlotCount => _countTables.SlotCount;
Dracula\MultiCountTable.cs (1)
376public ReadOnlySpan<double> PriorFrequencies => _table.PriorFrequencies;
GcnTransform.cs (11)
384var srcValues = src.GetValues(); 395var srcValues = src.GetValues(); 406var srcValues = src.GetValues(); 417var srcValues = src.GetValues(); 475var srcValues = src.GetValues(); 527private static float StdDev(ReadOnlySpan<float> values, int length) 549private static float StdDev(ReadOnlySpan<float> values, int length, float mean) 569private static float L2Norm(ReadOnlySpan<float> values, float mean = 0) 580private static float L1Norm(ReadOnlySpan<float> values, float mean = 0) 591private static float LInfNorm(ReadOnlySpan<float> values, float mean = 0) 598private static float Mean(ReadOnlySpan<float> src, int length)
HashJoiningTransform.cs (1)
430var srcSlotNameValues = srcSlotNames.GetValues();
LearnerFeatureSelection.cs (3)
125var scoresValues = scores.GetValues(); 182var scoresIndices = scores.GetIndices(); 231private static float ComputeThreshold(ReadOnlySpan<float> scores, int topk, out int tiedScoresToKeep)
MissingValueDroppingTransformer.cs (3)
257var srcValues = src.GetValues(); 301var srcValues = src.GetValues(); 342var srcIndices = src.GetIndices();
MissingValueIndicatorTransform.cs (2)
299var values = buffer.GetValues(); 329var indices = buffer.GetIndices();
MissingValueIndicatorTransformer.cs (3)
306var srcValues = src.GetValues(); 319var srcIndices = src.GetIndices(); 330var srcIndices = src.GetIndices();
MissingValueReplacing.cs (5)
260var srcValues = src.GetValues(); 713var srcValues = src.GetValues(); 744var srcIndices = src.GetIndices(); 787var srcValues = src.GetValues(); 818var srcIndices = src.GetIndices();
MissingValueReplacingUtils.cs (3)
220var srcValues = src.GetValues(); 244var srcValues = src.GetValues(); 255var srcIndices = src.GetIndices();
MutualInformationFeatureSelection.cs (6)
729var featureValues = features.GetValues(); 730var labelsValues = _labels.GetValues(); 744var featureIndices = features.GetIndices(); 818var inputValues = input.GetValues(); 844var inputValues = input.GetValues(); 893var inputValues = input.GetValues();
RandomFourierFeaturizing.cs (2)
576var srcValues = src.GetValues(); 577var srcIndices = src.GetIndices();
SvmLight\SvmLightLoader.cs (4)
305var inputValues = input.FeatureKeys.GetValues(); 370var keysValues = keys.GetValues(); 371var valuesValues = values.GetValues(); 690var values = result.GetValues();
Text\LdaSingleBox.cs (6)
195public int LoadDoc(ReadOnlySpan<int> termID, ReadOnlySpan<double> termVal, int termNum, int numVocab) 210public int LoadDocDense(ReadOnlySpan<double> termVal, int termNum, int numVocab) 261public List<KeyValuePair<int, float>> TestDoc(ReadOnlySpan<int> termID, ReadOnlySpan<double> termVal, int termNum, int numBurninIter, bool reset) 292public List<KeyValuePair<int, float>> TestDocDense(ReadOnlySpan<double> termVal, int termNum, int numBurninIter, bool reset)
Text\LdaTransform.cs (3)
425var inputValues = input.GetValues(); 483var srcValues = src.GetValues(); 883var srcValues = src.GetValues();
Text\NgramUtils.cs (2)
75var srcValues = src.GetValues(); 95var srcIndices = src.GetIndices();
Text\StopWordsRemovingTransformer.cs (3)
425var srcValues = src.GetValues(); 916var stopword = word.AsSpan(); 1113var srcValues = src.GetValues();
Text\TextNormalizing.cs (2)
371var srcValues = src.GetValues(); 397var span = src.Span;
Text\TokenizingByCharacters.cs (5)
492var span = src.Span; 519var srcValues = src.GetValues(); 540var span = srcValues[i].Span; 558var srcValues = src.GetValues(); 595var span = srcValues[i].Span;
Text\WordEmbeddingsExtractor.cs (1)
578var srcValues = src.GetValues();
Text\WordTokenizing.cs (1)
292var srcValues = src.GetValues();
UngroupTransform.cs (2)
653var rowValues = row.GetValues(); 661var rowIndices = row.GetIndices();
Microsoft.ML.Vision (2)
ImageClassificationTrainer.cs (2)
878var labelsSpan = MemoryMarshal.Cast<long, byte>(labels); 890var featureSpan = MemoryMarshal.Cast<float, byte>(row.Item2);
Microsoft.NET.Build.Containers (23)
DigestUtils.cs (10)
73internal static void ValidateSupportedDigestFormat(string digest, out string algorithm, out ReadOnlySpan<byte> encodedValue) 101internal static void ValidateDigestContent(string digest, ReadOnlySpan<byte> content) 121ValidateSupportedDigestFormat(digest, out _, out ReadOnlySpan<byte> encoded); 132internal static ReadOnlySpan<byte> GetEncodedValue(string digest) 134ValidateSupportedDigestFormat(digest, out _, out ReadOnlySpan<byte> encodedValue); 147private static string ComputeSha256(ReadOnlySpan<byte> content) 158internal static void ValidateHashValueAsync(ReadOnlySpan<byte> actualHash, ReadOnlySpan<byte> expectedHash) 169internal static bool TryParseDigest(string digest, out string algorithm, out ReadOnlySpan<byte> encodedValue) => 175out ReadOnlySpan<byte> encodedValue,
Exceptions\InvalidDigestException.cs (2)
15public static void ThrowIfMismatched(ReadOnlySpan<byte> expected, ReadOnlySpan<byte> actual)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\RegexGenerator.g.cs (7)
73protected override void Scan(ReadOnlySpan<char> inputSpan) 91private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 102ReadOnlySpan<char> slice = inputSpan.Slice(pos); 136private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 142ReadOnlySpan<char> slice = inputSpan.Slice(pos); 262ReadOnlySpan<byte> ascii = WordCharBitmap; 281private static ReadOnlySpan<byte> WordCharBitmap => new byte[]
Layer.cs (3)
269private static ReadOnlySpan<byte> NormalizedPaxHeaderName => "./PaxHeaders/."u8; 298public override void Write(ReadOnlySpan<byte> buffer) 319private void WriteCore(ReadOnlySpan<byte> buffer)
Registry\Registry.cs (1)
411var expectedHash = DigestUtils.GetEncodedValue(descriptor.Digest);
Microsoft.NET.Build.Tasks (2)
parent\parent\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestReader.SystemTextJson.cs (1)
38static ReadOnlySpan<byte> utf8Bom => new byte[] { 0xEF, 0xBB, 0xBF };
src\sdk\src\Common\EnvironmentVariableNames.cs (1)
104var span = runtimeIdentifier.AsSpan(archStart, (archEnd > 0 ? archEnd : runtimeIdentifier.Length) - archStart);
Microsoft.NET.HostModel (13)
AppHost\BinaryUtils.cs (6)
14ReadOnlySpan<byte> searchPattern, 51private static unsafe void Pad0(ReadOnlySpan<byte> searchPattern, ReadOnlySpan<byte> patternToReplace, byte* bytes, int offset) 77internal static unsafe int SearchInFile(MemoryMappedViewAccessor accessor, ReadOnlySpan<byte> searchPattern) 95private static int[] ComputeKMPFailureFunction(ReadOnlySpan<byte> pattern) 131private static unsafe int KMPSearch(ReadOnlySpan<byte> pattern, byte* bytes, long bytesLength)
AppHost\ElfUtils.cs (1)
13private static ReadOnlySpan<byte> ElfMagic => "\u007f"u8 + "ELF"u8;
AppHost\PlaceHolderNotFoundInAppHostException.cs (1)
19public PlaceHolderNotFoundInAppHostException(ReadOnlySpan<byte> pattern)
Bundle\Bundler.cs (2)
237internal static ReadOnlySpan<byte> BundleHeaderPlaceholder => [ 248internal static ReadOnlySpan<byte> BundleHeaderSignature => BundleHeaderPlaceholder.Slice(8);
ComHost\TypeLibReader.cs (2)
39private static Guid FindGuid(ReadOnlySpan<byte> fileContents) 58var span = new ReadOnlySpan<byte>(tlbBytes);
src\runtime\src\coreclr\tools\Common\MachO\BinaryFormat\NameBuffer.cs (1)
24private NameBuffer(ReadOnlySpan<byte> nameBytes)
Microsoft.Net.Http.Headers (15)
ContentDispositionHeaderValue.cs (11)
33private static ReadOnlySpan<byte> MimePrefix => "\"=?utf-8?B?"u8; 34private static ReadOnlySpan<byte> MimeSuffix => "?=\""u8; 589var span = processedInput.AsSpan(); 597var inner = span[3..^3]; 603var encodingName = inner[..firstSeparator]; 604var rest = inner[(firstSeparator + 1)..]; 610var encodingType = rest[..secondSeparator]; 611var encodedData = rest[(secondSeparator + 1)..]; 644var value = input.AsSpan(); 646var remaining = value; 675var remaining = input.AsSpan();
HeaderUtilities.cs (1)
699var inputSpan = input.AsSpan();
SetCookieHeaderValue.cs (1)
323private static void Append(ref Span<char> span, ReadOnlySpan<char> other)
src\aspnetcore\src\Shared\HttpRuleParser.cs (2)
67var subspan = input.AsSpan(startIndex); 222ReadOnlySpan<char> inputSpan = input.AsSpan();
Microsoft.NET.ProjectData (3)
CacheFileReader.cs (3)
336 ReadOnlySpan<char> value = line.AsSpan(VersionLinePrefix.Length); 338 ReadOnlySpan<char> majorSpan = dot >= 0 ? value[..dot] : value; 353 ReadOnlySpan<char> value = versionHeader.AsSpan(VersionLinePrefix.Length);
Microsoft.NET.ProjectData.Generators (2)
DataModelSchemaGenerator.cs (2)
503 ReadOnlySpan<char> version = value.AsSpan(Prefix.Length); 513 private static bool TryParseNonNegativeInteger(ReadOnlySpan<char> value)
Microsoft.NET.ProjectData.Tasks (23)
ForwardCompat.cs (19)
191 ReadOnlySpan<char> line = text.AsSpan(pos, trimmedEnd - pos); 232 internal static bool ExistingHasNewerMinor(ReadOnlySpan<byte> existingContent, ReadOnlySpan<byte> candidateContent, int currentMajor) 260 ReadOnlySpan<byte> existingContent, 261 ReadOnlySpan<byte> candidateContent, 295 private static bool TryReadVersionHeader(ReadOnlySpan<byte> text, out int major, out int minor) 299 ReadOnlySpan<byte> text, 320 ReadOnlySpan<byte> line = text.Slice(pos, trimmedEnd - pos); 350 private static bool TryParseVersion(ReadOnlySpan<byte> versionLine, out int major, out int minor) 357 ReadOnlySpan<byte> value = versionLine.Slice(VersionLinePrefixUtf8.Length); 359 ReadOnlySpan<byte> majorPart = dot >= 0 ? value.Slice(0, dot) : value; 360 ReadOnlySpan<byte> minorPart = dot >= 0 ? value.Slice(dot + 1) : "0"u8; 381 private static bool TryParseNonNegativeInt(ReadOnlySpan<byte> span, out int value) 401 private static ReadOnlySpan<byte> VersionLinePrefixUtf8 => "version="u8; 810 private static bool TryParseVersion(ReadOnlySpan<char> versionLine, out int major, out int minor) 817 ReadOnlySpan<char> value = versionLine.Slice(VersionLinePrefix.Length); 819 ReadOnlySpan<char> majorPart = dot >= 0 ? value.Slice(0, dot) : value; 820 ReadOnlySpan<char> minorPart = dot >= 0 ? value.Slice(dot + 1) : "0".AsSpan(); 841 private static bool TryParseNonNegativeInt(ReadOnlySpan<char> span, out int value)
ProjectDataWriter.cs (4)
412 var existingContent = new ReadOnlySpan<byte>(rented!, contentStart, existingContentLength); 413 var candidateContent = new ReadOnlySpan<byte>(candidateBuffer, 0, candidateLength); 510 ReadOnlySpan<byte> prefix = "hash="u8; 1365 ReadOnlySpan<char> span = sdkTargetFramework.AsSpan();
Microsoft.NET.Sdk.Publish.Tasks (1)
src\sdk\src\Common\EnvironmentVariableNames.cs (1)
104var span = runtimeIdentifier.AsSpan(archStart, (archEnd > 0 ? archEnd : runtimeIdentifier.Length) - archStart);
Microsoft.NET.Sdk.StaticWebAssets.Tasks (62)
Data\ContentTypeProvider.cs (9)
427var relativePath = context.Path; 428var fileNameSpan = Path.GetFileName(context.Path); 429var fileName = relativePath[(relativePath.Length - fileNameSpan.Length)..]; 434var fileNameNoCompressionExt = ResolvePathWithoutCompressedExtension(fileName, out var hasCompressedExtension); 454private bool TryGetMapping(StaticWebAssetGlobMatcher.MatchContext context, TaskLoggingHelper log, ReadOnlySpan<char> relativePath, out ContentTypeMapping mapping) 478private static ReadOnlySpan<char> ResolvePathWithoutCompressedExtension(ReadOnlySpan<char> fileName, out bool hasCompressedExtension) 483var extension = Path.GetExtension(fileName); 487var fileNameNoExtension = Path.GetFileNameWithoutExtension(fileName);
Data\StaticWebAssetEndpoint.cs (4)
577ReadOnlySpan<char> route, 578ReadOnlySpan<char> prefix, 598var prefixSegmentSpan = prefixSegmentCollection[i]; 599var routeSegmentSpan = routeSegmentCollection[i];
FingerprintPatternMatcher.cs (23)
76var stem = GetMatchStem(fileName, matchResult.Pattern.AsMemory().Slice(2)); 77var matchExtension = GetMatchExtension(fileName, stem); 108static ReadOnlySpan<char> GetMatchExtension(ReadOnlySpan<char> relativePathCandidateMemory, ReadOnlySpan<char> stem) => 110static ReadOnlySpan<char> GetMatchStem(ReadOnlySpan<char> relativePathCandidateMemory, ReadOnlyMemory<char> pattern) => 124var fileName = Path.GetFileName(relativePathCandidate.Span); 125var directoryName = Path.GetDirectoryName(relativePathCandidate.Span); 126var stem = Path.GetFileNameWithoutExtension(relativePathCandidate.Span); 127var extension = Path.GetExtension(relativePathCandidate.Span); 146public ReadOnlySpan<char> DirectoryName; 147public ReadOnlySpan<char> FileName; 148public ReadOnlySpan<char> FileNamePrefix; 149public ReadOnlySpan<char> Extension; 151public FingerprintFragments(ReadOnlySpan<char> directoryName, ReadOnlySpan<char> fileName, ReadOnlySpan<char> fileNamePrefix, ReadOnlySpan<char> extension) 159public void Deconstruct(out ReadOnlySpan<char> directoryName, out ReadOnlySpan<char> fileName, out ReadOnlySpan<char> fileNamePrefix, out ReadOnlySpan<char> extension)
Utils\Globbing\GlobNode.cs (2)
17public Dictionary<string, GlobNode>.AlternateLookup<ReadOnlySpan<char>> Literals { get; set; } 24public Dictionary<string, GlobNode>.AlternateLookup<ReadOnlySpan<char>> Extensions { get; set; }
Utils\Globbing\PathTokenizer.cs (6)
75public ref struct PathTokenizer(ReadOnlySpan<char> path) 77private readonly ReadOnlySpan<char> _path = path; 101public readonly ref struct SegmentCollection(ReadOnlySpan<char> path, List<Segment> segments) 103private readonly ReadOnlySpan<char> _path = path; 106private SegmentCollection(ReadOnlySpan<char> path, List<Segment> segments, int index) : this(path, segments) => 111public ReadOnlySpan<char> this[int index] => _path.Slice(segments[index + _index].Start, segments[index + _index].Length);
Utils\Globbing\StaticWebAssetGlobMatcher.cs (10)
133var segment = segments[i]; 192var segment = segments[currentIndex]; 210private static bool TryMatchParts(ReadOnlySpan<char> span, List<GlobSegmentPart> parts, int index = 0, int partIndex = 0) 252var remainingSpan = span.Slice(index + minimumCharactersToConsume); 326var segment = segments[currentIndex]; 334var remaining = segment.Slice(extensionIndex); 541private static bool TryMatchExtension(GlobNode node, ReadOnlySpan<char> extension, out GlobNode extensionCandidate) => 548private static bool TryMatchLiteral(GlobNode node, ReadOnlySpan<char> current, out GlobNode nextNode) => 562public ReadOnlySpan<char> Path; 576public void SetPathAndReinitialize(ReadOnlySpan<char> path)
Utils\Globbing\StaticWebAssetGlobMatcherBuilder.cs (8)
88var segmentSpan = segment.Span; 106current.Literals = current.Literals.Dictionary != null ? current.Literals : current.LiteralsDictionary.GetAlternateLookup<ReadOnlySpan<char>>(); 125private static bool TryAddComplexSegment(ReadOnlyMemory<char> segment, ReadOnlySpan<char> segmentSpan, ref GlobNode current) 127var searchValues = "*?".AsSpan(); 177private static bool TryAddExtension(ReadOnlyMemory<char> segment, ReadOnlySpan<char> segmentSpan, ref GlobNode current) 183current.Extensions = current.Extensions.Dictionary != null ? current.Extensions : current.ExtensionsDictionary.GetAlternateLookup<ReadOnlySpan<char>>(); 205private static bool TryAddRecursiveWildCard(ReadOnlySpan<char> segmentSpan, ref GlobNode current) 217private static bool TryAddWildcard(ReadOnlySpan<char> segmentSpan, ref GlobNode current)
Microsoft.NET.Sdk.WorkloadManifestReader (2)
src\sdk\src\Common\EnvironmentVariableNames.cs (1)
104var span = runtimeIdentifier.AsSpan(archStart, (archEnd > 0 ? archEnd : runtimeIdentifier.Length) - archStart);
WorkloadManifestReader.SystemTextJson.cs (1)
38static ReadOnlySpan<byte> utf8Bom => new byte[] { 0xEF, 0xBB, 0xBF };
Microsoft.NET.StringTools (13)
InternableString.cs (6)
95/// The span held by this struct, inline to be able to represent <see cref="ReadOnlySpan{T}"/>. May be empty. 97private readonly ReadOnlySpan<char> _inlineSpan; 101/// .NET Core does not keep a reference to the containing object in <see cref="ReadOnlySpan{T}"/>. In particular, 114/// Constructs a new InternableString wrapping the given <see cref="ReadOnlySpan{T}"/>. 120internal InternableString(ReadOnlySpan<char> span) 154_inlineSpan = default(ReadOnlySpan<char>);
SpanBasedStringBuilder.cs (6)
163public bool Equals(ReadOnlySpan<char> other) => Equals(other, StringComparison.Ordinal); 165public bool Equals(ReadOnlySpan<char> other, StringComparison comparison) 270ReadOnlySpan<char> span = _spans[spanIdx].Span; 292ReadOnlySpan<char> span = _spans[spanIdx].Span; 317ReadOnlySpan<char> span = _spans[spanIdx].Span; 339ReadOnlySpan<char> span = _spans[spanIdx].Span;
StringTools.cs (1)
51public static string WeakIntern(ReadOnlySpan<char> str)
Microsoft.Private.Windows.Core (109)
Generated\361d1da7f942c932\System.Runtime.CompilerServices.CollectionBuilderAttribute.g.cs (1)
25/// type <see cref="ReadOnlySpan{T}"/> and returns an instance of the collection being built containing
Generated\361d1da7f942c932\Windows.Win32.InlineArrayIndexerExtensions.g.cs (2)
23 internal static ReadOnlySpan<char> SliceAtNull(this ReadOnlySpan<char>value)
Generated\361d1da7f942c932\Windows.Win32.System_Com_ISequentialStream_Extensions.g.cs (2)
49 internal static unsafe winmdroot.Foundation.HRESULT Write(this winmdroot.System.Com.ISequentialStream.Interface @this, ReadOnlySpan<byte> pv, out uint pcbWritten) 62 internal static unsafe winmdroot.Foundation.HRESULT Write(this winmdroot.System.Com.ISequentialStream.Interface @this, ReadOnlySpan<byte> pv)
Generated\361d1da7f942c932\Windows.Win32.System_Com_IStream_Extensions.g.cs (2)
49 internal static unsafe winmdroot.Foundation.HRESULT Write(this winmdroot.System.Com.IStream.Interface @this, ReadOnlySpan<byte> pv, out uint pcbWritten) 62 internal static unsafe winmdroot.Foundation.HRESULT Write(this winmdroot.System.Com.IStream.Interface @this, ReadOnlySpan<byte> pv)
Generated\361d1da7f942c932\Windows.Win32.System_Com_ITypeInfo_Extensions.g.cs (1)
89 internal static unsafe winmdroot.Foundation.HRESULT GetIDsOfNames(this winmdroot.System.Com.ITypeInfo.Interface @this, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, Span<int> pMemId)
Generated\361d1da7f942c932\Windows.Win32.System_Com_StructuredStorage_IStorage_Extensions.g.cs (1)
69 internal static unsafe winmdroot.Foundation.HRESULT CopyTo(this winmdroot.System.Com.StructuredStorage.IStorage.Interface @this, [Optional] ReadOnlySpan<global::System.Guid> rgiidExclude, in ushort* snbExclude, winmdroot.System.Com.StructuredStorage.IStorage* pstgDest)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.BSTR.g.cs (3)
64 public static unsafe implicit operator ReadOnlySpan<char>(BSTR bstr) => bstr.Value != null ? new ReadOnlySpan<char>(bstr.Value, *((int*)bstr.Value - 1) / 2) : default(ReadOnlySpan<char>); 67 internal ReadOnlySpan<char> AsSpan() => this;
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.byte.InlineArrays.g.cs (3)
48 internal readonly unsafe bool Equals(ReadOnlySpan<byte> value) 52 ReadOnlySpan<byte> span = new ReadOnlySpan<byte>(p0, SpanLength); 57 public static unsafe implicit operator __byte_32(ReadOnlySpan<byte> value)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.char.InlineArrays.g.cs (6)
49 internal readonly unsafe bool Equals(ReadOnlySpan<char> value) 53 ReadOnlySpan<char> span = new ReadOnlySpan<char>(p0, SpanLength); 83 public static unsafe implicit operator __char_32(ReadOnlySpan<char> value) 123 internal readonly unsafe bool Equals(ReadOnlySpan<char> value) 127 ReadOnlySpan<char> span = new ReadOnlySpan<char>(p0, SpanLength); 157 public static unsafe implicit operator __char_260(ReadOnlySpan<char> value)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IDispatch.g.cs (1)
95 internal unsafe winmdroot.Foundation.HRESULT GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IDispatchEx.g.cs (1)
77 internal unsafe winmdroot.Foundation.HRESULT GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IPictureDisp.g.cs (1)
78 internal unsafe winmdroot.Foundation.HRESULT GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.ISequentialStream.g.cs (2)
99 internal unsafe winmdroot.Foundation.HRESULT Write(ReadOnlySpan<byte> pv, out uint pcbWritten) 112 internal unsafe winmdroot.Foundation.HRESULT Write(ReadOnlySpan<byte> pv)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IStorage.g.cs (1)
187 internal unsafe winmdroot.Foundation.HRESULT CopyTo([Optional] ReadOnlySpan<global::System.Guid> rgiidExclude, in ushort* snbExclude, winmdroot.System.Com.StructuredStorage.IStorage* pstgDest)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IStream.g.cs (2)
85 internal unsafe winmdroot.Foundation.HRESULT Write(ReadOnlySpan<byte> pv, out uint pcbWritten) 98 internal unsafe winmdroot.Foundation.HRESULT Write(ReadOnlySpan<byte> pv)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.ITypeInfo.g.cs (1)
221 internal unsafe winmdroot.Foundation.HRESULT GetIDsOfNames(ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, Span<int> pMemId)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PCSTR.g.cs (2)
75 internal ReadOnlySpan<byte> AsSpan() => this.Value is null ? default(ReadOnlySpan<byte>) : new ReadOnlySpan<byte>(this.Value, this.Length);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PCWSTR.g.cs (2)
75 internal ReadOnlySpan<char> AsSpan() => this.Value is null ? default(ReadOnlySpan<char>) : new ReadOnlySpan<char>(this.Value, this.Length);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PInvokeCore.USER32.dll.g.cs (2)
747 internal static unsafe int MapWindowPoints([Optional] winmdroot.Foundation.HWND hWndFrom, [Optional] winmdroot.Foundation.HWND hWndTo, ReadOnlySpan<global::System.Drawing.Point> lpPoints) 825 internal static unsafe winmdroot.Foundation.WAIT_EVENT MsgWaitForMultipleObjectsEx([Optional] ReadOnlySpan<winmdroot.Foundation.HANDLE> pHandles, uint dwMilliseconds, winmdroot.UI.WindowsAndMessaging.QUEUE_STATUS_FLAGS dwWakeMask, winmdroot.UI.WindowsAndMessaging.MSG_WAIT_FOR_MULTIPLE_OBJECTS_EX_FLAGS dwFlags)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.RECT.InlineArrays.g.cs (1)
43 public static unsafe implicit operator __RECT_3(ReadOnlySpan<winmdroot.Foundation.RECT> value)
src\winforms\src\Microsoft.Private.Windows.Polyfills\System\IO\PathExtensions.cs (4)
16public static string Join(ReadOnlySpan<char> path1, ReadOnlySpan<char> path2) 53private static string JoinInternal(ReadOnlySpan<char> first, ReadOnlySpan<char> second)
src\winforms\src\Microsoft.Private.Windows.Polyfills\System\IO\StreamExtensions.cs (1)
54public void Write(ReadOnlySpan<byte> buffer)
src\winforms\src\Microsoft.Private.Windows.Polyfills\System\ISpanFormattable.cs (1)
24bool TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider);
src\winforms\src\Microsoft.Private.Windows.Polyfills\System\SpanExtensions.cs (1)
10extension<T>(ReadOnlySpan<T> span) where T : IEquatable<T>
src\winforms\src\Microsoft.Private.Windows.Polyfills\System\StringExtensions.cs (17)
37/// <inheritdoc cref="Concat(ReadOnlySpan{char}, ReadOnlySpan{char}, ReadOnlySpan{char}, ReadOnlySpan{char})"/> 38public static unsafe string Concat(ReadOnlySpan<char> str0, ReadOnlySpan<char> str1) 57/// <inheritdoc cref="Concat(ReadOnlySpan{char}, ReadOnlySpan{char}, ReadOnlySpan{char}, ReadOnlySpan{char})"/> 58public static unsafe string Concat(ReadOnlySpan<char> str0, ReadOnlySpan<char> str1, ReadOnlySpan<char> str2) 89ReadOnlySpan<char> str0, 90ReadOnlySpan<char> str1, 91ReadOnlySpan<char> str2, 92ReadOnlySpan<char> str3)
src\winforms\src\Microsoft.Private.Windows.Polyfills\System\Text\EncodingExtensions.cs (2)
16public unsafe int GetBytes(ReadOnlySpan<char> source, Span<byte> destination) 35public unsafe string GetString(ReadOnlySpan<byte> source)
System\BufferScope.cs (1)
117public static implicit operator ReadOnlySpan<T>(BufferScope<T> scope) => scope._span;
System\IO\Compression\RunLengthEncoder.cs (4)
19public static int GetEncodedLength(params ReadOnlySpan<byte> data) 41public static int GetDecodedLength(params ReadOnlySpan<byte> encoded) 58public static bool TryEncode(ReadOnlySpan<byte> data, Span<byte> encoded, out int written) 82public static bool TryDecode(ReadOnlySpan<byte> encoded, Span<byte> data, out int written)
System\IO\IRawData.cs (1)
8ReadOnlySpan<byte> Data { get; }
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (4)
211ReadOnlySpan<char> chars = new((char*)buffer, size / sizeof(char)); 224ReadOnlySpan<byte> bytes = new((byte*)buffer, size); 257ReadOnlySpan<byte> bytes = new((byte*)buffer, size); 291ReadOnlySpan<byte> bytes = new((byte*)buffer, size);
System\SpanHelpers.cs (3)
13public static void CopyAndTerminate(this ReadOnlySpan<char> source, Span<char> destination) 31public static ReadOnlySpan<char> SliceAtFirstNull(this ReadOnlySpan<char> span)
System\SpanReader.cs (15)
7/// Fast stack based <see cref="ReadOnlySpan{T}"/> reader. 19internal unsafe ref struct SpanReader<T>(ReadOnlySpan<T> span) where T : unmanaged, IEquatable<T> 21private ReadOnlySpan<T> _unread = span; 22public ReadOnlySpan<T> Span { get; } = span; 34/// <inheritdoc cref="TryReadTo(T, bool, out ReadOnlySpan{T})"/> 35public bool TryReadTo(T delimiter, out ReadOnlySpan<T> span) => 45public bool TryReadTo(T delimiter, bool advancePastDelimiter, out ReadOnlySpan<T> span) 95public bool TryRead(int count, out ReadOnlySpan<T> span) 157/// This effectively does a <see cref="MemoryMarshal.Cast{TFrom, TTo}(ReadOnlySpan{TFrom})"/> and the same 161public bool TryRead<TValue>(int count, out ReadOnlySpan<TValue> value) where TValue : unmanaged 179ReadOnlySpan<T> current = _unread[..(sizeof(TValue) / sizeof(T) * count)]; 194public readonly bool IsNext(params ReadOnlySpan<T> next) => _unread.StartsWith(next); 201public bool TryAdvancePast(params ReadOnlySpan<T> next) 265private static void UncheckedSliceTo(ref ReadOnlySpan<T> span, int length) 276private static void UncheckedSlice(ref ReadOnlySpan<T> span, int start, int length)
System\SpanWriter.cs (1)
42public bool TryWrite(params ReadOnlySpan<T> values)
System\Text\ValueStringBuilder.cs (5)
122public ReadOnlySpan<char> AsSpan(bool terminate) 133public readonly ReadOnlySpan<char> AsSpan() => _chars[.._pos]; 134public readonly ReadOnlySpan<char> AsSpan(int start) => _chars[start.._pos]; 135public readonly ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 291public void Append(ReadOnlySpan<char> value)
System\TypeExtensions.cs (4)
251private static bool ComparePublicKeys(ReadOnlySpan<byte> publicKey1, ReadOnlySpan<byte> publicKey2) 269static bool TryComparePublicKeyTokenToKey(ReadOnlySpan<byte> publicKeyToken, ReadOnlySpan<byte> publicKey)
System\Types.cs (2)
49/// <inheritdoc cref="TypeName.Parse(ReadOnlySpan{char}, TypeNameParseOptions?)"/> 53/// <see cref="TypeName.Parse(ReadOnlySpan{char}, TypeNameParseOptions?)"/>
Windows\Win32\Graphics\Gdi\ARGB.cs (2)
45public static Color[] ToColorArray(params ReadOnlySpan<ARGB> argbColors) 56public static Color[] ToColorArray(params ReadOnlySpan<uint> argbColors) =>
Windows\Win32\Graphics\Gdi\LOGFONTW.cs (1)
9public ReadOnlySpan<char> FaceName
Windows\Win32\System\Com\ComManagedStream.cs (1)
241ReadOnlySpan<byte> buffer = new(pv, checked((int)cb));
Windows\Win32\System\Com\IID.cs (1)
13ReadOnlySpan<byte> data =
Windows\Win32\System\Com\SAFEARRAY.cs (1)
80ReadOnlySpan<SAFEARRAYBOUND> bounds = new(b, cDims);
Microsoft.SourceLink.AzureDevOpsServer.Git (3)
src\sourcelink\src\Common\Utilities\Hash.cs (3)
222internal static int GetFNVHashCode(ReadOnlySpan<byte> data, out bool isAscii) 265internal static int GetFNVHashCode(ReadOnlySpan<char> data) 408internal static int CombineFNVHash(int hashCode, ReadOnlySpan<char> data)
Microsoft.SourceLink.AzureRepos.Git (3)
src\sourcelink\src\Common\Utilities\Hash.cs (3)
222internal static int GetFNVHashCode(ReadOnlySpan<byte> data, out bool isAscii) 265internal static int GetFNVHashCode(ReadOnlySpan<char> data) 408internal static int CombineFNVHash(int hashCode, ReadOnlySpan<char> data)
Microsoft.SourceLink.Bitbucket.Git (3)
src\sourcelink\src\Common\Utilities\Hash.cs (3)
222internal static int GetFNVHashCode(ReadOnlySpan<byte> data, out bool isAscii) 265internal static int GetFNVHashCode(ReadOnlySpan<char> data) 408internal static int CombineFNVHash(int hashCode, ReadOnlySpan<char> data)
Microsoft.SourceLink.Common (3)
parent\Common\Utilities\Hash.cs (3)
222internal static int GetFNVHashCode(ReadOnlySpan<byte> data, out bool isAscii) 265internal static int GetFNVHashCode(ReadOnlySpan<char> data) 408internal static int CombineFNVHash(int hashCode, ReadOnlySpan<char> data)
Microsoft.SourceLink.Gitea (3)
src\sourcelink\src\Common\Utilities\Hash.cs (3)
222internal static int GetFNVHashCode(ReadOnlySpan<byte> data, out bool isAscii) 265internal static int GetFNVHashCode(ReadOnlySpan<char> data) 408internal static int CombineFNVHash(int hashCode, ReadOnlySpan<char> data)
Microsoft.SourceLink.Gitee (3)
src\sourcelink\src\Common\Utilities\Hash.cs (3)
222internal static int GetFNVHashCode(ReadOnlySpan<byte> data, out bool isAscii) 265internal static int GetFNVHashCode(ReadOnlySpan<char> data) 408internal static int CombineFNVHash(int hashCode, ReadOnlySpan<char> data)
Microsoft.SourceLink.GitHub (3)
src\sourcelink\src\Common\Utilities\Hash.cs (3)
222internal static int GetFNVHashCode(ReadOnlySpan<byte> data, out bool isAscii) 265internal static int GetFNVHashCode(ReadOnlySpan<char> data) 408internal static int CombineFNVHash(int hashCode, ReadOnlySpan<char> data)
Microsoft.SourceLink.GitLab (3)
src\sourcelink\src\Common\Utilities\Hash.cs (3)
222internal static int GetFNVHashCode(ReadOnlySpan<byte> data, out bool isAscii) 265internal static int GetFNVHashCode(ReadOnlySpan<char> data) 408internal static int CombineFNVHash(int hashCode, ReadOnlySpan<char> data)
Microsoft.SourceLink.GitWeb (3)
src\sourcelink\src\Common\Utilities\Hash.cs (3)
222internal static int GetFNVHashCode(ReadOnlySpan<byte> data, out bool isAscii) 265internal static int GetFNVHashCode(ReadOnlySpan<char> data) 408internal static int CombineFNVHash(int hashCode, ReadOnlySpan<char> data)
Microsoft.TestPlatform.AdapterUtilities (2)
src\vstest\src\Microsoft.TestPlatform.Hashing.Source\XxHash128.cs (1)
127public static UInt128 HashToUInt128(ReadOnlySpan<byte> source, long seed = 0)
src\vstest\src\Microsoft.TestPlatform.Hashing.Source\XxHashShared.cs (1)
103ReadOnlySpan<byte> DefaultSecret =>
Microsoft.VisualStudio.TestPlatform.ObjectModel (2)
src\vstest\src\Microsoft.TestPlatform.Hashing.Source\XxHash128.cs (1)
127public static UInt128 HashToUInt128(ReadOnlySpan<byte> source, long seed = 0)
src\vstest\src\Microsoft.TestPlatform.Hashing.Source\XxHashShared.cs (1)
103ReadOnlySpan<byte> DefaultSecret =>
Microsoft.Win32.Registry (2)
Microsoft\Win32\RegistryKey.cs (1)
1125ReadOnlySpan<char> chars = MemoryMarshal.Cast<byte, char>(span.Slice(0, dataLength));
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
78private static string GetAndTrimString(ReadOnlySpan<char> buffer)
MSBuild (2)
CommandLine\CommandLineParser.cs (2)
205ReadOnlySpan<char> switchPart = arg.AsSpan(GetLengthOfSwitchIndicator(arg)); 209ReadOnlySpan<char> switchNameSpan = colonIndex >= 0 ? switchPart.Slice(0, colonIndex) : switchPart;
mscorlib (1)
mscorlib.cs (1)
29[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ReadOnlySpan<>))]
netstandard (1)
netstandard.cs (1)
1358[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ReadOnlySpan<>))]
NuGet.Commands (5)
RestoreCommand\ContentFiles\ContentFileUtils.cs (2)
278internal static string GetContentFileFolderRelativeToFramework(ReadOnlySpan<char> itemPath) 280ReadOnlySpan<char> span = itemPath;
RestoreCommand\Utility\LockFileUtils.cs (3)
811ReadOnlySpan<char> segment = path.AsSpan(segmentStart, segmentLength); 840private static bool IsLowerInvariant(ReadOnlySpan<char> segment) 853private static bool IsCompilerApiVersionSegment(ReadOnlySpan<char> segment)
NuGet.Packaging (4)
ContentModel\ManagedCodeConventions.cs (1)
311ReadOnlySpan<char> span = s.Span;
src\nuget-client\build\Shared\Utf8JsonStreamReader.cs (3)
85internal bool ValueTextEquals(ReadOnlySpan<byte> utf8Text) => _reader.ValueTextEquals(utf8Text); 360ReadOnlySpan<byte> leftover = oldBuffer.AsSpan(bytesConsumed); 390ReadOnlySpan<byte> value = _reader.ValueSpan;
NuGet.ProjectModel (11)
ProjectLockFile\PackagesLockFileFormat.cs (8)
48private static ReadOnlySpan<byte> VersionPropertyUtf8 => "version"u8; 49private static ReadOnlySpan<byte> ResolvedPropertyUtf8 => "resolved"u8; 50private static ReadOnlySpan<byte> RequestedPropertyUtf8 => "requested"u8; 51private static ReadOnlySpan<byte> ContentHashPropertyUtf8 => "contentHash"u8; 52private static ReadOnlySpan<byte> DependenciesPropertyUtf8 => "dependencies"u8; 53private static ReadOnlySpan<byte> TypePropertyUtf8 => "type"u8; 54private static ReadOnlySpan<byte> FrameworkPropertyUtf8 => "framework"u8; 670ReadOnlySpan<char> targetName,
src\nuget-client\build\Shared\Utf8JsonStreamReader.cs (3)
85internal bool ValueTextEquals(ReadOnlySpan<byte> utf8Text) => _reader.ValueTextEquals(utf8Text); 360ReadOnlySpan<byte> leftover = oldBuffer.AsSpan(bytesConsumed); 390ReadOnlySpan<byte> value = _reader.ValueSpan;
PresentationBuildTasks (18)
MS\Internal\MarkupCompiler\PathInternal.cs (6)
177internal static bool IsEffectivelyEmpty(ReadOnlySpan<char> path) 194internal static int GetRootLength(ReadOnlySpan<char> path) 283internal static bool IsDevice(ReadOnlySpan<char> path) 301internal static bool IsDeviceUNC(ReadOnlySpan<char> path) 324internal static bool IsExtended(ReadOnlySpan<char> path) 338public static bool DoesEndInDirectorySeparator(ReadOnlySpan<char> path)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\ReflectionUtils.cs (12)
42internal static ReadOnlySpan<char> GetAssemblyPartialName(Assembly assembly) 53ReadOnlySpan<char> fullName = assembly.FullName; 55return ReadOnlySpan<char>.Empty; 57ReadOnlySpan<char> nameSlice = fullName; 75static void UnescapeDirty(ref ReadOnlySpan<char> dirtyName) 77dirtyName = !AssemblyNameInfo.TryParse(dirtyName, out AssemblyNameInfo? result) ? ReadOnlySpan<char>.Empty : result.Name; 95internal static void GetAssemblyVersionPlusToken(Assembly assembly, out ReadOnlySpan<char> assemblyVersion, out ReadOnlySpan<char> assemblyToken) 98ReadOnlySpan<char> assemblyName = assembly.FullName; 100assemblyVersion = ReadOnlySpan<char>.Empty; 101assemblyToken = ReadOnlySpan<char>.Empty; 124assemblyToken = ReadOnlySpan<char>.Empty;
PresentationCore (36)
MS\Internal\FontCache\FamilyCollection.cs (4)
400ReadOnlySpan<char> faceName = originalFamilyName.AsSpan(faceNameIndex); 452private static Text.TextInterface.Font GetFontFromFamily(Text.TextInterface.FontFamily fontFamily, ReadOnlySpan<char> faceName) 490Dictionary<string, Text.TextInterface.Font>.AlternateLookup<ReadOnlySpan<char>> alternateLookup = faces.GetAlternateLookup<ReadOnlySpan<char>>();
MS\Internal\Generated\AvTraceMessages.cs (4)
72public static void Trace(TraceEventType type, AvTraceDetails traceDetails, params ReadOnlySpan<object> parameters) 78public static void TraceActivityItem(AvTraceDetails traceDetails, params ReadOnlySpan<object> parameters) 219public static void Trace(TraceEventType type, AvTraceDetails traceDetails, params ReadOnlySpan<object> parameters) 225public static void TraceActivityItem(AvTraceDetails traceDetails, params ReadOnlySpan<object> parameters)
MS\Internal\Ink\InkSerializedFormat\AlgoModule.cs (1)
445private static ReadOnlySpan<double> DefaultFirstSquareRoot => [1, 1, 1, 4, 9, 16, 36, 49];
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
270private static ReadOnlySpan<byte> Base64HeaderBytes => [(byte)'b',
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (1)
796ReadOnlySpan<char> contentRangeSpan = contentRange.AsSpan(index + 1);
MS\Internal\Shaping\Positioning.cs (1)
220private static ReadOnlySpan<ushort> BitCount => [0, 2, 2, 4,
src\wpf\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];
System\Windows\DurationConverter.cs (2)
52ReadOnlySpan<char> valueSpan = stringValue.AsSpan().Trim(); 72private static Duration ParseTimeSpan(ReadOnlySpan<char> valueSpan, CultureInfo cultureInfo)
System\Windows\Input\Command\MouseActionConverter.cs (1)
58ReadOnlySpan<char> mouseActionToken = mouseAction.AsSpan().Trim();
System\Windows\Input\Cursor.cs (1)
342private static ReadOnlySpan<int> CursorTypes => [
System\Windows\Input\InputProcessorProfiles.cs (1)
111ReadOnlySpan<short> languageIDs = new((void*)ptrLanguageIDs, nCount);
System\Windows\Input\InputScopeConverter.cs (1)
107ReadOnlySpan<char> spanSource = stringSource;
System\Windows\Input\MouseDevice.cs (2)
1732ReadOnlySpan<RawMouseActions> ButtonPressActions = stackalloc RawMouseActions[5] 1741ReadOnlySpan<RawMouseActions> ButtonReleaseActions = stackalloc RawMouseActions[5]
System\Windows\Input\TextCompositionManager.cs (2)
398ReadOnlySpan<byte> multiByte = ConvertCodeToByteArray(code, stackalloc byte[2]); 855private static ReadOnlySpan<byte> ConvertCodeToByteArray(int codeEntry, Span<byte> destination)
System\Windows\Media\Animation\KeyTimeConverter.cs (1)
189return string.Concat(returnValue, (ReadOnlySpan<char>)stackalloc char[] { '%' });
System\Windows\Media\CharacterMetrics.cs (1)
157ReadOnlySpan<char> field = s.AsSpan(i, k - i);
System\Windows\Media\EllipseGeometry.cs (1)
385private static ReadOnlySpan<byte> RoundedPathTypes => [(byte)MILCoreSegFlags.SegTypeBezier |
System\Windows\Media\Knowncolors.cs (1)
814ReadOnlySpan<char> argbSpan = argbString.AsSpan().Trim();
System\Windows\Media\LineGeometry.cs (1)
170private static ReadOnlySpan<byte> LineTypes => [(byte)MILCoreSegFlags.SegTypeLine];
System\Windows\Media\PixelFormat.cs (2)
156ReadOnlySpan<byte> pGuidPixelFormat = new(&guidPixelFormat, 15); 157ReadOnlySpan<byte> pGuidBuiltIn = new(&guidWicPixelFormat, 15);
System\Windows\Media\RectangleGeometry.cs (3)
499private static ReadOnlySpan<byte> GetTypeList(Rect rect, double radiusX, double radiusY) 599private static ReadOnlySpan<byte> RoundedPathTypes => new byte[] { 617private static ReadOnlySpan<byte> SquaredPathTypes => [(byte)MILCoreSegFlags.SegTypeLine | (byte)MILCoreSegFlags.SegClosed,
System\Windows\PresentationSource.cs (1)
571internal static bool IsUnderSamePresentationSource(params ReadOnlySpan<DependencyObject> visuals)
System\Windows\TextDecorationCollectionConverter.cs (2)
84ReadOnlySpan<char> decorationsSpan = text.AsSpan().Trim(); 94ReadOnlySpan<char> decoration = decorationsSpan[segment].Trim();
PresentationFramework (110)
Microsoft\Win32\FileDialog.cs (3)
554ReadOnlySpan<string> extensions = GetFilterExtensions(); 673private ReadOnlySpan<string> GetFilterExtensions() 721ReadOnlySpan<char> exts = tokens[indexOfExtension].AsSpan();
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (3)
499ReadOnlySpan<char> segmentValueSpan = segmentValue.AsSpan(); 515private static Point GetPoint(ReadOnlySpan<char> xValue, ReadOnlySpan<char> yValue)
MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
1351private static ReadOnlySpan<char> Separators => [',', ' ', ';'];
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
436ReadOnlySpan<char> segmentString = locatorPart.NameValuePairs[SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo)].AsSpan();
MS\Internal\AppModel\ResourceContainer.cs (6)
197ReadOnlySpan<char> assemblyName = ReflectionUtils.GetAssemblyPartialName(assembly); 198ReflectionUtils.GetAssemblyVersionPlusToken(assembly, out ReadOnlySpan<char> assemblyVersion, out ReadOnlySpan<char> assemblyToken); 235private static void UpdateCachedRMW(ReadOnlySpan<char> key, Assembly assembly) 323private static readonly Dictionary<string, ResourceManagerWrapper>.AlternateLookup<ReadOnlySpan<char>> s_registeredResourceManagersLookup = s_registeredResourceManagers.GetAlternateLookup<ReadOnlySpan<char>>();
MS\Internal\Commands\CommandHelpers.cs (1)
92CanExecuteRoutedEventHandler canExecuteRoutedEventHandler, params ReadOnlySpan<InputGesture> inputGestures)
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\Globalization\BamlResourceContent.cs (6)
95internal static string UnescapeString(ReadOnlySpan<char> contentSpan, bool returnNewInstance = true) 127static void EvaulateEscapeSequence(StringBuilder stringBuilder, ReadOnlySpan<char> contentSpan, ref int i) 183internal static ReadOnlySpan<BamlStringToken> ParseChildPlaceholder(string input) 186return ReadOnlySpan<BamlStringToken>.Empty; 201return ReadOnlySpan<BamlStringToken>.Empty; // error 241return ReadOnlySpan<BamlStringToken>.Empty; // error
MS\Internal\Globalization\BamlTreeUpdater.cs (1)
597ReadOnlySpan<BamlStringToken> tokens = BamlResourceContentUtil.ParseChildPlaceholder(content);
MS\Internal\Ink\LassoHelper.cs (1)
162public bool ArePointsInLasso(ReadOnlySpan<Point> points, int percentIntersect)
MS\Internal\Ink\LassoSelectionBehavior.cs (2)
362ReadOnlySpan<Point> points = GeneratePointGrid(elementPoints); 422private ReadOnlySpan<Point> GeneratePointGrid(ElementCornerPoints elementPoints)
MS\Internal\PtsHost\ListMarkerSourceInfo.cs (1)
397private static ReadOnlySpan<int> RomanNumericSizeIncrements => [1, 2, 3, 8, 18, 28, 38, 88, 188, 288, 388, 888];
MS\Internal\TraceData.cs (1)
90public static void OnTrace(AvTraceBuilder traceBuilder, ReadOnlySpan<object> parameters)
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (1)
297var abiSpan = new ReadOnlySpan<T>(abi.data.ToPointer(), abi.length);
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\src\MS\Internal\PixelUnit.cs (4)
17public static bool TryParsePixel(ReadOnlySpan<char> value, out PixelUnit pixelUnit) 31public static bool TryParsePixelPerInch(ReadOnlySpan<char> value, out PixelUnit pixelUnit) 45public static bool TryParsePixelPerCentimeter(ReadOnlySpan<char> value, out PixelUnit pixelUnit) 59public static bool TryParsePixelPerPoint(ReadOnlySpan<char> value, out PixelUnit pixelUnit)
System\Windows\Annotations\Annotation.cs (4)
631ReadOnlySpan<char> typeName = value.AsSpan(); 636ReadOnlySpan<char> name = typeName[segments[0]]; 646ReadOnlySpan<char> @namespace = typeName[segments[0]]; 647ReadOnlySpan<char> name = typeName[segments[1]];
System\Windows\Controls\DataGridLengthConverter.cs (2)
194ReadOnlySpan<char> valueSpan = s.AsSpan().Trim(); 258ReadOnlySpan<char> valueString = valueSpan.Slice(0, valueSpan.Length - strLenUnit);
System\Windows\Controls\DataGridRow.cs (2)
42private static ReadOnlySpan<byte> IdealStateMapping => [ 61private static ReadOnlySpan<byte> FallbackStateMapping => [
System\Windows\Controls\DocumentViewer.cs (1)
2579private static ReadOnlySpan<double> ZoomLevelCollection => [5000.0, 4000.0, 3200.0, 2400.0, 2000.0, 1600.0,
System\Windows\Controls\ItemContainerGenerator.cs (1)
1121ReadOnlySpan<char> token = aqn.AsSpan(index + PublicKeyToken.Length);
System\Windows\Controls\Primitives\DataGridRowHeader.cs (2)
39private static ReadOnlySpan<byte> FallbackStateMapping => [ 58private static ReadOnlySpan<byte> IdealStateMapping => [
System\Windows\Controls\TextSearch.cs (1)
315ReadOnlySpan<char> temp;
System\Windows\Controls\VirtualizingStackPanel.cs (6)
11998ReadOnlySpan<char> traceSplits = trace.AsSpan(); 12093private static void Mark(params ReadOnlySpan<object> args) 12205internal static void Trace(VirtualizingStackPanel vsp, ScrollTraceOp op, params ReadOnlySpan<object> args) 12234ReadOnlySpan<char> name = t.ToString(); 12248private static string BuildDetail(ReadOnlySpan<object> args) 12358private void AddTrace(VirtualizingStackPanel vsp, ScrollTraceOp op, ScrollTracingInfo sti, params ReadOnlySpan<object> args)
System\Windows\Controls\VisualStates.cs (1)
413public static void GoToState(Control control, bool useTransitions, params ReadOnlySpan<string> stateNames)
System\Windows\Documents\FixedSchema.cs (1)
437ReadOnlySpan<char> attrValueSpan = attrValue.AsSpan().Trim();
System\Windows\Documents\FixedTextBuilder.cs (1)
87internal static ReadOnlySpan<char> HyphenSet =>
System\Windows\Documents\Glyphs.cs (7)
371private static bool IsEmpty(ReadOnlySpan<char> s) 391ReadOnlySpan<char> valueSpec, 398ReadOnlySpan<char> glyphIndexString = valueSpec; 422ReadOnlySpan<char> characterClusterSpec = valueSpec.Slice(firstBracket + 1, secondBracket - (firstBracket + 1)); 430ReadOnlySpan<char> characterClusterSpec = valueSpec.Slice(firstBracket + 1, colon - (firstBracket + 1)); 432ReadOnlySpan<char> glyphClusterSpec = valueSpec.Slice(colon + 1, secondBracket - (colon + 1)); 549ReadOnlySpan<char> valueSpec = glyphsProp.AsSpan(valueStartIndex, len);
System\Windows\Documents\RtfToXamlReader.cs (7)
233internal static bool StringToDouble(ReadOnlySpan<char> s, ref double d) 254internal static bool StringToInt(ReadOnlySpan<char> s, ref int i) 284internal static bool HexStringToInt(ReadOnlySpan<char> s, ref int i) 3753ReadOnlySpan<char> s = lhs_name.AsSpan(0, rhs_name.Length); 4581internal static ReadOnlySpan<int> HtmlLengths => [ 4979ReadOnlySpan<char> substring = text.AsSpan(index, currentIndex - index); 8558ReadOnlySpan<char> ptString = instr.AsSpan(iStart, i - iStart);
System\windows\Documents\SelectionWordBreaker.cs (1)
76ReadOnlySpan<char> sourceChars = [text[position - 1], text[position]];
System\Windows\Documents\TextPointerBase.cs (1)
637internal static ReadOnlySpan<char> NextLineCharacters => ['\n', '\r', '\v', '\f', '\u0085' /*NEL*/, '\u2028' /*LS*/, '\u2029' /*PS*/];
System\Windows\Documents\TextStore.cs (5)
4663ReadOnlySpan<char> traceSplits = trace.AsSpan(); 4741internal static void Mark(params ReadOnlySpan<object> args) 4793internal static void Trace(TextStore textStore, IMECompositionTraceOp op, params ReadOnlySpan<object> args) 4836private static string BuildDetail(ReadOnlySpan<object> args) 4900private void AddTrace(TextStore textStore, IMECompositionTraceOp op, IMECompositionTracingInfo cti, params ReadOnlySpan<object> args)
System\Windows\Documents\XamlToRtfWriter.cs (5)
2751ReadOnlySpan<char> num = name.AsSpan(2, name.Length - 3); 3543internal static bool ConvertToFontSize(ConverterState converterState, ReadOnlySpan<char> s, ref double d) 3557ReadOnlySpan<char> units = default; 3809internal static bool ConvertToThickness(ConverterState converterState, ReadOnlySpan<char> thickness, ref XamlThickness xthickness) 3823ReadOnlySpan<char> onenum = thickness.Slice(s, e - s);
System\Windows\LengthConverter.cs (2)
189ReadOnlySpan<char> valueSpan = s.AsSpan().Trim(); 214private static double ParseDouble(ReadOnlySpan<char> span, CultureInfo cultureInfo)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (4)
2065ReadOnlySpan<char> uriTypePrefix = uriInput.AsSpan(0, colonIdx); 2086ReadOnlySpan<char> keyword = uriInput.AsSpan(assemblyKeywordStartIdx, equalIdx - assemblyKeywordStartIdx); 2091ReadOnlySpan<char> assemblyName = uriInput.AsSpan(equalIdx + 1); 2105internal virtual ReadOnlySpan<char> GetAssemblyNameForNamespace(Assembly assembly)
System\Windows\Markup\Baml2006\Baml2006ReaderInternal.cs (1)
36internal override ReadOnlySpan<char> GetAssemblyNameForNamespace(Assembly assembly)
System\Windows\Markup\Primitives\ExtensionSimplifierMarkupObject.cs (1)
351ReadOnlySpan<char> value = property.StringValue;
System\Windows\Markup\Primitives\MarkupWriter.cs (1)
1638ReadOnlySpan<char> ns = uri.AsSpan(clrUriPrefix.Length, uri.IndexOf(';') - clrUriPrefix.Length);
System\Windows\Markup\XamlFigureLengthSerializer.cs (2)
179ReadOnlySpan<char> valueSpan = s.AsSpan().Trim(); 240ReadOnlySpan<char> valueString = valueSpan.Slice(0, valueSpan.Length - strLenUnit);
System\Windows\Markup\XamlGridLengthSerializer.cs (2)
179ReadOnlySpan<char> valueSpan = s.AsSpan().Trim(); 240ReadOnlySpan<char> valueString = valueSpan.Slice(0, valueSpan.Length - strLenUnit);
System\Windows\PropertyPath.cs (1)
900ReadOnlySpan<char> toParse;
System\Windows\SystemParameters.cs (1)
70private static void OnPropertiesChanged(params ReadOnlySpan<string> propertyNames)
System\Windows\ThemeDictionaryExtension.cs (2)
97private static Uri GenerateUri(string assemblyName, string resourceName, ReadOnlySpan<char> themeName) 134ReadOnlySpan<char> nameSpan = resourceName.AsSpan();
System\Windows\VisualStateGroup.cs (1)
96internal void StartNewThenStopOld(FrameworkElement element, params ReadOnlySpan<Storyboard> newStoryboards)
PresentationUI (3)
MS\Internal\Documents\Application\Trace.cs (2)
20internal static void SafeWrite(BooleanSwitch boolSwitch, string format, params ReadOnlySpan<object> args) 38params ReadOnlySpan<object> args)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
1840private static bool StringToZoomValue(ReadOnlySpan<char> zoomString, out double zoomValue)
ReachFramework (2)
Packaging\XpsFixedPageReaderWriter.cs (2)
1851ReadOnlySpan<char> path = imageUri.OriginalString.AsSpan(); 1852ReadOnlySpan<char> extension = Path.GetExtension(path).Slice(1);
RepoTasks (12)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\RegexGenerator.g.cs (12)
115protected override void Scan(ReadOnlySpan<char> inputSpan) 133private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 158private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 163ReadOnlySpan<char> slice = inputSpan.Slice(pos); 275protected override void Scan(ReadOnlySpan<char> inputSpan) 287private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 309private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 313ReadOnlySpan<char> slice = inputSpan.Slice(pos); 407protected override void Scan(ReadOnlySpan<char> inputSpan) 425private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 448private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 456ReadOnlySpan<char> slice = inputSpan.Slice(pos);
ResultsOfTGenerator (1)
Program.cs (1)
1076var origValueSpan = s.AsSpan();
Roslyn.Diagnostics.Analyzers (86)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
826public static string CollapseWithForwardSlash(ReadOnlySpan<char> path)
src\roslyn\src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
53public abstract void Append(ReadOnlySpan<byte> source);
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHash128.cs (5)
77public static byte[] Hash(ReadOnlySpan<byte> source, long seed = 0) 90public static int Hash(ReadOnlySpan<byte> source, Span<byte> destination, long seed = 0) 106public static bool TryHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, long seed = 0) 133private static Hash128 HashToHash128(ReadOnlySpan<byte> source, long seed = 0) 165public override void Append(ReadOnlySpan<byte> source)
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHashShared.cs (2)
42public static ReadOnlySpan<byte> DefaultSecret => 249public static void Append(ref State state, ReadOnlySpan<byte> source)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
102public void AppendFormatted(ReadOnlySpan<char> value) => _builder!.Append(value.ToString());
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
48private static int IndexOfExtension(ReadOnlySpan<char> path)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Hash.cs (4)
229internal static int GetFNVHashCode(ReadOnlySpan<byte> data, out bool isAscii) 272internal static int GetFNVHashCode(ReadOnlySpan<char> data) 295internal static int GetCaseInsensitiveFNVHashCode(ReadOnlySpan<char> data) 401internal static int CombineFNVHash(int hashCode, ReadOnlySpan<char> data)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\HexUtilities.cs (4)
11internal static string ToHexString(ReadOnlySpan<byte> bytes) 14internal static string ToHexStringLower(ReadOnlySpan<byte> bytes) 17private static string ToHexString(ReadOnlySpan<byte> bytes, bool upperCase) 29static void toHex(ReadOnlySpan<byte> source, Span<char> destination, char firstHexLetter)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (1)
22public static bool Equals(ReadOnlySpan<char> x, ReadOnlyMemory<char> y)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (8)
122internal string Add(ReadOnlySpan<char> chars) 199private static string? FindSharedEntry(ReadOnlySpan<char> chars, int hashCode) 237private static string? FindSharedEntryASCII(int hashCode, ReadOnlySpan<byte> asciiChars) 313private string AddItem(ReadOnlySpan<char> chars, int hashCode) 389internal static string AddSharedUtf8(ReadOnlySpan<byte> bytes) 405private static string AddSharedSlow(int hashCode, ReadOnlySpan<byte> utf8Bytes, bool isAscii) 529internal static bool TextEqualsASCII(string text, ReadOnlySpan<byte> ascii) 554internal static bool TextEquals(string array, ReadOnlySpan<char> text)
src\roslyn\src\Dependencies\Collections\Extensions\MemoryExtensions.cs (2)
15/// Variant of <see cref="System.MemoryExtensions.BinarySearch{T, TComparer}(ReadOnlySpan{T}, T, TComparer)"/>. 17public static int BinarySearch<TElement, TValue>(this ReadOnlySpan<TElement> span, TValue value, Func<TElement, TValue, int> comparer)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (1)
1224private static ReadOnlySpan<byte> Log2DeBruijn => new byte[32]
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
194ReadOnlySpan<KeyValuePair<TKey, TValue>> span;
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (2)
183public void AddWork(ReadOnlySpan<TItem> items, bool cancelExistingWork = false) 210void AddItemsToBatch(ReadOnlySpan<TItem> items)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\MetricsHelper.cs (8)
102ReadOnlySpan<char> remainingTrivia = fullTrivia.AsSpan(); 106static bool TryTakeNextLine(ref ReadOnlySpan<char> remaining, out ReadOnlySpan<char> next, bool leading) 110next = ReadOnlySpan<char>.Empty; 120remaining = ReadOnlySpan<char>.Empty; 142remaining = ReadOnlySpan<char>.Empty; 160static int GetNewlineCount(ReadOnlySpan<char> trivia, bool leading) 163while (TryTakeNextLine(ref trivia, out var next, leading))
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PathHelper.cs (2)
15public static ReadOnlySpan<char> GetFileName(string? path) 18return ReadOnlySpan<char>.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
96private static bool TryParseNotification(ReadOnlySpan<char> value, out NotificationOption2 notification)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\CollectionExpressionUtilities.cs (1)
138/// <item>They must have a final parameter that is the <see cref="ReadOnlySpan{T}"/> containing the elements of the
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReadOnlySpanExtensions.cs (1)
13public static bool Contains<T>(this ReadOnlySpan<T> values, T value)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\IMetricSink.cs (2)
23void Count(string eventName, string metricName, long delta, ReadOnlySpan<KeyValuePair<string, object?>> tags); 28void Record(string eventName, string metricName, long value, ReadOnlySpan<KeyValuePair<string, object?>> tags);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\RoslynTelemetry_Metrics.cs (4)
71public void Count(FunctionId functionId, string metricName, long delta, ReadOnlySpan<KeyValuePair<string, object?>> tags) 74private void CountCore(FunctionId functionId, string metricName, long delta, ReadOnlySpan<KeyValuePair<string, object?>> tags) 113public void Record(FunctionId functionId, string metricName, long value, ReadOnlySpan<KeyValuePair<string, object?>> tags) 116private void RecordCore(FunctionId functionId, string metricName, long value, ReadOnlySpan<KeyValuePair<string, object?>> tags)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (3)
325/// cref="ReadOnlySpan{T}">ReadOnlySpan</see>&lt;<see cref="byte"/>&gt;, and deserialized to a byte array. 328public void WriteSpan(ReadOnlySpan<byte> span) 365ReadOnlySpan<T> span,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (2)
364var keySpan1 = _symbolKeyData.AsSpan(position1); 365var keySpan2 = other._symbolKeyData.AsSpan(position2);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\System.Text\Rune.cs (8)
44private static ReadOnlySpan<byte> AsciiCharInfo => new byte[] 286public static OperationStatus DecodeFromUtf16(ReadOnlySpan<char> source, out Rune result, out int charsConsumed) 370public static OperationStatus DecodeFromUtf8(ReadOnlySpan<byte> source, out Rune result, out int bytesConsumed) 538/// This method is very similar to <see cref="DecodeFromUtf16(ReadOnlySpan{char}, out Rune, out int)"/>, but it allows 543public static OperationStatus DecodeLastFromUtf16(ReadOnlySpan<char> source, out Rune result, out int charsConsumed) 598/// This method is very similar to <see cref="DecodeFromUtf8(ReadOnlySpan{byte}, out Rune, out int)"/>, but it allows 603public static OperationStatus DecodeLastFromUtf8(ReadOnlySpan<byte> source, out Rune value, out int bytesConsumed) 779internal static int ReadFirstRuneFromUtf16Buffer(ReadOnlySpan<char> input)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Base64Utilities.cs (4)
20private static ReadOnlySpan<sbyte> DecodingMap => 79public static bool TryFromBase64Chars(ReadOnlySpan<char> chars, Span<byte> bytes, out int bytesWritten) 173private static void CopyToTempBufferWithoutWhiteSpace(ReadOnlySpan<char> chars, Span<char> tempBuffer, out int consumed, out int charsWritten) 194private static bool TryDecodeFromUtf16(ReadOnlySpan<char> utf16, Span<byte> bytes, out int consumed, out int written)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (4)
168public static int GetEditDistance(ReadOnlySpan<char> source, ReadOnlySpan<char> target, int threshold = int.MaxValue) 175private static int GetEditDistanceWorker(ReadOnlySpan<char> source, ReadOnlySpan<char> target, int threshold)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringBreaker.cs (9)
17public static void AddWordParts(ReadOnlySpan<char> identifier, ref TemporaryArray<TextSpan> parts) 20public static void AddCharacterParts(ReadOnlySpan<char> identifier, ref TemporaryArray<TextSpan> parts) 23public static void AddParts(ReadOnlySpan<char> text, bool word, ref TemporaryArray<TextSpan> parts) 41public static TextSpan GenerateSpan(ReadOnlySpan<char> identifier, int wordStart, bool word) 81private static TextSpan ScanCharacterRun(ReadOnlySpan<char> identifier, int length, int wordStart) 102private static TextSpan ScanWordRun(ReadOnlySpan<char> identifier, int length, int wordStart) 151private static TextSpan ScanLowerCaseRun(ReadOnlySpan<char> identifier, int length, int wordStart) 162private static TextSpan ScanNumber(ReadOnlySpan<char> identifier, int length, int wordStart) 173private static int SkipPunctuation(ReadOnlySpan<char> identifier, int length, int wordStart)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
295=> compilation.GetTypeByMetadataName(typeof(ReadOnlySpan<>).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (2)
751or nameof(ReadOnlySpan<>) 794Name: nameof(ReadOnlySpan<>),
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (1)
291private static bool ContainsEscape(ReadOnlySpan<char> tokenText, bool escapeBraces)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
307private static ExpressionSyntax GenerateMemberAccess(params ReadOnlySpan<string> names)
sdk-tasks (8)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\RegexGenerator.g.cs (8)
107protected override void Scan(ReadOnlySpan<char> inputSpan) 119private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 141private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 148ReadOnlySpan<char> slice = inputSpan.Slice(pos); 347protected override void Scan(ReadOnlySpan<char> inputSpan) 359private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 381private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 391ReadOnlySpan<char> slice = inputSpan.Slice(pos);
Shared (1)
BufferWriterPool\BufferWriter.cs (1)
54public ReadOnlySpan<T> WrittenSpan => _buffer.AsSpan(0, WrittenCount);
System.Collections (4)
src\runtime\src\libraries\Common\src\System\Collections\Generic\BitHelper.cs (1)
43ReadOnlySpan<int> span = _span;
src\runtime\src\libraries\Common\src\System\Collections\HashHelpers.cs (2)
32internal static ReadOnlySpan<int> Primes => 83ReadOnlySpan<int> primes = Primes;
System\Collections\Generic\PriorityQueue.cs (1)
880ReadOnlySpan<(TElement Element, TPriority Priority)> nodes = _nodes.AsSpan(0, _size);
System.Collections.Concurrent (2)
src\runtime\src\libraries\Common\src\System\Collections\HashHelpers.cs (2)
32internal static ReadOnlySpan<int> Primes => 83ReadOnlySpan<int> primes = Primes;
System.Collections.Immutable (149)
src\runtime\src\libraries\Common\src\System\Collections\HashHelpers.cs (2)
32internal static ReadOnlySpan<int> Primes => 83ReadOnlySpan<int> primes = Primes;
System\Collections\Frozen\FrozenDictionary.AlternateLookup.cs (1)
54(typeof(TKey) != typeof(string) || typeof(TAlternateKey) == typeof(ReadOnlySpan<char>)))
System\Collections\Frozen\FrozenDictionary.cs (2)
28public static FrozenDictionary<TKey, TValue> Create<TKey, TValue>(params ReadOnlySpan<KeyValuePair<TKey, TValue>> source) 42public static FrozenDictionary<TKey, TValue> Create<TKey, TValue>(IEqualityComparer<TKey>? comparer, params ReadOnlySpan<KeyValuePair<TKey, TValue>> source)
System\Collections\Frozen\FrozenHashTable.cs (2)
152private static int CalcNumBuckets(ReadOnlySpan<int> hashCodes, bool hashCodesAreUnique) 197ReadOnlySpan<int> primes = HashHelpers.Primes;
System\Collections\Frozen\FrozenSet.AlternateLookup.cs (1)
54(typeof(T) != typeof(string) || typeof(TAlternate) == typeof(ReadOnlySpan<char>)))
System\Collections\Frozen\FrozenSet.cs (2)
22public static FrozenSet<T> Create<T>(params ReadOnlySpan<T> source) => Create(null, source); 29public static FrozenSet<T> Create<T>(IEqualityComparer<T>? equalityComparer, params ReadOnlySpan<T> source)
System\Collections\Frozen\String\Hashing.cs (3)
24public static unsafe int GetHashCodeOrdinal(ReadOnlySpan<char> s) 79public static unsafe int GetHashCodeOrdinalIgnoreCaseAscii(ReadOnlySpan<char> s) 142public static int GetHashCodeOrdinalIgnoreCase(ReadOnlySpan<char> s)
System\Collections\Frozen\String\KeyAnalyzer.cs (7)
30ReadOnlySpan<string> uniqueStrings, bool ignoreCase, int minLength, int maxLength) 46private static bool TryUseSubstring(ReadOnlySpan<string> uniqueStrings, bool allUniqueStringsAreConfirmedAscii, bool ignoreCase, int minLength, int maxLength, out AnalysisResults results) 125ReadOnlySpan<string> uniqueStrings, bool allUniqueStringsAreConfirmedAscii, bool ignoreCase, int minLength, int maxLength, int index, int count, GetSpan getHashString) 185private delegate ReadOnlySpan<char> GetSpan(string s, int index, int count); 187private static bool AreAllAscii(ReadOnlySpan<string> strings) 202internal static bool ContainsAnyAsciiLetters(ReadOnlySpan<char> s) 209internal static bool HasSufficientUniquenessFactor(HashSet<string> set, ReadOnlySpan<string> uniqueStrings, int acceptableNonUniqueCount)
System\Collections\Frozen\String\LengthBucketsFrozenDictionary.AlternateLookup.cs (6)
13/// Invokes <see cref="GetValueRefOrNullRefCoreAlternate(ReadOnlySpan{char})"/> 16private static readonly AlternateLookupDelegate<ReadOnlySpan<char>> s_alternateLookup = (dictionary, key) 22Debug.Assert(typeof(TAlternateKey) == typeof(ReadOnlySpan<char>)); 27private ref readonly TValue GetValueRefOrNullRefCoreAlternate(ReadOnlySpan<char> key) 29IAlternateEqualityComparer<ReadOnlySpan<char>, string> comparer = GetAlternateEqualityComparer<ReadOnlySpan<char>>();
System\Collections\Frozen\String\LengthBucketsFrozenSet.AlternateLookup.cs (6)
13/// Invokes <see cref="FindItemIndexAlternate(ReadOnlySpan{char})"/> 16private static readonly AlternateLookupDelegate<ReadOnlySpan<char>> s_alternateLookup = (set, key) 22Debug.Assert(typeof(TAlternateKey) == typeof(ReadOnlySpan<char>)); 27private int FindItemIndexAlternate(ReadOnlySpan<char> item) 29IAlternateEqualityComparer<ReadOnlySpan<char>, string> comparer = GetAlternateEqualityComparer<ReadOnlySpan<char>>();
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_Full.cs (2)
28private protected override bool Equals(ReadOnlySpan<char> x, string? y) => x.SequenceEqual(y.AsSpan()); 30private protected override int GetHashCode(ReadOnlySpan<char> s) => Hashing.GetHashCodeOrdinal(s);
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_FullCaseInsensitive.cs (2)
28private protected override bool Equals(ReadOnlySpan<char> x, string? y) => x.Equals(y.AsSpan(), StringComparison.OrdinalIgnoreCase); 30private protected override int GetHashCode(ReadOnlySpan<char> s) => Hashing.GetHashCodeOrdinalIgnoreCase(s);
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_FullCaseInsensitiveAscii.cs (2)
28private protected override bool Equals(ReadOnlySpan<char> x, string? y) => x.Equals(y.AsSpan(), StringComparison.OrdinalIgnoreCase); 30private protected override int GetHashCode(ReadOnlySpan<char> s) => Hashing.GetHashCodeOrdinalIgnoreCaseAscii(s);
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_LeftJustifiedCaseInsensitiveAsciiSubstring.cs (2)
26private protected override bool Equals(ReadOnlySpan<char> x, string? y) => x.Equals(y.AsSpan(), StringComparison.OrdinalIgnoreCase); 28private protected override int GetHashCode(ReadOnlySpan<char> s) => Hashing.GetHashCodeOrdinalIgnoreCaseAscii(s.Slice(HashIndex, HashCount));
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_LeftJustifiedCaseInsensitiveSubstring.cs (2)
26private protected override bool Equals(ReadOnlySpan<char> x, string? y) => x.Equals(y.AsSpan(), StringComparison.OrdinalIgnoreCase); 28private protected override int GetHashCode(ReadOnlySpan<char> s) => Hashing.GetHashCodeOrdinalIgnoreCase(s.Slice(HashIndex, HashCount));
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_LeftJustifiedSingleChar.cs (2)
25private protected override bool Equals(ReadOnlySpan<char> x, string? y) => x.SequenceEqual(y.AsSpan()); 27private protected override int GetHashCode(ReadOnlySpan<char> s) => s[HashIndex];
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_LeftJustifiedSubstring.cs (2)
26private protected override bool Equals(ReadOnlySpan<char> x, string? y) => x.SequenceEqual(y.AsSpan()); 28private protected override int GetHashCode(ReadOnlySpan<char> s) => Hashing.GetHashCodeOrdinal(s.Slice(HashIndex, HashCount));
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_RightJustifiedCaseInsensitiveAsciiSubstring.cs (2)
26private protected override bool Equals(ReadOnlySpan<char> x, string? y) => x.Equals(y.AsSpan(), StringComparison.OrdinalIgnoreCase); 28private protected override int GetHashCode(ReadOnlySpan<char> s) => Hashing.GetHashCodeOrdinalIgnoreCaseAscii(s.Slice(s.Length + HashIndex, HashCount));
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_RightJustifiedCaseInsensitiveSubstring.cs (2)
26private protected override bool Equals(ReadOnlySpan<char> x, string? y) => x.Equals(y.AsSpan(), StringComparison.OrdinalIgnoreCase); 28private protected override int GetHashCode(ReadOnlySpan<char> s) => Hashing.GetHashCodeOrdinalIgnoreCase(s.Slice(s.Length + HashIndex, HashCount));
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_RightJustifiedSingleChar.cs (2)
25private protected override bool Equals(ReadOnlySpan<char> x, string? y) => x.SequenceEqual(y.AsSpan()); 27private protected override int GetHashCode(ReadOnlySpan<char> s) => s[s.Length + HashIndex];
System\Collections\Frozen\String\OrdinalStringFrozenDictionary_RightJustifiedSubstring.cs (2)
26private protected override bool Equals(ReadOnlySpan<char> x, string? y) => x.SequenceEqual(y.AsSpan()); 28private protected override int GetHashCode(ReadOnlySpan<char> s) => Hashing.GetHashCodeOrdinal(s.Slice(s.Length + HashIndex, HashCount));
System\Collections\Frozen\String\OrdinalStringFrozenDictionary.AlternateLookup.cs (15)
13/// Invokes <see cref="GetValueRefOrNullRefCoreAlternate(ReadOnlySpan{char})"/> 16private static readonly AlternateLookupDelegate<ReadOnlySpan<char>> s_alternateLookup = (dictionary, key) 22Debug.Assert(typeof(TAlternateKey) == typeof(ReadOnlySpan<char>)); 34private protected virtual ref readonly TValue GetValueRefOrNullRefCoreAlternate(ReadOnlySpan<char> key) 63private protected override ref readonly TValue GetValueRefOrNullRefCoreAlternate(ReadOnlySpan<char> key) => ref base.GetValueRefOrNullRefCoreAlternate(key); 68private protected override ref readonly TValue GetValueRefOrNullRefCoreAlternate(ReadOnlySpan<char> key) => ref base.GetValueRefOrNullRefCoreAlternate(key); 73private protected override ref readonly TValue GetValueRefOrNullRefCoreAlternate(ReadOnlySpan<char> key) => ref base.GetValueRefOrNullRefCoreAlternate(key); 78private protected override ref readonly TValue GetValueRefOrNullRefCoreAlternate(ReadOnlySpan<char> key) => ref base.GetValueRefOrNullRefCoreAlternate(key); 83private protected override ref readonly TValue GetValueRefOrNullRefCoreAlternate(ReadOnlySpan<char> key) => ref base.GetValueRefOrNullRefCoreAlternate(key); 88private protected override ref readonly TValue GetValueRefOrNullRefCoreAlternate(ReadOnlySpan<char> key) => ref base.GetValueRefOrNullRefCoreAlternate(key); 93private protected override ref readonly TValue GetValueRefOrNullRefCoreAlternate(ReadOnlySpan<char> key) => ref base.GetValueRefOrNullRefCoreAlternate(key); 98private protected override ref readonly TValue GetValueRefOrNullRefCoreAlternate(ReadOnlySpan<char> key) => ref base.GetValueRefOrNullRefCoreAlternate(key); 103private protected override ref readonly TValue GetValueRefOrNullRefCoreAlternate(ReadOnlySpan<char> key) => ref base.GetValueRefOrNullRefCoreAlternate(key); 108private protected override ref readonly TValue GetValueRefOrNullRefCoreAlternate(ReadOnlySpan<char> key) => ref base.GetValueRefOrNullRefCoreAlternate(key); 113private protected override ref readonly TValue GetValueRefOrNullRefCoreAlternate(ReadOnlySpan<char> key) => ref base.GetValueRefOrNullRefCoreAlternate(key);
System\Collections\Frozen\String\OrdinalStringFrozenDictionary.cs (2)
66private protected abstract bool Equals(ReadOnlySpan<char> x, string? y); 68private protected abstract int GetHashCode(ReadOnlySpan<char> s);
System\Collections\Frozen\String\OrdinalStringFrozenSet_Full.cs (1)
27private protected override int GetHashCode(ReadOnlySpan<char> s) => Hashing.GetHashCodeOrdinal(s);
System\Collections\Frozen\String\OrdinalStringFrozenSet_FullCaseInsensitive.cs (2)
27private protected override bool Equals(ReadOnlySpan<char> x, string? y) => EqualsOrdinalIgnoreCase(x, y); 29private protected override int GetHashCode(ReadOnlySpan<char> s) => Hashing.GetHashCodeOrdinalIgnoreCase(s);
System\Collections\Frozen\String\OrdinalStringFrozenSet_FullCaseInsensitiveAscii.cs (2)
27private protected override bool Equals(ReadOnlySpan<char> x, string? y) => EqualsOrdinalIgnoreCase(x, y); 29private protected override int GetHashCode(ReadOnlySpan<char> s) => Hashing.GetHashCodeOrdinalIgnoreCaseAscii(s);
System\Collections\Frozen\String\OrdinalStringFrozenSet_LeftJustifiedCaseInsensitiveAsciiSubstring.cs (2)
25private protected override bool Equals(ReadOnlySpan<char> x, string? y) => EqualsOrdinalIgnoreCase(x, y); 27private protected override int GetHashCode(ReadOnlySpan<char> s) => Hashing.GetHashCodeOrdinalIgnoreCaseAscii(s.Slice(HashIndex, HashCount));
System\Collections\Frozen\String\OrdinalStringFrozenSet_LeftJustifiedCaseInsensitiveSubstring.cs (2)
25private protected override bool Equals(ReadOnlySpan<char> x, string? y) => EqualsOrdinalIgnoreCase(x, y); 27private protected override int GetHashCode(ReadOnlySpan<char> s) => Hashing.GetHashCodeOrdinalIgnoreCase(s.Slice(HashIndex, HashCount));
System\Collections\Frozen\String\OrdinalStringFrozenSet_LeftJustifiedSingleChar.cs (1)
24private protected override int GetHashCode(ReadOnlySpan<char> s) => s[HashIndex];
System\Collections\Frozen\String\OrdinalStringFrozenSet_LeftJustifiedSubstring.cs (1)
25private protected override int GetHashCode(ReadOnlySpan<char> s) => Hashing.GetHashCodeOrdinal(s.Slice(HashIndex, HashCount));
System\Collections\Frozen\String\OrdinalStringFrozenSet_RightJustifiedCaseInsensitiveAsciiSubstring.cs (2)
25private protected override bool Equals(ReadOnlySpan<char> x, string? y) => EqualsOrdinalIgnoreCase(x, y); 27private protected override int GetHashCode(ReadOnlySpan<char> s) => Hashing.GetHashCodeOrdinalIgnoreCaseAscii(s.Slice(s.Length + HashIndex, HashCount));
System\Collections\Frozen\String\OrdinalStringFrozenSet_RightJustifiedCaseInsensitiveSubstring.cs (2)
25private protected override bool Equals(ReadOnlySpan<char> x, string? y) => EqualsOrdinalIgnoreCase(x, y); 27private protected override int GetHashCode(ReadOnlySpan<char> s) => Hashing.GetHashCodeOrdinalIgnoreCase(s.Slice(s.Length + HashIndex, HashCount));
System\Collections\Frozen\String\OrdinalStringFrozenSet_RightJustifiedSingleChar.cs (1)
24private protected override int GetHashCode(ReadOnlySpan<char> s) => s[s.Length + HashIndex];
System\Collections\Frozen\String\OrdinalStringFrozenSet_RightJustifiedSubstring.cs (1)
25private protected override int GetHashCode(ReadOnlySpan<char> s) => Hashing.GetHashCodeOrdinal(s.Slice(s.Length + HashIndex, HashCount));
System\Collections\Frozen\String\OrdinalStringFrozenSet.AlternateLookup.cs (14)
15private static readonly AlternateLookupDelegate<ReadOnlySpan<char>> s_alternateLookup = (set, key) 21Debug.Assert(typeof(TAlternateKey) == typeof(ReadOnlySpan<char>)); 34private protected virtual int FindItemIndexAlternate(ReadOnlySpan<char> item) 63private protected override int FindItemIndexAlternate(ReadOnlySpan<char> item) => base.FindItemIndexAlternate(item); 68private protected override int FindItemIndexAlternate(ReadOnlySpan<char> item) => base.FindItemIndexAlternate(item); 73private protected override int FindItemIndexAlternate(ReadOnlySpan<char> item) => base.FindItemIndexAlternate(item); 78private protected override int FindItemIndexAlternate(ReadOnlySpan<char> item) => base.FindItemIndexAlternate(item); 83private protected override int FindItemIndexAlternate(ReadOnlySpan<char> item) => base.FindItemIndexAlternate(item); 88private protected override int FindItemIndexAlternate(ReadOnlySpan<char> item) => base.FindItemIndexAlternate(item); 93private protected override int FindItemIndexAlternate(ReadOnlySpan<char> item) => base.FindItemIndexAlternate(item); 98private protected override int FindItemIndexAlternate(ReadOnlySpan<char> item) => base.FindItemIndexAlternate(item); 103private protected override int FindItemIndexAlternate(ReadOnlySpan<char> item) => base.FindItemIndexAlternate(item); 108private protected override int FindItemIndexAlternate(ReadOnlySpan<char> item) => base.FindItemIndexAlternate(item); 113private protected override int FindItemIndexAlternate(ReadOnlySpan<char> item) => base.FindItemIndexAlternate(item);
System\Collections\Frozen\String\OrdinalStringFrozenSet.cs (4)
56private protected virtual bool Equals(ReadOnlySpan<char> x, string? y) => EqualsOrdinal(x, y); 58private protected abstract int GetHashCode(ReadOnlySpan<char> s); 98private protected static bool EqualsOrdinal(ReadOnlySpan<char> x, string? y) => 105private protected static bool EqualsOrdinalIgnoreCase(ReadOnlySpan<char> x, string? y) =>
System\Collections\Immutable\ImmutableArray_1.Builder.cs (2)
432public void AddRange(params ReadOnlySpan<T> items) 445public void AddRange<TDerived>(params ReadOnlySpan<TDerived> items) where TDerived : T
System\Collections\Immutable\ImmutableArray_1.cs (8)
99public ReadOnlySpan<T> AsSpan() => new ReadOnlySpan<T>(array); 883public ImmutableArray<T> AddRange(params ReadOnlySpan<T> items) 901/// Creates a <see cref="ReadOnlySpan{T}"/> over the portion of current <see cref="ImmutableArray{T}"/> beginning at a specified position for a specified length. 905/// <returns>The <see cref="ReadOnlySpan{T}"/> representation of the <see cref="ImmutableArray{T}"/></returns> 906public ReadOnlySpan<T> AsSpan(int start, int length) => new ReadOnlySpan<T>(array, start, length); 952public ImmutableArray<T> InsertRange(int index, params ReadOnlySpan<T> items) 980public ImmutableArray<T> RemoveRange(ReadOnlySpan<T> items, IEqualityComparer<T>? equalityComparer = null) 1508private ImmutableArray<T> InsertSpanRangeInternal(int index, ReadOnlySpan<T> items)
System\Collections\Immutable\ImmutableArray_1.netcoreapp.cs (3)
11/// Creates a <see cref="ReadOnlySpan{T}"/> over the portion of current <see cref="ImmutableArray{T}"/> based on specified <paramref name="range"/> 14/// <returns>The <see cref="ReadOnlySpan{T}"/> representation of the <see cref="ImmutableArray{T}"/></returns> 15public ReadOnlySpan<T> AsSpan(Range range)
System\Collections\Immutable\ImmutableArray.cs (4)
91public static ImmutableArray<T> Create<T>(params ReadOnlySpan<T> items) 111return Create((ReadOnlySpan<T>)items); 120public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> items) 134return Create((ReadOnlySpan<T>)items);
System\Collections\Immutable\ImmutableDictionary_2.cs (2)
318internal ImmutableDictionary<TKey, TValue> AddRange(ReadOnlySpan<KeyValuePair<TKey, TValue>> pairs, KeyCollisionBehavior collisionBehavior = KeyCollisionBehavior.ThrowIfValueDifferent) 983private static MutationResult AddRange(ReadOnlySpan<KeyValuePair<TKey, TValue>> items, MutationInput origin, KeyCollisionBehavior collisionBehavior = KeyCollisionBehavior.ThrowIfValueDifferent)
System\Collections\Immutable\ImmutableDictionary.cs (2)
80params ReadOnlySpan<KeyValuePair<TKey, TValue>> items) 114params ReadOnlySpan<KeyValuePair<TKey, TValue>> items)
System\Collections\Immutable\ImmutableHashSet_1.cs (2)
234internal ImmutableHashSet<T> Union(ReadOnlySpan<T> other) 696private static MutationResult Union(ReadOnlySpan<T> other, MutationInput origin)
System\Collections\Immutable\ImmutableHashSet.cs (4)
92return Create((ReadOnlySpan<T>)items); 101public static ImmutableHashSet<T> Create<T>(params ReadOnlySpan<T> items) 117return Create(equalityComparer, (ReadOnlySpan<T>)items); 127public static ImmutableHashSet<T> Create<T>(IEqualityComparer<T>? equalityComparer, params ReadOnlySpan<T> items)
System\Collections\Immutable\ImmutableList_1.cs (1)
234internal ImmutableList<T> AddRange(ReadOnlySpan<T> items)
System\Collections\Immutable\ImmutableList_1.Node.cs (2)
266internal static Node NodeTreeFromList(ReadOnlySpan<T> items) 350internal Node AddRange(ReadOnlySpan<T> keys)
System\Collections\Immutable\ImmutableList.cs (2)
46return Create((ReadOnlySpan<T>)items); 55public static ImmutableList<T> Create<T>(params ReadOnlySpan<T> items) => ImmutableList<T>.Empty.AddRange(items);
System\Collections\Immutable\ImmutableQueue.cs (2)
77return Create((ReadOnlySpan<T>)items); 86public static ImmutableQueue<T> Create<T>(params ReadOnlySpan<T> items)
System\Collections\Immutable\ImmutableSortedSet_1.cs (3)
330internal ImmutableSortedSet<T> Union(ReadOnlySpan<T> other) 1101private ImmutableSortedSet<T> UnionIncremental(ReadOnlySpan<T> items) 1237private ImmutableSortedSet<T> LeafToRootRefill(ReadOnlySpan<T> addedItems)
System\Collections\Immutable\ImmutableSortedSet.cs (4)
91return Create((ReadOnlySpan<T>)items); 100public static ImmutableSortedSet<T> Create<T>(params ReadOnlySpan<T> items) 116return Create(comparer, (ReadOnlySpan<T>)items); 126public static ImmutableSortedSet<T> Create<T>(IComparer<T>? comparer, params ReadOnlySpan<T> items)
System\Collections\Immutable\ImmutableStack.cs (2)
64return Create((ReadOnlySpan<T>)items); 73public static ImmutableStack<T> Create<T>(params ReadOnlySpan<T> items)
System.Collections.Specialized (1)
System\Collections\Specialized\BitVector32.cs (1)
164ReadOnlySpan<char> prefix = "BitVector32{";
System.CommandLine (4)
EnvironmentVariablesDirective.cs (1)
58ReadOnlySpan<char> variable = parsedValue.AsSpan(0, indexOfSeparator).Trim();
ExecutableNameHelper.cs (1)
18ReadOnlySpan<char> fileName = Path.GetFileName(path.AsSpan());
Parsing\ParseOperation.cs (1)
350ReadOnlySpan<char> withoutBrackets = token.Value.AsSpan(1, token.Value.Length - 2);
Parsing\StringExtensions.cs (1)
206bool TryUnbundle(ReadOnlySpan<char> alias, int argumentIndex)
System.ComponentModel.Annotations (7)
System\ComponentModel\DataAnnotations\PhoneAttribute.cs (7)
35ReadOnlySpan<char> valueSpan = valueAsString.Replace("+", string.Empty).AsSpan().TrimEnd(); 66private static ReadOnlySpan<char> RemoveExtension(ReadOnlySpan<char> potentialPhoneNumber) 72ReadOnlySpan<char> extension = potentialPhoneNumber.Slice( 84ReadOnlySpan<char> extension = potentialPhoneNumber.Slice( 96ReadOnlySpan<char> extension = potentialPhoneNumber.Slice( 107private static bool MatchesExtension(ReadOnlySpan<char> potentialExtension)
System.ComponentModel.TypeConverter (11)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\RegexGenerator.g.cs (4)
66protected override void Scan(ReadOnlySpan<char> inputSpan) 84private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 109private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 113ReadOnlySpan<char> slice = inputSpan.Slice(pos);
src\runtime\src\libraries\Common\src\System\Drawing\ColorConverterCommon.cs (2)
60ReadOnlySpan<char> textSpan = text; 89private static int IntFromString(ReadOnlySpan<char> text, CultureInfo culture)
System\ComponentModel\Design\Serialization\RootDesignerSerializerAttribute.cs (1)
82ReadOnlySpan<char> baseType = SerializerBaseTypeName;
System\Drawing\PointConverter.cs (1)
29ReadOnlySpan<char> text = strValue.AsSpan().Trim();
System\Drawing\RectangleConverter.cs (1)
29ReadOnlySpan<char> text = strValue.AsSpan().Trim();
System\Drawing\SizeConverter.cs (1)
29ReadOnlySpan<char> text = strValue.AsSpan().Trim();
System\Drawing\SizeFConverter.cs (1)
29ReadOnlySpan<char> text = strValue.AsSpan().Trim();
System.Configuration.ConfigurationManager (2)
src\runtime\src\libraries\Common\src\System\Security\IdentityHelper.cs (1)
90ReadOnlySpan<byte> base32Chars = "abcdefghijklmnopqrstuvwxyz012345"u8;
System\Configuration\XmlUtil.cs (1)
29private static ReadOnlySpan<int> PositionOffset =>
System.Console (22)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
101public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 102public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 103public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 209public void Append(scoped ReadOnlySpan<char> value)
System\Console.cs (4)
868public static void WriteLine(ReadOnlySpan<char> value) 906public static void WriteLine([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg) 944public static void Write([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg) 1034public static void Write(ReadOnlySpan<char> value)
System\ConsolePal.Unix.ConsoleStream.cs (1)
49public override void Write(ReadOnlySpan<byte> buffer) =>
System\ConsolePal.Unix.cs (6)
626static void ReadRowOrCol(int startExclusive, int endExclusive, StdInReader reader, ReadOnlySpan<byte> source, ref int result) 654static void TransferBytes(ReadOnlySpan<byte> src, StdInReader dst) 818ReadOnlySpan<byte> consoleColorToAnsiCode = 958internal static void WriteToTerminal(ReadOnlySpan<byte> buffer, SafeFileHandle? handle = null, bool mayChangeCursorPosition = true) 969internal static unsafe void WriteFromConsoleStream(SafeFileHandle fd, ReadOnlySpan<byte> buffer) 983private static unsafe void Write(SafeFileHandle fd, ReadOnlySpan<byte> buffer, bool mayChangeCursorPosition = true)
System\IO\CachedConsoleStream.cs (2)
25public override unsafe void Write(ReadOnlySpan<byte> buffer) 47protected abstract void Print(ReadOnlySpan<char> line);
System\IO\KeyParser.cs (3)
56ReadOnlySpan<char> input = buffer.AsSpan(startIndex, endIndex - startIndex); 65Dictionary<string, ConsoleKeyInfo>.AlternateLookup<ReadOnlySpan<char>> terminfoDb = // the most important source of truth 66terminalFormatStrings.KeyFormatToConsoleKey.GetAlternateLookup<ReadOnlySpan<char>>();
System\IO\StdInReader.cs (2)
54internal unsafe void AppendExtraBuffer(ReadOnlySpan<byte> buffer) 389var chars = new ReadOnlySpan<char>(in c);
System.Data.Common (40)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\RegexGenerator.g.cs (12)
115protected override void Scan(ReadOnlySpan<char> inputSpan) 127private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 149private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 156ReadOnlySpan<char> slice = inputSpan.Slice(pos); 302protected override void Scan(ReadOnlySpan<char> inputSpan) 314private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 332private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 337ReadOnlySpan<char> slice = inputSpan.Slice(pos); 403protected override void Scan(ReadOnlySpan<char> inputSpan) 415private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 437private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 444ReadOnlySpan<char> slice = inputSpan.Slice(pos);
System\Data\Filter\Operators.cs (1)
121ReadOnlySpan<byte> priorities =
System\Data\SQLTypes\SQLBytes.cs (5)
328ReadOnlySpan<byte> span = new ReadOnlySpan<byte>(_rgbBuf, (int)offset, count); 334internal void Write(long offset, ReadOnlySpan<byte> buffer) 395private void WriteNoValidation(long offset, ReadOnlySpan<byte> buffer) 744public override void Write(ReadOnlySpan<byte> buffer) 760private void WriteNoValidation(ReadOnlySpan<byte> buffer)
System\Data\SQLTypes\SQLDateTime.cs (3)
54private static ReadOnlySpan<int> DaysToMonth365 => [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365]; 55private static ReadOnlySpan<int> DaysToMonth366 => [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366]; 113ReadOnlySpan<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\Xml\XPathNodePointer.cs (1)
26internal static ReadOnlySpan<int> XmlNodeTypeToXpathNodeTypeMap =>
System.Data.Odbc (12)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\RegexGenerator.g.cs (12)
115protected override void Scan(ReadOnlySpan<char> inputSpan) 127private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 149private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 156ReadOnlySpan<char> slice = inputSpan.Slice(pos); 302protected override void Scan(ReadOnlySpan<char> inputSpan) 314private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 332private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 337ReadOnlySpan<char> slice = inputSpan.Slice(pos); 403protected override void Scan(ReadOnlySpan<char> inputSpan) 415private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 437private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 444ReadOnlySpan<char> slice = inputSpan.Slice(pos);
System.Data.OleDb (14)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\RegexGenerator.g.cs (12)
115protected override void Scan(ReadOnlySpan<char> inputSpan) 127private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 149private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 156ReadOnlySpan<char> slice = inputSpan.Slice(pos); 302protected override void Scan(ReadOnlySpan<char> inputSpan) 314private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 332private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 337ReadOnlySpan<char> slice = inputSpan.Slice(pos); 403protected override void Scan(ReadOnlySpan<char> inputSpan) 415private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 437private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 444ReadOnlySpan<char> slice = inputSpan.Slice(pos);
SafeHandles.cs (2)
263ReadOnlySpan<byte> span1 = new ReadOnlySpan<byte>(buf1.ToPointer(), count); 264ReadOnlySpan<byte> span2 = new ReadOnlySpan<byte>(buf2.ToPointer(), count);
System.Diagnostics.DiagnosticSource (81)
src\runtime\src\libraries\Common\src\System\HexConverter.cs (9)
187public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper) 204public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper) 221public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 244public ReadOnlySpan<byte> Bytes { get; set; } 276public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 288public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 456private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 491private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 598public static ReadOnlySpan<byte> CharToHexLookup =>
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
101public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 102public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 103public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 209public void Append(scoped ReadOnlySpan<char> value)
System\Diagnostics\Activity.cs (13)
1106ReadOnlySpan<char> traceIdSpan = traceParent.AsSpan(3, 32); 1107ReadOnlySpan<char> spanIdSpan = traceParent.AsSpan(36, 16); 1765public TagsLinkedList(ReadOnlySpan<KeyValuePair<string, object?>> tags) 2035public static ActivityTraceId CreateFromBytes(ReadOnlySpan<byte> idData) 2042public static ActivityTraceId CreateFromUtf8String(ReadOnlySpan<byte> idData) => new ActivityTraceId(idData); 2044public static ActivityTraceId CreateFromString(ReadOnlySpan<char> idData) 2092private ActivityTraceId(ReadOnlySpan<byte> idData) 2151internal static void SetSpanFromHexChars(ReadOnlySpan<char> charData, Span<byte> destination) 2181internal static bool IsLowerCaseHexAndNotAllZeros(ReadOnlySpan<char> idData) 2212public static ActivitySpanId CreateFromBytes(ReadOnlySpan<byte> idData) 2219public static ActivitySpanId CreateFromUtf8String(ReadOnlySpan<byte> idData) => new ActivitySpanId(idData); 2221public static ActivitySpanId CreateFromString(ReadOnlySpan<char> idData) 2266private unsafe ActivitySpanId(ReadOnlySpan<byte> idData)
System\Diagnostics\DsesFilterAndTransform.cs (4)
212ReadOnlySpan<char> eventName; 213ReadOnlySpan<char> activitySourceName; 221ReadOnlySpan<char> entry = filterAndPayloadSpec.AsSpan( 231ReadOnlySpan<char> suffixPart = entry.Slice(eventNameIndex + 1).Trim();
System\Diagnostics\DsesSamplerBuilder.cs (1)
55static long GetLowerLong(ReadOnlySpan<byte> bytes)
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\Metrics\Counter.cs (1)
62public void Add(T delta, params ReadOnlySpan<KeyValuePair<string, object?>> tags) => RecordMeasurement(delta, tags);
System\Diagnostics\Metrics\Gauge.cs (1)
60public void Record(T value, params ReadOnlySpan<KeyValuePair<string, object?>> tags) => RecordMeasurement(value, tags);
System\Diagnostics\Metrics\Histogram.cs (1)
64public void Record(T value, params ReadOnlySpan<KeyValuePair<string, object?>> tags) => RecordMeasurement(value, tags);
System\Diagnostics\Metrics\Instrument.common.cs (1)
94protected void RecordMeasurement(T measurement, ReadOnlySpan<KeyValuePair<string, object?>> tags)
System\Diagnostics\Metrics\InstrumentState.cs (2)
14public abstract void Update(double measurement, ReadOnlySpan<KeyValuePair<string, object?>> labels); 40public override void Update(double measurement, ReadOnlySpan<KeyValuePair<string, object?>> labels)
System\Diagnostics\Metrics\Measurement.cs (3)
60/// Initializes a new instance of Measurement with the provided <paramref name="value"/> and a <see cref="ReadOnlySpan{T}"/> containing 65public Measurement(T value, params ReadOnlySpan<KeyValuePair<string, object?>> tags) 95public ReadOnlySpan<KeyValuePair<string, object?>> Tags => _tags.AsSpan();
System\Diagnostics\Metrics\MeterListener.cs (2)
12public delegate void MeasurementCallback<T>(Instrument instrument, T measurement, ReadOnlySpan<KeyValuePair<string, object?>> tags, object? state) where T : struct; 298internal void NotifyMeasurement<T>(Instrument instrument, T measurement, ReadOnlySpan<KeyValuePair<string, object?>> tags, object? state) where T : struct
System\Diagnostics\Metrics\MetricsEventSource.cs (2)
773ReadOnlySpan<char> spec = specString.AsSpan(0, index).Trim(); 774ReadOnlySpan<char> value = specString.AsSpan(index + 1).Trim();
System\Diagnostics\Metrics\TagList.netcore.cs (6)
38public TagList(params ReadOnlySpan<KeyValuePair<string, object?>> tagList) : this() 124((ReadOnlySpan<KeyValuePair<string, object?>>)_tags).CopyTo(_overflowTags); 189((ReadOnlySpan<KeyValuePair<string, object?>>)_tags).CopyTo(_overflowTags); 276ReadOnlySpan<KeyValuePair<string, object?>> tags = 307internal readonly ReadOnlySpan<KeyValuePair<string, object?>> Tags => 309((ReadOnlySpan<KeyValuePair<string, object?>>)_tags).Slice(0, _tagsCount);
System\Diagnostics\Metrics\UpDownCounter.cs (1)
61public void Add(T delta, params ReadOnlySpan<KeyValuePair<string, object?>> tags) => RecordMeasurement(delta, tags);
System\Diagnostics\W3CPropagator.cs (23)
111ReadOnlySpan<char> baggageSpan = baggageString; 116ReadOnlySpan<char> currentEntry = entrySeparator >= 0 ? baggageSpan.Slice(0, entrySeparator) : baggageSpan; 117ReadOnlySpan<char> nextBaggageSpan = entrySeparator >= 0 ? baggageSpan.Slice(entrySeparator + 1) : ReadOnlySpan<char>.Empty; 126ReadOnlySpan<char> keySpan = currentEntry.Slice(0, keyValueSeparator); 127ReadOnlySpan<char> valueSpan = currentEntry.Slice(keyValueSeparator + 1); 196ReadOnlySpan<char> traceStateSpan = traceState; 200ReadOnlySpan<char> entry = commaIndex >= 0 ? traceStateSpan.Slice(0, commaIndex) : traceStateSpan; 201traceStateSpan = commaIndex >= 0 ? traceStateSpan.Slice(commaIndex + 1) : ReadOnlySpan<char>.Empty; 225ReadOnlySpan<char> key = entry.Slice(0, equalIndex); 226ReadOnlySpan<char> value = entry.Slice(equalIndex + 1); 311private static bool TryDecodeBaggageKey(ReadOnlySpan<char> keySpan, out string key) 325private static bool TryDecodeBaggageValue(ReadOnlySpan<char> valueSpan, out string value) 449private static bool TryDecodeEscapedByte(ReadOnlySpan<char> span, out byte value) 479private static bool IsInvalidBaggageKey(ReadOnlySpan<char> span) => span.ContainsAnyExcept(s_validBaggageKeyChars); 489private static bool IsInvalidTraceStateKey(ReadOnlySpan<char> key) => 501private static bool IsInvalidTraceStateValue(ReadOnlySpan<char> value) => 528internal static bool EncodeBaggageKey(ReadOnlySpan<char> key, ref ValueStringBuilder vsb) 541internal static void EncodeBaggageValue(ReadOnlySpan<char> value, ref ValueStringBuilder vsb) 681public static ReadOnlySpan<char> TrimSpaceOnly(ReadOnlySpan<char> span) => span.Trim(Space); 684public static ReadOnlySpan<char> Trim(ReadOnlySpan<char> span) => span.Trim(" \t");
System.Diagnostics.EventLog (4)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LibraryImports.g.cs (4)
1402global::System.ReadOnlySpan<string> __valuePaths_native__managedSpan = __valuePaths_native__marshaller.GetManagedValuesSource(); 1436global::System.ReadOnlySpan<global::System.IntPtr> __valuePaths_native__nativeSpan = __valuePaths_native__marshaller.GetUnmanagedValuesDestination(); 1591global::System.ReadOnlySpan<global::Microsoft.Win32.UnsafeNativeMethods.EvtStringVariant> __values_native__managedSpan = __values_native__marshaller.GetManagedValuesSource(); 1626global::System.ReadOnlySpan<global::Microsoft.Win32.UnsafeNativeMethods.EvtStringVariant.Marshaller.Native> __values_native__nativeSpan = __values_native__marshaller.GetUnmanagedValuesDestination();
System.Diagnostics.FileVersionInfo (2)
System\Diagnostics\FileVersionInfo.Unix.cs (2)
202ReadOnlySpan<char> versionSpan = versionString; 229private static ushort ParseUInt16UntilNonDigit(ReadOnlySpan<char> s, out bool endedEarly)
System.Diagnostics.PerformanceCounter (11)
src\runtime\src\libraries\Common\src\Interop\Windows\Advapi32\Interop.PERF_INFO.cs (2)
109internal static ReadOnlySpan<char> GetName(in PERF_INSTANCE_DEFINITION instance, ReadOnlySpan<byte> data)
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
78private static string GetAndTrimString(ReadOnlySpan<char> buffer)
System\Diagnostics\PerformanceCounterLib.cs (8)
133ReadOnlySpan<byte> data = GetPerformanceData("Global"); 149ReadOnlySpan<byte> dataSpan = data.Slice(pos); 1388ReadOnlySpan<byte> data = rawData; 1411ReadOnlySpan<byte> dataSpan; 1538ReadOnlySpan<byte> data = _library.GetPerformanceData(categoryIndex.ToString(CultureInfo.InvariantCulture)); 1547ReadOnlySpan<byte> dataSpan; 1712private long ReadValue(ReadOnlySpan<byte> data) 1813internal void SetInstanceValue(int index, ReadOnlySpan<byte> data)
System.Diagnostics.Process (47)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LibraryImports.g.cs (4)
803private static partial int ReadLink(global::System.ReadOnlySpan<char> path, ref byte buffer, int bufferSize) 1051internal static partial int Access(global::System.ReadOnlySpan<char> path, global::Interop.Sys.AccessMode mode) 1220internal static partial int Stat(global::System.ReadOnlySpan<char> path, out global::Interop.Sys.FileStatus output) 1263internal static partial int LStat(global::System.ReadOnlySpan<char> path, out global::Interop.Sys.FileStatus output)
src\runtime\src\libraries\Common\src\Interop\Linux\cgroups\Interop.cgroups.cs (1)
418ReadOnlySpan<char> lineSpan = line;
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcFsStat.ParseMapModules.cs (1)
149ReadOnlySpan<char> span = s.AsSpan(start, end - start);
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcFsStat.TryReadStatusFile.cs (2)
77foreach (ReadOnlySpan<char> line in fileContents.AsSpan().EnumerateLines()) 85ReadOnlySpan<char> value = line.Slice(startIndex + 1);
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcMountInfo.cs (1)
22ReadOnlySpan<char> currentFormat = default;
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcMountInfo.TryParseMountInfoLine.cs (10)
14public required ReadOnlySpan<char> Root { get; init; } 15public required ReadOnlySpan<char> MountPoint { get; init; } 16public required ReadOnlySpan<char> FileSystemType { get; init; } 17public required ReadOnlySpan<char> SuperOptions { get; init; } 20internal static bool TryParseMountInfoLine(ReadOnlySpan<char> line, out ParsedMount result) 45ReadOnlySpan<char> root = line[fields.Current]; 52ReadOnlySpan<char> mountPoint = line[fields.Current]; 69ReadOnlySpan<char> fileSystemType = line[fields.Current]; 82ReadOnlySpan<char> superOptions = line[fields.Current]; 93static string UnescapePath(ReadOnlySpan<char> path)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.Access.cs (1)
24internal static partial int Access([MarshalUsing(typeof(SpanOfCharAsUtf8StringMarshaller))] ReadOnlySpan<char> path, AccessMode mode);
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.ReadLink.cs (2)
25private static partial int ReadLink([MarshalUsing(typeof(SpanOfCharAsUtf8StringMarshaller))] ReadOnlySpan<char> path, ref byte buffer, int bufferSize); 32internal static unsafe string? ReadLink(ReadOnlySpan<char> path)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.Stat.Span.cs (2)
13internal static partial int Stat([MarshalUsing(typeof(SpanOfCharAsUtf8StringMarshaller))] ReadOnlySpan<char> path, out FileStatus output); 16internal static partial int LStat([MarshalUsing(typeof(SpanOfCharAsUtf8StringMarshaller))] ReadOnlySpan<char> path, out FileStatus output);
src\runtime\src\libraries\Common\src\System\IO\StringParser.cs (2)
142ReadOnlySpan<char> span = _buffer.AsSpan(_startIndex, _endIndex - _startIndex); 165ReadOnlySpan<char> span = _buffer.AsSpan(_startIndex, _endIndex - _startIndex);
src\runtime\src\libraries\Common\src\System\Runtime\InteropServices\SpanOfCharAsUtf8StringMarshaller.cs (2)
12[CustomMarshaller(typeof(ReadOnlySpan<char>), MarshalMode.ManagedToUnmanagedIn, typeof(ManagedToUnmanagedIn))] 33public void FromManaged(ReadOnlySpan<char> managed, Span<byte> buffer)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
101public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 102public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 103public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 209public void Append(scoped ReadOnlySpan<char> value)
System\Diagnostics\Process.Linux.cs (3)
70ReadOnlySpan<string> allowedProgramsToRun = ["xdg-open", "gnome-open", "kfmclient"]; 252ReadOnlySpan<byte> argRemainder = buffer.Slice(0, bytesRead); 292static string? GetUntruncatedNameFromArg(ReadOnlySpan<byte> arg, string prefix)
System\Diagnostics\Process.Multiplexing.cs (5)
168ReadOnlySpan<byte> byteBuffer, 202private static int SkipPreambleOrDetectEncoding(ReadOnlySpan<byte> byteBuffer, ref Encoding encoding, ref Decoder decoder) 205ReadOnlySpan<byte> preamble = encoding.Preamble; 344private static void DecodeBytesAndParseLines(Decoder decoder, ReadOnlySpan<byte> byteBuffer, ref char[] charBuffer, ref int charStart, ref int charEnd, bool standardError, List<ProcessOutputLine> lines) 350private static bool FlushDecoderAndEmitRemainingChars(bool preambleChecked, Encoding encoding, Decoder decoder, ReadOnlySpan<byte> unconsumedBytes, ref char[] charBuffer, ref int charStart, ref int charEnd, bool standardError, List<ProcessOutputLine> lines)
System\Diagnostics\Process.Multiplexing.Unix.cs (1)
231ReadOnlySpan<byte> bytes = byteBuffer.AsSpan(0, unconsumedBytesCount + bytesRead);
System\Diagnostics\ProcessUtils.Unix.cs (6)
24private static bool IsExecutable(ReadOnlySpan<char> fullPath) 29private static bool IsExecutable(ReadOnlySpan<char> directory, ReadOnlySpan<char> fileName, ref ValueStringBuilder pathBuilder) 69ReadOnlySpan<char> pathEnvVarSpan = pathEnvVar; 79ReadOnlySpan<char> segment = pathEnvVarSpan.Slice(segmentStart, segmentLength); 377ReadOnlySpan<char> executableDirectory = Path.GetDirectoryName(path.AsSpan());
System.Diagnostics.TextWriterTraceListener (1)
System\Diagnostics\XmlWriterTraceListener.cs (1)
384private void InternalWrite(ReadOnlySpan<char> message)
System.DirectoryServices.AccountManagement (1)
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_LoadStore.cs (1)
605ReadOnlySpan<string> urnSchemesToTry =
System.Drawing.Primitives (6)
src\runtime\src\libraries\Common\src\System\Drawing\ColorConverterCommon.cs (2)
60ReadOnlySpan<char> textSpan = text; 89private static int IntFromString(ReadOnlySpan<char> text, CultureInfo culture)
System\Drawing\KnownColorTable.cs (4)
15public static ReadOnlySpan<uint> ColorValueTable => 241public static ReadOnlySpan<byte> ColorKindTable => 435private static ReadOnlySpan<uint> AlternateSystemColors => 480ReadOnlySpan<uint> colorValueTable = ColorValueTable;
System.Formats.Asn1 (225)
System\Formats\Asn1\Asn1Tag.cs (2)
158public static bool TryDecode(ReadOnlySpan<byte> source, out Asn1Tag tag, out int bytesConsumed) 253public static Asn1Tag Decode(ReadOnlySpan<byte> source, out int bytesConsumed)
System\Formats\Asn1\AsnCharacterStringEncodings.cs (10)
40protected abstract int GetBytes(ReadOnlySpan<char> chars, Span<byte> bytes, bool write); 41protected abstract int GetChars(ReadOnlySpan<byte> bytes, Span<char> chars, bool write); 62int GetByteCount(ReadOnlySpan<char> chars) 97int GetCharCount(ReadOnlySpan<byte> bytes) 210protected override int GetBytes(ReadOnlySpan<char> chars, Span<byte> bytes, bool write) 242protected int GetBytesScalar(ReadOnlySpan<char> chars, Span<byte> bytes, bool write, int position) 272protected override int GetChars(ReadOnlySpan<byte> bytes, Span<char> chars, bool write) 306protected int GetCharsScalar(ReadOnlySpan<byte> bytes, Span<char> chars, bool write, int position) 386public override int GetByteCount(ReadOnlySpan<char> chars) 427public override int GetCharCount(ReadOnlySpan<byte> bytes)
System\Formats\Asn1\AsnCharacterStringEncodings.net.cs (18)
18protected override int GetBytes(ReadOnlySpan<char> chars, Span<byte> bytes, bool write) 28protected override int GetChars(ReadOnlySpan<byte> bytes, Span<char> chars, bool write) 40private int GetBytesVectorized(ReadOnlySpan<char> chars, Span<byte> bytes, bool write) 48ReadOnlySpan<ushort> source = MemoryMarshal.Cast<char, ushort>(chars).Slice(0, available); 75private int GetCharsVectorized(ReadOnlySpan<byte> bytes, Span<char> chars, bool write) 82ReadOnlySpan<byte> source = bytes.Slice(0, available); 217protected override int GetBytes(ReadOnlySpan<char> chars, Span<byte> bytes, bool write) 247protected override int GetChars(ReadOnlySpan<byte> bytes, Span<char> chars, bool write) 281private int GetBytesVectorized(ReadOnlySpan<char> chars, Span<byte> bytes, bool write) 289ReadOnlySpan<ushort> source = MemoryMarshal.Cast<char, ushort>(chars).Slice(0, available); 320private int GetCharsVectorized(ReadOnlySpan<byte> bytes, Span<char> chars, bool write) 327ReadOnlySpan<byte> source = bytes.Slice(0, available); 390protected override int GetBytes(ReadOnlySpan<char> chars, Span<byte> bytes, bool write) 432protected override int GetChars(ReadOnlySpan<byte> bytes, Span<char> chars, bool write) 485private static int GetBytesVectorized(ReadOnlySpan<char> chars, Span<byte> bytes, bool write) 491ReadOnlySpan<ushort> source = MemoryMarshal.Cast<char, ushort>(chars).Slice(0, available); 521private static int GetCharsVectorized(ReadOnlySpan<byte> bytes, Span<char> chars, bool write) 527ReadOnlySpan<ushort> source = MemoryMarshal.Cast<byte, ushort>(bytes).Slice(0, available);
System\Formats\Asn1\AsnDecoder.BitString.cs (28)
62ReadOnlySpan<byte> source, 65out ReadOnlySpan<byte> value, 76out ReadOnlySpan<byte> localValue, 157ReadOnlySpan<byte> source, 185out ReadOnlySpan<byte> value, 275ReadOnlySpan<byte> source, 288out ReadOnlySpan<byte> localValue, 333ReadOnlySpan<byte> source, 336out ReadOnlySpan<byte> value, 368value = ReadOnlySpan<byte>.Empty; 395ReadOnlySpan<byte> value, 400ReadOnlySpan<byte> value, 415ReadOnlySpan<byte> source, 432ReadOnlySpan<byte> source, 453ReadOnlySpan<byte> source, 465ReadOnlySpan<byte> cur = source; 493ReadOnlySpan<byte> encodedValue = Slice(cur, headerLength, length.Value); 499out ReadOnlySpan<byte> contents, 524ReadOnlySpan<byte> topSpan = source.Slice(topOffset, topLength); 574ReadOnlySpan<byte> tmpSpan = source.Slice(topOffset, topLength); 588ReadOnlySpan<byte> source, 631ReadOnlySpan<byte> source, 637out ReadOnlySpan<byte> value, 647ReadOnlySpan<byte> encodedValue = Slice(source, headerLength, contentsLength); 725out ReadOnlySpan<byte> span, 855/// as a <see cref="ReadOnlySpan{T}"/> over the original data. 862/// On success, receives a <see cref="ReadOnlySpan{T}"/> over the original data 892out ReadOnlySpan<byte> value,
System\Formats\Asn1\AsnDecoder.Boolean.cs (2)
45ReadOnlySpan<byte> source, 51ReadOnlySpan<byte> contents = GetPrimitiveContentSpan(
System\Formats\Asn1\AsnDecoder.cs (34)
64ReadOnlySpan<byte> source, 144ReadOnlySpan<byte> source, 175private static ReadOnlySpan<byte> GetPrimitiveContentSpan( 176ReadOnlySpan<byte> source, 204ReadOnlySpan<byte> ret = Slice(source, headerLength, encodedLength.Value); 235ReadOnlySpan<byte> source, 275ReadOnlySpan<byte> source, 290ReadOnlySpan<byte> source, 298private static int? ReadLength(ReadOnlySpan<byte> source, AsnEncodingRules ruleSet, out int bytesConsumed) 321ReadOnlySpan<byte> source, 446ReadOnlySpan<byte> source, 485ReadOnlySpan<byte> source, 566private static int SeekEndOfContents(ReadOnlySpan<byte> source, AsnEncodingRules ruleSet) 568ReadOnlySpan<byte> cur = source; 608ReadOnlySpan<byte> tlv = Slice(cur, 0, bytesRead + length.Value); 619private static int ParseNonNegativeIntAndSlice(ref ReadOnlySpan<byte> data, int bytesToRead) 627private static int ParseNonNegativeInt(ReadOnlySpan<byte> data) 639private static ReadOnlySpan<byte> SliceAtMost(ReadOnlySpan<byte> source, int longestPermitted) 645private static ReadOnlySpan<byte> Slice(ReadOnlySpan<byte> source, int offset, int length) 657private static ReadOnlySpan<byte> Slice(ReadOnlySpan<byte> source, int offset, int? length) 676internal static ReadOnlyMemory<byte> Slice(ReadOnlyMemory<byte> bigger, ReadOnlySpan<byte> smaller) 912private ReadOnlySpan<byte> _data; 948public ValueAsnReader(ReadOnlySpan<byte> data, AsnEncodingRules ruleSet, AsnReaderOptions options = default) 988/// Gets a <see cref="ReadOnlySpan{T}"/> view of the next encoded value without 1000public readonly ReadOnlySpan<byte> PeekEncodedValue() 1007/// Gets a <see cref="ReadOnlySpan{T}"/> view of the content octets (bytes) of the 1018public readonly ReadOnlySpan<byte> PeekContentBytes() 1031/// Get a <see cref="ReadOnlySpan{T}"/> view of the next encoded value, 1036/// A <see cref="ReadOnlySpan{T}"/> view of the next encoded value. 1039public ReadOnlySpan<byte> ReadEncodedValue() 1041ReadOnlySpan<byte> encodedValue = PeekEncodedValue();
System\Formats\Asn1\AsnDecoder.Enumerated.cs (8)
48public static ReadOnlySpan<byte> ReadEnumeratedBytes( 49ReadOnlySpan<byte> source, 117ReadOnlySpan<byte> source, 190ReadOnlySpan<byte> source, 297ReadOnlySpan<byte> bytes = 416/// as a <see cref="ReadOnlySpan{T}"/> over the original data. 442public ReadOnlySpan<byte> ReadEnumeratedBytes(Asn1Tag? expectedTag = null) 444ReadOnlySpan<byte> bytes =
System\Formats\Asn1\AsnDecoder.GeneralizedTime.cs (4)
49ReadOnlySpan<byte> source, 61ReadOnlySpan<byte> contents = GetOctetStringContents( 83ReadOnlySpan<byte> contentOctets) 128ReadOnlySpan<byte> contents = contentOctets;
System\Formats\Asn1\AsnDecoder.Integer.cs (19)
49public static ReadOnlySpan<byte> ReadIntegerBytes( 50ReadOnlySpan<byte> source, 100ReadOnlySpan<byte> source, 105ReadOnlySpan<byte> contents = ReadIntegerBytes(source, ruleSet, out int consumed, expectedTag); 178ReadOnlySpan<byte> source, 245ReadOnlySpan<byte> source, 311ReadOnlySpan<byte> source, 371ReadOnlySpan<byte> source, 387private static ReadOnlySpan<byte> GetIntegerContents( 388ReadOnlySpan<byte> source, 395ReadOnlySpan<byte> contents = GetPrimitiveContentSpan( 426ReadOnlySpan<byte> source, 436ReadOnlySpan<byte> contents = GetIntegerContents( 465ReadOnlySpan<byte> source, 475ReadOnlySpan<byte> contents = GetIntegerContents( 549ReadOnlySpan<byte> bytes = 754/// as a <see cref="ReadOnlySpan{T}"/> over the original data. 779public ReadOnlySpan<byte> ReadIntegerBytes(Asn1Tag? expectedTag = null) 781ReadOnlySpan<byte> bytes =
System\Formats\Asn1\AsnDecoder.NamedBitList.cs (5)
106ReadOnlySpan<byte> source, 178ReadOnlySpan<byte> source, 227ReadOnlySpan<byte> valueSpan = stackSpan.Slice(0, bytesWritten); 322ReadOnlySpan<byte> source, 366private static long InterpretNamedBitListReversed(ReadOnlySpan<byte> valueSpan)
System\Formats\Asn1\AsnDecoder.Null.cs (2)
42ReadOnlySpan<byte> source, 48ReadOnlySpan<byte> contents = GetPrimitiveContentSpan(
System\Formats\Asn1\AsnDecoder.OctetString.cs (24)
62ReadOnlySpan<byte> source, 83out ReadOnlySpan<byte> contents, 158ReadOnlySpan<byte> source, 165ReadOnlySpan<byte> contents = GetOctetStringContents( 185ReadOnlySpan<byte> source, 191out ReadOnlySpan<byte> contents, 198ReadOnlySpan<byte> encodedValue = Slice(source, headerLength, contentLength); 268ReadOnlySpan<byte> source, 270out ReadOnlySpan<byte> value, 286ReadOnlySpan<byte> source, 308ReadOnlySpan<byte> source, 325ReadOnlySpan<byte> source, 335ReadOnlySpan<byte> cur = source; 359ReadOnlySpan<byte> contents = Slice(cur, headerLength, length.Value); 389ReadOnlySpan<byte> topSpan = source.Slice(topOffset, topLength); 438ReadOnlySpan<byte> topSpan = source.Slice(topOffset, topLength); 453ReadOnlySpan<byte> source, 476private static ReadOnlySpan<byte> GetOctetStringContents( 477ReadOnlySpan<byte> source, 494out ReadOnlySpan<byte> contents, 665out ReadOnlySpan<byte> span, 779/// as a <see cref="ReadOnlySpan{T}"/> over the original data. 782/// On success, receives a <see cref="ReadOnlySpan{T}"/> over the original data 809out ReadOnlySpan<byte> contents,
System\Formats\Asn1\AsnDecoder.Oid.cs (4)
51ReadOnlySpan<byte> source, 57ReadOnlySpan<byte> contents = GetPrimitiveContentSpan( 80ReadOnlySpan<byte> source, 231private static string ReadObjectIdentifier(ReadOnlySpan<byte> contents)
System\Formats\Asn1\AsnDecoder.Sequence.cs (1)
56ReadOnlySpan<byte> source,
System\Formats\Asn1\AsnDecoder.SetOf.cs (5)
62ReadOnlySpan<byte> source, 83ReadOnlySpan<byte> contents; 104ReadOnlySpan<byte> remaining = contents; 105ReadOnlySpan<byte> previous = default; 111ReadOnlySpan<byte> current = remaining.Slice(0, consumed);
System\Formats\Asn1\AsnDecoder.Text.cs (15)
59ReadOnlySpan<byte> source, 62out ReadOnlySpan<byte> value, 144ReadOnlySpan<byte> source, 241ReadOnlySpan<byte> source, 314ReadOnlySpan<byte> source, 333ReadOnlySpan<byte> source, 349out ReadOnlySpan<byte> contents, 386ReadOnlySpan<byte> source, 396ReadOnlySpan<byte> contents = GetOctetStringContents( 424ReadOnlySpan<byte> source, 436ReadOnlySpan<byte> contents = GetOctetStringContents( 540out ReadOnlySpan<byte> span, 739/// as an unprocessed <see cref="ReadOnlySpan{T}"/> over the original data. 743/// On success, receives a <see cref="ReadOnlySpan{T}"/> over the original data 773out ReadOnlySpan<byte> contents)
System\Formats\Asn1\AsnDecoder.UtcTime.cs (4)
57ReadOnlySpan<byte> source, 86ReadOnlySpan<byte> contents = GetOctetStringContents( 108ReadOnlySpan<byte> contentOctets, 149ReadOnlySpan<byte> contents = contentOctets;
System\Formats\Asn1\AsnWriter.BitString.cs (4)
36public void WriteBitString(ReadOnlySpan<byte> value, int unusedBitCount = 0, Asn1Tag? tag = null) 45private void WriteBitStringCore(Asn1Tag tag, ReadOnlySpan<byte> bitString, int unusedBitCount) 142private void WriteConstructedCerBitString(Asn1Tag tag, ReadOnlySpan<byte> payload, int unusedBitCount) 160ReadOnlySpan<byte> remainingData = payload;
System\Formats\Asn1\AsnWriter.cs (11)
232public TReturn Encode<TReturn>(Func<ReadOnlySpan<byte>, TReturn> encodeCallback) 240ReadOnlySpan<byte> encoded = EncodeAsSpan(); 274public TReturn Encode<TState, TReturn>(TState state, Func<TState, ReadOnlySpan<byte>, TReturn> encodeCallback) 283ReadOnlySpan<byte> encoded = EncodeAsSpan(); 311public void Encode<TState>(TState state, Action<TState, ReadOnlySpan<byte>> encodeCallback) 320ReadOnlySpan<byte> encoded = EncodeAsSpan(); 330private ReadOnlySpan<byte> EncodeAsSpan() 339return ReadOnlySpan<byte>.Empty; 359public bool EncodedValueEquals(ReadOnlySpan<byte> other) 570public void WriteEncodedValue(ReadOnlySpan<byte> value) 686ReadOnlySpan<byte> src = _buffer.AsSpan(start, containedLength);
System\Formats\Asn1\AsnWriter.Integer.cs (4)
85public void WriteInteger(ReadOnlySpan<byte> value, Asn1Tag? tag = null) 106public void WriteIntegerUnsigned(ReadOnlySpan<byte> value, Asn1Tag? tag = null) 219private void WriteIntegerUnsignedCore(Asn1Tag tag, ReadOnlySpan<byte> value) 250private void WriteIntegerCore(Asn1Tag tag, ReadOnlySpan<byte> value)
System\Formats\Asn1\AsnWriter.NamedBitList.cs (2)
168WriteBitString(ReadOnlySpan<byte>.Empty, tag: tag); 194WriteBitString(ReadOnlySpan<byte>.Empty, tag: tag);
System\Formats\Asn1\AsnWriter.OctetString.cs (4)
73public void WriteOctetString(ReadOnlySpan<byte> value, Asn1Tag? tag = null) 82private void WriteOctetStringCore(Asn1Tag tag, ReadOnlySpan<byte> octetString) 103private void WriteConstructedCerOctetString(Asn1Tag tag, ReadOnlySpan<byte> payload) 140ReadOnlySpan<byte> remainingData = payload;
System\Formats\Asn1\AsnWriter.Oid.cs (5)
55public void WriteObjectIdentifier(ReadOnlySpan<char> oidValue, Asn1Tag? tag = null) 60ReadOnlySpan<byte> wellKnownContents = WellKnownOids.GetContents(oidValue); 76private void WriteObjectIdentifierCore(Asn1Tag tag, ReadOnlySpan<char> oidValue) 114ReadOnlySpan<char> remaining = oidValue.Slice(2); 147private static BigInteger ParseSubIdentifier(ref ReadOnlySpan<char> oidValue)
System\Formats\Asn1\AsnWriter.Text.cs (3)
72public void WriteCharacterString(UniversalTagNumber encodingType, ReadOnlySpan<char> str, Asn1Tag? tag = null) 81private void WriteCharacterStringCore(Asn1Tag tag, Encoding encoding, ReadOnlySpan<char> str) 113private void WriteConstructedCerCharacterString(Asn1Tag tag, Encoding encoding, ReadOnlySpan<char> str, int size)
System\Formats\Asn1\SetOfValueComparer.cs (2)
15internal static int Compare(ReadOnlySpan<byte> x, ReadOnlySpan<byte> y)
System\Formats\Asn1\WellKnownOids.cs (5)
9internal static string? GetValue(ReadOnlySpan<byte> contents) 122internal static ReadOnlySpan<byte> GetContents(ReadOnlySpan<char> value) 124ReadOnlySpan<byte> data = 340_ => ReadOnlySpan<byte>.Empty
System.Formats.Cbor (51)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Marvin.cs (1)
23public static int ComputeHash32(ReadOnlySpan<byte> data, ulong seed) => ComputeHash32(ref MemoryMarshal.GetReference(data), (uint)data.Length, (uint)seed, (uint)(seed >> 32));
System\Formats\Cbor\CborConformanceLevel.cs (5)
207public static int GetKeyEncodingHashCode(ReadOnlySpan<byte> encoding) 212public static bool AreEqualKeyEncodings(ReadOnlySpan<byte> left, ReadOnlySpan<byte> right) 217public static int CompareKeyEncodings(ReadOnlySpan<byte> left, ReadOnlySpan<byte> right, CborConformanceMode mode)
System\Formats\Cbor\CborHelpers.netcoreapp.cs (1)
19public static Half ReadHalfBigEndian(ReadOnlySpan<byte> source)
System\Formats\Cbor\Reader\CborReader.Array.cs (1)
34ReadOnlySpan<byte> buffer = GetRemainingBytes();
System\Formats\Cbor\Reader\CborReader.cs (2)
390private ReadOnlySpan<byte> GetRemainingBytes() => _data.Span.Slice(_offset); 418private static void EnsureReadCapacity(ReadOnlySpan<byte> buffer, int requiredLength)
System\Formats\Cbor\Reader\CborReader.Integer.cs (3)
143private int DecodeDefiniteLength(CborInitialByte header, ReadOnlySpan<byte> data, out int bytesRead) 160private int DecodeCollectionLength(CborInitialByte header, ReadOnlySpan<byte> data, out int bytesRead) 178private ulong DecodeUnsignedInteger(CborInitialByte header, ReadOnlySpan<byte> data, out int bytesRead)
System\Formats\Cbor\Reader\CborReader.Map.cs (5)
49ReadOnlySpan<byte> buffer = GetRemainingBytes(); 143ReadOnlySpan<byte> buffer = _data.Span; 144ReadOnlySpan<byte> previousKeyEncoding = buffer.Slice(previousKeyEncodingRange.Offset, previousKeyEncodingRange.Length); 145ReadOnlySpan<byte> currentKeyEncoding = buffer.Slice(currentKeyEncodingRange.Offset, currentKeyEncodingRange.Length); 213private ReadOnlySpan<byte> GetKeyEncoding((int Offset, int Length) range)
System\Formats\Cbor\Reader\CborReader.PeekState.cs (1)
189private static bool IsNextTokenFullyAvailable(ReadOnlySpan<byte> remaining)
System\Formats\Cbor\Reader\CborReader.Simple.cs (2)
25ReadOnlySpan<byte> buffer = GetRemainingBytes(); 66ReadOnlySpan<byte> buffer = GetRemainingBytes();
System\Formats\Cbor\Reader\CborReader.Simple.netcoreapp.cs (1)
25ReadOnlySpan<byte> buffer = GetRemainingBytes();
System\Formats\Cbor\Reader\CborReader.String.cs (18)
41ReadOnlySpan<byte> buffer = GetRemainingBytes(); 76ReadOnlySpan<byte> buffer = GetRemainingBytes(); 117ReadOnlySpan<byte> buffer = GetRemainingBytes(); 191ReadOnlySpan<byte> buffer = GetRemainingBytes(); 194ReadOnlySpan<byte> encodedString = buffer.Slice(bytesRead, length); 237ReadOnlySpan<byte> buffer = GetRemainingBytes(); 242ReadOnlySpan<byte> encodedSlice = buffer.Slice(bytesRead, byteLength); 282ReadOnlySpan<byte> buffer = GetRemainingBytes(); 345ReadOnlySpan<byte> source = GetRemainingBytes(); 371ReadOnlySpan<byte> source = GetRemainingBytes(); 390ReadOnlySpan<byte> buffer = GetRemainingBytes(); 409ReadOnlySpan<byte> source = input.source.Span; 424ReadOnlySpan<byte> buffer = GetRemainingBytes(); 461ReadOnlySpan<byte> data = GetRemainingBytes(); 480static CborInitialByte ReadNextInitialByte(ReadOnlySpan<byte> buffer, CborMajorType expectedType) 501ReadOnlySpan<byte> buffer = GetRemainingBytes(); 509ReadOnlySpan<byte> encodedSlice = buffer.Slice(bytesRead, byteLength); 518private static int ValidateUtf8AndGetCharCount(ReadOnlySpan<byte> buffer, Encoding utf8Encoding)
System\Formats\Cbor\Writer\CborWriter.Array.cs (1)
84ReadOnlySpan<byte> elementEncoding = _buffer.AsSpan(_frameOffset, currentOffset - _frameOffset);
System\Formats\Cbor\Writer\CborWriter.cs (5)
169public void WriteEncodedValue(ReadOnlySpan<byte> encodedValue) 191static unsafe void ValidateEncoding(ReadOnlySpan<byte> encodedValue, CborConformanceMode conformanceMode, int allowedDepth) 236ReadOnlySpan<byte> encoding = GetSpanEncoding(); 254ReadOnlySpan<byte> encoding = GetSpanEncoding(); 267private ReadOnlySpan<byte> GetSpanEncoding()
System\Formats\Cbor\Writer\CborWriter.Map.cs (2)
30/// by successive calls to <see cref="WriteInt32(int)" /> and <see cref="WriteTextString(System.ReadOnlySpan{char})" />. 169ReadOnlySpan<byte> keyValuePairEncoding = source.Slice(range.Offset, range.TotalLength);
System\Formats\Cbor\Writer\CborWriter.String.cs (2)
39public void WriteByteString(ReadOnlySpan<byte> value) 123public void WriteTextString(ReadOnlySpan<char> value)
System\Formats\Cbor\Writer\CborWriter.Tag.cs (1)
48ReadOnlySpan<char> dateString = buffer.Slice(0, charsWritten);
System.Formats.Nrbf (7)
System\Formats\Nrbf\ArrayRecord.cs (1)
31public abstract ReadOnlySpan<int> Lengths { get; }
System\Formats\Nrbf\ArrayRectangularPrimitiveRecord.cs (1)
31public override ReadOnlySpan<int> Lengths => _lengths;
System\Formats\Nrbf\JaggedArrayRecord.cs (1)
41public override ReadOnlySpan<int> Lengths => _lengths;
System\Formats\Nrbf\NrbfDecoder.cs (2)
34private static ReadOnlySpan<byte> HeaderSuffix => [1, 0, 0, 0, 0, 0, 0, 0]; 41public static bool StartsWithPayloadHeader(ReadOnlySpan<byte> bytes)
System\Formats\Nrbf\RectangularArrayRecord.cs (1)
39public override ReadOnlySpan<int> Lengths => _lengths.AsSpan();
System\Formats\Nrbf\SZArrayRecord.cs (1)
27public override ReadOnlySpan<int> Lengths => new int[1] { Length };
System.Formats.Tar (78)
src\runtime\src\libraries\Common\src\System\IO\Archiving.Utils.Unix.cs (1)
12public static unsafe string EntryFromPath(ReadOnlySpan<char> path, bool appendPathSeparator = false)
src\runtime\src\libraries\Common\src\System\IO\PathInternal.cs (6)
16internal static bool StartsWithDirectorySeparator(ReadOnlySpan<char> path) => path.Length > 0 && IsDirectorySeparator(path[0]); 21internal static bool IsRoot(ReadOnlySpan<char> path) 118internal static bool RemoveRelativeSegments(ReadOnlySpan<char> path, int rootLength, ref ValueStringBuilder sb) 229internal static ReadOnlySpan<char> TrimEndingDirectorySeparator(ReadOnlySpan<char> path) => 237internal static bool EndsInDirectorySeparator(ReadOnlySpan<char> path) =>
src\runtime\src\libraries\Common\src\System\IO\PathInternal.Unix.cs (4)
20internal static ReadOnlySpan<byte> Utf8DirectorySeparators => "/"u8; 22internal static int GetRootLength(ReadOnlySpan<char> path) 77internal static bool IsPartiallyQualified(ReadOnlySpan<char> path) 94internal static bool IsEffectivelyEmpty(ReadOnlySpan<char> path)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
101public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 102public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 103public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 209public void Append(scoped ReadOnlySpan<char> value)
System\Formats\Tar\GnuSparseStream.cs (1)
482ReadOnlySpan<byte> span = bytes.AsSpan(activeStart, nlIdx);
System\Formats\Tar\TarEntry.cs (6)
466private static bool HasDotDotSegment(ReadOnlySpan<char> path) 513ReadOnlySpan<char> relative = fileDestinationPath.AsSpan(destinationDirectoryPath.Length); 514ReadOnlySpan<char> resolvedRoot = resolvedDest.AsSpan().TrimEnd(Path.DirectorySeparatorChar); 520ReadOnlySpan<char> component = relative[range]; 572ReadOnlySpan<char> relative = fullPath.AsSpan(root.Length); 576ReadOnlySpan<char> component = relative[range];
System\Formats\Tar\TarHeader.Read.cs (20)
46private static TarHeader? TryReadAttributes(TarEntryFormat initialFormat, ReadOnlySpan<byte> buffer, Stream archiveStream) 406private static TarHeader? TryReadCommonAttributes(ReadOnlySpan<byte> buffer, TarEntryFormat initialFormat) 411ReadOnlySpan<byte> spanChecksum = buffer.Slice(FieldLocations.Checksum, FieldLengths.Checksum); 493private static int CalculateHeaderChecksum(ReadOnlySpan<byte> buffer) 511private void ReadMagicAttribute(ReadOnlySpan<byte> buffer) 513ReadOnlySpan<byte> magic = buffer.Slice(FieldLocations.Magic, FieldLengths.Magic); 545private void ReadVersionAttribute(ReadOnlySpan<byte> buffer) 552ReadOnlySpan<byte> version = buffer.Slice(FieldLocations.Version, FieldLengths.Version); 599private void ReadPosixAndGnuSharedAttributes(ReadOnlySpan<byte> buffer) 619private void ReadGnuAttributes(ReadOnlySpan<byte> buffer) 628private static DateTimeOffset ParseAsTimestamp(ReadOnlySpan<byte> buffer) 643private void ReadUstarAttributes(ReadOnlySpan<byte> buffer) 694private void ReadExtendedAttributesFromBuffer(ReadOnlySpan<byte> buffer, string name) 734private void ReadGnuLongPathDataFromBuffer(ReadOnlySpan<byte> buffer) 755ref ReadOnlySpan<byte> buffer, 768ReadOnlySpan<byte> line = buffer.Slice(0, newlinePos); 778ReadOnlySpan<byte> length = buffer.Slice(0, spacePos); 794ReadOnlySpan<byte> keySlice = line.Slice(0, equalPos); 795ReadOnlySpan<byte> valueSlice = line.Slice(equalPos + 1); 814private static void ThrowIfCompressedArchive(ReadOnlySpan<byte> buffer)
System\Formats\Tar\TarHeader.Write.cs (20)
23private static ReadOnlySpan<byte> UstarMagicBytes => "ustar\0"u8; 24private static ReadOnlySpan<byte> UstarVersionBytes => "00"u8; 26private static ReadOnlySpan<byte> GnuMagicBytes => "ustar "u8; 27private static ReadOnlySpan<byte> GnuVersionBytes => " \0"u8; 526ReadOnlySpan<char> name = _name; 559ReadOnlySpan<byte> pathNameBytes = encodingBuffer.Slice(0, encoded); 568scoped ReadOnlySpan<byte> name; 569scoped ReadOnlySpan<byte> prefix; 640ReadOnlySpan<char> linkName = _linkName; 698ReadOnlySpan<char> uName = _uName; 716ReadOnlySpan<char> gName = _gName; 953private static int WriteLeftAlignedBytesAndGetChecksum(ReadOnlySpan<byte> bytesToWrite, Span<byte> destination) 967private static int WriteRightAlignedBytesAndGetChecksum(ReadOnlySpan<byte> bytesToWrite, Span<byte> destination) 986private static int Checksum(ReadOnlySpan<byte> bytes) 1130private static int WriteAsUtf8String(ReadOnlySpan<char> text, Span<byte> buffer) 1143ReadOnlySpan<char> dirName = Path.GetDirectoryName(_name.AsSpan()); 1146ReadOnlySpan<char> fileName = Path.GetFileName(_name.AsSpan()); 1165ReadOnlySpan<char> tmp = Path.TrimEndingDirectorySeparator(Path.GetTempPath()); 1173private static int GetUtf8TextLength(ReadOnlySpan<char> text) 1177private static int GetUtf16TruncatedTextLength(ReadOnlySpan<char> text, int utf8MaxLength)
System\Formats\Tar\TarHelpers.cs (16)
142internal static bool IsAllNullBytes(ReadOnlySpan<byte> buffer) => 295internal static int ParseUidGid(ReadOnlySpan<byte> buffer) => ToUidGid(ParseNumeric<long>(buffer)); 308internal static T ParseNumeric<T>(ReadOnlySpan<byte> buffer) where T : struct, INumber<T>, IBinaryInteger<T> 331private static T ReadBigEndian<T>(ReadOnlySpan<byte> buffer, bool isUnsigned) where T : struct, INumber<T>, IBinaryInteger<T> 344internal static T ParseOctal<T>(ReadOnlySpan<byte> buffer) where T : struct, INumber<T> 377internal static string ParseUtf8String(ReadOnlySpan<byte> buffer) 383internal static ReadOnlySpan<byte> TrimNullTerminated(ReadOnlySpan<byte> buffer) 648internal string ResolveDestinationDirectory(ReadOnlySpan<char> relativePath) 668ReadOnlySpan<char> relativeLinkPath = symlinkPath.AsSpan(_destination.Length); 670ReadOnlySpan<char> directoryPath = Path.GetDirectoryName(relativeLinkPath); 680ReadOnlySpan<char> resolveTarget = linkTarget; 704private bool Resolve(ref string? containmentRootPath, string baseFullPath, ReadOnlySpan<char> relativePath, out string resolvedFullPath, HashSet<FileId>? visitedLinks) 712ReadOnlySpan<char> component = relativePath[range]; 721ReadOnlySpan<char> resolvedFullPathSpan = resolvedFullPath.AsSpan(); 817ReadOnlySpan<char> resolveTarget;
System.IO.Compression (106)
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
82public ReadOnlySpan<byte> ActiveReadOnlySpan => new ReadOnlySpan<byte>(_bytes, _activeStart, _availableStart - _activeStart);
System\IO\Compression\Crc32Helper.ZLib.cs (1)
21public static unsafe uint UpdateCrc32(uint crc32, ReadOnlySpan<byte> buffer)
System\IO\Compression\DeflateDecoder.cs (2)
59public OperationStatus Decompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesConsumed, out int bytesWritten) 135public static bool TryDecompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)
System\IO\Compression\DeflateEncoder.cs (4)
175public OperationStatus Compress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesConsumed, out int bytesWritten, bool isFinalBlock) 308public static bool TryCompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 319public static bool TryCompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, int quality) 331public static bool TryCompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, int quality, int windowLog2)
System\IO\Compression\DeflateManaged\InflaterManaged.cs (5)
19private static ReadOnlySpan<byte> ExtraLengthBits => 27private static ReadOnlySpan<byte> LengthBase => 35private static ReadOnlySpan<ushort> DistanceBasePosition => 42private static ReadOnlySpan<byte> CodeOrder => [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]; 44private static ReadOnlySpan<byte> StaticDistanceTreeTable =>
System\IO\Compression\DeflateZLib\DeflateStream.cs (2)
570public override void Write(ReadOnlySpan<byte> buffer) 585internal void WriteCore(ReadOnlySpan<byte> buffer)
System\IO\Compression\GZipDecoder.cs (2)
47public OperationStatus Decompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesConsumed, out int bytesWritten) 73public static bool TryDecompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)
System\IO\Compression\GZipEncoder.cs (4)
103public OperationStatus Compress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesConsumed, out int bytesWritten, bool isFinalBlock) 141public static bool TryCompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 152public static bool TryCompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, int quality) 164public static bool TryCompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, int quality, int windowLog2)
System\IO\Compression\GZipStream.cs (1)
147public override void Write(ReadOnlySpan<byte> buffer)
System\IO\Compression\PositionPreservingWriteOnlyStreamWrapper.cs (1)
38public override void Write(ReadOnlySpan<byte> buffer)
System\IO\Compression\WinZipAesKeyMaterial.cs (1)
42internal static unsafe WinZipAesKeyMaterial Create(ReadOnlySpan<char> password, byte[]? salt, int keySizeBits)
System\IO\Compression\WinZipAesStream.cs (5)
55internal static WinZipAesKeyMaterial CreateKey(ReadOnlySpan<char> password, byte[]? salt, int keySizeBits) 290ReadOnlySpan<byte> keystreamSpan = _keystreamBuffer.AsSpan(_keystreamOffset, bytesToProcess); 325private static void XorBytes(Span<byte> dest, ReadOnlySpan<byte> src) 479private void WriteCore(ReadOnlySpan<byte> buffer, byte[] workBuffer) 509public override void Write(ReadOnlySpan<byte> buffer)
System\IO\Compression\ZipArchive.cs (4)
304public ZipArchiveEntry CreateEntry(string entryName, ReadOnlySpan<char> password, ZipEncryptionMethod encryptionMethod) 327public ZipArchiveEntry CreateEntry(string entryName, CompressionLevel compressionLevel, ReadOnlySpan<char> password, ZipEncryptionMethod encryptionMethod) 625private void ReadCentralDirectoryEndOfOuterLoopWork(ref int currPosition, ReadOnlySpan<byte> sizedFileBuffer) 676ReadOnlySpan<byte> sizedFileBuffer = fileBuffer.Slice(0, currBytesRead);
System\IO\Compression\ZipArchiveEntry.Async.cs (6)
75public Task<Stream> OpenAsync(FileAccess access, ReadOnlySpan<char> password, CancellationToken cancellationToken = default) 103public Task<Stream> OpenAsync(ReadOnlySpan<char> password, CancellationToken cancellationToken = default) 116private Task<Stream> OpenAsyncCore(FileAccess access, ReadOnlySpan<char> password, CancellationToken cancellationToken) 218private Task<Stream> OpenInReadModeAsync(bool checkOpenable, ReadOnlySpan<char> password, CancellationToken cancellationToken) 508/// Accepts a <see cref="ReadOnlySpan{T}"/> password, derives decryption and re-encryption keys (CPU-only), 511private Task<Stream> OpenInUpdateModeWithPasswordAsync(bool loadExistingContent, ReadOnlySpan<char> password, CancellationToken cancellationToken)
System\IO\Compression\ZipArchiveEntry.cs (12)
491public Stream Open(ReadOnlySpan<char> password) 528public Stream Open(FileAccess access, ReadOnlySpan<char> password) 572private Stream OpenCore(FileAccess access, ReadOnlySpan<char> password = default) 681private MemoryStream GetUncompressedData(ReadOnlySpan<char> password = default) 1106private Stream WrapWithDecryptionIfNeeded(Stream compressedStream, ReadOnlySpan<char> password) 1172private Stream OpenInReadMode(bool checkOpenable, ReadOnlySpan<char> password = default) 1181private Stream OpenInReadModeGetDataCompressor(long offsetOfCompressedData, ReadOnlySpan<char> password = default) 1288private WrappedStream OpenInUpdateMode(bool loadExistingContent = true, ReadOnlySpan<char> password = default) 1372private void SetupEncryptionKeyMaterial(ReadOnlySpan<char> password) 1390/// Called by <see cref="ZipArchive.CreateEntry(string, ReadOnlySpan{char}, ZipEncryptionMethod)"/>. 1392internal void PrepareEncryption(ReadOnlySpan<char> password, ZipEncryptionMethod encryptionMethod) 2372public override void Write(ReadOnlySpan<byte> source)
System\IO\Compression\ZipBlocks.Async.cs (1)
203scoped ReadOnlySpan<byte> dynamicHeader;
System\IO\Compression\ZipBlocks.cs (20)
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) 120public static void WriteAllBlocksExcludingTag(List<ZipGenericExtraField>? fields, ReadOnlySpan<byte> trailingExtraFieldData, Stream stream, ushort excludeTag) 226public static Zip64ExtraField GetJustZip64Block(ReadOnlySpan<byte> extraFieldData, 276ReadOnlySpan<byte> data = extraField.Data; 516public static ReadOnlySpan<byte> SignatureConstantBytes => [0x50, 0x4B, 0x06, 0x06]; 606public static ReadOnlySpan<byte> DataDescriptorSignatureConstantBytes => [0x50, 0x4B, 0x07, 0x08]; 607public static ReadOnlySpan<byte> SignatureConstantBytes => [0x50, 0x4B, 0x03, 0x04]; 625List<ZipGenericExtraField> list = ZipGenericExtraField.ParseExtraField(extraFieldBuffer, out ReadOnlySpan<byte> trailingDataSpan); 772public static bool TryGetFromRawExtraFieldData(ReadOnlySpan<byte> extraFieldData, out WinZipAesExtraField aesExtraField) 806private static bool TryParseData(ReadOnlySpan<byte> data, out WinZipAesExtraField aesExtraField) 860public static ReadOnlySpan<byte> SignatureConstantBytes => [0x50, 0x4B, 0x01, 0x02]; 897private 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) 937private 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) 946ReadOnlySpan<byte> zipExtraFields = dynamicHeader.Slice(header.FilenameLength, header.ExtraFieldLength); 958header.ExtraFields = ZipGenericExtraField.ParseExtraField(zipExtraFields, out ReadOnlySpan<byte> trailingDataSpan); 987public static bool TryReadBlock(ReadOnlySpan<byte> buffer, Stream furtherReads, bool saveExtraFieldsAndComments, out int bytesRead, [NotNullWhen(returnValue: true)] out ZipCentralDirectoryFileHeader? header) 1002scoped ReadOnlySpan<byte> dynamicHeader;
System\IO\Compression\ZipCryptoStream.cs (3)
119internal static ZipCryptoKeys CreateKey(ReadOnlySpan<char> password) 311public override void Write(ReadOnlySpan<byte> buffer) 437ReadOnlySpan<byte> chunk = buffer.Span[..chunkSize];
System\IO\Compression\ZipCustomStreams.cs (3)
164public override void Write(ReadOnlySpan<byte> source) 393public override void Write(ReadOnlySpan<byte> source) 615private void ProcessBytesRead(ReadOnlySpan<byte> data)
System\IO\Compression\ZipHelper.cs (1)
93internal static bool SeekBackwardsToSignature(Stream stream, ReadOnlySpan<byte> signatureToFind, int maxBytesToRead)
System\IO\Compression\ZLibDecoder.cs (2)
48public OperationStatus Decompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesConsumed, out int bytesWritten) 74public static bool TryDecompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)
System\IO\Compression\ZLibEncoder.cs (4)
96public OperationStatus Compress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesConsumed, out int bytesWritten, bool isFinalBlock) 134public static bool TryCompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 145public static bool TryCompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, int quality) 157public static bool TryCompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, int quality, int windowLog2)
System\IO\Compression\ZLibStream.cs (1)
205public override void Write(ReadOnlySpan<byte> buffer)
System\IO\Compression\Zstandard\ZstandardDecoder.cs (4)
168public OperationStatus Decompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesConsumed, out int bytesWritten) 246public static bool TryGetMaxDecompressedLength(ReadOnlySpan<byte> data, out long length) 280public static bool TryDecompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 317public static bool TryDecompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, ZstandardDictionary dictionary)
System\IO\Compression\Zstandard\ZstandardDictionary.cs (6)
32public static ZstandardDictionary Create(ReadOnlySpan<byte> buffer) => Create(buffer, ZstandardUtils.Quality_Default); 40public static ZstandardDictionary Create(ReadOnlySpan<byte> buffer, int quality) 87/// The returned data can be stored for later use. Call <see cref="Create(ReadOnlySpan{byte})"/> 88/// or <see cref="Create(ReadOnlySpan{byte}, int)"/> to prepare a dictionary for compression or decompression. 98public static byte[] Train(ReadOnlySpan<byte> samples, ReadOnlySpan<int> sampleLengths, int maxDictionarySize)
System\IO\Compression\Zstandard\ZstandardEncoder.cs (7)
211public OperationStatus Compress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesConsumed, out int bytesWritten, bool isFinalBlock) 237return CompressCore(ReadOnlySpan<byte>.Empty, destination, out _, out bytesWritten, 241private OperationStatus CompressCore(ReadOnlySpan<byte> source, Span<byte> destination, 323public static bool TryCompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 336public static bool TryCompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, int quality, int windowLog2) 350public static bool TryCompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, ZstandardDictionary dictionary, int windowLog2) 356internal static bool TryCompressCore(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, int quality, int windowLog2, ZstandardDictionary? dictionary)
System\IO\Compression\Zstandard\ZstandardStream.Compress.cs (2)
112private void WriteCore(ReadOnlySpan<byte> buffer, bool isFinalBlock = false, bool flush = false, bool throwOnActiveRwOp = true) 255public override void Write(ReadOnlySpan<byte> buffer)
System\IO\Compression\Zstandard\ZstandardStream.cs (1)
184WriteCore(ReadOnlySpan<byte>.Empty, isFinalBlock: true, throwOnActiveRwOp: false);
System.IO.Compression.Brotli (11)
System\IO\Compression\BrotliStream.cs (1)
77WriteCore(ReadOnlySpan<byte>.Empty, isFinalBlock: true);
System\IO\Compression\BrotliUtils.cs (1)
42internal static OperationStatus TryGetWindowBits(ReadOnlySpan<byte> source, out int windowBits, bool largeWindowEnabled)
System\IO\Compression\dec\BrotliDecoder.cs (2)
82public OperationStatus Decompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesConsumed, out int bytesWritten) 163public static unsafe bool TryDecompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)
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\enc\BrotliStream.Compress.cs (2)
74public override void Write(ReadOnlySpan<byte> buffer) 79internal void WriteCore(ReadOnlySpan<byte> buffer, bool isFinalBlock = false)
System.IO.Compression.ZipFile (14)
src\runtime\src\libraries\Common\src\System\IO\Archiving.Utils.Windows.cs (4)
53public static unsafe string EntryFromPath(ReadOnlySpan<char> path, bool appendPathSeparator = false) 72ReadOnlySpan<char> tmpPath = path; // avoid address exposing the span and impacting the other code in the method that uses it 75var path = *(ReadOnlySpan<char>*)state.RosPtr;
System\IO\Compression\ZipFile.Create.cs (1)
472ReadOnlySpan<char> password = default, ZipEncryptionMethod encryptionMethod = ZipEncryptionMethod.None)
System\IO\Compression\ZipFile.Extract.cs (2)
244private static void ExtractToDirectory(string sourceArchiveFileName, string destinationDirectoryName, Encoding? entryNameEncoding, bool overwriteFiles, ReadOnlySpan<char> password) 432private static void ExtractToDirectory(Stream source, string destinationDirectoryName, Encoding? entryNameEncoding, bool overwriteFiles, ReadOnlySpan<char> password)
System\IO\Compression\ZipFileExtensions.ZipArchive.Create.cs (4)
91public static ZipArchiveEntry CreateEntryFromFile(this ZipArchive destination, string sourceFileName, string entryName, ReadOnlySpan<char> password, ZipEncryptionMethod encryption) => 126ReadOnlySpan<char> password, ZipEncryptionMethod encryption) => 131ReadOnlySpan<char> password = default, ZipEncryptionMethod encryption = ZipEncryptionMethod.None) 147private static (FileStream, ZipArchiveEntry) InitializeDoCreateEntryFromFile(ZipArchive destination, string sourceFileName, string entryName, CompressionLevel? compressionLevel, bool useAsync, ReadOnlySpan<char> password = default, ZipEncryptionMethod encryption = ZipEncryptionMethod.None)
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.cs (3)
83private static void ExtractToFile(ZipArchiveEntry source, string destinationFileName, bool overwrite, ReadOnlySpan<char> password) 92private static void ExtractToFileCore(ZipArchiveEntry source, string destinationFileName, bool overwrite, FileStreamOptions fileStreamOptions, ReadOnlySpan<char> password, bool usePassword) 225internal static void ExtractRelativeToDirectory(this ZipArchiveEntry source, string destinationDirectoryName, bool overwrite, ReadOnlySpan<char> password = default)
System.IO.FileSystem.AccessControl (21)
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
78private static string GetAndTrimString(ReadOnlySpan<char> buffer)
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.WIN32_FIND_DATA.cs (1)
28internal ReadOnlySpan<char> cFileName => _cFileName;
src\runtime\src\libraries\Common\src\System\IO\PathInternal.cs (6)
16internal static bool StartsWithDirectorySeparator(ReadOnlySpan<char> path) => path.Length > 0 && IsDirectorySeparator(path[0]); 21internal static bool IsRoot(ReadOnlySpan<char> path) 118internal static bool RemoveRelativeSegments(ReadOnlySpan<char> path, int rootLength, ref ValueStringBuilder sb) 229internal static ReadOnlySpan<char> TrimEndingDirectorySeparator(ReadOnlySpan<char> path) => 237internal static bool EndsInDirectorySeparator(ReadOnlySpan<char> path) =>
src\runtime\src\libraries\Common\src\System\IO\PathInternal.Windows.cs (7)
58internal static ReadOnlySpan<byte> Utf8DirectorySeparators => @"\/"u8; 134internal static bool IsDevice(ReadOnlySpan<char> path) 152internal static bool IsDeviceUNC(ReadOnlySpan<char> path) 167internal static bool IsExtended(ReadOnlySpan<char> path) 181internal static int GetRootLength(ReadOnlySpan<char> path) 250internal static bool IsPartiallyQualified(ReadOnlySpan<char> path) 381internal static bool IsEffectivelyEmpty(ReadOnlySpan<char> path)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
101public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 102public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 103public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 209public void Append(scoped ReadOnlySpan<char> value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\PathHelper.Windows.cs (2)
71private static void GetFullPathName(ReadOnlySpan<char> path, ref ValueStringBuilder builder) 242ReadOnlySpan<char> output = builderToUse.AsSpan(rootDifference);
System.IO.FileSystem.DriveInfo (15)
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcMountInfo.cs (1)
22ReadOnlySpan<char> currentFormat = default;
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcMountInfo.TryParseMountInfoLine.cs (10)
14public required ReadOnlySpan<char> Root { get; init; } 15public required ReadOnlySpan<char> MountPoint { get; init; } 16public required ReadOnlySpan<char> FileSystemType { get; init; } 17public required ReadOnlySpan<char> SuperOptions { get; init; } 20internal static bool TryParseMountInfoLine(ReadOnlySpan<char> line, out ParsedMount result) 45ReadOnlySpan<char> root = line[fields.Current]; 52ReadOnlySpan<char> mountPoint = line[fields.Current]; 69ReadOnlySpan<char> fileSystemType = line[fields.Current]; 82ReadOnlySpan<char> superOptions = line[fields.Current]; 93static string UnescapePath(ReadOnlySpan<char> path)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
101public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 102public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 103public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 209public void Append(scoped ReadOnlySpan<char> value)
System.IO.FileSystem.Watcher (31)
src\runtime\src\libraries\Common\src\System\IO\PathInternal.cs (6)
16internal static bool StartsWithDirectorySeparator(ReadOnlySpan<char> path) => path.Length > 0 && IsDirectorySeparator(path[0]); 21internal static bool IsRoot(ReadOnlySpan<char> path) 118internal static bool RemoveRelativeSegments(ReadOnlySpan<char> path, int rootLength, ref ValueStringBuilder sb) 229internal static ReadOnlySpan<char> TrimEndingDirectorySeparator(ReadOnlySpan<char> path) => 237internal static bool EndsInDirectorySeparator(ReadOnlySpan<char> path) =>
src\runtime\src\libraries\Common\src\System\IO\PathInternal.Unix.cs (4)
20internal static ReadOnlySpan<byte> Utf8DirectorySeparators => "/"u8; 22internal static int GetRootLength(ReadOnlySpan<char> path) 77internal static bool IsPartiallyQualified(ReadOnlySpan<char> path) 94internal static bool IsEffectivelyEmpty(ReadOnlySpan<char> path)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
101public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 102public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 103public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 209public void Append(scoped ReadOnlySpan<char> value)
System\IO\FileSystemWatcher.cs (5)
374private bool MatchPattern(ReadOnlySpan<char> relativePath) 376ReadOnlySpan<char> name = IO.Path.GetFileName(relativePath); 413private void NotifyRenameEventArgs(WatcherChangeTypes action, ReadOnlySpan<char> name, ReadOnlySpan<char> oldName) 442private void NotifyFileSystemEventArgs(WatcherChangeTypes changeType, ReadOnlySpan<char> name)
System\IO\FileSystemWatcher.Linux.cs (12)
555ReadOnlySpan<WatchedDirectory> movedFromDirs = _dirBuffer.AsSpan(0, movedFromWatchCount); 564ReadOnlySpan<WatchedDirectory> dirs = watch is not null ? GetWatchedDirectories(watch, ref _dirBuffer, offset: movedFromDirs.Length) : default; 716WatchedDirectory? FindMatchingFrom(ReadOnlySpan<WatchedDirectory> dirs) 749static ReadOnlySpan<WatchedDirectory> GetWatchedDirectories(Watch watch, ref WatchedDirectory[] buffer, int offset) 764static WatchedDirectory? FindMatchingWatchedDirectory(ReadOnlySpan<WatchedDirectory> dir, Watcher watcher) 985public ReadOnlySpan<char> GetName(Span<char> pathBuffer) 988public ReadOnlySpan<char> GetOldName(Span<char> pathBuffer) 1164ReadOnlySpan<char> name = @event.GetName(pathBuffer); 1171ReadOnlySpan<char> oldName = @event.GetOldName(pathBuffer); 1363internal ReadOnlySpan<char> GetPath(ReadOnlySpan<char> childName, Span<char> pathBuffer, bool fullPath = false) 1383void Append(Span<char> pathBuffer, ReadOnlySpan<char> path)
System.IO.Hashing (112)
System\IO\Hashing\Adler32.cs (10)
67public override void Append(ReadOnlySpan<byte> source) 123public static byte[] Hash(ReadOnlySpan<byte> source) 143public static bool TryHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 165public static int Hash(ReadOnlySpan<byte> source, Span<byte> destination) 185public static uint HashToUInt32(ReadOnlySpan<byte> source) 188private static uint Update(uint adler, ReadOnlySpan<byte> source) 217private static uint UpdateScalar(uint adler, ReadOnlySpan<byte> source) 243private static uint UpdateVector128(uint adler, ReadOnlySpan<byte> source) 363private static uint UpdateVector256(uint adler, ReadOnlySpan<byte> source) 422private static uint UpdateVector512(uint adler, ReadOnlySpan<byte> source)
System\IO\Hashing\Crc32.cs (12)
78public override void Append(ReadOnlySpan<byte> source) 153public static byte[] Hash(ReadOnlySpan<byte> source) => 165public static byte[] Hash(Crc32ParameterSet parameterSet, ReadOnlySpan<byte> source) 172private static byte[] HashCore(Crc32ParameterSet parameterSet, ReadOnlySpan<byte> source) 193public static bool TryHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) => 215ReadOnlySpan<byte> source, 226ReadOnlySpan<byte> source, 251public static int Hash(ReadOnlySpan<byte> source, Span<byte> destination) => 267public static int Hash(Crc32ParameterSet parameterSet, ReadOnlySpan<byte> source, Span<byte> destination) 274private static int HashCore(Crc32ParameterSet parameterSet, ReadOnlySpan<byte> source, Span<byte> destination) 290public static uint HashToUInt32(ReadOnlySpan<byte> source) 307public static uint HashToUInt32(Crc32ParameterSet parameterSet, ReadOnlySpan<byte> source)
System\IO\Hashing\Crc32ParameterSet.cs (7)
86internal virtual uint Update(uint value, ReadOnlySpan<byte> source) => 123partial void UpdateVectorized(ref uint crc, ReadOnlySpan<byte> source, ref int bytesConsumed); 133protected abstract uint UpdateScalar(uint value, ReadOnlySpan<byte> source); 135internal sealed override uint Update(uint value, ReadOnlySpan<byte> source) 157partial void UpdateVectorized(ref uint crc, ReadOnlySpan<byte> source, ref int bytesConsumed); 167protected abstract uint UpdateScalar(uint value, ReadOnlySpan<byte> source); 169internal sealed override uint Update(uint value, ReadOnlySpan<byte> source)
System\IO\Hashing\Crc32ParameterSet.Table.cs (2)
72protected override uint UpdateScalar(uint value, ReadOnlySpan<byte> source) 99protected override uint UpdateScalar(uint value, ReadOnlySpan<byte> source)
System\IO\Hashing\Crc32ParameterSet.Vectorized.cs (7)
62partial void UpdateVectorized(ref uint crc, ReadOnlySpan<byte> source, ref int bytesConsumed) 73private uint UpdateVectorizedCore(uint crc, ReadOnlySpan<byte> source, out int bytesConsumed) 75ReadOnlySpan<byte> remaining = source; 180private static Vector128<ulong> LoadReversed(ReadOnlySpan<byte> source) 196partial void UpdateVectorized(ref uint crc, ReadOnlySpan<byte> source, ref int bytesConsumed) 207private uint UpdateVectorizedCore(uint crc, ReadOnlySpan<byte> source, out int bytesConsumed) 209ReadOnlySpan<byte> remaining = source;
System\IO\Hashing\Crc32ParameterSet.WellKnown.cs (8)
56private static ReadOnlySpan<uint> CrcLookup => 103protected override uint UpdateScalar(uint value, ReadOnlySpan<byte> source) 120private static uint UpdateScalarTable(uint crc, ReadOnlySpan<byte> source) 122ReadOnlySpan<uint> crcLookup = CrcLookup; 135private static uint UpdateScalarArm64(uint crc, ReadOnlySpan<byte> source) 157private static uint UpdateScalarArm(uint crc, ReadOnlySpan<byte> source) 193protected override uint UpdateScalar(uint value, ReadOnlySpan<byte> source) => UpdateIntrinsic(value, source); 195private static uint UpdateIntrinsic(uint crc, ReadOnlySpan<byte> source)
System\IO\Hashing\Crc64.cs (12)
87public override void Append(ReadOnlySpan<byte> source) 145public static byte[] Hash(ReadOnlySpan<byte> source) => 174public static byte[] Hash(Crc64ParameterSet parameterSet, ReadOnlySpan<byte> source) 181private static byte[] HashCore(Crc64ParameterSet parameterSet, ReadOnlySpan<byte> source) 202public static bool TryHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) => 224ReadOnlySpan<byte> source, 235ReadOnlySpan<byte> source, 260public static int Hash(ReadOnlySpan<byte> source, Span<byte> destination) => 276public static int Hash(Crc64ParameterSet parameterSet, ReadOnlySpan<byte> source, Span<byte> destination) 283private static int HashCore(Crc64ParameterSet parameterSet, ReadOnlySpan<byte> source, Span<byte> destination) 299public static ulong HashToUInt64(ReadOnlySpan<byte> source) 316public static ulong HashToUInt64(Crc64ParameterSet parameterSet, ReadOnlySpan<byte> source)
System\IO\Hashing\Crc64ParameterSet.cs (7)
86internal virtual ulong Update(ulong value, ReadOnlySpan<byte> source) => 123partial void UpdateVectorized(ref ulong crc, ReadOnlySpan<byte> source, ref int bytesConsumed); 133protected abstract ulong UpdateScalar(ulong value, ReadOnlySpan<byte> source); 135internal sealed override ulong Update(ulong value, ReadOnlySpan<byte> source) 157partial void UpdateVectorized(ref ulong crc, ReadOnlySpan<byte> source, ref int bytesConsumed); 167protected abstract ulong UpdateScalar(ulong value, ReadOnlySpan<byte> source); 169internal sealed override ulong Update(ulong value, ReadOnlySpan<byte> source)
System\IO\Hashing\Crc64ParameterSet.Table.cs (2)
72protected override ulong UpdateScalar(ulong value, ReadOnlySpan<byte> source) 99protected override ulong UpdateScalar(ulong value, ReadOnlySpan<byte> data)
System\IO\Hashing\Crc64ParameterSet.Vectorized.cs (7)
72partial void UpdateVectorized(ref ulong crc, ReadOnlySpan<byte> source, ref int bytesConsumed) 83private ulong UpdateVectorizedCore(ulong crc, ReadOnlySpan<byte> source, out int bytesConsumed) 85ReadOnlySpan<byte> remaining = source; 183private static Vector128<ulong> LoadReversed(ReadOnlySpan<byte> source) 199partial void UpdateVectorized(ref ulong crc, ReadOnlySpan<byte> source, ref int bytesConsumed) 210private ulong UpdateVectorizedCore(ulong crc, ReadOnlySpan<byte> source, out int bytesConsumed) 212ReadOnlySpan<byte> remaining = source;
System\IO\Hashing\Crc64ParameterSet.WellKnown.cs (3)
30private static ReadOnlySpan<ulong> CrcLookup => // 256 71protected override ulong UpdateScalar(ulong crc, ReadOnlySpan<byte> source) 73ReadOnlySpan<ulong> crcLookup = CrcLookup;
System\IO\Hashing\NonCryptographicHashAlgorithm.cs (2)
49public abstract void Append(ReadOnlySpan<byte> source); 330public override void Write(ReadOnlySpan<byte> buffer) => hash.Append(buffer);
System\IO\Hashing\XxHash128.cs (6)
73public static byte[] Hash(ReadOnlySpan<byte> source, long seed = 0) 86public static int Hash(ReadOnlySpan<byte> source, Span<byte> destination, long seed = 0) 102public static bool TryHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, long seed = 0) 122public static UInt128 HashToUInt128(ReadOnlySpan<byte> source, long seed = 0) 129private static Hash128 HashToHash128(ReadOnlySpan<byte> source, long seed = 0) 161public override void Append(ReadOnlySpan<byte> source)
System\IO\Hashing\XxHash3.cs (5)
72public static byte[] Hash(ReadOnlySpan<byte> source, long seed = 0) 86public static int Hash(ReadOnlySpan<byte> source, Span<byte> destination, long seed = 0) 102public static bool TryHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, long seed = 0) 127public static ulong HashToUInt64(ReadOnlySpan<byte> source, long seed = 0) 159public override void Append(ReadOnlySpan<byte> source)
System\IO\Hashing\XxHash32.cs (7)
85public override void Append(ReadOnlySpan<byte> source) 144ReadOnlySpan<byte> remaining = ReadOnlySpan<byte>.Empty; 191public static byte[] Hash(ReadOnlySpan<byte> source, int seed = 0) 212public static bool TryHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, int seed = 0) 235public static int Hash(ReadOnlySpan<byte> source, Span<byte> destination, int seed = 0) 252public static uint HashToUInt32(ReadOnlySpan<byte> source, int seed = 0)
System\IO\Hashing\XxHash32.State.cs (3)
37internal void ProcessStripe(ReadOnlySpan<byte> source) 60private static uint ApplyRound(uint acc, ReadOnlySpan<byte> lane) 69internal readonly uint Complete(int length, ReadOnlySpan<byte> remaining)
System\IO\Hashing\XxHash64.cs (7)
85public override void Append(ReadOnlySpan<byte> source) 144ReadOnlySpan<byte> remaining = ReadOnlySpan<byte>.Empty; 191public static byte[] Hash(ReadOnlySpan<byte> source, long seed = 0) 212public static bool TryHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, long seed = 0) 235public static int Hash(ReadOnlySpan<byte> source, Span<byte> destination, long seed = 0) 252public static ulong HashToUInt64(ReadOnlySpan<byte> source, long seed = 0)
System\IO\Hashing\XxHash64.State.cs (3)
48internal void ProcessStripe(ReadOnlySpan<byte> source) 86private static ulong ApplyRound(ulong acc, ReadOnlySpan<byte> lane) 104internal readonly ulong Complete(long length, ReadOnlySpan<byte> remaining)
System\IO\Hashing\XxHashShared.cs (2)
38public static ReadOnlySpan<byte> DefaultSecret => 241public static void Append(ref State state, ReadOnlySpan<byte> source)
System.IO.IsolatedStorage (2)
src\runtime\src\libraries\Common\src\System\Security\IdentityHelper.cs (1)
90ReadOnlySpan<byte> base32Chars = "abcdefghijklmnopqrstuvwxyz012345"u8;
System\IO\IsolatedStorage\IsolatedStorageFileStream.cs (1)
283public override void Write(System.ReadOnlySpan<byte> buffer)
System.IO.Packaging (7)
System\IO\Packaging\ContentType.cs (4)
281private void ParseTypeAndSubType(ReadOnlySpan<char> typeAndSubType) 303private void ParseParameterAndValue(ReadOnlySpan<char> parameterAndValue) 349private static int GetLengthOfParameterValue(ReadOnlySpan<char> s, int startIndex) 456private static void ValidateQuotedText(ReadOnlySpan<char> quotedText)
System\IO\Packaging\InterleavedZipPackagePartStream.cs (2)
285public override void Write(ReadOnlySpan<byte> buffer) 289private void WriteCore(ReadOnlySpan<byte> buffer)
System\IO\Packaging\ZipWrappingStream.cs (1)
72ReadOnlySpan<byte> buffer
System.IO.Pipelines (1)
System\IO\Pipelines\Pipe.cs (1)
1208private void WriteMultiSegment(ReadOnlySpan<byte> source)
System.IO.Pipes (2)
System\IO\Pipes\PipeStream.Unix.cs (2)
123public override void Write(ReadOnlySpan<byte> buffer) 280private void WriteCore(ReadOnlySpan<byte> buffer)
System.IO.Ports (1)
System\IO\Ports\SerialStream.Unix.cs (1)
815ReadOnlySpan<byte> buff = writeRequest.Buffer.Span;
System.Linq (60)
src\runtime\src\libraries\Common\src\System\Collections\HashHelpers.cs (2)
32internal static ReadOnlySpan<int> Primes => 83ReadOnlySpan<int> primes = Primes;
System\Linq\Aggregate.cs (3)
23if (source.TryGetSpan(out ReadOnlySpan<TSource> span)) 68if (source.TryGetSpan(out ReadOnlySpan<TSource> span)) 104if (source.TryGetSpan(out ReadOnlySpan<TSource> span))
System\Linq\AnyAll.cs (2)
56if (source.TryGetSpan(out ReadOnlySpan<TSource> span)) 92if (source.TryGetSpan(out ReadOnlySpan<TSource> span))
System\Linq\AppendPrepend.SpeedOpt.cs (1)
288foreach (SingleLinkedNode<TSource>? head in (ReadOnlySpan<SingleLinkedNode<TSource>?>)[_appended, _prepended])
System\Linq\Average.cs (2)
18if (source.TryGetSpan(out ReadOnlySpan<int> span)) 94if (source.TryGetSpan(out ReadOnlySpan<TSource> span))
System\Linq\Concat.SpeedOpt.cs (1)
97foreach (IEnumerable<TSource> source in (ReadOnlySpan<IEnumerable<TSource>>)[_first, _second])
System\Linq\Contains.cs (1)
41if (source.TryGetSpan(out ReadOnlySpan<TSource> span))
System\Linq\Count.cs (1)
59if (source.TryGetSpan(out ReadOnlySpan<TSource> span))
System\Linq\Enumerable.cs (1)
44internal static bool TryGetSpan<TSource>(this IEnumerable<TSource> source, out ReadOnlySpan<TSource> span)
System\Linq\First.cs (1)
113if (source.TryGetSpan(out ReadOnlySpan<TSource> span))
System\Linq\Max.cs (3)
117if (source.TryGetSpan(out ReadOnlySpan<T> span)) 237if (source.TryGetSpan(out ReadOnlySpan<decimal> span)) 332if (source.TryGetSpan(out ReadOnlySpan<TSource> span))
System\Linq\Min.cs (3)
99if (source.TryGetSpan(out ReadOnlySpan<T> span)) 217if (source.TryGetSpan(out ReadOnlySpan<decimal> span)) 311if (source.TryGetSpan(out ReadOnlySpan<TSource> span))
System\Linq\OrderedEnumerable.SpeedOpt.cs (1)
388if (TryGetSpan(_source, out ReadOnlySpan<TElement> span))
System\Linq\SegmentedArrayBuilder.cs (6)
63ReadOnlySpan<T[]> segments = _segments; 142if (Enumerable.TryGetSpan(source, out ReadOnlySpan<T> sourceSpan)) 145ReadOnlySpan<T> sourceSlice = sourceSpan.Slice(0, Math.Min(availableSpaceInCurrentSpan, sourceSpan.Length)); 310ReadOnlySpan<T> firstSegment = _firstSegment; 318foreach (T[] arr in ((ReadOnlySpan<T[]>)_segments).Slice(0, segmentsCount)) 320ReadOnlySpan<T> segment = arr;
System\Linq\Select.SpeedOpt.cs (4)
164private static void Fill(ReadOnlySpan<TSource> source, Span<TResult> destination, Func<TSource, TResult> func) 398ReadOnlySpan<TSource> source = CollectionsMarshal.AsSpan(_source); 412ReadOnlySpan<TSource> source = CollectionsMarshal.AsSpan(_source); 420private static void Fill(ReadOnlySpan<TSource> source, Span<TResult> destination, Func<TSource, TResult> func)
System\Linq\SequenceEqual.cs (2)
27if (first.TryGetSpan(out ReadOnlySpan<TSource> firstSpan) && second.TryGetSpan(out ReadOnlySpan<TSource> secondSpan))
System\Linq\Shuffle.SpeedOpt.cs (1)
300if (list.TryGetSpan(out ReadOnlySpan<TSource> span))
System\Linq\Single.cs (1)
118if (source.TryGetSpan(out ReadOnlySpan<TSource> span))
System\Linq\SkipTake.SpeedOpt.cs (2)
149if (source.TryGetSpan(out ReadOnlySpan<TSource> sourceSpan)) 171if (source.TryGetSpan(out ReadOnlySpan<TSource> span))
System\Linq\Sum.cs (7)
32if (source.TryGetSpan(out ReadOnlySpan<TSource> span)) 46private static TResult Sum<T, TResult>(ReadOnlySpan<T> span) 62return (TResult)(object)SumSignedIntegersVectorized(Unsafe.BitCast<ReadOnlySpan<T>, ReadOnlySpan<long>>(span)); 66return (TResult)(object)SumSignedIntegersVectorized(Unsafe.BitCast<ReadOnlySpan<T>, ReadOnlySpan<int>>(span)); 79private static T SumSignedIntegersVectorized<T>(ReadOnlySpan<T> span)
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.Linq.AsyncEnumerable (2)
src\runtime\src\libraries\Common\src\System\Collections\HashHelpers.cs (2)
32internal static ReadOnlySpan<int> Primes => 83ReadOnlySpan<int> primes = Primes;
System.Linq.Parallel (2)
src\runtime\src\libraries\Common\src\System\Collections\HashHelpers.cs (2)
32internal static ReadOnlySpan<int> Primes => 83ReadOnlySpan<int> primes = Primes;
System.Memory (74)
src\runtime\artifacts\obj\System.Memory\Release\net12.0\System.Memory.Forwards.cs (1)
16[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ReadOnlySpan<>))]
src\runtime\src\libraries\Common\src\System\Buffers\ArrayBufferWriter.cs (2)
61/// Returns the data written to the underlying buffer so far, as a <see cref="ReadOnlySpan{T}"/>. 63public ReadOnlySpan<T> WrittenSpan => _buffer.AsSpan(0, _index);
System\Buffers\BuffersExtensions.cs (5)
67ReadOnlySpan<T> span = source.First.Span; 86ReadOnlySpan<T> span = memory.Span; 116public static void Write<T>(this IBufferWriter<T> writer, ReadOnlySpan<T> value) 132private static void WriteMultiSegment<T>(IBufferWriter<T> writer, in ReadOnlySpan<T> source, Span<T> destination) 134ReadOnlySpan<T> input = source;
System\Buffers\ReadOnlySequence.cs (2)
53/// Gets <see cref="ReadOnlySpan{T}"/> from the first segment. 55public ReadOnlySpan<T> FirstSpan => GetFirstSpan();
System\Buffers\ReadOnlySequence.Helpers.cs (7)
157private ReadOnlySpan<T> GetFirstSpan() 184ReadOnlySpan<T> span = ((ReadOnlySequenceSegment<T>)startObject).Memory.Span; 198private ReadOnlySpan<T> GetFirstSpanSlow(object startObject, bool isMultiSegment) 212ReadOnlySpan<T> span = (T[])startObject; 630internal void GetFirstSpan(out ReadOnlySpan<T> first, out SequencePosition next) 676private static ReadOnlySpan<T> GetFirstSpanSlow(object startObject, int startIndex, int endIndex, bool hasMultipleSegments) 687ReadOnlySpan<char> spanOfChar = ((string)startObject).AsSpan(startIndex & ReadOnlySequence.IndexBitMask, endIndex - startIndex);
System\Buffers\ReadOnlySequenceStream.cs (1)
189public override void Write(ReadOnlySpan<byte> buffer) => throw new NotSupportedException(SR.NotSupported_UnwritableStream);
System\Buffers\SequenceReader.cs (7)
28sequence.GetFirstSpan(out ReadOnlySpan<T> first, out _nextPosition); 66public ReadOnlySpan<T> CurrentSpan { get; private set; } 76public readonly ReadOnlySpan<T> UnreadSpan 405/// the reader. To look ahead for a specific stream of data <see cref="IsNext(ReadOnlySpan{T}, bool)"/> can be used. 416ReadOnlySpan<T> firstSpan = UnreadSpan; 433ReadOnlySpan<T> firstSpan = UnreadSpan; 443ReadOnlySpan<T> nextSpan = nextSegment.Span;
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\Buffers\SequenceReaderExtensions.Binary.cs (1)
28ReadOnlySpan<byte> span = reader.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 (4)
System\BinaryData.cs (4)
463private ReadOnlySpan<byte> GetBytesWithTrimmedBom() 465ReadOnlySpan<byte> span = _bytes.Span; 481/// Defines an implicit conversion from a <see cref="BinaryData" /> to a <see cref="ReadOnlySpan{Byte}"/>. 484public static implicit operator ReadOnlySpan<byte>(BinaryData? data)
System.Net.Http (200)
src\runtime\src\libraries\Common\src\System\HexConverter.cs (9)
187public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper) 204public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper) 221public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 244public ReadOnlySpan<byte> Bytes { get; set; } 276public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 288public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 456private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 491private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 598public static ReadOnlySpan<byte> CharToHexLookup =>
src\runtime\src\libraries\Common\src\System\IO\DelegatingStream.cs (1)
159public override void Write(ReadOnlySpan<byte> buffer)
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
82public ReadOnlySpan<byte> ActiveReadOnlySpan => new ReadOnlySpan<byte>(_bytes, _activeStart, _availableStart - _activeStart);
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\DynamicTable.cs (4)
53public void Insert(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 58public void Insert(int? staticTableIndex, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HeaderField.cs (2)
14public HeaderField(int? staticTableIndex, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\runtime\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 649private bool TryDecodeInteger(ReadOnlySpan<byte> data, ref int currentIndex, out int result)
src\runtime\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\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\Huffman.cs (5)
14private static ReadOnlySpan<uint> EncodingTableCodes => // 257 275private static ReadOnlySpan<byte> EncodingTableBitLengths => // 257 577ReadOnlySpan<uint> encodingTableCodes = EncodingTableCodes; 578ReadOnlySpan<byte> encodingTableBitLengths = EncodingTableBitLengths; 669public static int Decode(ReadOnlySpan<byte> src, ref byte[] dstArray)
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\StatusCodes.cs (1)
11public static ReadOnlySpan<byte> ToStatusBytes(int statusCode)
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\Frames\Http3Frame.cs (1)
15public static bool TryReadIntegerPair(ReadOnlySpan<byte> buffer, out long a, out long b, out int bytesRead)
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\Helpers\VariableLengthIntegerHelper.cs (2)
40public static bool TryRead(ReadOnlySpan<byte> buffer, out long value, out int bytesRead) 101ReadOnlySpan<byte> span = reader.CurrentSpan;
src\runtime\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 693private bool TryDecodeInteger(ReadOnlySpan<byte> data, ref int currentIndex, out int result)
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\QPack\QPackEncoder.cs (2)
147public static bool EncodeLiteralHeaderFieldWithoutNameReference(string name, ReadOnlySpan<string> values, byte[] separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten) 220public static bool EncodeValueString(ReadOnlySpan<string> values, byte[]? separator, Encoding? valueEncoding, Span<byte> buffer, out int length)
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\IHttpStreamHeadersHandler.cs (5)
9void OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value); 10void OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value); 12void OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value);
src\runtime\src\libraries\Common\src\System\Net\Http\UriRedactionHelper.cs (1)
88private static ReadOnlySpan<char> Slice(string text, int startIndex, int length) => text.AsSpan(startIndex, length);
src\runtime\src\libraries\Common\src\System\Net\HttpDateParser.cs (1)
37internal static bool TryParse(ReadOnlySpan<char> input, out DateTimeOffset result)
src\runtime\src\libraries\Common\src\System\Net\HttpKnownHeaderNames.TryGetHeaderName.cs (2)
14public static string GetHeaderValue(string name, ReadOnlySpan<char> value) 48public static bool TryGetHeaderName(ReadOnlySpan<char> nameSpan, [NotNullWhen(true)] out string? name)
src\runtime\src\libraries\Common\src\System\Net\MultiArrayBuffer.cs (1)
401public void CopyFrom(ReadOnlySpan<byte> source)
src\runtime\src\libraries\Common\src\System\Text\SimpleRegex.cs (2)
20public static bool IsMatchWithStarWildcard(ReadOnlySpan<char> input, ReadOnlySpan<char> pattern)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
101public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 102public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 103public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 209public void Append(scoped ReadOnlySpan<char> value)
System\Net\Http\EmptyReadStream.cs (1)
34public override void Write(ReadOnlySpan<byte> buffer) => throw new NotSupportedException(SR.net_http_content_readonly_stream);
System\Net\Http\FormUrlEncodedContent.cs (1)
66ReadOnlySpan<char> escapedChars = builder.RawChars.Slice(builder.Length, charsWritten);
System\Net\Http\Headers\AltSvcHeaderParser.cs (5)
198ReadOnlySpan<char> span = value.AsSpan(startIndex, tokenLength); 241private static bool TryReadUnknownPercentEncodedAlpnProtocolName(ReadOnlySpan<char> value, [NotNullWhen(true)] out string? result) 309ReadOnlySpan<char> quoted = value.AsSpan(startIndex + 1, quotedLength - 2); 343private static bool TryReadQuotedValue(ReadOnlySpan<char> value, out string? result) 415private static bool TryReadQuotedInt32Value(ReadOnlySpan<char> value, out int result)
System\Net\Http\Headers\ContentDispositionHeaderValue.cs (3)
285ReadOnlySpan<char> dateString = dateParameter.Value; 428private static bool IsQuoted(ReadOnlySpan<char> value) 458ReadOnlySpan<char> processedInputSpan = processedInput;
System\Net\Http\Headers\DateHeaderParser.cs (1)
37ReadOnlySpan<char> dateString = value;
System\Net\Http\Headers\HeaderDescriptor.cs (4)
83public static bool TryGet(ReadOnlySpan<byte> headerName, out HeaderDescriptor descriptor) 134public string GetHeaderValue(ReadOnlySpan<byte> headerValue, Encoding? valueEncoding) 188internal static string? GetKnownContentType(ReadOnlySpan<byte> contentTypeValue) 313private static bool TryDecodeUtf8(ReadOnlySpan<byte> input, [NotNullWhen(true)] out string? decoded)
System\Net\Http\Headers\HeaderUtilities.cs (2)
76ReadOnlySpan<byte> utf8 = utf8bytes.AsSpan(0, utf8length); 327internal static void DumpHeaders(ref ValueStringBuilder sb, params ReadOnlySpan<HttpHeaders?> headers)
System\Net\Http\Headers\HttpHeaders.cs (1)
1484internal ReadOnlySpan<HeaderEntry> GetEntries()
System\Net\Http\Headers\KnownHeaders.cs (2)
128private static KnownHeader? GetCandidate<T>(ReadOnlySpan<T> key) 399public static KnownHeader? TryGetKnownHeader(ReadOnlySpan<byte> name)
System\Net\Http\HttpContent.cs (10)
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]; 125ReadOnlySpan<byte> firstBuffer = stream.GetFirstBuffer(); 711private static int GetPreambleLength(ReadOnlySpan<byte> data, Encoding encoding) 735private static bool TryDetectEncoding(ReadOnlySpan<byte> data, [NotNullWhen(true)] out Encoding? encoding, out int preambleLength) 883public ReadOnlySpan<byte> GetFirstBuffer() 914public override void Write(ReadOnlySpan<byte> buffer) 936private void GrowAndWrite(ReadOnlySpan<byte> buffer)
System\Net\Http\HttpMethod.cs (2)
92public static HttpMethod Parse(ReadOnlySpan<char> method) => 96internal static HttpMethod? GetKnownMethod(ReadOnlySpan<char> method)
System\Net\Http\HttpRuleParser.cs (6)
40ReadOnlySpan<char> slice = input.AsSpan(startIndex); 47internal static bool IsToken(ReadOnlySpan<char> input) => 50internal static bool IsToken(ReadOnlySpan<byte> input) => 53internal static string GetTokenString(ReadOnlySpan<byte> input) 148ReadOnlySpan<char> slice = input.AsSpan(startIndex); 310private static bool IsValidHostName(ReadOnlySpan<char> host)
System\Net\Http\MultipartContent.cs (1)
623public override void Write(ReadOnlySpan<byte> buffer) { throw new NotSupportedException(); }
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.Digest.cs (1)
424ReadOnlySpan<char> valueSpan = value;
System\Net\Http\SocketsHttpHandler\ChunkedEncodingReadStream.cs (2)
319ReadOnlySpan<byte> currentLine; 439private static void ValidateChunkExtension(ReadOnlySpan<byte> lineAfterChunkSize)
System\Net\Http\SocketsHttpHandler\ChunkedEncodingWriteStream.cs (1)
21public override void Write(ReadOnlySpan<byte> buffer)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (2)
976ReadOnlySpan<Http2Connection> http2Connections = default; 993ReadOnlySpan<Http3Connection> http3Connections = default;
System\Net\Http\SocketsHttpHandler\ContentLengthWriteStream.cs (1)
23public override void Write(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]; 84private static ReadOnlySpan<byte> Http2ConnectionPreface => "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n"u8; 714void IHttpStreamHeadersHandler.OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) { } 717void IHttpStreamHeadersHandler.OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value) { } 718void IHttpStreamHeadersHandler.OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) { } 721private static ReadOnlySpan<byte> GetFrameData(ReadOnlySpan<byte> frameData, bool hasPad, bool hasPriority) 767ReadOnlySpan<byte> span = _incomingBuffer.ActiveSpan.Slice(0, frameHeader.PayloadLength); 800ReadOnlySpan<byte> frameData = GetFrameData(_incomingBuffer.ActiveSpan.Slice(0, frameHeader.PayloadLength), hasPad: frameHeader.PaddedFlag, hasPriority: false); 854ReadOnlySpan<byte> settings = _incomingBuffer.ActiveSpan.Slice(0, frameHeader.PayloadLength); 1016ReadOnlySpan<byte> pingContent = _incomingBuffer.ActiveSpan.Slice(0, FrameHeader.PingLength); 1434private void WriteLiteralHeader(string name, ReadOnlySpan<string> values, Encoding? valueEncoding, ref ArrayBuffer headerBuffer) 1447private void WriteLiteralHeaderValues(ReadOnlySpan<string> values, byte[]? separator, Encoding? valueEncoding, ref ArrayBuffer headerBuffer) 1473private void WriteBytes(ReadOnlySpan<byte> bytes, ref ArrayBuffer headerBuffer) 1490ReadOnlySpan<HeaderEntry> entries = headers.GetEntries(); 1497ReadOnlySpan<string> headerValues = tmpHeaderValuesArray.AsSpan(0, headerValuesCount); 2011public 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)
775ReadOnlySpan<HeaderEntry> entries = headers.GetEntries(); 782ReadOnlySpan<string> headerValues = _headerValues.AsSpan(0, headerValuesCount); 851private void BufferLiteralHeaderWithoutNameReference(string name, ReadOnlySpan<string> values, byte[] separator, Encoding? valueEncoding) 871private void BufferLiteralHeaderValues(ReadOnlySpan<string> values, byte[]? separator, Encoding? valueEncoding) 891private void BufferBytes(ReadOnlySpan<byte> span) 991void IHttpStreamHeadersHandler.OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 1008void IHttpStreamHeadersHandler.OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value) 1014void IHttpStreamHeadersHandler.OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 1033private void OnHeader(int? staticIndex, HeaderDescriptor descriptor, string? staticValue, ReadOnlySpan<byte> literalValue)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (17)
483private void WriteBytes(ReadOnlySpan<byte> bytes) 1110ReadOnlySpan<byte> reasonBytes = line.Slice(MinStatusLineLength + 1); 1210ReadOnlySpan<byte> headerName = buffer.Slice(0, valueStartIdx - 1); 1211ReadOnlySpan<byte> headerValue = buffer.Slice(valueStartIdx, buffer.Length - valueIterator.Length + crOrLfIdx - valueStartIdx); 1228static void ThrowForInvalidHeaderLine(ReadOnlySpan<byte> buffer, int newLineIndex) => 1232private void AddResponseHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value, HttpResponseMessage response, bool isFromTrailer) 1330static void ThrowForInvalidHeaderName(ReadOnlySpan<byte> name) => 1377private void WriteToBuffer(ReadOnlySpan<byte> source) 1384private void Write(ReadOnlySpan<byte> source) 1470private void WriteWithoutBuffering(ReadOnlySpan<byte> source) 1552ReadOnlySpan<byte> bytes = _writeBuffer.ActiveSpan; 1571private void WriteToStream(ReadOnlySpan<byte> source) 1592private bool TryReadNextChunkedLine(out ReadOnlySpan<byte> line) 1594ReadOnlySpan<byte> buffer = _readBuffer.ActiveReadOnlySpan; 1736static bool TryFindEndOfLine(ReadOnlySpan<byte> buffer, out int searchOffset) 1773ReadOnlySpan<byte> available = _readBuffer.ActiveSpan;
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (3)
190public string GetResponseHeaderValueWithCaching(HeaderDescriptor descriptor, ReadOnlySpan<byte> value, Encoding? valueEncoding) 197static string GetOrAddCachedValue([NotNull] ref string? cache, HeaderDescriptor descriptor, ReadOnlySpan<byte> value, Encoding? encoding) 298internal static int ParseStatusCode(ReadOnlySpan<byte> value)
System\Net\Http\SocketsHttpHandler\HttpContentReadStream.cs (1)
23public sealed override void Write(ReadOnlySpan<byte> buffer) => throw new NotSupportedException(SR.net_http_content_readonly_stream);
System\Net\Http\SocketsHttpHandler\HttpEnvironmentProxy.cs (1)
255ReadOnlySpan<char> uriSpan = uri.ToString();
System\Net\Http\SocketsHttpHandler\MultiProxy.cs (2)
55ReadOnlySpan<char> span = proxyConfig; 196private static bool TryParseProxyConfigPart(ReadOnlySpan<char> proxyString, bool secure, bool manualSettingsUsed, [NotNullWhen(true)] out Uri? uri, out int charactersConsumed)
System\Net\Http\SocketsHttpHandler\RawConnectionStream.cs (1)
151public override void Write(ReadOnlySpan<byte> buffer)
System\Net\Http\SocketsHttpHandler\SocksHelper.cs (1)
321private static byte EncodeString(ReadOnlySpan<char> chars, Span<byte> buffer, string parameterName)
System\Net\Http\StreamContent.cs (1)
171public override void Write(ReadOnlySpan<byte> buffer) =>
System.Net.Http.WinHttpHandler (9)
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.DATA_BLOB.cs (1)
35internal unsafe ReadOnlySpan<byte> DangerousAsSpan() => new ReadOnlySpan<byte>((void*)pbData, (int)cbData);
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
78private static string GetAndTrimString(ReadOnlySpan<char> buffer)
src\runtime\src\libraries\Common\src\System\Net\HttpKnownHeaderNames.TryGetHeaderName.cs (2)
14public static string GetHeaderValue(string name, ReadOnlySpan<char> value) 48public static bool TryGetHeaderName(ReadOnlySpan<char> nameSpan, [NotNullWhen(true)] out string? name)
System\Net\Http\WinHttpAuthHelper.cs (1)
38private static ReadOnlySpan<uint> AuthSchemePriorityOrder =>
System\Net\Http\WinHttpRequestCallback.cs (1)
334ReadOnlySpan<byte> remoteAddressSpan = connectionInfo.RemoteAddress;
System\Net\Http\WinHttpResponseHeaderReader.cs (2)
52ReadOnlySpan<char> nameSpan = _buffer.AsSpan(startIndex, nameLength); 61ReadOnlySpan<char> valueSpan = new ReadOnlySpan<char>(_buffer, colonIndex + 1, startIndex + length - colonIndex - 1).Trim();
System\Net\Http\WinHttpResponseParser.cs (1)
44ReadOnlySpan<char> versionSpan = buffer.AsSpan(0, versionLength);
System.Net.HttpListener (26)
src\runtime\src\libraries\Common\src\System\HexConverter.cs (9)
187public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper) 204public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper) 221public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 244public ReadOnlySpan<byte> Bytes { get; set; } 276public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 288public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 456private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 491private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 598public static ReadOnlySpan<byte> CharToHexLookup =>
src\runtime\src\libraries\Common\src\System\Net\CookieComparer.cs (4)
25internal static bool EqualDomains(ReadOnlySpan<char> left, ReadOnlySpan<char> right) 28internal static ReadOnlySpan<char> StripLeadingDot(ReadOnlySpan<char> s) => s.StartsWith('.') ? s[1..] : s;
src\runtime\src\libraries\Common\src\System\Net\CookieParser.cs (3)
855ReadOnlySpan<char> unquoted = CheckQuotedSpan(value); 859internal static ReadOnlySpan<char> CheckQuotedSpan(ReadOnlySpan<char> value)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.DumpBuffer.cs (1)
34public static void DumpBuffer(object? thisOrContextObject, ReadOnlySpan<byte> buffer, [CallerMemberName] string? memberName = null) =>
System\Net\Managed\ChunkStream.cs (3)
306private static ReadOnlySpan<char> RemoveChunkExtension(ReadOnlySpan<char> input) 312private static int ParseChunkSize(ReadOnlySpan<char> input)
System\Net\Managed\HttpEndPointManager.cs (1)
86ReadOnlySpan<char> portString = p.AsSpan(colon + 1, root - colon - 1);
System\Net\Managed\HttpListenerRequest.Managed.cs (2)
95ReadOnlySpan<char> version = req.AsSpan(parts[2]); 143ReadOnlySpan<char> host = UserHostName;
System\Net\ServiceNameStore.cs (3)
38ReadOnlySpan<char> prefix = inputServiceName.AsSpan(0, shashIndex + 1); // Includes slash 47ReadOnlySpan<char> port = default; 48ReadOnlySpan<char> distinguisher = default;
System.Net.Mail (88)
src\runtime\src\libraries\Common\src\System\HexConverter.cs (9)
187public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper) 204public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper) 221public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 244public ReadOnlySpan<byte> Bytes { get; set; } 276public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 288public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 456private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 491private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 598public static ReadOnlySpan<byte> CharToHexLookup =>
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
101public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 102public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 103public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 209public void Append(scoped ReadOnlySpan<char> value)
System\Net\Base64Stream.cs (4)
16private static ReadOnlySpan<byte> Base64DecodeMap => 128public int EncodeBytes(ReadOnlySpan<byte> buffer) => 131internal int EncodeBytes(ReadOnlySpan<byte> buffer, bool dontDeferFinalBytes, bool shouldAppendSpaceToCRLF) 214protected override void WriteInternal(ReadOnlySpan<byte> buffer)
System\Net\BufferBuilder.cs (1)
45internal void Append(ReadOnlySpan<byte> value)
System\Net\BufferedReadStream.cs (2)
76protected override void WriteInternal(ReadOnlySpan<byte> buffer) 90internal void Push(ReadOnlySpan<byte> buffer)
System\Net\CloseableStream.cs (1)
32protected override void WriteInternal(ReadOnlySpan<byte> buffer)
System\Net\DelegatedStream.cs (2)
108protected abstract void WriteInternal(ReadOnlySpan<byte> buffer); 172public sealed override void Write(ReadOnlySpan<byte> buffer)
System\Net\Mail\MailBnfHelper.cs (1)
230ReadOnlySpan<char> span = data.AsSpan(start);
System\Net\Mail\SmtpCommands.cs (21)
303internal static Task SendAsync<TIOAdapter>(SmtpConnection conn, ReadOnlySpan<byte> command, MailAddress from, bool allowUnicode, CancellationToken cancellationToken = default) 340private static void PrepareCommand(SmtpConnection conn, ReadOnlySpan<byte> command, MailAddress from, bool allowUnicode) 433internal static ReadOnlySpan<byte> Auth => "AUTH "u8; 434internal static ReadOnlySpan<byte> CRLF => "\r\n"u8; 435internal static ReadOnlySpan<byte> Data => "DATA\r\n"u8; 436internal static ReadOnlySpan<byte> DataStop => "\r\n.\r\n"u8; 437internal static ReadOnlySpan<byte> EHello => "EHLO "u8; 438internal static ReadOnlySpan<byte> Expand => "EXPN "u8; 439internal static ReadOnlySpan<byte> Hello => "HELO "u8; 440internal static ReadOnlySpan<byte> Help => "HELP"u8; 441internal static ReadOnlySpan<byte> Mail => "MAIL FROM:"u8; 442internal static ReadOnlySpan<byte> Noop => "NOOP\r\n"u8; 443internal static ReadOnlySpan<byte> Quit => "QUIT\r\n"u8; 444internal static ReadOnlySpan<byte> Recipient => "RCPT TO:"u8; 445internal static ReadOnlySpan<byte> Reset => "RSET\r\n"u8; 446internal static ReadOnlySpan<byte> Send => "SEND FROM:"u8; 447internal static ReadOnlySpan<byte> SendAndMail => "SAML FROM:"u8; 448internal static ReadOnlySpan<byte> SendOrMail => "SOML FROM:"u8; 449internal static ReadOnlySpan<byte> Turn => "TURN\r\n"u8; 450internal static ReadOnlySpan<byte> Verify => "VRFY "u8; 451internal static ReadOnlySpan<byte> StartTls => "STARTTLS"u8;
System\Net\Mail\SmtpReplyReaderFactory.cs (1)
87private int ProcessRead(ReadOnlySpan<byte> buffer, bool readLine)
System\Net\Mime\Base64Encoder.cs (2)
10private static ReadOnlySpan<byte> Base64EncodeMap => "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="u8; 45protected override bool LineBreakNeeded(ReadOnlySpan<byte> bytes)
System\Net\Mime\ByteEncoder.cs (4)
17public int EncodeBytes(ReadOnlySpan<byte> buffer, bool dontDeferFinalBytes, bool shouldAppendSpaceToCRLF) 115protected abstract bool LineBreakNeeded(ReadOnlySpan<byte> bytes); 123private void AppendEncodedCodepoint(ReadOnlySpan<byte> bytes) 136protected static bool IsCRLF(ReadOnlySpan<byte> buffer)
System\Net\Mime\EightBitStream.cs (3)
61protected override void WriteInternal(ReadOnlySpan<byte> buffer) 96private void EncodeLines(ReadOnlySpan<byte> buffer) 139public int EncodeBytes(ReadOnlySpan<byte> buffer) { throw new NotImplementedException(); }
System\Net\Mime\IByteEncoder.cs (1)
11int EncodeBytes(ReadOnlySpan<byte> buffer, bool dontDeferFinalBytes, bool shouldAppendSpaceToCRLF);
System\Net\Mime\IEncodableStream.cs (1)
12int EncodeBytes(ReadOnlySpan<byte> buffer);
System\Net\Mime\MediaTypeMap.cs (8)
20private static readonly Dictionary<string, string>.AlternateLookup<ReadOnlySpan<char>> s_extensionToMediaType = new Dictionary<string, string>(ExtensionToMediaTypeCount, StringComparer.OrdinalIgnoreCase) 426}.GetAlternateLookup<ReadOnlySpan<char>>(); 428private static readonly Dictionary<string, string>.AlternateLookup<ReadOnlySpan<char>> s_mediaTypeToExtension = new Dictionary<string, string>(MediaTypeToExtensionCount, StringComparer.OrdinalIgnoreCase) 725}.GetAlternateLookup<ReadOnlySpan<char>>(); 793/// The method extracts the extension from <paramref name="pathOrExtension"/> using the same logic as <see cref="Path.GetExtension(ReadOnlySpan{char})"/>. 798public static unsafe string? GetMediaType(ReadOnlySpan<char> pathOrExtension) 800scoped ReadOnlySpan<char> extension = Path.GetExtension(pathOrExtension); 853public static string? GetExtension(ReadOnlySpan<char> mediaType)
System\Net\Mime\MimeBasePart.cs (12)
59ReadOnlySpan<char> valueSpan = value; 84ReadOnlySpan<char> token = valueSpan[tokenStart..current]; 118ReadOnlySpan<char> valueSpan = value; 134ReadOnlySpan<char> token = valueSpan[tokenStart..current]; 150ReadOnlySpan<char> valueSpan = value; 178ReadOnlySpan<char> token = valueSpan[tokenStart..current]; 192private static bool TryDecodeHeaderValue(ReadOnlySpan<char> value, out string decodedValue) 206ReadOnlySpan<char> encodedText = value[encodedTextRange]; 216ReadOnlySpan<char> value, 259ReadOnlySpan<char> encodedTextValue = value[(encodingEnd + 1)..^2]; 270private static Encoding? TryGetEncoding(ReadOnlySpan<char> charSet) 286private static bool IsValidHeaderWhiteSpace(ReadOnlySpan<char> value)
System\Net\Mime\QEncodedStream.cs (3)
21private static ReadOnlySpan<byte> HexDecodeMap => 182public int EncodeBytes(ReadOnlySpan<byte> buffer) => _encoder.EncodeBytes(buffer, true, true); 228protected override void WriteInternal(ReadOnlySpan<byte> buffer)
System\Net\Mime\QEncoder.cs (1)
47protected override bool LineBreakNeeded(ReadOnlySpan<byte> bytes)
System\Net\Mime\QuotedPrintableStream.cs (4)
37private static ReadOnlySpan<byte> HexDecodeMap => 58private static ReadOnlySpan<byte> HexEncodeMap => "0123456789ABCDEF"u8; 203public int EncodeBytes(ReadOnlySpan<byte> buffer) 342protected override void WriteInternal(ReadOnlySpan<byte> buffer)
System\Net\Mime\SmtpDateTime.cs (2)
258ReadOnlySpan<char> date = data.AsSpan(0, indexOfTimeZoneSeparator).Trim(); 272ReadOnlySpan<char> timeZoneSpan = data.AsSpan(indexOfTimeZoneSeparator).Trim();
System\Net\Mime\WriteStateInfoBase.cs (1)
77internal void Append(ReadOnlySpan<byte> bytes)
System.Net.NameResolution (62)
src\runtime\src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (4)
60public static unsafe AddressFamily GetAddressFamily(ReadOnlySpan<byte> buffer) 88public static unsafe ushort GetPort(ReadOnlySpan<byte> buffer) 112public static unsafe uint GetIPv4Address(ReadOnlySpan<byte> buffer) 125public static unsafe void GetIPv6Address(ReadOnlySpan<byte> buffer, Span<byte> address, out uint scope)
System\Net\Dns.cs (1)
442ReadOnlySpan<char> hostSpan = hostName.AsSpan();
System\Net\DnsEncodedName.cs (18)
25private readonly ReadOnlySpan<byte> _buffer; 37internal DnsEncodedName(ReadOnlySpan<byte> buffer, int offset, bool isAce, bool hasPointers) 50public static bool TryParse(ReadOnlySpan<byte> buffer, int offset, out DnsEncodedName name, out int bytesConsumed) 81ReadOnlySpan<char> name, 181public bool Equals(ReadOnlySpan<char> name) 206ReadOnlySpan<byte> label = enumerator.Current; 277private static bool IsAceLabel(ReadOnlySpan<byte> label) 300foreach (ReadOnlySpan<byte> label in EnumerateLabels()) 327ReadOnlySpan<byte> encoded = _buffer[_offset..]; 340foreach (ReadOnlySpan<byte> label in EnumerateLabels()) 379ReadOnlySpan<byte> label = enumerator.Current; 428private static bool ValidateName(ReadOnlySpan<byte> buffer, int offset, 506ReadOnlySpan<byte> label = buffer.Slice(pos + 1, b); 530private static bool IsValidLabel(ReadOnlySpan<byte> label) 545private readonly ReadOnlySpan<byte> _buffer; 547private ReadOnlySpan<byte> _current; 549internal DnsLabelEnumerator(ReadOnlySpan<byte> buffer, int offset) 556public readonly ReadOnlySpan<byte> Current => _current;
System\Net\DnsMessageHeader.cs (1)
39internal static bool TryRead(ReadOnlySpan<byte> source, out DnsMessageHeader header)
System\Net\DnsMessageReader.cs (8)
32public ReadOnlySpan<byte> Data { get; } 35public ReadOnlySpan<byte> Message { get; } 41uint ttl, ReadOnlySpan<byte> data, ReadOnlySpan<byte> message, int dataOffset) 56private readonly ReadOnlySpan<byte> _message; 61private DnsMessageReader(ReadOnlySpan<byte> message, DnsMessageHeader header) 70public static bool TryCreate(ReadOnlySpan<byte> message, out DnsMessageReader reader) 151ReadOnlySpan<byte> data = _message.Slice(dataOffset, rdLength);
System\Net\DnsRecordParsing.cs (11)
12public ReadOnlySpan<byte> AddressBytes { get; } 14internal DnsARecordData(ReadOnlySpan<byte> addressBytes) 24public ReadOnlySpan<byte> AddressBytes { get; } 26internal DnsAAAARecordData(ReadOnlySpan<byte> addressBytes) 98private readonly ReadOnlySpan<byte> _data; 100internal DnsTxtRecordData(ReadOnlySpan<byte> data) 110private ReadOnlySpan<byte> _remaining; 111private ReadOnlySpan<byte> _current; 113internal DnsTxtEnumerator(ReadOnlySpan<byte> data) 119public readonly ReadOnlySpan<byte> Current => _current; 256ReadOnlySpan<byte> fixedData = record.Data[(mnameLen + rnameLen)..];
System\Net\DnsResolverPal.Managed.cs (15)
124private static DnsResult<AddressRecord> ParseAddresses(ReadOnlySpan<byte> response, DnsRecordType qtype) 172private static DnsResult<SrvRecord> ParseSrv(ReadOnlySpan<byte> response) 237private static DnsResult<TxtRecord> ParseTxt(ReadOnlySpan<byte> response) 255foreach (ReadOnlySpan<byte> str in txt.EnumerateStrings()) 267private static DnsResult<MxRecord> ParseMx(ReadOnlySpan<byte> response) 292private static DnsResult<CNameRecord> ParseCName(ReadOnlySpan<byte> response) 317private static DnsResult<PtrRecord> ParsePtr(ReadOnlySpan<byte> response) 342private static DnsResult<NsRecord> ParseNs(ReadOnlySpan<byte> response) 369private static TimeSpan ExtractNegativeCacheTtl(ReadOnlySpan<byte> response) 558private static bool IsServerFailure(ReadOnlySpan<byte> response) 565ReadOnlySpan<byte> response, ushort expectedId, string expectedName, DnsRecordType expectedType, 596ReadOnlySpan<byte> response, DnsMessageHeader header, string expectedName, DnsRecordType expectedType) 798private static void SendExactSync(DnsSocket socket, ReadOnlySpan<byte> buffer) 863private static DnsMessageReader CreateReader(ReadOnlySpan<byte> response) 919public ReadOnlySpan<byte> Span => _buffer.AsSpan(0, _length);
System\Net\DnsSocket.cs (2)
100public int Send(ReadOnlySpan<byte> buffer) => Send(_socket, buffer); 147private static extern int Send([UnsafeAccessorType(SocketTypeName)] object socket, ReadOnlySpan<byte> buffer);
System\Net\ResolvConf.cs (2)
89ReadOnlySpan<char> span = line.AsSpan().Trim(); 101ReadOnlySpan<char> rest = span[Directive.Length..];
System.Net.NetworkInformation (33)
src\runtime\src\libraries\Common\src\System\HexConverter.cs (9)
187public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper) 204public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper) 221public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 244public ReadOnlySpan<byte> Bytes { get; set; } 276public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 288public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 456private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 491private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 598public static ReadOnlySpan<byte> CharToHexLookup =>
src\runtime\src\libraries\Common\src\System\IO\StringParser.cs (2)
142ReadOnlySpan<char> span = _buffer.AsSpan(_startIndex, _endIndex - _startIndex); 165ReadOnlySpan<char> span = _buffer.AsSpan(_startIndex, _endIndex - _startIndex);
System\Net\NetworkInformation\BsdIPGlobalProperties.cs (3)
41IPAddress localIPAddress = new IPAddress(((ReadOnlySpan<byte>)nativeInfo.LocalEndPoint.AddressBytes)[..checked((int)nativeInfo.LocalEndPoint.NumAddressBytes)]); 46new IPAddress(((ReadOnlySpan<byte>)nativeInfo.RemoteEndPoint.AddressBytes)[..checked((int)nativeInfo.RemoteEndPoint.NumAddressBytes)]); 102new IPAddress(((ReadOnlySpan<byte>)endPointInfo.AddressBytes)[..checked((int)endPointInfo.NumAddressBytes)]);
System\Net\NetworkInformation\BsdIpInterfaceProperties.cs (1)
96IPAddress ipAddress = new IPAddress(((ReadOnlySpan<byte>)gatewayAddressInfo->AddressBytes)[..gatewayAddressInfo->NumAddressBytes]);
System\Net\NetworkInformation\IPAddressUtil.cs (1)
37IPAddress ipAddress = new IPAddress(((ReadOnlySpan<byte>)addressInfo->AddressBytes)[..addressInfo->NumAddressBytes]);
System\Net\NetworkInformation\LinuxIPv4InterfaceProperties.cs (1)
38ReadOnlySpan<string> paths =
System\Net\NetworkInformation\LinuxNetworkInterface.cs (2)
107lni._physicalAddress = new PhysicalAddress(((ReadOnlySpan<byte>)nii->AddressBytes)[..nii->NumAddressBytes].ToArray()); 117var address = new IPAddress(((ReadOnlySpan<byte>)ai->AddressBytes)[..ai->NumAddressBytes]);
System\Net\NetworkInformation\PhysicalAddress.cs (3)
78public static PhysicalAddress Parse(ReadOnlySpan<char> address) 97public static bool TryParse(ReadOnlySpan<char> address, [NotNullWhen(true)] out PhysicalAddress? value) 203private static bool TryGetValidSegmentLength(ReadOnlySpan<char> address, char delimiter, out int value)
System\Net\NetworkInformation\StringParsingHelpers.Addresses.cs (3)
101ReadOnlySpan<char> interfaceName = fileContents.AsSpan(beforeName + 2, afterName - beforeName - 3); 110ReadOnlySpan<char> dhcpAddressSpan = fileContents.AsSpan(beforeAddress + 1, afterAddress - beforeAddress - 1); 160ReadOnlySpan<char> addressSpan = fileContents.AsSpan(labelIndex + label.Length, endOfLine - (labelIndex + label.Length));
System\Net\NetworkInformation\StringParsingHelpers.Connections.cs (5)
283ReadOnlySpan<char> portSpan = localAddressAndPort.AsSpan(indexOfColon + 1, localAddressAndPort.Length - (indexOfColon + 1)); 303ReadOnlySpan<char> portSpan = colonSeparatedAddress.AsSpan(indexOfColon + 1, colonSeparatedAddress.Length - (indexOfColon + 1)); 319internal static IPAddress ParseHexIPAddress(ReadOnlySpan<char> remoteAddressString) 337private static IPAddress ParseIPv4HexString(ReadOnlySpan<char> hexAddress) 358private static unsafe IPAddress ParseIPv6HexString(ReadOnlySpan<char> hexAddress, bool isNetworkOrder = false)
System\Net\NetworkInformation\StringParsingHelpers.Statistics.cs (2)
415ReadOnlySpan<char> lineSpan = line; 456private static long ParseUInt64AndClampToInt64(ReadOnlySpan<char> value)
System\Net\NetworkInformation\UnixNetworkInterface.cs (1)
101byte[] macAddress = ((ReadOnlySpan<byte>)llAddr->AddressBytes)[..llAddr->NumAddressBytes].ToArray();
System.Net.Ping (11)
src\runtime\src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (3)
11public static unsafe IPAddress GetIPAddress(ReadOnlySpan<byte> socketAddressBuffer) 51public static IPEndPoint CreateIPEndPoint(ReadOnlySpan<byte> socketAddressBuffer) 64public static unsafe bool Equals(this IPEndPoint endPoint, ReadOnlySpan<byte> socketAddressBuffer)
src\runtime\src\libraries\Common\src\System\Net\NetworkInformation\UnixCommandLinePing.cs (1)
215ReadOnlySpan<char> timeSubstring = pingOutput.AsSpan(afterTime, numLength);
src\runtime\src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (4)
60public static unsafe AddressFamily GetAddressFamily(ReadOnlySpan<byte> buffer) 88public static unsafe ushort GetPort(ReadOnlySpan<byte> buffer) 112public static unsafe uint GetIPv4Address(ReadOnlySpan<byte> buffer) 125public static unsafe void GetIPv6Address(ReadOnlySpan<byte> buffer, Span<byte> address, out uint scope)
src\runtime\src\libraries\Common\src\System\Runtime\InteropServices\SpanOfCharAsUtf8StringMarshaller.cs (2)
12[CustomMarshaller(typeof(ReadOnlySpan<char>), MarshalMode.ManagedToUnmanagedIn, typeof(ManagedToUnmanagedIn))] 33public void FromManaged(ReadOnlySpan<char> managed, Span<byte> buffer)
System\Net\NetworkInformation\Ping.RawSocket.cs (1)
479private static ushort ComputeBufferChecksum(ReadOnlySpan<byte> buffer)
System.Net.Primitives (103)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LibraryImports.g.cs (1)
188public static partial uint InterfaceNameToIndex(global::System.ReadOnlySpan<byte> utf8NullTerminatedName)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.InterfaceNameToIndex.cs (1)
12public static partial uint InterfaceNameToIndex(ReadOnlySpan<byte> utf8NullTerminatedName);
src\runtime\src\libraries\Common\src\System\HexConverter.cs (9)
187public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper) 204public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper) 221public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 244public ReadOnlySpan<byte> Bytes { get; set; } 276public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 288public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 456private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 491private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 598public static ReadOnlySpan<byte> CharToHexLookup =>
src\runtime\src\libraries\Common\src\System\Net\CookieComparer.cs (4)
25internal static bool EqualDomains(ReadOnlySpan<char> left, ReadOnlySpan<char> right) 28internal static ReadOnlySpan<char> StripLeadingDot(ReadOnlySpan<char> s) => s.StartsWith('.') ? s[1..] : s;
src\runtime\src\libraries\Common\src\System\Net\CookieParser.cs (3)
855ReadOnlySpan<char> unquoted = CheckQuotedSpan(value); 859internal static ReadOnlySpan<char> CheckQuotedSpan(ReadOnlySpan<char> value)
src\runtime\src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (3)
11public static unsafe IPAddress GetIPAddress(ReadOnlySpan<byte> socketAddressBuffer) 51public static IPEndPoint CreateIPEndPoint(ReadOnlySpan<byte> socketAddressBuffer) 64public static unsafe bool Equals(this IPEndPoint endPoint, ReadOnlySpan<byte> socketAddressBuffer)
src\runtime\src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (4)
34internal static unsafe int ParseHostNumber<TChar>(ReadOnlySpan<TChar> str, int start, int end) 100internal static bool IsValid<TChar>(ReadOnlySpan<TChar> name, out int end, bool allowIPv6, bool notImplicitFile, bool unknownScheme) 127internal static bool IsValidCanonical<TChar>(ReadOnlySpan<TChar> name, out int end, bool allowIPv6, bool notImplicitFile) 205internal static long ParseNonCanonical<TChar>(ReadOnlySpan<TChar> name, out int end, bool notImplicitFile)
src\runtime\src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (6)
17internal static (int longestSequenceStart, int longestSequenceLength) FindCompressionRange(ReadOnlySpan<ushort> numbers) 45internal static bool ShouldHaveIpv4Embedded(ReadOnlySpan<ushort> numbers) 98internal static bool IsValidStrict<TChar>(ReadOnlySpan<TChar> name) 313internal static void Parse<TChar>(ReadOnlySpan<TChar> address, scoped Span<ushort> numbers, out ReadOnlySpan<TChar> scopeId) 324scopeId = ReadOnlySpan<TChar>.Empty;
src\runtime\src\libraries\Common\src\System\Net\NetworkInformation\InterfaceInfoPal.Unix.cs (4)
18public static unsafe uint InterfaceNameToIndex<TChar>(ReadOnlySpan<TChar> interfaceName) 37ReadOnlySpan<char> castInterfaceName = MemoryMarshal.Cast<TChar, char>(interfaceName); 52ReadOnlySpan<byte> castInterfaceName = MemoryMarshal.Cast<TChar, byte>(interfaceName); 58ReadOnlySpan<char> castInterfaceName = MemoryMarshal.Cast<TChar, char>(interfaceName);
src\runtime\src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (4)
60public static unsafe AddressFamily GetAddressFamily(ReadOnlySpan<byte> buffer) 88public static unsafe ushort GetPort(ReadOnlySpan<byte> buffer) 112public static unsafe uint GetIPv4Address(ReadOnlySpan<byte> buffer) 125public static unsafe void GetIPv6Address(ReadOnlySpan<byte> buffer, Span<byte> address, out uint scope)
System\Net\Cookie.cs (3)
331private static bool HostMatchesDomain(ReadOnlySpan<char> host, ReadOnlySpan<char> domain) 489private static bool IsValidDomainName(ReadOnlySpan<char> name) =>
System\Net\CookieContainer.cs (5)
684ReadOnlySpan<char> host = uri.Host; 752private static bool PathMatch(ReadOnlySpan<char> requestPath, ReadOnlySpan<char> cookiePath) 952ReadOnlySpan<char> pathLeft = CookieParser.CheckQuotedSpan((string)ol!); 953ReadOnlySpan<char> pathRight = CookieParser.CheckQuotedSpan((string)or!);
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); 234public static bool IsValidUtf8(ReadOnlySpan<byte> utf8Text) => IPAddressParser.IsValid(utf8Text); 259public static bool TryParse(ReadOnlySpan<byte> utf8Text, [NotNullWhen(true)] out IPAddress? result) 265public static bool TryParse(ReadOnlySpan<char> ipSpan, [NotNullWhen(true)] out IPAddress? address) 272static bool IUtf8SpanParsable<IPAddress>.TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, [NotNullWhen(true)] out IPAddress? result) => 281static bool ISpanParsable<IPAddress>.TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, [NotNullWhen(true)] out IPAddress? result) => 297public static IPAddress Parse(ReadOnlySpan<byte> utf8Text) 302public static IPAddress Parse(ReadOnlySpan<char> ipSpan) 308static IPAddress IUtf8SpanParsable<IPAddress>.Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => 313static IPAddress ISpanParsable<IPAddress>.Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => 491bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) => 496bool IUtf8SpanFormattable.TryFormat(Span<byte> utf8Destination, out int bytesWritten, ReadOnlySpan<char> format, IFormatProvider? provider) => 645return !IsIPv4 && _numbers.AsSpan(0, 6).SequenceEqual((ReadOnlySpan<ushort>)[0, 0, 0, 0, 0, 0xFFFF]); 705ReadOnlySpan<ushort> left = _numbers.AsSpan(0, IPAddressParserStatics.IPv6AddressShorts); 706ReadOnlySpan<ushort> right = comparand._numbers.AsSpan(0, IPAddressParserStatics.IPv6AddressShorts); 722ReadOnlySpan<byte> numbers = MemoryMarshal.AsBytes<ushort>(_numbers).Slice(0, 16); 780public ReadOnlyIPAddress(ReadOnlySpan<byte> newAddress) : base(newAddress) 783public ReadOnlyIPAddress(ReadOnlySpan<byte> address, long scopeid) : base(address, scopeid)
System\Net\IPAddressParser.cs (8)
19public static bool IsValid<TChar>(ReadOnlySpan<TChar> ipSpan) 33internal static unsafe IPAddress? Parse<TChar>(ReadOnlySpan<TChar> ipSpan, bool tryParse) 62private static bool TryParseIpv4<TChar>(ReadOnlySpan<TChar> ipSpan, out long address) 80private static bool TryParseIPv6<TChar>(ReadOnlySpan<TChar> ipSpan, Span<ushort> numbers, int numbersLength, out uint scope) 92IPv6AddressHelper.Parse(ipSpan, numbers, out ReadOnlySpan<TChar> scopeIdSpan); 102ReadOnlySpan<byte> castScopeIdSpan = MemoryMarshal.Cast<TChar, byte>(scopeIdSpan); 108ReadOnlySpan<char> castScopeIdSpan = MemoryMarshal.Cast<TChar, char>(scopeIdSpan); 225static void AppendSections(ReadOnlySpan<ushort> address, Span<TChar> destination, ref int offset)
System\Net\IPEndPoint.cs (12)
99internal static bool InternalTryParse<TChar>(ReadOnlySpan<TChar> s, [NotNullWhen(true)] out IPEndPoint? result) 132ReadOnlySpan<TChar> portSpan = s.Slice(addressLength + 1); 160public static bool TryParse(ReadOnlySpan<char> s, [NotNullWhen(true)] out IPEndPoint? result) => InternalTryParse(s, out result); 169public static IPEndPoint Parse(ReadOnlySpan<char> s) 218public static IPEndPoint Parse(ReadOnlySpan<byte> utf8Text) 233static IPEndPoint ISpanParsable<IPEndPoint>.Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s); 247static IPEndPoint IUtf8SpanParsable<IPEndPoint>.Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text); 253public static bool TryParse(ReadOnlySpan<byte> utf8Text, [NotNullWhen(true)] out IPEndPoint? result) => InternalTryParse(utf8Text, out result); 260static bool ISpanParsable<IPEndPoint>.TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, [NotNullWhen(true)] out IPEndPoint? result) => TryParse(s, out result); 283static bool IUtf8SpanParsable<IPEndPoint>.TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, [NotNullWhen(true)] out IPEndPoint? result) => TryParse(utf8Text, out result); 315bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) => 324bool IUtf8SpanFormattable.TryFormat(Span<byte> utf8Destination, out int bytesWritten, ReadOnlySpan<char> format, IFormatProvider? provider) =>
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 (47)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.BIO.cs (1)
40internal static int BioWrite(SafeBioHandle b, ReadOnlySpan<byte> data) =>
src\runtime\src\libraries\Common\src\System\HexConverter.cs (9)
187public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper) 204public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper) 221public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 244public ReadOnlySpan<byte> Bytes { get; set; } 276public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 288public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 456private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 491private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 598public static ReadOnlySpan<byte> CharToHexLookup =>
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
82public ReadOnlySpan<byte> ActiveReadOnlySpan => new ReadOnlySpan<byte>(_bytes, _activeStart, _availableStart - _activeStart);
src\runtime\src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (3)
11public static unsafe IPAddress GetIPAddress(ReadOnlySpan<byte> socketAddressBuffer) 51public static IPEndPoint CreateIPEndPoint(ReadOnlySpan<byte> socketAddressBuffer) 64public static unsafe bool Equals(this IPEndPoint endPoint, ReadOnlySpan<byte> socketAddressBuffer)
src\runtime\src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (4)
34internal static unsafe int ParseHostNumber<TChar>(ReadOnlySpan<TChar> str, int start, int end) 100internal static bool IsValid<TChar>(ReadOnlySpan<TChar> name, out int end, bool allowIPv6, bool notImplicitFile, bool unknownScheme) 127internal static bool IsValidCanonical<TChar>(ReadOnlySpan<TChar> name, out int end, bool allowIPv6, bool notImplicitFile) 205internal static long ParseNonCanonical<TChar>(ReadOnlySpan<TChar> name, out int end, bool notImplicitFile)
src\runtime\src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (6)
17internal static (int longestSequenceStart, int longestSequenceLength) FindCompressionRange(ReadOnlySpan<ushort> numbers) 45internal static bool ShouldHaveIpv4Embedded(ReadOnlySpan<ushort> numbers) 98internal static bool IsValidStrict<TChar>(ReadOnlySpan<TChar> name) 313internal static void Parse<TChar>(ReadOnlySpan<TChar> address, scoped Span<ushort> numbers, out ReadOnlySpan<TChar> scopeId) 324scopeId = ReadOnlySpan<TChar>.Empty;
src\runtime\src\libraries\Common\src\System\Net\MultiArrayBuffer.cs (1)
401public void CopyFrom(ReadOnlySpan<byte> source)
src\runtime\src\libraries\Common\src\System\Net\Security\SslKeyLogger.cs (11)
40public static void WriteLineRaw(ReadOnlySpan<byte> data) 60ReadOnlySpan<byte> clientRandom, 61ReadOnlySpan<byte> clientHandshakeTrafficSecret, 62ReadOnlySpan<byte> serverHandshakeTrafficSecret, 63ReadOnlySpan<byte> clientTrafficSecret0, 64ReadOnlySpan<byte> serverTrafficSecret0, 65ReadOnlySpan<byte> clientEarlyTrafficSecret) 98private static unsafe void WriteSecretCore(ReadOnlySpan<byte> labelUtf8, ReadOnlySpan<byte> clientRandomUtf8, ReadOnlySpan<byte> secret) 122private static void HexEncode(ReadOnlySpan<byte> source, Span<byte> destination)
src\runtime\src\libraries\Common\src\System\Net\Security\TargetHostNameHelper.cs (1)
15private static bool IsSafeDnsString(ReadOnlySpan<char> name) =>
src\runtime\src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (4)
60public static unsafe AddressFamily GetAddressFamily(ReadOnlySpan<byte> buffer) 88public static unsafe ushort GetPort(ReadOnlySpan<byte> buffer) 112public static unsafe uint GetIPv4Address(ReadOnlySpan<byte> buffer) 125public static unsafe void GetIPv6Address(ReadOnlySpan<byte> buffer, Span<byte> address, out uint scope)
src\runtime\src\libraries\Common\src\System\Net\StreamBuffer.cs (2)
93private (bool wait, int bytesWritten) TryWriteToBuffer(ReadOnlySpan<byte> buffer) 133public void Write(ReadOnlySpan<byte> buffer)
System\Net\Quic\Internal\MsQuicTlsSecret.cs (2)
54ReadOnlySpan<byte> clientRandom = _tlsSecrets->IsSet.ClientRandom != 0 56: ReadOnlySpan<byte>.Empty;
System\Net\Quic\Internal\ReceiveBuffers.cs (1)
39public int CopyFrom(ReadOnlySpan<QUIC_BUFFER> quicBuffers, int totalLength, bool final)
System\Net\Quic\QuicStream.Stream.cs (1)
176public override void Write(ReadOnlySpan<byte> buffer)
System.Net.Requests (4)
src\runtime\src\libraries\Common\src\System\Net\HttpDateParser.cs (1)
37internal static bool TryParse(ReadOnlySpan<char> input, out DateTimeOffset result)
System\Net\FtpControlStream.cs (2)
923ReadOnlySpan<char> strSpan = str; 929ReadOnlySpan<char> dateTimeLine = strSpan[parts[1]];
System\Net\FtpDataStream.cs (1)
265public override void Write(ReadOnlySpan<byte> buffer)
System.Net.Security (245)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Net.Security.Native\Interop.GssBuffer.cs (1)
54internal ReadOnlySpan<byte> Span => (_data != null && _length != 0) ?
src\runtime\src\libraries\Common\src\Interop\Unix\System.Net.Security.Native\Interop.NetSecurityNative.cs (8)
114ReadOnlySpan<byte> inputBytes, 141ReadOnlySpan<byte> inputBytes, 233ReadOnlySpan<byte> inputBytes, 349ReadOnlySpan<byte> inputBytes, 362ReadOnlySpan<byte> inputBytes, 374ReadOnlySpan<byte> inputBytes, 386ReadOnlySpan<byte> inputBytes, 387ReadOnlySpan<byte> tokenBytes)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.BIO.cs (1)
40internal static int BioWrite(SafeBioHandle b, ReadOnlySpan<byte> data) =>
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OCSP.cs (3)
37ReadOnlySpan<byte> buf, 40ReadOnlySpan<IntPtr> x509Issuers, 84internal static SafeOcspResponseHandle DecodeOcspResponse(ReadOnlySpan<byte> buf)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (6)
243ReadOnlySpan<byte> cipherList = CipherSuitesPolicyPal.GetOpenSslCipherList(sslAuthenticationOptions.CipherSuitesPolicy, protocols, sslAuthenticationOptions.EncryptionPolicy); 714internal static unsafe SecurityStatusPalErrorCode DoSslHandshake(SafeSslHandle context, ReadOnlySpan<byte> input, out int consumed, ref ProtocolToken token) 827internal static unsafe Ssl.SslErrorCode Encrypt(SafeSslHandle context, ReadOnlySpan<byte> input, ref ProtocolToken outToken) 1310ReadOnlySpan<byte> version = MemoryMarshal.CreateReadOnlySpanFromNullTerminated(Ssl.SslGetVersion(ssl)); 1351ReadOnlySpan<byte> data = MemoryMarshal.CreateReadOnlySpanFromNullTerminated((byte*)line); 1368private static void BioWrite(SafeBioHandle bio, ReadOnlySpan<byte> buffer)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (6)
69internal static unsafe ReadOnlySpan<byte> SslGetAlpnSelected(SafeSslHandle ssl) 76return ReadOnlySpan<byte>.Empty; 181internal static unsafe SafeBioHandle BioNewSocketReplay(SafeSocketHandle socket, ReadOnlySpan<byte> prefix) 401internal static unsafe void SslStapleOcsp(SafeSslHandle ssl, ReadOnlySpan<byte> stapledResponse) 561writeBio = Interop.Ssl.BioNewSocketReplay(socket!, ReadOnlySpan<byte>.Empty); 568writeBio = Interop.Ssl.BioNewSocketReplay(socket!, ReadOnlySpan<byte>.Empty);
src\runtime\src\libraries\Common\src\System\HexConverter.cs (9)
187public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper) 204public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper) 221public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 244public ReadOnlySpan<byte> Bytes { get; set; } 276public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 288public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 456private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 491private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 598public static ReadOnlySpan<byte> CharToHexLookup =>
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
82public ReadOnlySpan<byte> ActiveReadOnlySpan => new ReadOnlySpan<byte>(_bytes, _activeStart, _availableStart - _activeStart);
src\runtime\src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (4)
34internal static unsafe int ParseHostNumber<TChar>(ReadOnlySpan<TChar> str, int start, int end) 100internal static bool IsValid<TChar>(ReadOnlySpan<TChar> name, out int end, bool allowIPv6, bool notImplicitFile, bool unknownScheme) 127internal static bool IsValidCanonical<TChar>(ReadOnlySpan<TChar> name, out int end, bool allowIPv6, bool notImplicitFile) 205internal static long ParseNonCanonical<TChar>(ReadOnlySpan<TChar> name, out int end, bool notImplicitFile)
src\runtime\src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (6)
17internal static (int longestSequenceStart, int longestSequenceLength) FindCompressionRange(ReadOnlySpan<ushort> numbers) 45internal static bool ShouldHaveIpv4Embedded(ReadOnlySpan<ushort> numbers) 98internal static bool IsValidStrict<TChar>(ReadOnlySpan<TChar> name) 313internal static void Parse<TChar>(ReadOnlySpan<TChar> address, scoped Span<ushort> numbers, out ReadOnlySpan<TChar> scopeId) 324scopeId = ReadOnlySpan<TChar>.Empty;
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.DumpBuffer.cs (1)
34public static void DumpBuffer(object? thisOrContextObject, ReadOnlySpan<byte> buffer, [CallerMemberName] string? memberName = null) =>
src\runtime\src\libraries\Common\src\System\Net\Security\KerberosPacLogonInfo.cs (8)
51public static KerberosPacLogonInfo? Decode(ReadOnlySpan<byte> buffer) 276!reader.TryReadBytes((int)actualCount * 2, out ReadOnlySpan<byte> chars)) 370!reader.TryReadBytes(6, out ReadOnlySpan<byte> identifierAuthority) || 432private readonly ReadOnlySpan<byte> _buffer; 435public NdrReader(ReadOnlySpan<byte> buffer) 477if (!TryAlign(sizeof(ushort)) || !TryReadBytes(sizeof(ushort), out ReadOnlySpan<byte> bytes)) 489if (!TryAlign(sizeof(uint)) || !TryReadBytes(sizeof(uint), out ReadOnlySpan<byte> bytes)) 498public bool TryReadBytes(int count, out ReadOnlySpan<byte> value)
src\runtime\src\libraries\Common\src\System\Net\Security\MD4.cs (5)
63internal static unsafe void HashData(ReadOnlySpan<byte> source, Span<byte> destination) 96private static void HashCore(ReadOnlySpan<byte> input, Span<uint> state, Span<uint> count, Span<byte> buffer) 173private static void Encode(Span<byte> output, ReadOnlySpan<uint> input) 181private static void Decode(Span<uint> output, ReadOnlySpan<byte> input) 189private static unsafe void MD4Transform(Span<uint> state, ReadOnlySpan<byte> block)
src\runtime\src\libraries\Common\src\System\Net\Security\RC4.cs (2)
44public RC4(ReadOnlySpan<byte> key) 76public void Transform(ReadOnlySpan<byte> input, Span<byte> output)
src\runtime\src\libraries\Common\src\System\Net\Security\SslKeyLogger.cs (11)
40public static void WriteLineRaw(ReadOnlySpan<byte> data) 60ReadOnlySpan<byte> clientRandom, 61ReadOnlySpan<byte> clientHandshakeTrafficSecret, 62ReadOnlySpan<byte> serverHandshakeTrafficSecret, 63ReadOnlySpan<byte> clientTrafficSecret0, 64ReadOnlySpan<byte> serverTrafficSecret0, 65ReadOnlySpan<byte> clientEarlyTrafficSecret) 98private static unsafe void WriteSecretCore(ReadOnlySpan<byte> labelUtf8, ReadOnlySpan<byte> clientRandomUtf8, ReadOnlySpan<byte> secret) 122private static void HexEncode(ReadOnlySpan<byte> source, Span<byte> destination)
src\runtime\src\libraries\Common\src\System\Net\Security\TargetHostNameHelper.cs (1)
15private static bool IsSafeDnsString(ReadOnlySpan<char> name) =>
src\runtime\src\libraries\Common\src\System\Text\UrlBase64Encoding.cs (2)
14internal static ArraySegment<char> RentEncode(ReadOnlySpan<byte> input) 32ReadOnlySpan<char> source = base64.AsSpan(0, base64Len);
System\Net\NegotiateAuthenticationPal.cs (6)
22public abstract byte[]? GetOutgoingBlob(ReadOnlySpan<byte> incomingBlob, out NegotiateAuthenticationStatusCode statusCode); 23public abstract NegotiateAuthenticationStatusCode Wrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, bool requestEncryption, out bool isEncrypted); 24public abstract NegotiateAuthenticationStatusCode Unwrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, out bool wasEncrypted); 26public abstract void GetMIC(ReadOnlySpan<byte> message, IBufferWriter<byte> signature); 27public abstract bool VerifyMIC(ReadOnlySpan<byte> message, ReadOnlySpan<byte> signature);
System\Net\NegotiateAuthenticationPal.ManagedNtlm.cs (30)
50private static ReadOnlySpan<byte> NtlmHeader => "NTLMSSP\0"u8; 52private static ReadOnlySpan<byte> ClientSigningKeyMagic => "session key to client-to-server signing key magic constant\0"u8; 53private static ReadOnlySpan<byte> ServerSigningKeyMagic => "session key to server-to-client signing key magic constant\0"u8; 54private static ReadOnlySpan<byte> ClientSealingKeyMagic => "session key to client-to-server sealing key magic constant\0"u8; 55private static ReadOnlySpan<byte> ServerSealingKeyMagic => "session key to server-to-client sealing key magic constant\0"u8; 331public override unsafe byte[]? GetOutgoingBlob(ReadOnlySpan<byte> incomingBlob, out NegotiateAuthenticationStatusCode statusCode) 376private static ReadOnlySpan<byte> GetField(MessageField field, ReadOnlySpan<byte> payload) 383return ReadOnlySpan<byte>.Empty; 401private static void AddToPayload(ref MessageField field, ReadOnlySpan<byte> data, Span<byte> payload, ref int offset) 408private static void AddToPayload(ref MessageField field, ReadOnlySpan<char> data, Span<byte> payload, ref int offset) 419private static unsafe void makeNtlm2Hash(string domain, string userName, ReadOnlySpan<char> password, Span<byte> hash) 452private static 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) 511private byte[]? ProcessTargetInfo(ReadOnlySpan<byte> targetInfo, out DateTime time, out bool hasNbNames) 529ReadOnlySpan<byte> info = targetInfo; 618private static byte[] DeriveKey(ReadOnlySpan<byte> exportedSessionKey, ReadOnlySpan<byte> magic) 629private unsafe byte[]? ProcessChallenge(ReadOnlySpan<byte> blob, out NegotiateAuthenticationStatusCode statusCode) 649ReadOnlySpan<byte> targetName = GetField(challengeMessage.TargetName, blob); 668ReadOnlySpan<byte> targetInfo = GetField(challengeMessage.TargetInfo, blob); 724ReadOnlySpan<byte> serverChallenge = blob.Slice(24, 8); 790ReadOnlySpan<byte> message, 792ReadOnlySpan<byte> signingKey, 808public override unsafe bool VerifyMIC(ReadOnlySpan<byte> message, ReadOnlySpan<byte> signature) 827public override void GetMIC(ReadOnlySpan<byte> message, IBufferWriter<byte> signature) 838public override NegotiateAuthenticationStatusCode Wrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, bool _/*requestEncryption*/, out bool isEncrypted) 856public 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) 228private byte[]? ProcessSpNegoChallenge(ReadOnlySpan<byte> challenge, out NegotiateAuthenticationStatusCode statusCode) 416public override NegotiateAuthenticationStatusCode Wrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, bool requestEncryption, out bool isEncrypted) 426public override NegotiateAuthenticationStatusCode Unwrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, out bool wasEncrypted) 446public override bool VerifyMIC(ReadOnlySpan<byte> message, ReadOnlySpan<byte> signature) 456public override void GetMIC(ReadOnlySpan<byte> message, IBufferWriter<byte> signature)
System\Net\NegotiateAuthenticationPal.Unix.cs (12)
104private static ReadOnlySpan<byte> PacLogonInfoAttribute => "urn:mspac:logon-info"u8; 354public override byte[]? GetOutgoingBlob(ReadOnlySpan<byte> incomingBlob, out NegotiateAuthenticationStatusCode statusCode) 418public override NegotiateAuthenticationStatusCode Wrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, bool requestEncryption, out bool isEncrypted) 449public override NegotiateAuthenticationStatusCode Unwrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, out bool wasEncrypted) 508public override unsafe void GetMIC(ReadOnlySpan<byte> message, IBufferWriter<byte> signature) 534public override unsafe bool VerifyMIC(ReadOnlySpan<byte> message, ReadOnlySpan<byte> signature) 573ReadOnlySpan<char> domain = credential.Domain; 606private static unsafe byte[]? GssGetNameAttribute(SafeGssContextHandle context, ReadOnlySpan<byte> attributeName, out bool isAuthenticated) 656ReadOnlySpan<byte> tokenBytes = token.Span; 678ReadOnlySpan<byte> incomingBlob, 795ReadOnlySpan<byte> incomingBlob,
System\Net\NegotiateAuthenticationPal.Unsupported.cs (6)
46public override byte[]? GetOutgoingBlob(ReadOnlySpan<byte> incomingBlob, out NegotiateAuthenticationStatusCode statusCode) 52public override NegotiateAuthenticationStatusCode Wrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, bool requestEncryption, out bool isEncrypted) => throw new InvalidOperationException(); 53public override NegotiateAuthenticationStatusCode Unwrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, out bool wasEncrypted) => throw new InvalidOperationException(); 55public override void GetMIC(ReadOnlySpan<byte> message, IBufferWriter<byte> signature) => throw new InvalidOperationException(); 56public override bool VerifyMIC(ReadOnlySpan<byte> message, ReadOnlySpan<byte> signature) => throw new InvalidOperationException();
System\Net\Security\CipherSuitesPolicyPal.Linux.cs (2)
126internal static ReadOnlySpan<byte> GetOpenSslCipherList( 173private static ReadOnlySpan<byte> CipherListFromEncryptionPolicy(EncryptionPolicy policy)
System\Net\Security\NegotiateAuthentication.cs (8)
110/// returned by the most recent call to <see cref="GetOutgoingBlob(ReadOnlySpan{byte}, out NegotiateAuthenticationStatusCode)" /> 242public byte[]? GetOutgoingBlob(ReadOnlySpan<byte> incomingBlob, out NegotiateAuthenticationStatusCode statusCode) 297ReadOnlySpan<byte> decodedIncomingBlob = default; 347public NegotiateAuthenticationStatusCode Wrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, bool requestEncryption, out bool isEncrypted) 374public NegotiateAuthenticationStatusCode Unwrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, out bool wasEncrypted) 426public void ComputeIntegrityCheck(ReadOnlySpan<byte> message, IBufferWriter<byte> signatureWriter) 451public bool VerifyIntegrityCheck(ReadOnlySpan<byte> message, ReadOnlySpan<byte> signature)
System\Net\Security\NetEventSource.Security.cs (2)
243public void SentFrame(SslStream sslStream, ReadOnlySpan<byte> frame) 259public void ReceivedFrame(SslStream sslStream, ReadOnlySpan<byte> frame)
System\Net\Security\Pal.Managed\SafeChannelBindingHandle.cs (1)
34ReadOnlySpan<byte> cbtPrefix = kind == ChannelBindingKind.Endpoint ?
System\Net\Security\SslApplicationProtocol.cs (1)
55((ReadOnlySpan<byte>)_readOnlyProtocol).SequenceEqual(other._readOnlyProtocol);
System\Net\Security\SslConnectionInfo.Linux.cs (1)
14ReadOnlySpan<byte> alpn = Interop.Ssl.SslGetAlpnSelected(sslContext);
System\Net\Security\SslConnectionInfo.Unix.cs (5)
23ReadOnlySpan<int> keyExchangeAlgs = 25ReadOnlySpan<int> dataCipherAlgs = 27ReadOnlySpan<int> dataKeySizes = 29ReadOnlySpan<int> dataHashAlgs = 31ReadOnlySpan<int> dataHashKeySizes =
System\Net\Security\SslStream.cs (3)
86public ReadOnlySpan<byte> DecryptedReadOnlySpanSliced(int length) 98public ReadOnlySpan<byte> EncryptedReadOnlySpan => _buffer.ActiveSpan.Slice(_decryptedLength + _decryptedPadding); 820public override unsafe void Write(ReadOnlySpan<byte> buffer)
System\Net\Security\SslStream.IO.cs (3)
578ReadOnlySpan<byte> availableData = _buffer.EncryptedReadOnlySpan; 616private void SendAuthResetSignal(ReadOnlySpan<byte> alert, ExceptionDispatchInfo exception) 1125private int GetFrameSize(ReadOnlySpan<byte> buffer)
System\Net\Security\SslStream.Protocol.cs (7)
210X509Certificate2? FindCertWithPrivateKey(bool isServer, ReadOnlySpan<byte> certHash) 809internal ProtocolToken NextMessage(ReadOnlySpan<byte> incomingBuffer, out int consumed) 833private partial bool TryNextMessageViaTlsSession(ReadOnlySpan<byte> incomingBuffer, out ProtocolToken token, out int consumed); 848private ProtocolToken GenerateToken(ReadOnlySpan<byte> inputBuffer, out int consumed) 896ReadOnlySpan<byte>.Empty, 925ReadOnlySpan<byte>.Empty, 1638internal void SetPayload(ReadOnlySpan<byte> payload)
System\Net\Security\SslStream.TlsSessionWedge.cs (3)
39private partial bool TryNextMessageViaTlsSession(ReadOnlySpan<byte> incomingBuffer, out ProtocolToken token, out int consumed) 91token = _tlsSession.HandshakeStepForSslStream(ReadOnlySpan<byte>.Empty, out _); 112token = _tlsSession.HandshakeStepForSslStream(ReadOnlySpan<byte>.Empty, out _);
System\Net\Security\SslStreamPal.Unix.cs (4)
38ReadOnlySpan<byte> clientProtocols) 47ReadOnlySpan<byte> inputBuffer, 58ReadOnlySpan<byte> inputBuffer, 192ReadOnlySpan<byte> inputBuffer, out int consumed, SslAuthenticationOptions sslAuthenticationOptions)
System\Net\Security\TlsBufferSession.cs (3)
36public TlsOperationStatus Handshake(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesConsumed, out int bytesWritten) 47public TlsOperationStatus Write(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesConsumed, out int bytesWritten) 58public TlsOperationStatus Read(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesConsumed, out int bytesWritten)
System\Net\Security\TlsFrameHelper.cs (35)
150public delegate bool HelloExtensionCallback(ref TlsFrameInfo info, ExtensionType type, ReadOnlySpan<byte> extensionsData); 170public static bool TryGetFrameHeader(ReadOnlySpan<byte> frame, ref TlsFrameHeader header) 228public static bool TryGetFrameInfo(ReadOnlySpan<byte> frame, ref TlsFrameInfo info, ProcessingOptions options = ProcessingOptions.ServerName, HelloExtensionCallback? callback = null) 295public static string? GetServerName(ReadOnlySpan<byte> frame) 307public static bool TryGetAlertInfo(ReadOnlySpan<byte> frame, ref TlsAlertLevel level, ref TlsAlertDescription description) 368private static bool TryParseHelloFrame(ReadOnlySpan<byte> sslHandshake, ref TlsFrameInfo info, ProcessingOptions options, HelloExtensionCallback? callback) 393ReadOnlySpan<byte> helloData = sslHandshake.Slice(HelloOffset); 411private static bool TryParseClientHello(ReadOnlySpan<byte> clientHello, ref TlsFrameInfo info, ProcessingOptions options, HelloExtensionCallback? callback) 424ReadOnlySpan<byte> p = SkipBytes(clientHello, ProtocolVersionSize + RandomSize); 457private static bool TryParseServerHello(ReadOnlySpan<byte> serverHello, ref TlsFrameInfo info, ProcessingOptions options, HelloExtensionCallback? callback) 473ReadOnlySpan<byte> p = SkipBytes(serverHello, ProtocolVersionSize + RandomSize); 501private static bool TryParseHelloExtensions(ReadOnlySpan<byte> extensions, ref TlsFrameInfo info, ProcessingOptions options, HelloExtensionCallback? callback) 519ReadOnlySpan<byte> extensionData = extensions.Slice(0, extensionLength); 564private static bool TryGetSniFromServerNameList(ReadOnlySpan<byte> serverNameListExtension, out string? sni) 580ReadOnlySpan<byte> serverNameList = serverNameListExtension.Slice(ServerNameListOffset); 587ReadOnlySpan<byte> serverName = serverNameList.Slice(0, serverNameListLength); 593private static string? GetSniFromServerName(ReadOnlySpan<byte> serverName, out bool invalid) 613ReadOnlySpan<byte> hostNameStruct = serverName.Slice(HostNameStructOffset); 623private static string? GetSniFromHostNameStruct(ReadOnlySpan<byte> hostNameStruct, out bool invalid) 637ReadOnlySpan<byte> hostName = hostNameStruct.Slice(HostNameOffset); 648private static bool TryGetSupportedVersionsFromExtension(ReadOnlySpan<byte> extensionData, out SslProtocols protocols) 692private static bool TryGetApplicationProtocolsFromExtension(ReadOnlySpan<byte> extensionData, out ApplicationProtocolInfo alpn) 712ReadOnlySpan<byte> alpnList = extensionData.Slice(AlpnListOffset); 726ReadOnlySpan<byte> protocol = alpnList.Slice(1, protocolLength); 771private static string? DecodeString(ReadOnlySpan<byte> bytes) 810private static int ReadUInt24BigEndian(ReadOnlySpan<byte> bytes) 815private static ReadOnlySpan<byte> SkipBytes(ReadOnlySpan<byte> bytes, int numberOfBytesToSkip) 817return (numberOfBytesToSkip < bytes.Length) ? bytes.Slice(numberOfBytesToSkip) : ReadOnlySpan<byte>.Empty; 825private static ReadOnlySpan<byte> SkipOpaqueType1(ReadOnlySpan<byte> bytes) 830return ReadOnlySpan<byte>.Empty; 839private static ReadOnlySpan<byte> SkipOpaqueType2(ReadOnlySpan<byte> bytes) 844return ReadOnlySpan<byte>.Empty;
System\Net\Security\TlsSession.cs (20)
589ReadOnlySpan<byte> native = default; 611ReadOnlySpan<byte> source = default; 855ReadOnlySpan<byte> input, 1052ReadOnlySpan<byte>.Empty, 1072ReadOnlySpan<byte> rawAlpn = ReadOnlySpan<byte>.Empty; 1099ReadOnlySpan<byte>.Empty, 1110ReadOnlySpan<byte>.Empty, 1210ReadOnlySpan<byte> plaintext, 1280ReadOnlySpan<byte> ciphertext, 1620ReadOnlySpan<byte>.Empty, 1631ReadOnlySpan<byte>.Empty, 1663private void AppendPending(ReadOnlySpan<byte> data) 1714private static SslClientHelloInfo? TryParseClientHello(ReadOnlySpan<byte> input, out int frameLength) 1738private bool ResolveServerCertificateFromClientHello(ReadOnlySpan<byte> input) 1826internal ProtocolToken HandshakeStepForSslStream(ReadOnlySpan<byte> input, out int bytesConsumed) 2008private void ProcessPostHandshakeMessage(ReadOnlySpan<byte> data) 2300private protected TlsOperationStatus WriteSocketCore(ReadOnlySpan<byte> buffer, out int bytesWritten) 2496partial void TryFastWrite(ReadOnlySpan<byte> buffer, ref int bytesWritten, ref TlsOperationStatus? result); 2510partial void TryGetNativeClientHelloBytes(ref ReadOnlySpan<byte> bytes);
System\Net\Security\TlsSession.OpenSsl.cs (4)
139_peekBio = Interop.Ssl.BioNewSocketReplay(_pendingFdSocket, ReadOnlySpan<byte>.Empty); 164ReadOnlySpan<byte> frame = new ReadOnlySpan<byte>(framePtr, frameLen); 212partial void TryGetNativeClientHelloBytes(ref ReadOnlySpan<byte> bytes) 418partial void TryFastWrite(ReadOnlySpan<byte> buffer, ref int bytesWritten, ref TlsOperationStatus? result)
System\Net\Security\TlsSocketSession.cs (1)
49public TlsOperationStatus Write(ReadOnlySpan<byte> buffer, out int bytesWritten)
System\Security\Authentication\ExtendedProtection\ServiceNameCollection.cs (5)
176ReadOnlySpan<char> prefix = inputServiceName.AsSpan(0, slashIndex + 1); // Includes slash 184ReadOnlySpan<char> host = hostPortAndDistinguisher; 185ReadOnlySpan<char> port = default; 186ReadOnlySpan<char> distinguisher = default; 192ReadOnlySpan<char> hostAndPort = hostPortAndDistinguisher;
System.Net.ServerSentEvents (18)
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
82public ReadOnlySpan<byte> ActiveReadOnlySpan => new ReadOnlySpan<byte>(_bytes, _activeStart, _availableStart - _activeStart);
System\Net\ServerSentEvents\Helpers.cs (3)
28public static void WriteUtf8String(this IBufferWriter<byte> writer, ReadOnlySpan<byte> value) 41public static void WriteUtf8String(this IBufferWriter<byte> writer, ReadOnlySpan<char> value) 56public static bool ContainsLineBreaks(this ReadOnlySpan<char> text) =>
System\Net\ServerSentEvents\SseFormatter.cs (4)
103ReadOnlySpan<byte> data, 142private static void WriteLinesWithPrefix(PooledByteBufferWriter writer, ReadOnlySpan<byte> prefix, ReadOnlySpan<byte> data) 164ReadOnlySpan<byte> nextLine = data.Slice(0, lineLength);
System\Net\ServerSentEvents\SseItemParser.cs (1)
11public delegate T SseItemParser<out T>(string eventType, ReadOnlySpan<byte> data);
System\Net\ServerSentEvents\SseParser_1.cs (9)
28private static ReadOnlySpan<byte> CRLF => "\r\n"u8; 203ReadOnlySpan<byte> lineBuffer = _lineBuffer.ActiveReadOnlySpan; 231private int GetNewLineLength(ReadOnlySpan<byte> lineBuffer) 242ReadOnlySpan<byte> lineBuffer = _lineBuffer.ActiveReadOnlySpan; 243ReadOnlySpan<byte> line = lineBuffer.Slice(0, _newlineIndex); 272ReadOnlySpan<byte> fieldName; 273ReadOnlySpan<byte> fieldValue; 305ReadOnlySpan<byte> remainder = lineBuffer.Slice(_newlineIndex + newlineLength); 470private static ReadOnlySpan<byte> Utf8Bom => [0xEF, 0xBB, 0xBF];
System.Net.Sockets (59)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LibraryImports.g.cs (1)
67private static partial global::Interop.Error Bind(global::System.Runtime.InteropServices.SafeHandle socket, global::System.Net.Sockets.ProtocolType socketProtocolType, global::System.ReadOnlySpan<byte> socketAddress, int socketAddressLen)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.Bind.cs (2)
13private static partial Error Bind(SafeHandle socket, ProtocolType socketProtocolType, ReadOnlySpan<byte> socketAddress, int socketAddressLen); 16SafeHandle socket, ProtocolType socketProtocolType, ReadOnlySpan<byte> socketAddress)
src\runtime\src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (3)
11public static unsafe IPAddress GetIPAddress(ReadOnlySpan<byte> socketAddressBuffer) 51public static IPEndPoint CreateIPEndPoint(ReadOnlySpan<byte> socketAddressBuffer) 64public static unsafe bool Equals(this IPEndPoint endPoint, ReadOnlySpan<byte> socketAddressBuffer)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.DumpBuffer.cs (1)
34public static void DumpBuffer(object? thisOrContextObject, ReadOnlySpan<byte> buffer, [CallerMemberName] string? memberName = null) =>
src\runtime\src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (4)
60public static unsafe AddressFamily GetAddressFamily(ReadOnlySpan<byte> buffer) 88public static unsafe ushort GetPort(ReadOnlySpan<byte> buffer) 112public static unsafe uint GetIPv4Address(ReadOnlySpan<byte> buffer) 125public static unsafe void GetIPv6Address(ReadOnlySpan<byte> buffer, Span<byte> address, out uint scope)
System\Net\Sockets\NetworkStream.cs (1)
320public override void Write(ReadOnlySpan<byte> buffer)
System\Net\Sockets\SafeSocketHandle.Unix.OptionTracking.cs (1)
83internal void SetTrackedSocketOptions(ReadOnlySpan<int> values, LingerOption? lingerOption)
System\Net\Sockets\Socket.cs (13)
1236public int Send(ReadOnlySpan<byte> buffer) => Send(buffer, SocketFlags.None); 1238public int Send(ReadOnlySpan<byte> buffer, SocketFlags socketFlags) 1248public int Send(ReadOnlySpan<byte> buffer, SocketFlags socketFlags, out SocketError errorCode) 1279SendFile(fileName, ReadOnlySpan<byte>.Empty, ReadOnlySpan<byte>.Empty, TransmitFileOptions.UseDefaultWorkerThread); 1318/// A <see cref="ReadOnlySpan{T}"/> that contains data to be sent before the file is sent. This buffer can be empty. 1321/// A <see cref="ReadOnlySpan{T}"/> that contains data to be sent after the file is sent. This buffer can be empty. 1331public void SendFile(string? fileName, ReadOnlySpan<byte> preBuffer, ReadOnlySpan<byte> postBuffer, TransmitFileOptions flags) 1425public int SendTo(ReadOnlySpan<byte> buffer, EndPoint remoteEP) 1442public int SendTo(ReadOnlySpan<byte> buffer, SocketFlags socketFlags, EndPoint remoteEP) 1485public int SendTo(ReadOnlySpan<byte> buffer, SocketFlags socketFlags, SocketAddress socketAddress) 2183public void SetRawSocketOption(int optionLevel, int optionName, ReadOnlySpan<byte> optionValue)
System\Net\Sockets\Socket.Unix.cs (2)
216private void SendFileInternal(string? fileName, ReadOnlySpan<byte> preBuffer, ReadOnlySpan<byte> postBuffer, TransmitFileOptions flags)
System\Net\Sockets\SocketAsyncContext.Unix.cs (3)
212return SocketPal.TryCompleteSendTo(context._socket, default(ReadOnlySpan<byte>), Buffers, ref BufferIndex, ref Offset, ref Count, Flags, SocketAddress.Span, ref BytesTransferred, out ErrorCode); 1174public SocketError Send(ReadOnlySpan<byte> buffer, SocketFlags flags, int timeout, out int bytesSent) => 1220public 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) 983public 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) 989public static bool TryCompleteSendTo(SafeSocketHandle socket, ReadOnlySpan<byte> buffer, SocketFlags flags, ReadOnlySpan<byte> socketAddress, ref int bytesSent, out SocketError errorCode) 995public 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) 998return TryCompleteSendTo(socket, default(ReadOnlySpan<byte>), buffers, ref bufferIndex, ref offset, ref count, flags, socketAddress, ref bytesSent, out errorCode); 1001public 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) 1154public static SocketError Bind(SafeSocketHandle handle, ProtocolType socketProtocolType, ReadOnlySpan<byte> buffer) 1224TryCompleteSendTo(handle, bufferList, ref bufferIndex, ref offset, socketFlags, ReadOnlySpan<byte>.Empty, ref bytesTransferred, out errorCode); 1237TryCompleteSendTo(handle, buffer, ref offset, ref count, socketFlags, ReadOnlySpan<byte>.Empty, ref bytesTransferred, out errorCode); 1241public static SocketError Send(SafeSocketHandle handle, ReadOnlySpan<byte> buffer, SocketFlags socketFlags, out int bytesTransferred) 1250TryCompleteSendTo(handle, buffer, socketFlags, ReadOnlySpan<byte>.Empty, ref bytesTransferred, out errorCode); 1283public static SocketError SendTo(SafeSocketHandle handle, ReadOnlySpan<byte> buffer, SocketFlags socketFlags, Memory<byte> socketAddress, out int bytesTransferred) 1545public static unsafe SocketError SetRawSockOpt(SafeSocketHandle handle, int optionLevel, int optionName, ReadOnlySpan<byte> optionValue)
System\Net\Sockets\UDPClient.cs (6)
886/// An <see cref="ReadOnlySpan{T}"/> of Type <see cref="byte"/> that specifies the UDP datagram that you intend to send. 895public int Send(ReadOnlySpan<byte> datagram, IPEndPoint? endPoint) 924/// An <see cref="ReadOnlySpan{T}"/> of Type <see cref="byte"/> that specifies the UDP datagram that you intend to send. 936public int Send(ReadOnlySpan<byte> datagram, string? hostname, int port) => Send(datagram, GetEndpoint(hostname, port)); 959/// An <see cref="ReadOnlySpan{T}"/> of Type <see cref="byte"/> that specifies the UDP datagram that you intend to send. 965public int Send(ReadOnlySpan<byte> datagram)
System\Net\Sockets\UnixDomainSocketEndPoint.cs (1)
67internal UnixDomainSocketEndPoint(ReadOnlySpan<byte> socketAddress)
System.Net.WebHeaderCollection (3)
System\Net\HeaderInfoTable.cs (3)
38ReadOnlySpan<char> singleValue = value.AsSpan(startIndex, length).Trim(); 63private static bool IsDuringExpiresAttributeParsing(ReadOnlySpan<char> singleValue) 68ReadOnlySpan<char> lastElement = singleValue.Slice(semiPos + 1);
System.Net.WebSockets (9)
System\Net\WebSockets\Compression\WebSocketDeflater.cs (4)
41public ReadOnlySpan<byte> Deflate(ReadOnlySpan<byte> payload, bool endOfMessage) 79private void DeflatePrivate(ReadOnlySpan<byte> payload, Span<byte> output, bool endOfMessage, 122private unsafe void UnsafeDeflate(ReadOnlySpan<byte> input, Span<byte> output, out int consumed, out int written, out bool needsMoreBuffer)
System\Net\WebSockets\Compression\WebSocketInflater.cs (1)
16internal static ReadOnlySpan<byte> FlushMarker => [0x00, 0x00, 0xFF, 0xFF];
System\Net\WebSockets\ManagedWebSocket.cs (4)
654private int WriteFrameToSendBuffer(MessageOpcode opcode, bool endOfMessage, bool disableCompression, ReadOnlySpan<byte> payloadBuffer) 705private static int WriteHeader(MessageOpcode opcode, byte[] sendBuffer, ReadOnlySpan<byte> payload, bool endOfMessage, bool useMask, bool compressed) 1673private static int CombineMaskBytes(ReadOnlySpan<byte> buffer, int maskOffset) => 1782private static bool TryValidateUtf8(ReadOnlySpan<byte> span, bool endOfMessage, Utf8MessageState state)
System.Numerics.Tensors (1148)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IAggregationOperator.cs (4)
46ReadOnlySpan<T> x) 59ReadOnlySpan<T> x, TTransformOperator transform) 1172ReadOnlySpan<T> x, ReadOnlySpan<T> y)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBinaryOperator.cs (5)
32T x, ReadOnlySpan<T> y, Span<T> destination) 45ReadOnlySpan<T> x, T y, Span<T> destination) 58ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 1396ReadOnlySpan<T> x, T y, Span<T> destination)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBooleanUnaryOperator.cs (8)
66private static bool All<T, TOperator>(ReadOnlySpan<T> x) 70private static bool Any<T, TOperator>(ReadOnlySpan<T> x) 74private static bool AggregateAnyAll<T, TOperator, TAnyAll>(ReadOnlySpan<T> x) 184ReadOnlySpan<T> x, Span<bool> destination) 209static void Vectorized_Size1(ReadOnlySpan<T> x, Span<bool> destination) 317static void Vectorized_Size2(ReadOnlySpan<T> x, Span<bool> destination) 434static void Vectorized_Size4(ReadOnlySpan<T> x, Span<bool> destination) 563static void Vectorized_Size8OrOther(ReadOnlySpan<T> x, Span<bool> destination)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IIndexOfMinMaxOperator.cs (29)
23internal static int IndexOfMinMaxCore<T, TOperator>(ReadOnlySpan<T> x) 58private static int IndexOfMinMaxFallback<T, TOperator>(ReadOnlySpan<T> x) 85private static int IndexOfMinMaxVectorized128Size4Plus<T, TOperator, TInt>(ReadOnlySpan<T> x) 107ReadOnlySpan<T> span = x.Slice(Vector128<T>.Count); 123span = ReadOnlySpan<T>.Empty; 154private static int IndexOfMinMaxVectorized128Size2<T, TOperator>(ReadOnlySpan<T> x) 175ReadOnlySpan<T> span = x.Slice(Vector128<T>.Count); 191span = ReadOnlySpan<T>.Empty; 229private static int IndexOfMinMaxVectorized128Size1<T, TOperator>(ReadOnlySpan<T> x) 252ReadOnlySpan<T> span = x.Slice(Vector128<T>.Count); 268span = ReadOnlySpan<T>.Empty; 316private static int IndexOfMinMaxVectorized256Size4Plus<T, TOperator, TInt>(ReadOnlySpan<T> x) 338ReadOnlySpan<T> span = x.Slice(Vector256<T>.Count); 354span = ReadOnlySpan<T>.Empty; 385private static int IndexOfMinMaxVectorized256Size2<T, TOperator>(ReadOnlySpan<T> x) 406ReadOnlySpan<T> span = x.Slice(Vector256<T>.Count); 422span = ReadOnlySpan<T>.Empty; 460private static int IndexOfMinMaxVectorized256Size1<T, TOperator>(ReadOnlySpan<T> x) 483ReadOnlySpan<T> span = x.Slice(Vector256<T>.Count); 499span = ReadOnlySpan<T>.Empty; 547private static int IndexOfMinMaxVectorized512Size4Plus<T, TOperator, TInt>(ReadOnlySpan<T> x) 569ReadOnlySpan<T> span = x.Slice(Vector512<T>.Count); 585span = ReadOnlySpan<T>.Empty; 616private static int IndexOfMinMaxVectorized512Size2<T, TOperator>(ReadOnlySpan<T> x) 637ReadOnlySpan<T> span = x.Slice(Vector512<T>.Count); 653span = ReadOnlySpan<T>.Empty; 691private static int IndexOfMinMaxVectorized512Size1<T, TOperator>(ReadOnlySpan<T> x) 714ReadOnlySpan<T> span = x.Slice(Vector512<T>.Count); 730span = ReadOnlySpan<T>.Empty;
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IStatefulUnaryOperator.cs (1)
27ReadOnlySpan<T> x, TStatefulUnaryOperator op, Span<T> destination)
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) 182ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination1, Span<T> destination2) 371ReadOnlySpan<T> x, T y, Span<T> destination1, Span<T> destination2) 553T x, ReadOnlySpan<T> y, Span<T> destination1, Span<T> destination2)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryOneToFourOperator.cs (1)
30ReadOnlySpan<TInput> x, Span<TOutput> destination)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryOneToTwoOperator.cs (1)
30ReadOnlySpan<TInput> x, Span<TOutput> destination)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryOperator.cs (2)
54ReadOnlySpan<T> x, Span<T> destination) 67ReadOnlySpan<TInput> x, Span<TOutput> destination)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryTwoToOneOperator.cs (1)
30ReadOnlySpan<TInput> x, Span<TOutput> destination)
System\Numerics\Tensors\netcore\IReadOnlyTensor_1.cs (24)
25new ref readonly T this[params scoped ReadOnlySpan<nint> indexes] { get; } 27/// <inheritdoc cref="this[ReadOnlySpan{nint}]" /> 28new ref readonly T this[params scoped ReadOnlySpan<NIndex> indexes] { get; } 30/// <inheritdoc cref="Slice(ReadOnlySpan{NRange})" /> 31TSelf this[params scoped ReadOnlySpan<NRange> ranges] { get; } 40ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<nint> startIndexes); 42/// <inheritdoc cref="AsReadOnlyTensorSpan(ReadOnlySpan{nint})" /> 43ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes); 48ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NRange> ranges); 82ReadOnlySpan<T> GetSpan(scoped ReadOnlySpan<nint> startIndexes, int length); 84/// <inheritdoc cref="GetSpan(ReadOnlySpan{nint}, int)" /> 85ReadOnlySpan<T> GetSpan(scoped ReadOnlySpan<NIndex> startIndexes, int length); 91TSelf Slice(params scoped ReadOnlySpan<nint> startIndexes); 93/// <inheritdoc cref="Slice(ReadOnlySpan{nint})" /> 94TSelf Slice(params scoped ReadOnlySpan<NIndex> startIndexes); 100TSelf Slice(params scoped ReadOnlySpan<NRange> ranges); 137bool TryGetSpan(scoped ReadOnlySpan<nint> startIndexes, int length, out ReadOnlySpan<T> span); 139/// <inheritdoc cref="TryGetSpan(ReadOnlySpan{nint}, int, out ReadOnlySpan{T})" /> 140bool TryGetSpan(scoped ReadOnlySpan<NIndex> startIndexes, int length, out ReadOnlySpan<T> span);
System\Numerics\Tensors\netcore\IReadOnlyTensor.cs (5)
20object? this[params scoped ReadOnlySpan<nint> indexes] { get; } 22/// <inheritdoc cref="this[ReadOnlySpan{nint}]" /> 23object? this[params scoped ReadOnlySpan<NIndex> indexes] { get; } 53ReadOnlySpan<nint> Lengths { get; } 60ReadOnlySpan<nint> Strides { get; }
System\Numerics\Tensors\netcore\ITensor_1.cs (25)
25static abstract TSelf CreateFromShape(scoped ReadOnlySpan<nint> lengths, bool pinned = false); 35static abstract TSelf CreateFromShape(scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned = false); 44static abstract TSelf CreateFromShapeUninitialized(scoped ReadOnlySpan<nint> lengths, bool pinned = false); 54static abstract TSelf CreateFromShapeUninitialized(scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned = false); 56/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.this[ReadOnlySpan{nint}]" /> 57new ref T this[params scoped ReadOnlySpan<nint> indexes] { get; } 59/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.this[ReadOnlySpan{NIndex}]" /> 60new ref T this[params scoped ReadOnlySpan<NIndex> indexes] { get; } 66new TSelf this[params scoped ReadOnlySpan<NRange> ranges] { get; set; } 75TensorSpan<T> AsTensorSpan(params scoped ReadOnlySpan<nint> startIndexes); 77/// <inheritdoc cref="AsTensorSpan(ReadOnlySpan{nint})" /> 78TensorSpan<T> AsTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes); 83TensorSpan<T> AsTensorSpan(params scoped ReadOnlySpan<NRange> ranges); 94/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.GetSpan(ReadOnlySpan{nint}, int)" /> 95new Span<T> GetSpan(scoped ReadOnlySpan<nint> startIndexes, int length); 97/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.GetSpan(ReadOnlySpan{NIndex}, int)" /> 98new Span<T> GetSpan(scoped ReadOnlySpan<NIndex> startIndexes, int length); 100/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.TryGetSpan(ReadOnlySpan{nint}, int, out ReadOnlySpan{T})" /> 101bool TryGetSpan(scoped ReadOnlySpan<nint> startIndexes, int length, out Span<T> span); 103/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.TryGetSpan(ReadOnlySpan{NIndex}, int, out ReadOnlySpan{T})" /> 104bool TryGetSpan(scoped ReadOnlySpan<NIndex> startIndexes, int length, out Span<T> span);
System\Numerics\Tensors\netcore\ITensor.cs (3)
19new object? this[params scoped ReadOnlySpan<nint> indexes] { get; set; } 21/// <inheritdoc cref="this[ReadOnlySpan{nint}]" /> 22new object? this[params scoped ReadOnlySpan<NIndex> indexes] { get; set; }
System\Numerics\Tensors\netcore\ReadOnlyTensorDimensionSpan_1.cs (1)
34ReadOnlySpan<nint> lengths = tensor.Lengths;
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (55)
56public ReadOnlyTensorSpan(T[]? array, scoped ReadOnlySpan<nint> lengths) 73public ReadOnlyTensorSpan(T[]? array, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides) 97public ReadOnlyTensorSpan(T[]? array, int start, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides) 108public ReadOnlyTensorSpan(ReadOnlySpan<T> span) 123public ReadOnlyTensorSpan(ReadOnlySpan<T> span, scoped ReadOnlySpan<nint> lengths) 138public ReadOnlyTensorSpan(ReadOnlySpan<T> span, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides) 182public ReadOnlyTensorSpan(Array? array, scoped ReadOnlySpan<int> start, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides) 218public unsafe ReadOnlyTensorSpan(T* data, nint dataLength, scoped ReadOnlySpan<nint> lengths) 238public unsafe ReadOnlyTensorSpan(T* data, nint dataLength, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides) 244internal ReadOnlyTensorSpan(ref readonly T data, nint dataLength, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned) 256/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.this[ReadOnlySpan{nint}]" /> 257public ref readonly T this[params scoped ReadOnlySpan<nint> indexes] 262/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.this[ReadOnlySpan{NIndex}]" /> 263public ref readonly T this[params scoped ReadOnlySpan<NIndex> indexes] 268/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.this[ReadOnlySpan{NRange}]" /> 269public ReadOnlyTensorSpan<T> this[params scoped ReadOnlySpan<NRange> ranges] 291public ReadOnlySpan<nint> Lengths => _shape.Lengths; 298public ReadOnlySpan<nint> Strides => _shape.Strides; 388/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.GetSpan(ReadOnlySpan{nint}, int)" /> 389public ReadOnlySpan<T> GetSpan(scoped ReadOnlySpan<nint> startIndexes, int length) 391if (!TryGetSpan(startIndexes, length, out ReadOnlySpan<T> span)) 398/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.GetSpan(ReadOnlySpan{NIndex}, int)" /> 399public ReadOnlySpan<T> GetSpan(scoped ReadOnlySpan<NIndex> startIndexes, int length) 401if (!TryGetSpan(startIndexes, length, out ReadOnlySpan<T> span)) 408/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.Slice(ReadOnlySpan{nint})" /> 409public ReadOnlyTensorSpan<T> Slice(params scoped ReadOnlySpan<nint> startIndexes) 418/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.Slice(ReadOnlySpan{NIndex})" /> 419public ReadOnlyTensorSpan<T> Slice(params scoped ReadOnlySpan<NIndex> startIndexes) 428/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.Slice(ReadOnlySpan{NRange})" /> 429public ReadOnlyTensorSpan<T> Slice(params scoped ReadOnlySpan<NRange> ranges) 451public string ToString(params scoped ReadOnlySpan<nint> maximumLengths) => Tensor.ToString(this, maximumLengths, "System.Numerics.Tensors.ReadOnlyTensorSpan"); 476/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.TryGetSpan(ReadOnlySpan{nint}, int, out ReadOnlySpan{T})" /> 477public bool TryGetSpan(scoped ReadOnlySpan<nint> startIndexes, int length, out ReadOnlySpan<T> span) 492/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.TryGetSpan(ReadOnlySpan{NIndex}, int, out ReadOnlySpan{T})" /> 493public bool TryGetSpan(scoped ReadOnlySpan<NIndex> startIndexes, int length, out ReadOnlySpan<T> span) 512object? IReadOnlyTensor.this[params scoped ReadOnlySpan<NIndex> indexes] => this[indexes]; 514object? IReadOnlyTensor.this[params scoped ReadOnlySpan<nint> indexes] => this[indexes]; 522ReadOnlyTensorSpan<T> IReadOnlyTensor<ReadOnlyTensorSpan<T>, T>.AsReadOnlyTensorSpan(params scoped ReadOnlySpan<nint> startIndexes) => Slice(startIndexes); 524ReadOnlyTensorSpan<T> IReadOnlyTensor<ReadOnlyTensorSpan<T>, T>.AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes) => Slice(startIndexes); 526ReadOnlyTensorSpan<T> IReadOnlyTensor<ReadOnlyTensorSpan<T>, T>.AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NRange> ranges) => Slice(ranges);
System\Numerics\Tensors\netcore\Tensor_1.cs (66)
27internal Tensor(scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned) 42internal Tensor(T[]? array, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides) 50internal Tensor(T[]? array, int start, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned = false) 83/// <inheritdoc cref="TensorSpan{T}.this[ReadOnlySpan{nint}]" /> 84public ref T this[params scoped ReadOnlySpan<nint> indexes] 89/// <inheritdoc cref="TensorSpan{T}.this[ReadOnlySpan{NIndex}]" /> 90public ref T this[params scoped ReadOnlySpan<NIndex> indexes] 95/// <inheritdoc cref="TensorSpan{T}.this[ReadOnlySpan{NRange}]" /> 96public Tensor<T> this[params ReadOnlySpan<NRange> ranges] 118public ReadOnlySpan<nint> Lengths => _shape.Lengths; 124public ReadOnlySpan<nint> Strides => _shape.Strides; 142/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.AsReadOnlyTensorSpan(ReadOnlySpan{nint})" /> 143public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<nint> startIndexes) => AsReadOnlyTensorSpan().Slice(startIndexes); 145/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.AsReadOnlyTensorSpan(ReadOnlySpan{NIndex})" /> 146public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes) => AsReadOnlyTensorSpan().Slice(startIndexes); 148/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.AsReadOnlyTensorSpan(ReadOnlySpan{NRange})" /> 149public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NRange> ranges) => AsReadOnlyTensorSpan().Slice(ranges); 154/// <inheritdoc cref="ITensor{TSelf, T}.AsTensorSpan(ReadOnlySpan{nint})" /> 155public TensorSpan<T> AsTensorSpan(params scoped ReadOnlySpan<nint> startIndexes) => AsTensorSpan().Slice(startIndexes); 157/// <inheritdoc cref="ITensor{TSelf, T}.AsTensorSpan(ReadOnlySpan{NIndex})" /> 158public TensorSpan<T> AsTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes) => AsTensorSpan().Slice(startIndexes); 160/// <inheritdoc cref="ITensor{TSelf, T}.AsTensorSpan(ReadOnlySpan{NRange})" /> 161public TensorSpan<T> AsTensorSpan(params scoped ReadOnlySpan<NRange> ranges) => AsTensorSpan().Slice(ranges); 206/// <inheritdoc cref="ITensor{TSelf, T}.GetSpan(ReadOnlySpan{nint}, int)" /> 207public Span<T> GetSpan(scoped ReadOnlySpan<nint> startIndexes, int length) => AsTensorSpan().GetSpan(startIndexes, length); 209/// <inheritdoc cref="ITensor{TSelf, T}.GetSpan(ReadOnlySpan{NIndex}, int)" /> 210public Span<T> GetSpan(scoped ReadOnlySpan<NIndex> startIndexes, int length) => AsTensorSpan().GetSpan(startIndexes, length); 220/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.Slice(ReadOnlySpan{nint})" /> 221public Tensor<T> Slice(params ReadOnlySpan<nint> startIndexes) 235/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.Slice(ReadOnlySpan{NIndex})" /> 236public Tensor<T> Slice(params ReadOnlySpan<NIndex> startIndexes) 250/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.Slice(ReadOnlySpan{NRange})" /> 251public Tensor<T> Slice(params ReadOnlySpan<NRange> ranges) 285/// <inheritdoc cref="ITensor{TSelf, T}.TryGetSpan(ReadOnlySpan{nint}, int, out Span{T})" /> 286public bool TryGetSpan(scoped ReadOnlySpan<nint> startIndexes, int length, out Span<T> span) => AsTensorSpan().TryGetSpan(startIndexes, length, out span); 288/// <inheritdoc cref="ITensor{TSelf, T}.TryGetSpan(ReadOnlySpan{NIndex}, int, out Span{T})" /> 289public bool TryGetSpan(scoped ReadOnlySpan<NIndex> startIndexes, int length, out Span<T> span) => AsTensorSpan().TryGetSpan(startIndexes, length, out span); 291/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.TryGetSpan(ReadOnlySpan{nint}, int, out ReadOnlySpan{T})" /> 292public bool TryGetSpan(scoped ReadOnlySpan<nint> startIndexes, int length, out ReadOnlySpan<T> span) => AsReadOnlyTensorSpan().TryGetSpan(startIndexes, length, out span); 294/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.TryGetSpan(ReadOnlySpan{NIndex}, int, out ReadOnlySpan{T})" /> 295public bool TryGetSpan(scoped ReadOnlySpan<NIndex> startIndexes, int length, out ReadOnlySpan<T> span) => AsReadOnlyTensorSpan().TryGetSpan(startIndexes, length, out span); 300/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ToString(ReadOnlySpan{nint})" /> 301public string ToString(params scoped ReadOnlySpan<nint> maximumLengths) => Tensor.ToString(AsReadOnlyTensorSpan(), maximumLengths, "System.Numerics.Tensors.Tensor"); 319object? IReadOnlyTensor.this[params scoped ReadOnlySpan<NIndex> indexes] => this[indexes]; 321object? IReadOnlyTensor.this[params scoped ReadOnlySpan<nint> indexes] => this[indexes]; 327ref readonly T IReadOnlyTensor<Tensor<T>, T>.this[params ReadOnlySpan<nint> indexes] => ref this[indexes]; 329ref readonly T IReadOnlyTensor<Tensor<T>, T>.this[params ReadOnlySpan<NIndex> indexes] => ref this[indexes]; 335ReadOnlySpan<T> IReadOnlyTensor<Tensor<T>, T>.GetSpan(scoped ReadOnlySpan<nint> startIndexes, int length) => AsReadOnlyTensorSpan().GetSpan(startIndexes, length); 337ReadOnlySpan<T> IReadOnlyTensor<Tensor<T>, T>.GetSpan(scoped ReadOnlySpan<NIndex> startIndexes, int length) => AsReadOnlyTensorSpan().GetSpan(startIndexes, length); 345object? ITensor.this[params scoped ReadOnlySpan<NIndex> indexes] 355object? ITensor.this[params scoped ReadOnlySpan<nint> indexes] 371static Tensor<T> ITensor<Tensor<T>, T>.CreateFromShape(scoped ReadOnlySpan<nint> lengths, bool pinned) => Tensor.CreateFromShape<T>(lengths, pinned); 373static Tensor<T> ITensor<Tensor<T>, T>.CreateFromShape(scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned) => Tensor.CreateFromShape<T>(lengths, strides, pinned); 375static Tensor<T> ITensor<Tensor<T>, T>.CreateFromShapeUninitialized(scoped ReadOnlySpan<nint> lengths, bool pinned) => Tensor.CreateFromShapeUninitialized<T>(lengths, pinned); 377static 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\Tensor.cs (96)
22/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" /> 23public static ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan<T>(this T[]? array, scoped ReadOnlySpan<nint> lengths) 26/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 27public static ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan<T>(this T[]? array, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides) 30/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 31public static ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan<T>(this T[]? array, int start, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides) 38/// <inheritdoc cref="TensorSpan{T}.TensorSpan(T[], ReadOnlySpan{nint})" /> 39public static TensorSpan<T> AsTensorSpan<T>(this T[]? array, scoped ReadOnlySpan<nint> lengths) 42/// <inheritdoc cref="TensorSpan{T}.TensorSpan(T[], ReadOnlySpan{nint} , ReadOnlySpan{nint})" /> 43public static TensorSpan<T> AsTensorSpan<T>(this T[]? array, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides) 46/// <inheritdoc cref="TensorSpan{T}.TensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 47public 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); 67/// <param name="lengths"><see cref="ReadOnlySpan{T}"/> of the desired new shape.</param> 70public static Tensor<T> Broadcast<T>(scoped in ReadOnlyTensorSpan<T> source, scoped ReadOnlySpan<nint> lengths) 118public static Tensor<T> Concatenate<T>(params scoped ReadOnlySpan<Tensor<T>> tensors) 129public static Tensor<T> ConcatenateOnDimension<T>(int dimension, params scoped ReadOnlySpan<Tensor<T>> tensors) 176public static ref readonly TensorSpan<T> Concatenate<T>(scoped ReadOnlySpan<Tensor<T>> tensors, in TensorSpan<T> destination) 188public static ref readonly TensorSpan<T> ConcatenateOnDimension<T>(int dimension, scoped ReadOnlySpan<Tensor<T>> tensors, in TensorSpan<T> destination) 228private static void ValidateConcatenationDestination<T>(int dimension, ReadOnlySpan<nint> lengths, nint sumOfAxis, 231ReadOnlySpan<nint> destinationLengths = TensorShape.Normalize(destination._shape).Lengths; 239private static Tensor<T> CreateConcatenationResult<T>(ReadOnlySpan<nint> sourceLengths, int dimension, nint axisLength) 258private static void ValidateConcatenationStorage<T>(scoped ReadOnlySpan<Tensor<T>> tensors, in TensorSpan<T> destination) 281private static void CopyConcatenatedValues<T>(int dimension, scoped ReadOnlySpan<Tensor<T>> tensors, 342private static nint GetConcatenatedLength<T>(int dimension, scoped ReadOnlySpan<Tensor<T>> tensors, in TensorShape shape) 344ReadOnlySpan<nint> lengths = shape.Lengths; 349ReadOnlySpan<nint> sourceLengths = TensorShape.Normalize(tensors[i]._shape).Lengths; 360private static bool TryJoinDenseBlocks<T>(int dimension, ReadOnlySpan<Tensor<T>> tensors, 433private static void ConcatenateOnDimensionToSpan<T>(int dimension, scoped ReadOnlySpan<Tensor<T>> tensors, in TensorSpan<T> destination, Span<T> dstSpan) 484/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" /> 486public static Tensor<T> Create<T>(T[] array, scoped ReadOnlySpan<nint> lengths) 489/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 491public static Tensor<T> Create<T>(T[] array, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides) 494/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 496public static Tensor<T> Create<T>(T[] array, int start, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides) 501/// <inheritdoc cref="ITensor{TSelf, T}.CreateFromShape(ReadOnlySpan{nint}, bool)" /> 503public static Tensor<T> CreateFromShape<T>(scoped ReadOnlySpan<nint> lengths, bool pinned = false) 506/// <inheritdoc cref="ITensor{TSelf, T}.CreateFromShape(ReadOnlySpan{nint}, ReadOnlySpan{nint}, bool)" /> 508public static Tensor<T> CreateFromShape<T>(scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned = false) 511/// <inheritdoc cref="ITensor{TSelf, T}.CreateFromShapeUninitialized(ReadOnlySpan{nint}, bool)" /> 512public static Tensor<T> CreateFromShapeUninitialized<T>(scoped ReadOnlySpan<nint> lengths, bool pinned = false) 515/// <inheritdoc cref="ITensor{TSelf, T}.CreateFromShapeUninitialized(ReadOnlySpan{nint}, ReadOnlySpan{nint}, bool)" /> 516public static Tensor<T> CreateFromShapeUninitialized<T>(scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned = false) 1532/// <param name="dimensions"><see cref="ReadOnlySpan{T}"/> with the new axis ordering.</param> 1533public static Tensor<T> PermuteDimensions<T>(this Tensor<T> tensor, ReadOnlySpan<int> dimensions) 1542ReadOnlySpan<nint> lengths = tensor.Lengths; 1543ReadOnlySpan<nint> strides = tensor.Strides; 1595private static void GetReshapeLengths(ReadOnlySpan<nint> lengths, nint flattenedLength, Span<nint> result) 1646private static void GetReshapeStrides(ReadOnlySpan<nint> sourceLengths, ReadOnlySpan<nint> sourceStrides, 1647bool isDense, ReadOnlySpan<nint> lengths, Span<nint> strides) 1693/// <param name="lengths"><see cref="ReadOnlySpan{T}"/> with the new dimensions.</param> 1694public static Tensor<T> Reshape<T>(this Tensor<T> tensor, ReadOnlySpan<nint> lengths) 1730/// <param name="lengths"><see cref="ReadOnlySpan{T}"/> with the new dimensions.</param> 1731public static TensorSpan<T> Reshape<T>(this scoped in TensorSpan<T> tensor, scoped ReadOnlySpan<nint> lengths) 1762/// <param name="lengths"><see cref="ReadOnlySpan{T}"/> with the new dimensions.</param> 1763public static ReadOnlyTensorSpan<T> Reshape<T>(this scoped in ReadOnlyTensorSpan<T> tensor, scoped ReadOnlySpan<nint> lengths) 1795/// <param name="lengths"><see cref="ReadOnlySpan{T}"/> of the desired new shape.</param> 1796public static Tensor<T> Resize<T>(Tensor<T> tensor, ReadOnlySpan<nint> lengths) 1803ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref tensor.AsReadOnlyTensorSpan()._reference, (int)tensor.FlattenedLength); 1877ReadOnlySpan<T> span = MemoryMarshal.CreateReadOnlySpan(in tensor._reference, (int)copyLength); 2368public static Tensor<T> SetSlice<T>(this Tensor<T> tensor, in ReadOnlyTensorSpan<T> values, params ReadOnlySpan<NRange> ranges) 2380public static ref readonly TensorSpan<T> SetSlice<T>(this in TensorSpan<T> tensor, scoped in ReadOnlyTensorSpan<T> values, params scoped ReadOnlySpan<NRange> ranges) 2409ReadOnlySpan<nint> lengths = shape.Lengths; 2695public static Tensor<T> Stack<T>(params ReadOnlySpan<Tensor<T>> tensors) 2706public static Tensor<T> StackAlongDimension<T>(int dimension, params ReadOnlySpan<Tensor<T>> tensors) 2727public static ref readonly TensorSpan<T> Stack<T>(scoped in ReadOnlySpan<Tensor<T>> tensors, in TensorSpan<T> destination) 2739public static ref readonly TensorSpan<T> StackAlongDimension<T>(scoped ReadOnlySpan<Tensor<T>> tensors, in TensorSpan<T> destination, int dimension) 2755private static int ValidateStackInputs<T>(int dimension, scoped ReadOnlySpan<Tensor<T>> tensors) 2764ReadOnlySpan<nint> lengths = shape.Lengths; 2782private static void CopyStackValues<T>(int dimension, scoped ReadOnlySpan<Tensor<T>> tensors, 2817internal static string ToString<T>(in ReadOnlyTensorSpan<T> tensor, ReadOnlySpan<nint> maximumLengths, string typeName) 2858private static void ToString<T>(in ReadOnlyTensorSpan<T> tensor, ReadOnlySpan<nint> maximumLengths, StringBuilder sb, int indentLevel = 0) 2861ReadOnlySpan<nint> lengths = tensor.Lengths; 2943private static StringBuilder AppendJoin<T>(this StringBuilder sb, string separator, ReadOnlySpan<T> values) 3057ReadOnlySpan<nint> lengths = tensor.Lengths; 3058ReadOnlySpan<nint> strides = tensor.Strides; 3102ReadOnlySpan<nint> lengths = shape.Lengths; 3103ReadOnlySpan<nint> strides = shape.Strides; 3147ReadOnlySpan<nint> lengths = shape.Lengths; 3148ReadOnlySpan<nint> strides = shape.Strides;
System\Numerics\Tensors\netcore\TensorDimensionSpan_1.cs (1)
34ReadOnlySpan<nint> lengths = tensor.Lengths;
System\Numerics\Tensors\netcore\TensorOperation.cs (215)
53private static ReadOnlySpan<T> AsDenseSpan<T>(in ReadOnlyTensorSpan<T> source) 56internal static ReadOnlySpan<T> AsDenseSpan<T>(in ReadOnlyTensorSpan<T> source, nint offset, int length) 219ReadOnlySpan<T> input = source.IsDense 408ReadOnlySpan<nint> sourceLengths = source.Lengths; 409ReadOnlySpan<nint> sourceStrides = source.Strides; 433ReadOnlySpan<nint> lengths = destination.Lengths; 437ReadOnlySpan<nint> sourceStrides = source.Strides; 438ReadOnlySpan<nint> destinationStrides = destination.Strides; 439ReadOnlySpan<nint> otherStrides = other.Strides; 504ReadOnlySpan<T> chunk = MemoryMarshal.CreateReadOnlySpan(in Unsafe.Add(ref x._reference, offset), length); 523ReadOnlySpan<T> values = AsDenseSpan(slice); 587private static bool AggregateIndexOfMinMax<T, TOperator>(ReadOnlySpan<T> values, nint offset, ref T result, ref nint resultIndex) 759ReadOnlySpan<nint> xLengths = x.Lengths; 760ReadOnlySpan<nint> yLengths = y.Lengths; 927ReadOnlySpan<nint> destinationLengths = destination.Lengths; 990ReadOnlySpan<nint> destinationLengths = destination.Lengths; 1051ReadOnlySpan<TArg> sourceSpan = AsDenseSpan(slice); 1156ReadOnlySpan<nint> destinationLengths = destination.Lengths; 1292ReadOnlySpan<nint> destinationLengths = destination.Lengths; 1349ReadOnlySpan<nint> destinationLengths = destination.Lengths; 1452public static void ValidateCompatibility<TArg>(in ReadOnlyTensorSpan<TArg> x, in ReadOnlySpan<nint> lengths) 1497ReadOnlySpan<nint> xLengths = xShape.Lengths; 1498ReadOnlySpan<nint> yLengths = yShape.Lengths; 1545public static void Invoke(ReadOnlySpan<T> source, Span<T> destination) 1566public static void Invoke(ReadOnlySpan<T> left, T right, Span<bool> destination) 1574public static void Invoke(ReadOnlySpan<T> left, ReadOnlySpan<T> right, Span<bool> destination) 1603public static void Invoke(ReadOnlySpan<T> left, T right, Span<bool> destination) 1621public static void Invoke(ReadOnlySpan<T> left, ReadOnlySpan<T> right, Span<bool> destination) 1650public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 1665public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 1680public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 1695public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 1711public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination) 1721public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 1736public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 1751public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 1766public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 1781public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 1798public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination) 1811public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 1821public static void Invoke(T x, ReadOnlySpan<T> y, Span<T> destination) 1841public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination) 1854public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 1864public static void Invoke(T x, ReadOnlySpan<T> y, Span<T> destination) 1882public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 1897public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 1913public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination) 1923public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 1939public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination) 1949public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 1964public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 1979public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 1995public static void Invoke(ReadOnlySpan<TFrom> x, Span<TTo> destination) 2011public static void Invoke(ReadOnlySpan<TFrom> x, Span<TTo> destination) 2027public static void Invoke(ReadOnlySpan<TFrom> x, Span<TTo> destination) 2043public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination) 2053public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 2068public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 2083public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 2102public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<(T, T, T)> destination) 2119public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 2135public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 2150public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 2167public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination) 2177public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 2186public static void Invoke(T x, ReadOnlySpan<T> y, Span<T> destination) 2201public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 2216public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 2231public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 2246public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 2261public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 2276public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 2291public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 2306public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 2321public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 2338public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination) 2348public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 2357public static void Invoke(T x, ReadOnlySpan<T> y, Span<T> destination) 2372public static void Invoke(ReadOnlySpan<T> x, Span<int> destination) 2388public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 2403public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 2420public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 2430public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 2440public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination) 2455public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 2470public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 2485public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 2500public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 2515public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 2532public static void Invoke(ReadOnlySpan<T> x, ref T destination) 2542public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 2552public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination) 2569public static void Invoke(ReadOnlySpan<T> x, ref T destination) 2579public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 2589public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination) 2606public static void Invoke(ReadOnlySpan<T> x, ref T destination) 2616public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 2626public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination) 2643public static void Invoke(ReadOnlySpan<T> x, ref T destination) 2653public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 2663public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination) 2680public static void Invoke(ReadOnlySpan<T> x, ref T destination) 2690public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 2700public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination) 2717public static void Invoke(ReadOnlySpan<T> x, ref T destination) 2727public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 2737public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination) 2754public static void Invoke(ReadOnlySpan<T> x, ref T destination) 2764public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 2774public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination) 2791public static void Invoke(ReadOnlySpan<T> x, ref T destination) 2801public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 2811public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination) 2827public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination) 2837public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 2852public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 2867public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 2882public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 2899public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination) 2909public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 2919public static void Invoke(T x, ReadOnlySpan<T> y, Span<T> destination) 2934public static void Invoke(ReadOnlySpan<T> x, ref T destination) 2949public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 2964public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 2979public static void Invoke(ReadOnlySpan<T> x, int y, Span<T> destination) 2993public static void Invoke(ReadOnlySpan<T> x, int y, Span<T> destination) 3007public static void Invoke(ReadOnlySpan<T> x, int y, Span<T> destination) 3023public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 3033public static void Invoke(ReadOnlySpan<T> x, Tuple<int, MidpointRounding> y, Span<T> destination) 3048public static void Invoke(ReadOnlySpan<T> x, int shiftAmount, Span<T> destination) 3063public static void Invoke(ReadOnlySpan<T> x, int shiftAmount, Span<T> destination) 3078public static void Invoke(ReadOnlySpan<T> x, int shiftAmount, Span<T> destination) 3093public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 3108public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 3123public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 3138public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 3188public static void Invoke(ReadOnlySpan<T> x, ref (T Shift, T Sum, bool HasValue) destination) 3206public static void Invoke(ReadOnlySpan<T> x, (T Shift, T Sum) y, Span<T> destination) 3224public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 3241public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination) 3251public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 3261public static void Invoke(T x, ReadOnlySpan<T> y, Span<T> destination) 3276public static void Invoke(ReadOnlySpan<T> x, ref T destination) 3291public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination) 3304public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 3323public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination) 3342public static void Invoke(ReadOnlySpan<T> x, ref T destination) 3357public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 3372public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 3387public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 3402public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 3417public static void Invoke(ReadOnlySpan<T> x, Span<T> destination) 3433public static void Invoke(ReadOnlySpan<T> x, T y, Span<T> destination) 3443public static void Invoke(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 3476public static void Invoke(ReadOnlySpan<bool> x, ReadOnlySpan<T> y, Span<T> destination) 3495public static void Invoke(ReadOnlySpan<bool> x, T y, Span<T> destination) 3522public static void Invoke(ReadOnlySpan<T> left, T right, Span<bool> destination) 3530public static void Invoke(ReadOnlySpan<T> left, ReadOnlySpan<T> right, Span<bool> destination) 3559public static void Invoke(ReadOnlySpan<T> left, T right, Span<bool> destination) 3577public static void Invoke(ReadOnlySpan<T> left, ReadOnlySpan<T> right, Span<bool> destination) 3611public static void Invoke(ReadOnlySpan<T> left, T right, Span<bool> destination) 3619public static void Invoke(ReadOnlySpan<T> left, ReadOnlySpan<T> right, Span<bool> destination) 3648public static void Invoke(ReadOnlySpan<T> left, T right, Span<bool> destination) 3666public static void Invoke(ReadOnlySpan<T> left, ReadOnlySpan<T> right, Span<bool> destination) 3700public static void Invoke(ReadOnlySpan<T> left, T right, Span<bool> destination) 3708public static void Invoke(ReadOnlySpan<T> left, ReadOnlySpan<T> right, Span<bool> destination) 3737public static void Invoke(ReadOnlySpan<T> left, T right, Span<bool> destination) 3755public static void Invoke(ReadOnlySpan<T> left, ReadOnlySpan<T> right, Span<bool> destination) 3789public static void Invoke(ReadOnlySpan<T> left, T right, Span<bool> destination) 3797public static void Invoke(ReadOnlySpan<T> left, ReadOnlySpan<T> right, Span<bool> destination) 3826public static void Invoke(ReadOnlySpan<T> left, T right, Span<bool> destination) 3844public static void Invoke(ReadOnlySpan<T> left, ReadOnlySpan<T> right, Span<bool> destination) 3876static abstract void Invoke(ReadOnlySpan<T1> x, T2 y, Span<TResult> destination); 3882static abstract void Invoke(T1 x, ReadOnlySpan<T2> y, Span<TResult> destination); 3888static abstract void Invoke(ReadOnlySpan<T1> x, ReadOnlySpan<T2> y, Span<TResult> destination); 3911static abstract void Invoke(ReadOnlySpan<T> x, Span<TResult> destination); 3917static abstract void Invoke(ReadOnlySpan<T> x, ref TResult destination); 3922public static Span<T> Create<T>(int rank, ReadOnlySpan<nint> strides, out nint linearOffset, [UnscopedRef] out RentedBuffer<T> rentedBuffer)
System\Numerics\Tensors\netcore\TensorPrimitives.Abs.cs (1)
29public static void Abs<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Acos.cs (1)
24public static void Acos<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Acosh.cs (1)
24public static void Acosh<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.AcosPi.cs (1)
24public static void AcosPi<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Add.cs (3)
26public static void Add<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 51public static void Add<T>(ReadOnlySpan<T> x, T y, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.AddMultiply.cs (7)
28public static void AddMultiply<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, ReadOnlySpan<T> multiplier, Span<T> destination) 56public static void AddMultiply<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, T multiplier, Span<T> destination) 84public static void AddMultiply<T>(ReadOnlySpan<T> x, T y, ReadOnlySpan<T> multiplier, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Asin.cs (1)
25public static void Asin<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Asinh.cs (1)
24public static void Asinh<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.AsinPi.cs (1)
24public static void AsinPi<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Atan.cs (1)
24public static void Atan<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Atan2.cs (4)
27public static void Atan2<T>(ReadOnlySpan<T> y, ReadOnlySpan<T> x, Span<T> destination) 46public static void Atan2<T>(ReadOnlySpan<T> y, T x, Span<T> destination) 65public static void Atan2<T>(T y, ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Atan2Pi.cs (4)
27public static void Atan2Pi<T>(ReadOnlySpan<T> y, ReadOnlySpan<T> x, Span<T> destination) 46public static void Atan2Pi<T>(ReadOnlySpan<T> y, T x, Span<T> destination) 65public static void Atan2Pi<T>(T y, ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Atanh.cs (1)
24public static void Atanh<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.AtanPi.cs (1)
24public static void AtanPi<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Average.cs (1)
17public static T Average<T>(ReadOnlySpan<T> x)
System\Numerics\Tensors\netcore\TensorPrimitives.BitDecrement.cs (1)
22public static void BitDecrement<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.BitIncrement.cs (1)
22public static void BitIncrement<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.BitwiseAnd.cs (3)
23public static void BitwiseAnd<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 45public static void BitwiseAnd<T>(ReadOnlySpan<T> x, T y, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.BitwiseOr.cs (3)
23public static void BitwiseOr<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 45public static void BitwiseOr<T>(ReadOnlySpan<T> x, T y, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Cbrt.cs (1)
21public static void Cbrt<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Ceiling.cs (1)
21public static void Ceiling<T>(ReadOnlySpan<T> x, Span<T> destination)
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) 171public static void Clamp<T>(T x, ReadOnlySpan<T> min, T max, Span<T> destination) 198public static void Clamp<T>(T x, T min, ReadOnlySpan<T> max, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertChecked.cs (1)
22public static void ConvertChecked<TFrom, TTo>(ReadOnlySpan<TFrom> source, Span<TTo> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertHelpers.cs (2)
16private static bool TryConvertUniversal<TFrom, TTo>(ReadOnlySpan<TFrom> source, Span<TTo> destination) 203private static bool TryConvertFloatingPointToInteger<TFrom, TTo>(ReadOnlySpan<TFrom> source, Span<TTo> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertSaturating.cs (1)
22public static void ConvertSaturating<TFrom, TTo>(ReadOnlySpan<TFrom> source, Span<TTo> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertToInteger.cs (1)
22public static void ConvertToInteger<TFrom, TTo>(ReadOnlySpan<TFrom> source, Span<TTo> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertToIntegerNative.cs (1)
22public static void ConvertToIntegerNative<TFrom, TTo>(ReadOnlySpan<TFrom> source, Span<TTo> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertTruncating.cs (1)
22public static void ConvertTruncating<TFrom, TTo>(ReadOnlySpan<TFrom> source, Span<TTo> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.CopySign.cs (3)
23public static void CopySign<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> sign, Span<T> destination) 45public static void CopySign<T>(ReadOnlySpan<T> x, T sign, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Cos.cs (1)
28public static void Cos<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Cosh.cs (1)
32public static void Cosh<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.CosineSimilarity.cs (6)
31public static T CosineSimilarity<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y) 45private static T CosineSimilarityCore<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y) where T : IRootFunctions<T> 184private static Half CosineSimilarityHalfCore(ReadOnlySpan<Half> x, ReadOnlySpan<Half> y)
System\Numerics\Tensors\netcore\TensorPrimitives.CosPi.cs (1)
28public static void CosPi<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Decrement.cs (1)
20public static void Decrement<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.DegreesToRadians.cs (1)
21public static void DegreesToRadians<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Distance.cs (2)
34public static T Distance<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y)
System\Numerics\Tensors\netcore\TensorPrimitives.Divide.cs (4)
26public static void Divide<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 52public static void Divide<T>(ReadOnlySpan<T> x, T y, Span<T> destination) 78public static void Divide<T>(T x, ReadOnlySpan<T> y, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.DivRem.cs (4)
29public static void DivRem<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> quotientDestination, Span<T> remainderDestination) 51public static void DivRem<T>(ReadOnlySpan<T> x, T y, Span<T> quotientDestination, Span<T> remainderDestination) 73public static void DivRem<T>(T x, ReadOnlySpan<T> y, Span<T> quotientDestination, Span<T> remainderDestination)
System\Numerics\Tensors\netcore\TensorPrimitives.Dot.cs (2)
31public static T Dot<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y)
System\Numerics\Tensors\netcore\TensorPrimitives.Exp.cs (1)
29public static void Exp<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Exp10.cs (1)
24public static void Exp10<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Exp10M1.cs (1)
24public static void Exp10M1<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Exp2.cs (1)
24public static void Exp2<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Exp2M1.cs (1)
24public static void Exp2M1<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.ExpM1.cs (1)
24public static void ExpM1<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Floor.cs (1)
21public static void Floor<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.FusedMultiplyAdd.cs (7)
37public static void FusedMultiplyAdd<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, ReadOnlySpan<T> addend, Span<T> destination) 72public static void FusedMultiplyAdd<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, T addend, Span<T> destination) 106public static void FusedMultiplyAdd<T>(ReadOnlySpan<T> x, T y, ReadOnlySpan<T> addend, 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.HammingDistance.cs (6)
20public static long HammingBitDistance<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y) where T : IBinaryInteger<T> 48public static int HammingDistance<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y) 63private static int CountUnequalElements<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y)
System\Numerics\Tensors\netcore\TensorPrimitives.Hypot.cs (2)
24public static void Hypot<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Ieee754Remainder.cs (4)
23public static void Ieee754Remainder<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 39public static void Ieee754Remainder<T>(ReadOnlySpan<T> x, T y, Span<T> destination) 54public static void Ieee754Remainder<T>(T x, ReadOnlySpan<T> y, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.ILogB.cs (1)
20public static void ILogB<T>(ReadOnlySpan<T> x, Span<int> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Increment.cs (1)
20public static void Increment<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMax.cs (1)
25public static int IndexOfMax<T>(ReadOnlySpan<T> x)
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMaxMagnitude.cs (1)
25public static int IndexOfMaxMagnitude<T>(ReadOnlySpan<T> x)
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMin.cs (1)
24public static int IndexOfMin<T>(ReadOnlySpan<T> x)
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMinMagnitude.cs (1)
25public static int IndexOfMinMagnitude<T>(ReadOnlySpan<T> x)
System\Numerics\Tensors\netcore\TensorPrimitives.IsCanonical.cs (3)
18public static void IsCanonical<T>(ReadOnlySpan<T> x, Span<bool> destination) 41public static bool IsCanonicalAll<T>(ReadOnlySpan<T> x) 52public static bool IsCanonicalAny<T>(ReadOnlySpan<T> x)
System\Numerics\Tensors\netcore\TensorPrimitives.IsComplexNumber.cs (3)
18public static void IsComplexNumber<T>(ReadOnlySpan<T> x, Span<bool> destination) 41public static bool IsComplexNumberAll<T>(ReadOnlySpan<T> x) 52public static bool IsComplexNumberAny<T>(ReadOnlySpan<T> x)
System\Numerics\Tensors\netcore\TensorPrimitives.IsEvenInteger.cs (3)
18public static void IsEvenInteger<T>(ReadOnlySpan<T> x, Span<bool> destination) 28public static bool IsEvenIntegerAll<T>(ReadOnlySpan<T> x) 39public static bool IsEvenIntegerAny<T>(ReadOnlySpan<T> x)
System\Numerics\Tensors\netcore\TensorPrimitives.IsFinite.cs (3)
18public static void IsFinite<T>(ReadOnlySpan<T> x, Span<bool> destination) 41public static bool IsFiniteAll<T>(ReadOnlySpan<T> x) 52public static bool IsFiniteAny<T>(ReadOnlySpan<T> x)
System\Numerics\Tensors\netcore\TensorPrimitives.IsImaginaryNumber.cs (3)
18public static void IsImaginaryNumber<T>(ReadOnlySpan<T> x, Span<bool> destination) 41public static bool IsImaginaryNumberAll<T>(ReadOnlySpan<T> x) 52public static bool IsImaginaryNumberAny<T>(ReadOnlySpan<T> x)
System\Numerics\Tensors\netcore\TensorPrimitives.IsInfinity.cs (3)
18public static void IsInfinity<T>(ReadOnlySpan<T> x, Span<bool> destination) 28public static bool IsInfinityAll<T>(ReadOnlySpan<T> x) 39public static bool IsInfinityAny<T>(ReadOnlySpan<T> x)
System\Numerics\Tensors\netcore\TensorPrimitives.IsInteger.cs (3)
18public static void IsInteger<T>(ReadOnlySpan<T> x, Span<bool> destination) 41public static bool IsIntegerAll<T>(ReadOnlySpan<T> x) 52public static bool IsIntegerAny<T>(ReadOnlySpan<T> x)
System\Numerics\Tensors\netcore\TensorPrimitives.IsNaN.cs (3)
18public static void IsNaN<T>(ReadOnlySpan<T> x, Span<bool> destination) 41public static bool IsNaNAll<T>(ReadOnlySpan<T> x) 52public static bool IsNaNAny<T>(ReadOnlySpan<T> x)
System\Numerics\Tensors\netcore\TensorPrimitives.IsNegative.cs (3)
18public static void IsNegative<T>(ReadOnlySpan<T> x, Span<bool> destination) 41public static bool IsNegativeAll<T>(ReadOnlySpan<T> x) 52public static bool IsNegativeAny<T>(ReadOnlySpan<T> x)
System\Numerics\Tensors\netcore\TensorPrimitives.IsNegativeInfinity.cs (3)
18public static void IsNegativeInfinity<T>(ReadOnlySpan<T> x, Span<bool> destination) 28public static bool IsNegativeInfinityAll<T>(ReadOnlySpan<T> x) 39public static bool IsNegativeInfinityAny<T>(ReadOnlySpan<T> x)
System\Numerics\Tensors\netcore\TensorPrimitives.IsNormal.cs (3)
18public static void IsNormal<T>(ReadOnlySpan<T> x, Span<bool> destination) 28public static bool IsNormalAll<T>(ReadOnlySpan<T> x) 39public static bool IsNormalAny<T>(ReadOnlySpan<T> x)
System\Numerics\Tensors\netcore\TensorPrimitives.IsOddInteger.cs (3)
18public static void IsOddInteger<T>(ReadOnlySpan<T> x, Span<bool> destination) 28public static bool IsOddIntegerAll<T>(ReadOnlySpan<T> x) 39public static bool IsOddIntegerAny<T>(ReadOnlySpan<T> x)
System\Numerics\Tensors\netcore\TensorPrimitives.IsPositive.cs (3)
18public static void IsPositive<T>(ReadOnlySpan<T> x, Span<bool> destination) 28public static bool IsPositiveAll<T>(ReadOnlySpan<T> x) 39public static bool IsPositiveAny<T>(ReadOnlySpan<T> x)
System\Numerics\Tensors\netcore\TensorPrimitives.IsPositiveInfinity.cs (3)
18public static void IsPositiveInfinity<T>(ReadOnlySpan<T> x, Span<bool> destination) 28public static bool IsPositiveInfinityAll<T>(ReadOnlySpan<T> x) 39public static bool IsPositiveInfinityAny<T>(ReadOnlySpan<T> x)
System\Numerics\Tensors\netcore\TensorPrimitives.IsPow2.cs (3)
18public static void IsPow2<T>(ReadOnlySpan<T> x, Span<bool> destination) 28public static bool IsPow2All<T>(ReadOnlySpan<T> x) 39public static bool IsPow2Any<T>(ReadOnlySpan<T> x)
System\Numerics\Tensors\netcore\TensorPrimitives.IsRealNumber.cs (3)
18public static void IsRealNumber<T>(ReadOnlySpan<T> x, Span<bool> destination) 41public static bool IsRealNumberAll<T>(ReadOnlySpan<T> x) 52public static bool IsRealNumberAny<T>(ReadOnlySpan<T> x)
System\Numerics\Tensors\netcore\TensorPrimitives.IsSubnormal.cs (3)
18public static void IsSubnormal<T>(ReadOnlySpan<T> x, Span<bool> destination) 28public static bool IsSubnormalAll<T>(ReadOnlySpan<T> x) 39public static bool IsSubnormalAny<T>(ReadOnlySpan<T> x)
System\Numerics\Tensors\netcore\TensorPrimitives.IsZero.cs (3)
18public static void IsZero<T>(ReadOnlySpan<T> x, Span<bool> destination) 28public static bool IsZeroAll<T>(ReadOnlySpan<T> x) 39public static bool IsZeroAny<T>(ReadOnlySpan<T> x)
System\Numerics\Tensors\netcore\TensorPrimitives.LeadingZeroCount.cs (1)
24public static void LeadingZeroCount<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Lerp.cs (7)
29public static void Lerp<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, ReadOnlySpan<T> amount, Span<T> destination) 57public static void Lerp<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, T amount, Span<T> destination) 85public static void Lerp<T>(ReadOnlySpan<T> x, T y, ReadOnlySpan<T> amount, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Log.cs (4)
31public static void Log<T>(ReadOnlySpan<T> x, Span<T> destination) 59public static void Log<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 85public static void Log<T>(ReadOnlySpan<T> x, T y, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Log10.cs (1)
30public static void Log10<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Log10P1.cs (1)
30public static void Log10P1<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Log2.cs (1)
31public static void Log2<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Log2P1.cs (1)
30public static void Log2P1<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.LogP1.cs (1)
30public static void LogP1<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Max.cs (6)
26public static T Max<T>(ReadOnlySpan<T> x) 58public static void Max<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 88public static void Max<T>(ReadOnlySpan<T> x, T y, Span<T> destination) 123/// This is the same as <see cref="Aggregate{T, TTransformOperator, TAggregationOperator}(ReadOnlySpan{T})"/> 126private static T MinMaxCore<T, TMinMaxOperator>(ReadOnlySpan<T> x)
System\Numerics\Tensors\netcore\TensorPrimitives.MaxMagnitude.cs (4)
26public static T MaxMagnitude<T>(ReadOnlySpan<T> x) 52public static void MaxMagnitude<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 76public static void MaxMagnitude<T>(ReadOnlySpan<T> x, T y, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.MaxMagnitudeNumber.cs (4)
27public static T MaxMagnitudeNumber<T>(ReadOnlySpan<T> x) 60public static void MaxMagnitudeNumber<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 91public static void MaxMagnitudeNumber<T>(ReadOnlySpan<T> x, T y, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.MaxNumber.cs (4)
24public static T MaxNumber<T>(ReadOnlySpan<T> x) 56public static void MaxNumber<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 86public static void MaxNumber<T>(ReadOnlySpan<T> x, T y, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Min.cs (4)
25public static T Min<T>(ReadOnlySpan<T> x) 57public static void Min<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 87public static void Min<T>(ReadOnlySpan<T> x, T y, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.MinMagnitude.cs (4)
26public static T MinMagnitude<T>(ReadOnlySpan<T> x) 57public static void MinMagnitude<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 86public static void MinMagnitude<T>(ReadOnlySpan<T> x, T y, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.MinMagnitudeNumber.cs (4)
27public static T MinMagnitudeNumber<T>(ReadOnlySpan<T> x) 60public static void MinMagnitudeNumber<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 91public static void MinMagnitudeNumber<T>(ReadOnlySpan<T> x, T y, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.MinNumber.cs (4)
24public static T MinNumber<T>(ReadOnlySpan<T> x) 56public static void MinNumber<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 86public static void MinNumber<T>(ReadOnlySpan<T> x, T y, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Multiply.cs (3)
26public static void Multiply<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 52public static void Multiply<T>(ReadOnlySpan<T> x, T y, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.MultiplyAdd.cs (7)
28public static void MultiplyAdd<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, ReadOnlySpan<T> addend, Span<T> destination) 57public static void MultiplyAdd<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, T addend, Span<T> destination) 85public static void MultiplyAdd<T>(ReadOnlySpan<T> x, T y, ReadOnlySpan<T> addend, Span<T> destination)
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.Negate.cs (1)
23public static void Negate<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Norm.cs (1)
25public static T Norm<T>(ReadOnlySpan<T> x)
System\Numerics\Tensors\netcore\TensorPrimitives.OnesComplement.cs (1)
20public static void OnesComplement<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.PopCount.cs (2)
17public static long PopCount<T>(ReadOnlySpan<T> x) where T : IBinaryInteger<T> 38public static void PopCount<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Pow.cs (4)
24public static void Pow<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 39public static void Pow<T>(ReadOnlySpan<T> x, T y, Span<T> destination) 54public static void Pow<T>(T x, ReadOnlySpan<T> y, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Product.cs (5)
21public static T Product<T>(ReadOnlySpan<T> x) 53public static T ProductOfDifferences<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y) 85public static T ProductOfSums<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y)
System\Numerics\Tensors\netcore\TensorPrimitives.RadiansToDegrees.cs (1)
21public static void RadiansToDegrees<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Reciprocal.cs (4)
23public static void Reciprocal<T>(ReadOnlySpan<T> x, Span<T> destination) 45public static void ReciprocalEstimate<T>(ReadOnlySpan<T> x, Span<T> destination) 67public static void ReciprocalSqrt<T>(ReadOnlySpan<T> x, Span<T> destination) 89public static void ReciprocalSqrtEstimate<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Remainder.cs (4)
26public static void Remainder<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 52public static void Remainder<T>(ReadOnlySpan<T> x, T y, Span<T> destination) 78public static void Remainder<T>(T x, ReadOnlySpan<T> y, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.RootN.cs (1)
22public static void RootN<T>(ReadOnlySpan<T> x, int n, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Rotate.cs (2)
21public static void RotateLeft<T>(ReadOnlySpan<T> x, int rotateAmount, Span<T> destination) 36public static void RotateRight<T>(ReadOnlySpan<T> x, int rotateAmount, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Round.cs (4)
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)
System\Numerics\Tensors\netcore\TensorPrimitives.ScaleB.cs (1)
21public static void ScaleB<T>(ReadOnlySpan<T> x, int n, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.ShiftLeft.cs (1)
21public static void ShiftLeft<T>(ReadOnlySpan<T> x, int shiftAmount, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.ShiftRightArithmetic.cs (1)
21public static void ShiftRightArithmetic<T>(ReadOnlySpan<T> x, int shiftAmount, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.ShiftRightLogical.cs (1)
21public static void ShiftRightLogical<T>(ReadOnlySpan<T> x, int shiftAmount, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Sigmoid.cs (1)
25public static void Sigmoid<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Sign.cs (1)
21public static void Sign<T>(ReadOnlySpan<T> x, Span<int> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Sin.cs (1)
28public static void Sin<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.SinCos.cs (1)
26public static void SinCos<T>(ReadOnlySpan<T> x, Span<T> sinDestination, Span<T> cosDestination)
System\Numerics\Tensors\netcore\TensorPrimitives.SinCosPi.cs (1)
25public static void SinCosPi<T>(ReadOnlySpan<T> x, Span<T> sinPiDestination, Span<T> cosPiDestination)
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\TensorPrimitives.Sinh.cs (1)
32public static void Sinh<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.SinPi.cs (1)
28public static void SinPi<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.SoftMax.cs (1)
24public static void SoftMax<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Sqrt.cs (1)
20public static void Sqrt<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.StdDev.cs (1)
19public static T StdDev<T>(ReadOnlySpan<T> x)
System\Numerics\Tensors\netcore\TensorPrimitives.Subtract.cs (4)
26public static void Subtract<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 51public static void Subtract<T>(ReadOnlySpan<T> x, T y, Span<T> destination) 76public static void Subtract<T>(T x, ReadOnlySpan<T> y, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Sum.cs (3)
22public static T Sum<T>(ReadOnlySpan<T> x) 45public static T SumOfMagnitudes<T>(ReadOnlySpan<T> x) 67public static T SumOfSquares<T>(ReadOnlySpan<T> x)
System\Numerics\Tensors\netcore\TensorPrimitives.Tan.cs (1)
30public static void Tan<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Tanh.cs (1)
32public static void Tanh<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.TanPi.cs (1)
27public static void TanPi<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.TrailingZeroCount.cs (1)
23public static void TrailingZeroCount<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Truncate.cs (1)
23public static void Truncate<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Xor.cs (3)
23public static void Xor<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 45public static void Xor<T>(ReadOnlySpan<T> x, T y, Span<T> destination)
System\Numerics\Tensors\netcore\TensorShape.cs (67)
70private TensorShape(nint linearLength, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, TensorFlags flags) 73ReadOnlySpan<nint> rank0Lengths = [0]; 299internal static nint GetProduct(ReadOnlySpan<nint> lengths) 327private TensorShape(nint flattenedLength, nint linearLength, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, TensorFlags flags) 375ReadOnlySpan<nint> lengths = Lengths; 376ReadOnlySpan<nint> strides = Strides; 416public ReadOnlySpan<nint> Lengths 422return ((ReadOnlySpan<nint>)_inlineLengths)[.._rank]; 435public ReadOnlySpan<nint> Strides 441return ((ReadOnlySpan<nint>)_inlineStrides)[.._rank]; 470ReadOnlySpan<nint> leftLengths = left.Lengths; 471ReadOnlySpan<nint> leftStrides = left.Strides; 473ReadOnlySpan<nint> rightLengths = right.Lengths; 474ReadOnlySpan<nint> rightStrides = right.Strides; 499ReadOnlySpan<nint> lengths = Lengths; 500ReadOnlySpan<nint> strides = Strides; 502ReadOnlySpan<nint> destinationLengths = destinationShape.Lengths; 564ReadOnlySpan<nint> lengths = Lengths; 565ReadOnlySpan<nint> strides = Strides; 567ReadOnlySpan<nint> destinationLengths = destinationShape.Lengths; 624public static bool AdjustToNextIndex(Span<NRange> ranges, int dimension, ReadOnlySpan<nint> lengths) 680ReadOnlySpan<nint> lengths1 = shape1.Lengths[rankDelta..]; 681ReadOnlySpan<nint> lengths2 = shape2.Lengths[sourceOffset..]; 715ReadOnlySpan<nint> strides1 = shape1.Strides[rankDelta..]; 716ReadOnlySpan<nint> strides2 = shape2.Strides[sourceOffset..]; 733public static bool AreCompatible(in ReadOnlySpan<nint> shape1Lengths, in TensorShape shape2) 735ReadOnlySpan<nint> lengths1 = shape1Lengths.IsEmpty ? s_empty.Lengths : shape1Lengths; 755ReadOnlySpan<nint> lengths2 = shape2.Lengths[sourceOffset..]; 789internal static bool AreLengthsEquivalent(ReadOnlySpan<nint> lengths1, ReadOnlySpan<nint> lengths2) 801ReadOnlySpan<nint> temporary = lengths1; 811internal static bool AreLengthsEquivalentExceptDimension(ReadOnlySpan<nint> lengths, ReadOnlySpan<nint> otherLengths, 874public static TensorShape CreateForView(nint linearLength, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned) 881ReadOnlySpan<nint> lengths1 = shape1.Lengths; 882ReadOnlySpan<nint> lengths2 = shape2.Lengths; 898public static bool AreLengthsTheSame(ReadOnlySpan<nint> lengths1, ReadOnlySpan<nint> lengths2) 946public static TensorShape Create(Array? array, scoped ReadOnlySpan<int> start, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, out nint linearOffset) 1057public static TensorShape Create(scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned) 1089public static TensorShape Create<T>(T[]? array, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned = false) 1103public static TensorShape Create<T>(T[]? array, int start, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned = false) 1161public static TensorShape Create<T>(ref readonly T reference, nint linearLength, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned) 1185public static unsafe TensorShape Create<T>(T* address, nint linearLength, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides = default) 1215public nint GetLinearOffset<TGetOffsetAndLength, T>(ReadOnlySpan<T> state) 1218ReadOnlySpan<nint> lengths = Lengths; 1219ReadOnlySpan<nint> strides = Strides; 1244ReadOnlySpan<nint> lengths = Lengths; 1245ReadOnlySpan<nint> strides = Strides; 1280public nint GetLongestContiguousLength<TGetOffsetAndLength, T>(ReadOnlySpan<T> state, out nint linearOffset) 1285ReadOnlySpan<nint> lengths = Lengths; 1286ReadOnlySpan<nint> strides = Strides; 1348public TensorShape Slice<TGetOffsetAndLength, T>(ReadOnlySpan<T> state, out nint linearOffset) 1388ReadOnlySpan<nint> previousLengths = Lengths; 1389ReadOnlySpan<nint> previousStrides = Strides; 1499private static bool CalculateHasAnyDenseDimensions(ReadOnlySpan<nint> lengths, ReadOnlySpan<nint> strides)
System\Numerics\Tensors\netcore\TensorSpan_1.cs (90)
44/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" /> 46public TensorSpan(T[]? array, scoped ReadOnlySpan<nint> lengths) 49/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 51public TensorSpan(T[]? array, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides) 61/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 63public TensorSpan(T[]? array, int start, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides) 73/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(ReadOnlySpan{T})" /> 81/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(ReadOnlySpan{T}, ReadOnlySpan{nint})" /> 82public TensorSpan(Span<T> span, scoped ReadOnlySpan<nint> lengths) 85/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(ReadOnlySpan{T}, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 86public TensorSpan(Span<T> span, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides) 105/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(Array, ReadOnlySpan{int}, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 107public TensorSpan(Array? array, scoped ReadOnlySpan<int> start, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides) 125/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T*, nint, ReadOnlySpan{nint})" /> 127public unsafe TensorSpan(T* data, nint dataLength, scoped ReadOnlySpan<nint> lengths) 130/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T*, nint, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 132public unsafe TensorSpan(T* data, nint dataLength, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides) 138internal TensorSpan(ref T data, nint dataLength, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned) 150/// <inheritdoc cref="ITensor{TSelf, T}.this[ReadOnlySpan{nint}]" /> 151public ref T this[params scoped ReadOnlySpan<nint> indexes] 156/// <inheritdoc cref="ITensor{TSelf, T}.this[ReadOnlySpan{NIndex}]" /> 157public ref T this[params scoped ReadOnlySpan<NIndex> indexes] 162/// <inheritdoc cref="ITensor{TSelf, T}.this[ReadOnlySpan{NRange}]" /> 163public TensorSpan<T> this[params scoped ReadOnlySpan<NRange> ranges] 186public ReadOnlySpan<nint> Lengths => _shape.Lengths; 193public ReadOnlySpan<nint> Strides => _shape.Strides; 217/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.AsReadOnlyTensorSpan(ReadOnlySpan{nint})" /> 218public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<nint> startIndexes) => AsReadOnlyTensorSpan().Slice(startIndexes); 220/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.AsReadOnlyTensorSpan(ReadOnlySpan{NIndex})" /> 221public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes) => AsReadOnlyTensorSpan().Slice(startIndexes); 223/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.AsReadOnlyTensorSpan(ReadOnlySpan{NRange})" /> 224public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NRange> ranges) => AsReadOnlyTensorSpan().Slice(ranges); 278/// <inheritdoc cref="ITensor{TSelf, T}.GetSpan(ReadOnlySpan{nint}, int)" /> 279public Span<T> GetSpan(scoped ReadOnlySpan<nint> startIndexes, int length) 288/// <inheritdoc cref="ITensor{TSelf, T}.GetSpan(ReadOnlySpan{NIndex}, int)" /> 289public Span<T> GetSpan(scoped ReadOnlySpan<NIndex> startIndexes, int length) 298/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.Slice(ReadOnlySpan{nint})" /> 299public TensorSpan<T> Slice(params scoped ReadOnlySpan<nint> startIndexes) 308/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.Slice(ReadOnlySpan{NIndex})" /> 309public TensorSpan<T> Slice(params scoped ReadOnlySpan<NIndex> startIndexes) 318/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.Slice(ReadOnlySpan{NRange})" /> 319public TensorSpan<T> Slice(params scoped ReadOnlySpan<NRange> ranges) 331/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ToString(ReadOnlySpan{nint})" /> 332public string ToString(params scoped ReadOnlySpan<nint> maximumLengths) => Tensor.ToString(AsReadOnlyTensorSpan(), maximumLengths, "System.Numerics.Tensors.TensorSpan"); 340/// <inheritdoc cref="ITensor{TSelf, T}.TryGetSpan(ReadOnlySpan{nint}, int, out Span{T})" /> 341public bool TryGetSpan(scoped ReadOnlySpan<nint> startIndexes, int length, out Span<T> span) 356/// <inheritdoc cref="ITensor{TSelf, T}.TryGetSpan(ReadOnlySpan{NIndex}, int, out Span{T})" /> 357public bool TryGetSpan(scoped ReadOnlySpan<NIndex> startIndexes, int length, out Span<T> span) 372/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.TryGetSpan(ReadOnlySpan{nint}, int, out ReadOnlySpan{T})" /> 373public bool TryGetSpan(scoped ReadOnlySpan<nint> startIndexes, int length, out ReadOnlySpan<T> span) => AsReadOnlyTensorSpan().TryGetSpan(startIndexes, length, out span); 375/// <inheritdoc cref="IReadOnlyTensor{TSelf, T}.TryGetSpan(ReadOnlySpan{NIndex}, int, out ReadOnlySpan{T})" /> 376public bool TryGetSpan(scoped ReadOnlySpan<NIndex> startIndexes, int length, out ReadOnlySpan<T> span) => AsReadOnlyTensorSpan().TryGetSpan(startIndexes, length, out span); 382object? IReadOnlyTensor.this[params scoped ReadOnlySpan<NIndex> indexes] => this[indexes]; 384object? IReadOnlyTensor.this[params scoped ReadOnlySpan<nint> indexes] => this[indexes]; 390ref readonly T IReadOnlyTensor<TensorSpan<T>, T>.this[params scoped ReadOnlySpan<NIndex> indexes] => ref this[indexes]; 392ref readonly T IReadOnlyTensor<TensorSpan<T>, T>.this[params scoped ReadOnlySpan<nint> indexes] => ref this[indexes]; 398ReadOnlySpan<T> IReadOnlyTensor<TensorSpan<T>, T>.GetSpan(scoped ReadOnlySpan<nint> startIndexes, int length) => AsReadOnlyTensorSpan().GetSpan(startIndexes, length); 400ReadOnlySpan<T> IReadOnlyTensor<TensorSpan<T>, T>.GetSpan(scoped ReadOnlySpan<NIndex> startIndexes, int length) => AsReadOnlyTensorSpan().GetSpan(startIndexes, length); 421object? ITensor.this[params scoped ReadOnlySpan<NIndex> indexes] 431object? ITensor.this[params scoped ReadOnlySpan<nint> indexes] 447static TensorSpan<T> ITensor<TensorSpan<T>, T>.CreateFromShape(scoped ReadOnlySpan<nint> lengths, bool pinned) => Tensor.CreateFromShape<T>(lengths, pinned); 449static TensorSpan<T> ITensor<TensorSpan<T>, T>.CreateFromShape(scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned) => Tensor.CreateFromShape<T>(lengths, strides, pinned); 451static TensorSpan<T> ITensor<TensorSpan<T>, T>.CreateFromShapeUninitialized(scoped ReadOnlySpan<nint> lengths, bool pinned) => Tensor.CreateFromShapeUninitialized<T>(lengths, pinned); 453static TensorSpan<T> ITensor<TensorSpan<T>, T>.CreateFromShapeUninitialized(scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned) => Tensor.CreateFromShapeUninitialized<T>(lengths, strides, pinned); 457TensorSpan<T> ITensor<TensorSpan<T>, T>.AsTensorSpan(params scoped ReadOnlySpan<nint> startIndexes) => Slice(startIndexes); 459TensorSpan<T> ITensor<TensorSpan<T>, T>.AsTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes) => Slice(startIndexes); 461TensorSpan<T> ITensor<TensorSpan<T>, T>.AsTensorSpan(params scoped ReadOnlySpan<NRange> ranges) => Slice(ranges);
System\Numerics\Tensors\TensorPrimitives.Helpers.cs (13)
15private static void ValidateInputOutputSpanNonOverlapping<T>(ReadOnlySpan<T> input, Span<T> destination) 64private static unsafe ReadOnlySpan<TTo> Rename<TFrom, TTo>(ReadOnlySpan<TFrom> span) 68return Unsafe.BitCast<ReadOnlySpan<TFrom>, ReadOnlySpan<TTo>>(span); 103private static ReadOnlySpan<byte> AlignmentByteMask_64x65 => 182private static ReadOnlySpan<ushort> AlignmentUInt16Mask_32x33 => 229private static ReadOnlySpan<uint> AlignmentUInt32Mask_16x17 => 260private static ReadOnlySpan<ulong> AlignmentUInt64Mask_8x9 => 282private static ReadOnlySpan<byte> RemainderByteMask_64x65 => 360private static ReadOnlySpan<ushort> RemainderUInt16Mask_32x33 => 406private static ReadOnlySpan<uint> RemainderUInt32Mask_16x17 => 436private static ReadOnlySpan<ulong> RemainderUInt64Mask_8x9 =>
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\Runtime\InteropServices\TensorMarshal.cs (4)
21public static TensorSpan<T> CreateTensorSpan<T>(scoped ref T data, nint dataLength, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned) 35public static ReadOnlyTensorSpan<T> CreateReadOnlyTensorSpan<T>(scoped ref readonly T data, nint dataLength, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned)
System.Private.CoreLib (3623)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LibraryImports.g.cs (11)
704internal static partial int ToAscii(uint flags, global::System.ReadOnlySpan<char> src, int srcLen, global::System.Span<char> dstBuffer, int dstBufferCapacity) 728internal static partial int ToUnicode(uint flags, global::System.ReadOnlySpan<char> src, int srcLen, global::System.Span<char> dstBuffer, int dstBufferCapacity) 1411internal static partial int IdnToAscii(uint dwFlags, global::System.ReadOnlySpan<char> lpUnicodeCharStr, int cchUnicodeChar, global::System.Span<char> lpASCIICharStr, int cchASCIIChar) 1440internal static partial int IdnToUnicode(uint dwFlags, global::System.ReadOnlySpan<char> lpASCIICharStr, int cchASCIIChar, global::System.Span<char> lpUnicodeCharStr, int cchUnicodeChar) 1970internal static partial int Access(global::System.ReadOnlySpan<char> path, global::Interop.Sys.AccessMode mode) 3468internal static partial int MkDir(global::System.ReadOnlySpan<char> path, int mode) 4329private static partial int ReadLink(global::System.ReadOnlySpan<char> path, ref byte buffer, int bufferSize) 4371internal static partial int Rename(global::System.ReadOnlySpan<char> oldPath, global::System.ReadOnlySpan<char> newPath) 4593internal static partial int Stat(global::System.ReadOnlySpan<char> path, out global::Interop.Sys.FileStatus output) 4636internal static partial int LStat(global::System.ReadOnlySpan<char> path, out global::Interop.Sys.FileStatus output)
Internal\Reflection\Augments\ReflectionAugments.cs (1)
349ReadOnlySpan<ParameterInfo> parameters = invokeMethod.GetParametersAsSpan();
Internal\Runtime\Augments\RuntimeAugments.cs (1)
202public static ReadOnlySpan<TypeManagerHandle> GetLoadedModules()
Internal\Runtime\CompilerHelpers\InteropHelpers.cs (1)
70ReadOnlySpan<char> managed = str;
Internal\Runtime\CompilerHelpers\StartupCode\StartupCodeHelpers.Extensions.cs (1)
20internal static ReadOnlySpan<TypeManagerHandle> GetLoadedModules()
Internal\Runtime\CompilerServices\MethodNameAndSignature.cs (1)
29public ReadOnlySpan<byte> Name
src\runtime\src\coreclr\tools\Common\Internal\Metadata\NativeFormat\BlobReader.cs (4)
12internal ref struct BlobReader(ReadOnlySpan<byte> blob) 14private readonly ReadOnlySpan<byte> _blob = blob; 21private ReadOnlySpan<byte> ReadBytes(int count) 23ReadOnlySpan<byte> result = _blob.Slice(_offset, count);
src\runtime\src\coreclr\tools\Common\Internal\Metadata\NativeFormat\NativeMetadataReader.cs (4)
145public ReadOnlySpan<byte> AsSpan() => _reader.ReadLengthPrefixedBytes(_offset); 150public bool StringEquals(ReadOnlySpan<char> value, MetadataReader reader) 213internal bool StringEquals(ConstantStringValueHandle handle, ReadOnlySpan<char> value) 218public ReadOnlySpan<byte> ReadStringAsBytes(ConstantStringValueHandle handle)
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatReader.String.cs (2)
44public unsafe ReadOnlySpan<byte> ReadLengthPrefixedBytes(uint offset) 99public unsafe bool StringEquals(uint offset, ReadOnlySpan<char> value)
src\runtime\src\libraries\Common\src\Internal\VersionResilientHashCode.cs (7)
25public HashCodeBuilder(ReadOnlySpan<byte> seed) 33public void Append(ReadOnlySpan<byte> src) 77public static int NameHashCode(ReadOnlySpan<byte> src) 106public static int NameHashCode(ReadOnlySpan<char> src) 110HashCodeBuilder builder = new HashCodeBuilder(ReadOnlySpan<byte>.Empty); 132public static int NameHashCode(ReadOnlySpan<byte> namespacePart, ReadOnlySpan<byte> namePart)
src\runtime\src\libraries\Common\src\Interop\Interop.ICU.cs (2)
15internal static void InitICUFunctions(IntPtr icuuc, IntPtr icuin, ReadOnlySpan<char> version, ReadOnlySpan<char> suffix)
src\runtime\src\libraries\Common\src\Interop\Interop.Idna.cs (2)
15internal static partial int ToAscii(uint flags, ReadOnlySpan<char> src, int srcLen, Span<char> dstBuffer, int dstBufferCapacity); 18internal static partial int ToUnicode(uint flags, ReadOnlySpan<char> src, int srcLen, Span<char> dstBuffer, int dstBufferCapacity);
src\runtime\src\libraries\Common\src\Interop\Linux\os-release\Interop.OSReleaseFile.cs (6)
33ReadOnlySpan<char> prettyName = default, name = default, version = default; 36ReadOnlySpan<char> lineSpan = line.AsSpan(); 59static bool TryGetFieldValue(ReadOnlySpan<char> line, ReadOnlySpan<char> prefix, ref ReadOnlySpan<char> value) 65ReadOnlySpan<char> fieldValue = line.Slice(prefix.Length);
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcFsStat.TryReadStatusFile.cs (2)
77foreach (ReadOnlySpan<char> line in fileContents.AsSpan().EnumerateLines()) 85ReadOnlySpan<char> value = line.Slice(startIndex + 1);
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcMountInfo.cs (1)
22ReadOnlySpan<char> currentFormat = default;
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcMountInfo.TryParseMountInfoLine.cs (10)
14public required ReadOnlySpan<char> Root { get; init; } 15public required ReadOnlySpan<char> MountPoint { get; init; } 16public required ReadOnlySpan<char> FileSystemType { get; init; } 17public required ReadOnlySpan<char> SuperOptions { get; init; } 20internal static bool TryParseMountInfoLine(ReadOnlySpan<char> line, out ParsedMount result) 45ReadOnlySpan<char> root = line[fields.Current]; 52ReadOnlySpan<char> mountPoint = line[fields.Current]; 69ReadOnlySpan<char> fileSystemType = line[fields.Current]; 82ReadOnlySpan<char> superOptions = line[fields.Current]; 93static string UnescapePath(ReadOnlySpan<char> path)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.Access.cs (1)
24internal static partial int Access([MarshalUsing(typeof(SpanOfCharAsUtf8StringMarshaller))] ReadOnlySpan<char> path, AccessMode mode);
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.MkDir.cs (1)
13internal static partial int MkDir([MarshalUsing(typeof(SpanOfCharAsUtf8StringMarshaller))] ReadOnlySpan<char> path, int mode);
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.ReadDir.cs (3)
33internal ReadOnlySpan<char> GetName(Span<char> buffer) 37ReadOnlySpan<byte> nameBytes = (NameLength == -1) 43ReadOnlySpan<char> result = !Encoding.UTF8.TryGetChars(nameBytes, buffer, out int charsWritten)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.ReadLink.cs (2)
25private static partial int ReadLink([MarshalUsing(typeof(SpanOfCharAsUtf8StringMarshaller))] ReadOnlySpan<char> path, ref byte buffer, int bufferSize); 32internal static unsafe string? ReadLink(ReadOnlySpan<char> path)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.Rename.cs (2)
21internal static partial int Rename([MarshalUsing(typeof(SpanOfCharAsUtf8StringMarshaller))] ReadOnlySpan<char> oldPath, [MarshalUsing(typeof(SpanOfCharAsUtf8StringMarshaller))] ReadOnlySpan<char> newPath);
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.Stat.Span.cs (2)
13internal static partial int Stat([MarshalUsing(typeof(SpanOfCharAsUtf8StringMarshaller))] ReadOnlySpan<char> path, out FileStatus output); 16internal static partial int LStat([MarshalUsing(typeof(SpanOfCharAsUtf8StringMarshaller))] ReadOnlySpan<char> path, out FileStatus output);
src\runtime\src\libraries\Common\src\Interop\Windows\Normaliz\Interop.Idna.cs (2)
19ReadOnlySpan<char> lpUnicodeCharStr, 28ReadOnlySpan<char> lpASCIICharStr,
src\runtime\src\libraries\Common\src\System\Collections\Generic\BitHelper.cs (1)
43ReadOnlySpan<int> span = _span;
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (4)
65public void Append(scoped ReadOnlySpan<T> source) 81private void AppendMultiChar(scoped ReadOnlySpan<T> source) 92public void Insert(int index, scoped ReadOnlySpan<T> source) 144public ReadOnlySpan<T> AsSpan()
src\runtime\src\libraries\Common\src\System\Collections\HashHelpers.cs (2)
32internal static ReadOnlySpan<int> Primes => 83ReadOnlySpan<int> primes = Primes;
src\runtime\src\libraries\Common\src\System\HexConverter.cs (17)
120private static void EncodeTo_Vector128<TChar>(ReadOnlySpan<byte> source, Span<TChar> destination, Casing casing) 187public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper) 204public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper) 221public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 244public ReadOnlySpan<byte> Bytes { get; set; } 276public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 288public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 294return TryDecodeFrom_Vector128(Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<ushort>>(source), destination, out charsProcessed); 304public static bool TryDecodeFrom_Vector128<TChar>(ReadOnlySpan<TChar> source, Span<byte> destination, out int elementsProcessed) 443fallbackResult = TryDecodeFromUtf8_Scalar(Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(source.Slice((int)offset)), destination.Slice((int)(offset / 2)), out elementsProcessed); 448fallbackResult = TryDecodeFromUtf16_Scalar(Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<char>>(source.Slice((int)offset)), destination.Slice((int)(offset / 2)), out elementsProcessed); 456private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 491private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 598public static ReadOnlySpan<byte> CharToHexLookup =>
src\runtime\src\libraries\Common\src\System\IO\PathInternal.cs (6)
16internal static bool StartsWithDirectorySeparator(ReadOnlySpan<char> path) => path.Length > 0 && IsDirectorySeparator(path[0]); 21internal static bool IsRoot(ReadOnlySpan<char> path) 118internal static bool RemoveRelativeSegments(ReadOnlySpan<char> path, int rootLength, ref ValueStringBuilder sb) 229internal static ReadOnlySpan<char> TrimEndingDirectorySeparator(ReadOnlySpan<char> path) => 237internal static bool EndsInDirectorySeparator(ReadOnlySpan<char> path) =>
src\runtime\src\libraries\Common\src\System\IO\PathInternal.Unix.cs (4)
20internal static ReadOnlySpan<byte> Utf8DirectorySeparators => "/"u8; 22internal static int GetRootLength(ReadOnlySpan<char> path) 77internal static bool IsPartiallyQualified(ReadOnlySpan<char> path) 94internal static bool IsEffectivelyEmpty(ReadOnlySpan<char> path)
src\runtime\src\libraries\Common\src\System\IO\StringParser.cs (2)
142ReadOnlySpan<char> span = _buffer.AsSpan(_startIndex, _endIndex - _startIndex); 165ReadOnlySpan<char> span = _buffer.AsSpan(_startIndex, _endIndex - _startIndex);
src\runtime\src\libraries\Common\src\System\Number.Formatting.Common.cs (22)
20private static ReadOnlySpan<byte> GetCurrencyFormat(bool isNegative, int index) 57private static ReadOnlySpan<byte> GetPercentFormat(bool isNegative, int index) 89private static ReadOnlySpan<byte> GetNumberFormat(bool isNegative, int index) 107internal static char ParseFormatSpecifier(ReadOnlySpan<char> format, out int digits) 180private static ReadOnlySpan<ushort> TwoDigitsBytesTable => 195private static ReadOnlySpan<uint> TwoDigitsCharsTable => 261internal static void CopyNegativeSign<TChar>(ReadOnlySpan<TChar> sign, Span<TChar> destination) 473internal static void NumberToStringFormat<TChar>(ref ValueListBuilder<TChar> vlb, ref NumberBuffer number, ReadOnlySpan<char> format, NumberFormatInfo info) where TChar : unmanaged, IUtfChar<TChar> 717ReadOnlySpan<byte> digits = number.Digits; 735ReadOnlySpan<byte> adjustDigits = digits.Slice(0, Math.Min(adjust, digits.Length)); 958ReadOnlySpan<byte> fmt = GetCurrencyFormat( 988ReadOnlySpan<TChar> sDecimal, ReadOnlySpan<TChar> sGroup) where TChar : unmanaged, IUtfChar<TChar> 993ReadOnlySpan<byte> dig = number.Digits; 1032ReadOnlySpan<byte> intDigits = dig.Slice(0, Math.Min(digPos, dig.Length)); 1175ReadOnlySpan<byte> fmt = GetNumberFormat(number.IsNegative, info.NumberNegativePattern); 1200ReadOnlySpan<byte> dig = number.Digits; 1272ReadOnlySpan<byte> dig = number.Digits; 1320ReadOnlySpan<byte> fmt = GetPercentFormat( 1397static bool ShouldRoundUp(ReadOnlySpan<byte> dig, int i, NumberBufferKind numberKind, bool isCorrectlyRounded) 1457private static bool HasNegativeSection(ReadOnlySpan<char> format) => FindSection(format, 1) != 0; 1459private static int FindSection(ReadOnlySpan<char> format, int section)
src\runtime\src\libraries\Common\src\System\Number.Parsing.Common.cs (31)
18private static bool TryParseNumber<TChar>(ReadOnlySpan<TChar> value, NumberStyles styles, ref NumberBuffer number, NumberFormatInfo info, out int elementsConsumed) 37ReadOnlySpan<TChar> decSep; // decimal separator from NumberFormatInfo. 38ReadOnlySpan<TChar> groupSep; // group separator from NumberFormatInfo. 39ReadOnlySpan<TChar> currSymbol = ReadOnlySpan<TChar>.Empty; // currency symbol from NumberFormatInfo. 85currSymbol = ReadOnlySpan<TChar>.Empty; 275currSymbol = ReadOnlySpan<TChar>.Empty; 321internal static bool TryStringToNumber<TChar>(ReadOnlySpan<TChar> value, NumberStyles styles, ref NumberBuffer number, NumberFormatInfo info, out int elementsConsumed) 331private static int ConsumeTrailingNulls<TChar>(ReadOnlySpan<TChar> value, int index) 335var remainder = value.Slice(index); 358private static int MatchNegativeSignChars<TChar>(ReadOnlySpan<TChar> value, int index, NumberFormatInfo info) 371private static int MatchSignChars<TChar>(ReadOnlySpan<TChar> value, int index, NumberFormatInfo info, out bool isNegative) 395ReadOnlySpan<TChar> positiveSign = info.PositiveSignTChar<TChar>(); 399ReadOnlySpan<TChar> negativeSign = info.NegativeSignTChar<TChar>(); 430private static int MatchChars<TChar>(ReadOnlySpan<TChar> source, int index, ReadOnlySpan<TChar> value) 445ReadOnlySpan<byte> input = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(source.Slice(index)); 446ReadOnlySpan<byte> utf8Value = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(value); 461ReadOnlySpan<byte> input = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(source.Slice(index)); 462ReadOnlySpan<byte> utf8Value = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(value); 478private static int MatchUtf8SpaceReplacingChars(ReadOnlySpan<byte> input, ReadOnlySpan<byte> value) 512private static int GetUtf8SpaceCharLength(ReadOnlySpan<byte> value)
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameFormatter.cs (1)
107ReadOnlySpan<char> span = s.AsSpan();
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (5)
57private readonly ReadOnlySpan<char> _input; 60private AssemblyNameParser(ReadOnlySpan<char> input) 76public static AssemblyNameParts Parse(ReadOnlySpan<char> name) 88internal static bool TryParse(ReadOnlySpan<char> name, ref AssemblyNameParts parts) 250ReadOnlySpan<char> attributeValueSpan = attributeValue;
src\runtime\src\libraries\Common\src\System\Runtime\InteropServices\SpanOfCharAsUtf8StringMarshaller.cs (2)
12[CustomMarshaller(typeof(ReadOnlySpan<char>), MarshalMode.ManagedToUnmanagedIn, typeof(ManagedToUnmanagedIn))] 33public void FromManaged(ReadOnlySpan<char> managed, Span<byte> buffer)
src\runtime\src\libraries\Common\src\System\Sha1ForNonSecretPurposes.cs (2)
27public static unsafe void HashData(ReadOnlySpan<byte> source, Span<byte> destination) 115public void Append(ReadOnlySpan<byte> input)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
101public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 102public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 103public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 209public void Append(scoped ReadOnlySpan<char> value)
src\runtime\src\libraries\System.Private.CoreLib\src\Internal\Runtime\InteropServices\ComponentActivator.cs (4)
160ReadOnlySpan<byte> assemblySpan = new ReadOnlySpan<byte>(assembly, (int)assemblyByteLength); 161ReadOnlySpan<byte> symbolsSpan = default; 178static void LoadAssemblyBytesLocal(IntPtr loadContext, ReadOnlySpan<byte> assemblyBytes, ReadOnlySpan<byte> symbolsBytes)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Action.cs (1)
197public delegate void ReadOnlySpanAction<T, in TArg>(ReadOnlySpan<T> span, TArg arg)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Array.cs (3)
763internal unsafe nint GetFlattenedIndex(ReadOnlySpan<int> indices) 846public object? GetValue(params ReadOnlySpan<int> indices) 910public void SetValue(object? value, params ReadOnlySpan<int> indices)
src\runtime\src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (15)
441public static char ToChar(ReadOnlySpan<byte> value) 476public static short ToInt16(ReadOnlySpan<byte> value) 514public static int ToInt32(ReadOnlySpan<byte> value) 552public static long ToInt64(ReadOnlySpan<byte> value) 590public static Int128 ToInt128(ReadOnlySpan<byte> value) 617public static ushort ToUInt16(ReadOnlySpan<byte> value) 647public static uint ToUInt32(ReadOnlySpan<byte> value) 677public static ulong ToUInt64(ReadOnlySpan<byte> value) 717public static UInt128 ToUInt128(ReadOnlySpan<byte> value) 742public static unsafe BFloat16 ToBFloat16(ReadOnlySpan<byte> value) 767public static unsafe Half ToHalf(ReadOnlySpan<byte> value) 795public static float ToSingle(ReadOnlySpan<byte> value) 823public static double ToDouble(ReadOnlySpan<byte> value) 871var src = new ReadOnlySpan<byte>(value, startIndex, length); 949public static bool ToBoolean(ReadOnlySpan<byte> value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Boolean.cs (9)
206internal static bool IsTrueStringIgnoreCase(ReadOnlySpan<char> value) 212internal static bool IsFalseStringIgnoreCase(ReadOnlySpan<char> value) 227public static bool Parse(ReadOnlySpan<char> value) 241public static bool TryParse(ReadOnlySpan<char> value, out bool result) 265static bool TryParseUncommon(ReadOnlySpan<char> value, out bool result) 292private static ReadOnlySpan<char> TrimWhiteSpaceAndNull(ReadOnlySpan<char> value) 413static bool ISpanParsable<bool>.Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s); 415static bool ISpanParsable<bool>.TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out bool result) => TryParse(s, out result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.ReadBigEndian.cs (28)
22public static double ReadDoubleBigEndian(ReadOnlySpan<byte> source) 39public static Half ReadHalfBigEndian(ReadOnlySpan<byte> source) 56public static BFloat16 ReadBFloat16BigEndian(ReadOnlySpan<byte> source) 73public static short ReadInt16BigEndian(ReadOnlySpan<byte> source) 90public static int ReadInt32BigEndian(ReadOnlySpan<byte> source) 107public static long ReadInt64BigEndian(ReadOnlySpan<byte> source) 124public static Int128 ReadInt128BigEndian(ReadOnlySpan<byte> source) 141public static nint ReadIntPtrBigEndian(ReadOnlySpan<byte> source) 158public static float ReadSingleBigEndian(ReadOnlySpan<byte> source) 176public static ushort ReadUInt16BigEndian(ReadOnlySpan<byte> source) 194public static uint ReadUInt32BigEndian(ReadOnlySpan<byte> source) 212public static ulong ReadUInt64BigEndian(ReadOnlySpan<byte> source) 230public static UInt128 ReadUInt128BigEndian(ReadOnlySpan<byte> source) 248public static nuint ReadUIntPtrBigEndian(ReadOnlySpan<byte> source) 265public static bool TryReadDoubleBigEndian(ReadOnlySpan<byte> source, out double value) 287public static bool TryReadHalfBigEndian(ReadOnlySpan<byte> source, out Half value) 309public static bool TryReadBFloat16BigEndian(ReadOnlySpan<byte> source, out BFloat16 value) 331public static bool TryReadInt16BigEndian(ReadOnlySpan<byte> source, out short value) 353public static bool TryReadInt32BigEndian(ReadOnlySpan<byte> source, out int value) 375public static bool TryReadInt64BigEndian(ReadOnlySpan<byte> source, out long value) 397public static bool TryReadInt128BigEndian(ReadOnlySpan<byte> source, out Int128 value) 419public static bool TryReadIntPtrBigEndian(ReadOnlySpan<byte> source, out nint value) 440public static bool TryReadSingleBigEndian(ReadOnlySpan<byte> source, out float value) 463public static bool TryReadUInt16BigEndian(ReadOnlySpan<byte> source, out ushort value) 486public static bool TryReadUInt32BigEndian(ReadOnlySpan<byte> source, out uint value) 509public static bool TryReadUInt64BigEndian(ReadOnlySpan<byte> source, out ulong value) 532public static bool TryReadUInt128BigEndian(ReadOnlySpan<byte> source, out UInt128 value) 556public static bool TryReadUIntPtrBigEndian(ReadOnlySpan<byte> source, out nuint value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.ReadLittleEndian.cs (28)
22public static double ReadDoubleLittleEndian(ReadOnlySpan<byte> source) 39public static Half ReadHalfLittleEndian(ReadOnlySpan<byte> source) 56public static BFloat16 ReadBFloat16LittleEndian(ReadOnlySpan<byte> source) 73public static short ReadInt16LittleEndian(ReadOnlySpan<byte> source) 90public static int ReadInt32LittleEndian(ReadOnlySpan<byte> source) 107public static long ReadInt64LittleEndian(ReadOnlySpan<byte> source) 124public static Int128 ReadInt128LittleEndian(ReadOnlySpan<byte> source) 141public static nint ReadIntPtrLittleEndian(ReadOnlySpan<byte> source) 158public static float ReadSingleLittleEndian(ReadOnlySpan<byte> source) 176public static ushort ReadUInt16LittleEndian(ReadOnlySpan<byte> source) 194public static uint ReadUInt32LittleEndian(ReadOnlySpan<byte> source) 212public static ulong ReadUInt64LittleEndian(ReadOnlySpan<byte> source) 230public static UInt128 ReadUInt128LittleEndian(ReadOnlySpan<byte> source) 248public static nuint ReadUIntPtrLittleEndian(ReadOnlySpan<byte> source) 265public static bool TryReadDoubleLittleEndian(ReadOnlySpan<byte> source, out double value) 287public static bool TryReadHalfLittleEndian(ReadOnlySpan<byte> source, out Half value) 309public static bool TryReadBFloat16LittleEndian(ReadOnlySpan<byte> source, out BFloat16 value) 331public static bool TryReadInt16LittleEndian(ReadOnlySpan<byte> source, out short value) 353public static bool TryReadInt32LittleEndian(ReadOnlySpan<byte> source, out int value) 375public static bool TryReadInt64LittleEndian(ReadOnlySpan<byte> source, out long value) 397public static bool TryReadInt128LittleEndian(ReadOnlySpan<byte> source, out Int128 value) 419public static bool TryReadIntPtrLittleEndian(ReadOnlySpan<byte> source, out nint value) 440public static bool TryReadSingleLittleEndian(ReadOnlySpan<byte> source, out float value) 463public static bool TryReadUInt16LittleEndian(ReadOnlySpan<byte> source, out ushort value) 486public static bool TryReadUInt32LittleEndian(ReadOnlySpan<byte> source, out uint value) 509public static bool TryReadUInt64LittleEndian(ReadOnlySpan<byte> source, out ulong value) 532public static bool TryReadUInt128LittleEndian(ReadOnlySpan<byte> source, out UInt128 value) 555public static bool TryReadUIntPtrLittleEndian(ReadOnlySpan<byte> source, out nuint value)
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\SharedArrayPool.cs (1)
537ReadOnlySpan<char> value = envVar.AsSpan().Trim(' ');
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\StandardFormat.cs (5)
73/// Converts a <see cref="ReadOnlySpan{Char}"/> into a StandardFormat 75public static StandardFormat Parse([StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format) 88/// Tries to convert a <see cref="ReadOnlySpan{Char}"/> into a StandardFormat. A return value indicates whether the conversion succeeded or failed. 90public static bool TryParse([StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format, out StandardFormat result) 95private static bool ParseHelper(ReadOnlySpan<char> format, out StandardFormat standardFormat, bool throws = false)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Decoder.cs (8)
65public static OperationStatus DecodeFromUtf8(ReadOnlySpan<byte> utf8, Span<byte> bytes, out int bytesConsumed, out int bytesWritten, bool isFinalBlock = true) => 77public static int DecodeFromUtf8(ReadOnlySpan<byte> source, Span<byte> destination) 102public static unsafe byte[] DecodeFromUtf8(ReadOnlySpan<byte> source) 132public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 173public static OperationStatus DecodeFromChars(ReadOnlySpan<char> source, Span<byte> destination, 187public static int DecodeFromChars(ReadOnlySpan<char> source, Span<byte> destination) 214public static bool TryDecodeFromChars(ReadOnlySpan<char> source, Span<byte> destination, out int bytesWritten) 234public static unsafe byte[] DecodeFromChars(ReadOnlySpan<char> source)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Encoder.cs (11)
29/// <see cref="EncodeToChars(ReadOnlySpan{byte}, Span{char})"/> 31/// <see cref="EncodeToUtf8(ReadOnlySpan{byte}, Span{byte})"/>. 71public static OperationStatus EncodeToUtf8(ReadOnlySpan<byte> bytes, Span<byte> utf8, out int bytesConsumed, out int bytesWritten, bool isFinalBlock = true) => 81public static int EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> destination) 99public static byte[] EncodeToUtf8(ReadOnlySpan<byte> source) 115public static bool TryEncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 167public static OperationStatus EncodeToChars(ReadOnlySpan<byte> source, Span<char> destination, 178public static int EncodeToChars(ReadOnlySpan<byte> source, Span<char> destination) 196public static char[] EncodeToChars(ReadOnlySpan<byte> source) 210public static string EncodeToString(ReadOnlySpan<byte> source) => 224public static bool TryEncodeToChars(ReadOnlySpan<byte> source, Span<char> destination, out int charsWritten)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64DecoderHelper.cs (28)
25internal static unsafe OperationStatus DecodeFrom<TBase64Decoder, T>(TBase64Decoder decoder, ReadOnlySpan<T> source, Span<byte> bytes, 284static OperationStatus InvalidDataFallback(TBase64Decoder decoder, ReadOnlySpan<T> source, Span<byte> bytes, ref int bytesConsumed, ref int bytesWritten, bool isFinalBlock) 515internal static unsafe OperationStatus DecodeWithWhiteSpaceBlockwise<TBase64Decoder>(TBase64Decoder decoder, ReadOnlySpan<byte> source, Span<byte> bytes, ref int bytesConsumed, ref int bytesWritten, bool isFinalBlock = true) 621internal static unsafe OperationStatus DecodeWithWhiteSpaceBlockwise<TBase64Decoder>(TBase64Decoder decoder, ReadOnlySpan<ushort> source, Span<byte> bytes, ref int bytesConsumed, ref int bytesWritten, bool isFinalBlock = true) 1400public ReadOnlySpan<sbyte> DecodingMap => 1420public ReadOnlySpan<uint> VbmiLookup0 => 1428public ReadOnlySpan<uint> VbmiLookup1 => 1436public ReadOnlySpan<sbyte> Avx2LutHigh => 1448public ReadOnlySpan<sbyte> Avx2LutLow => 1460public ReadOnlySpan<sbyte> Avx2LutShift => 1474public ReadOnlySpan<int> Vector128LutHigh => [0x02011010, 0x08040804, 0x10101010, 0x10101010]; 1476public ReadOnlySpan<int> Vector128LutLow => [0x11111115, 0x11111111, 0x1A131111, 0x1A1B1B1B]; 1478public ReadOnlySpan<uint> Vector128LutShift => [0x04131000, 0xb9b9bfbf, 0x00000000, 0x00000000]; 1480public ReadOnlySpan<uint> AdvSimdLutOne3 => [0xFFFFFFFF, 0xFFFFFFFF, 0x3EFFFFFF, 0x3FFFFFFF]; 1660public int IndexOfAnyExceptWhiteSpace(ReadOnlySpan<byte> span) 1675public OperationStatus DecodeWithWhiteSpaceBlockwiseWrapper<TBase64Decoder>(TBase64Decoder decoder, ReadOnlySpan<byte> utf8, 1683public ReadOnlySpan<sbyte> DecodingMap => default(Base64DecoderByte).DecodingMap; 1685public ReadOnlySpan<uint> VbmiLookup0 => default(Base64DecoderByte).VbmiLookup0; 1687public ReadOnlySpan<uint> VbmiLookup1 => default(Base64DecoderByte).VbmiLookup1; 1689public ReadOnlySpan<sbyte> Avx2LutHigh => default(Base64DecoderByte).Avx2LutHigh; 1691public ReadOnlySpan<sbyte> Avx2LutLow => default(Base64DecoderByte).Avx2LutLow; 1693public ReadOnlySpan<sbyte> Avx2LutShift => default(Base64DecoderByte).Avx2LutShift; 1697public ReadOnlySpan<int> Vector128LutHigh => default(Base64DecoderByte).Vector128LutHigh; 1699public ReadOnlySpan<int> Vector128LutLow => default(Base64DecoderByte).Vector128LutLow; 1701public ReadOnlySpan<uint> Vector128LutShift => default(Base64DecoderByte).Vector128LutShift; 1703public ReadOnlySpan<uint> AdvSimdLutOne3 => default(Base64DecoderByte).AdvSimdLutOne3; 1878public int IndexOfAnyExceptWhiteSpace(ReadOnlySpan<ushort> span) 1893public OperationStatus DecodeWithWhiteSpaceBlockwiseWrapper<TBase64Decoder>(TBase64Decoder decoder, ReadOnlySpan<ushort> source,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64EncoderHelper.cs (5)
20internal static unsafe OperationStatus EncodeTo<TBase64Encoder, T>(TBase64Encoder encoder, ReadOnlySpan<byte> source, 722public ReadOnlySpan<byte> EncodingMap => "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"u8; 728public ReadOnlySpan<byte> AdvSimdLut4 => "wxyz0123456789+/"u8; 818public ReadOnlySpan<byte> EncodingMap => default(Base64EncoderByte).EncodingMap; 824public ReadOnlySpan<byte> AdvSimdLut4 => default(Base64EncoderByte).AdvSimdLut4;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64Helper.cs (14)
83ReadOnlySpan<byte> EncodingMap { get; } 86ReadOnlySpan<byte> AdvSimdLut4 { get; } 107ReadOnlySpan<sbyte> DecodingMap { get; } 108ReadOnlySpan<uint> VbmiLookup0 { get; } 109ReadOnlySpan<uint> VbmiLookup1 { get; } 110ReadOnlySpan<sbyte> Avx2LutHigh { get; } 111ReadOnlySpan<sbyte> Avx2LutLow { get; } 112ReadOnlySpan<sbyte> Avx2LutShift { get; } 114ReadOnlySpan<int> Vector128LutHigh { get; } 115ReadOnlySpan<int> Vector128LutLow { get; } 116ReadOnlySpan<uint> Vector128LutShift { get; } 117ReadOnlySpan<uint> AdvSimdLutOne3 { get; } 151int IndexOfAnyExceptWhiteSpace(ReadOnlySpan<T> span); 152OperationStatus DecodeWithWhiteSpaceBlockwiseWrapper<TTBase64Decoder>(TTBase64Decoder decoder, ReadOnlySpan<T> source,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64ValidatorHelper.cs (4)
10internal static bool IsValid<T, TBase64Validatable>(TBase64Validatable validatable, ReadOnlySpan<T> base64Text, out int decodedLength) 134int IndexOfAnyExcept(ReadOnlySpan<T> span); 148public int IndexOfAnyExcept(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(s_validBase64Chars); 173public int IndexOfAnyExcept(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(s_validBase64Chars);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Url\Base64UrlDecoder.cs (32)
68public static OperationStatus DecodeFromUtf8(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesConsumed, out int bytesWritten, bool isFinalBlock = true) => 117public static int DecodeFromUtf8(ReadOnlySpan<byte> source, Span<byte> destination) 144public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 164public static unsafe byte[] DecodeFromUtf8(ReadOnlySpan<byte> source) 202public static OperationStatus DecodeFromChars(ReadOnlySpan<char> source, Span<byte> destination, 216public static int DecodeFromChars(ReadOnlySpan<char> source, Span<byte> destination) 243public static bool TryDecodeFromChars(ReadOnlySpan<char> source, Span<byte> destination, out int bytesWritten) 262public static unsafe byte[] DecodeFromChars(ReadOnlySpan<char> source) 284public ReadOnlySpan<sbyte> DecodingMap => 304public ReadOnlySpan<uint> VbmiLookup0 => 312public ReadOnlySpan<uint> VbmiLookup1 => 320public ReadOnlySpan<sbyte> Avx2LutHigh => 332public ReadOnlySpan<sbyte> Avx2LutLow => 344public ReadOnlySpan<sbyte> Avx2LutShift => 358public ReadOnlySpan<int> Vector128LutHigh => [0x392d0000, 0x7a6f5a4f, 0x00000000, 0x00000000]; 360public ReadOnlySpan<int> Vector128LutLow => [0x302d0101, 0x70615041, 0x01010101, 0x01010101]; 362public ReadOnlySpan<uint> Vector128LutShift => [0x04110000, 0xb9b9bfbf, 0x00000000, 0x00000000]; 364public ReadOnlySpan<uint> AdvSimdLutOne3 => [0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFF3EFF]; 479public int IndexOfAnyExceptWhiteSpace(ReadOnlySpan<byte> span) => default(Base64DecoderByte).IndexOfAnyExceptWhiteSpace(span); 483public OperationStatus DecodeWithWhiteSpaceBlockwiseWrapper<TBase64Decoder>(TBase64Decoder decoder, ReadOnlySpan<byte> utf8, Span<byte> bytes, 490public ReadOnlySpan<sbyte> DecodingMap => default(Base64UrlDecoderByte).DecodingMap; 492public ReadOnlySpan<uint> VbmiLookup0 => default(Base64UrlDecoderByte).VbmiLookup0; 494public ReadOnlySpan<uint> VbmiLookup1 => default(Base64UrlDecoderByte).VbmiLookup1; 496public ReadOnlySpan<sbyte> Avx2LutHigh => default(Base64UrlDecoderByte).Avx2LutHigh; 498public ReadOnlySpan<sbyte> Avx2LutLow => default(Base64UrlDecoderByte).Avx2LutLow; 500public ReadOnlySpan<sbyte> Avx2LutShift => default(Base64UrlDecoderByte).Avx2LutShift; 504public ReadOnlySpan<int> Vector128LutHigh => default(Base64UrlDecoderByte).Vector128LutHigh; 506public ReadOnlySpan<int> Vector128LutLow => default(Base64UrlDecoderByte).Vector128LutLow; 508public ReadOnlySpan<uint> Vector128LutShift => default(Base64UrlDecoderByte).Vector128LutShift; 510public ReadOnlySpan<uint> AdvSimdLutOne3 => default(Base64UrlDecoderByte).AdvSimdLutOne3; 566public int IndexOfAnyExceptWhiteSpace(ReadOnlySpan<ushort> span) => default(Base64DecoderChar).IndexOfAnyExceptWhiteSpace(span); 570public OperationStatus DecodeWithWhiteSpaceBlockwiseWrapper<TBase64Decoder>(TBase64Decoder decoder, ReadOnlySpan<ushort> source, Span<byte> bytes,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Url\Base64UrlEncoder.cs (17)
30public static OperationStatus EncodeToUtf8(ReadOnlySpan<byte> source, 42/// <see cref="EncodeToChars(ReadOnlySpan{byte}, Span{char})"/> 44/// <see cref="EncodeToUtf8(ReadOnlySpan{byte}, Span{byte})"/>. 77public static int EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> destination) 96public static byte[] EncodeToUtf8(ReadOnlySpan<byte> source) 116public static OperationStatus EncodeToChars(ReadOnlySpan<byte> source, Span<char> destination, 128public static int EncodeToChars(ReadOnlySpan<byte> source, Span<char> destination) 147public static char[] EncodeToChars(ReadOnlySpan<byte> source) 162public static unsafe string EncodeToString(ReadOnlySpan<byte> source) 169ReadOnlySpan<byte> source = *(ReadOnlySpan<byte>*)spanPtr; 190public static bool TryEncodeToChars(ReadOnlySpan<byte> source, Span<char> destination, out int charsWritten) 205public static bool TryEncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 232public ReadOnlySpan<byte> EncodingMap => "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"u8; 238public ReadOnlySpan<byte> AdvSimdLut4 => "wxyz0123456789-_"u8; 324public ReadOnlySpan<byte> EncodingMap => default(Base64UrlEncoderByte).EncodingMap; 330public ReadOnlySpan<byte> AdvSimdLut4 => default(Base64UrlEncoderByte).AdvSimdLut4;
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Validator.cs (4)
19public static bool IsValid(ReadOnlySpan<char> base64Text) => 32public static bool IsValid(ReadOnlySpan<char> base64Text, out int decodedLength) => 43public static bool IsValid(ReadOnlySpan<byte> base64TextUtf8) => 55public static bool IsValid(ReadOnlySpan<byte> base64TextUtf8, out int decodedLength) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\FormattingHelpers.CountDigits.cs (3)
18ReadOnlySpan<byte> log2ToPow10 = 30ReadOnlySpan<ulong> powersOf10 = 67ReadOnlySpan<long> table =
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Formatter\Utf8Formatter.TimeSpan.cs (1)
33ReadOnlySpan<byte> decimalSeparator = default;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\ParserHelpers.cs (1)
60public static bool TryParseThrowFormatException<T>(ReadOnlySpan<byte> _, out T value, out int bytesConsumed) where T : struct
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Boolean.cs (1)
27public static bool TryParse(ReadOnlySpan<byte> source, out bool value, out int bytesConsumed, char standardFormat = default)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Date.cs (2)
32public static bool TryParse(ReadOnlySpan<byte> source, out DateTime value, out int bytesConsumed, char standardFormat = default) 121public static bool TryParse(ReadOnlySpan<byte> source, out DateTimeOffset value, out int bytesConsumed, char standardFormat = default)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Date.Default.cs (1)
16private static bool TryParseDateTimeOffsetDefault(ReadOnlySpan<byte> source, out DateTimeOffset value, out int bytesConsumed)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Date.G.cs (1)
15private static bool TryParseDateTimeG(ReadOnlySpan<byte> source, out DateTime value, out DateTimeOffset valueAsOffset, out int bytesConsumed)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Date.Helpers.cs (1)
164ReadOnlySpan<int> days = DateTime.IsLeapYear(year) ? GregorianCalendar.DaysToMonth366 : GregorianCalendar.DaysToMonth365;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Date.O.cs (1)
19private static bool TryParseDateTimeOffsetO(ReadOnlySpan<byte> source, out DateTimeOffset value, out int bytesConsumed, out DateTimeKind kind)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Date.R.cs (1)
15private static bool TryParseDateTimeOffsetR(ReadOnlySpan<byte> source, uint caseFlipXorMask, out DateTimeOffset dateTimeOffset, out int bytesConsumed)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Decimal.cs (1)
28public static unsafe bool TryParse(ReadOnlySpan<byte> source, out decimal value, out int bytesConsumed, char standardFormat = default)
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Guid.cs (3)
29public static bool TryParse(ReadOnlySpan<byte> source, out Guid value, out int bytesConsumed, char standardFormat = default) 54private static bool TryParseGuidN(ReadOnlySpan<byte> text, out Guid value, out int bytesConsumed) 105private static bool TryParseGuidCore(ReadOnlySpan<byte> source, out Guid value, out int bytesConsumed, int ends)
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Signed.D.cs (4)
8private static bool TryParseSByteD(ReadOnlySpan<byte> source, out sbyte value, out int bytesConsumed) 93private static bool TryParseInt16D(ReadOnlySpan<byte> source, out short value, out int bytesConsumed) 194private static bool TryParseInt32D(ReadOnlySpan<byte> source, out int value, out int bytesConsumed) 337private static bool TryParseInt64D(ReadOnlySpan<byte> source, out long value, out int bytesConsumed)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Signed.N.cs (4)
8private static bool TryParseSByteN(ReadOnlySpan<byte> source, out sbyte value, out int bytesConsumed) 100private static bool TryParseInt16N(ReadOnlySpan<byte> source, out short value, out int bytesConsumed) 192private static bool TryParseInt32N(ReadOnlySpan<byte> source, out int value, out int bytesConsumed) 287private static bool TryParseInt64N(ReadOnlySpan<byte> source, out long value, out int bytesConsumed)
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Unsigned.D.cs (4)
8private static bool TryParseByteD(ReadOnlySpan<byte> source, out byte value, out int bytesConsumed) 74private static bool TryParseUInt16D(ReadOnlySpan<byte> source, out ushort value, out int bytesConsumed) 156private static bool TryParseUInt32D(ReadOnlySpan<byte> source, out uint value, out int bytesConsumed) 278private static bool TryParseUInt64D(ReadOnlySpan<byte> source, out ulong value, out int bytesConsumed)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Unsigned.N.cs (4)
11private static bool TryParseByteN(ReadOnlySpan<byte> source, out byte value, out int bytesConsumed) 92private static bool TryParseUInt16N(ReadOnlySpan<byte> source, out ushort value, out int bytesConsumed) 173private static bool TryParseUInt32N(ReadOnlySpan<byte> source, out uint value, out int bytesConsumed) 254private static bool TryParseUInt64N(ReadOnlySpan<byte> source, out ulong value, out int bytesConsumed)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Unsigned.X.cs (8)
8private static bool TryParseByteX(ReadOnlySpan<byte> source, out byte value, out int bytesConsumed) 19ReadOnlySpan<byte> hexLookup = HexConverter.CharToHexLookup; 90private static bool TryParseUInt16X(ReadOnlySpan<byte> source, out ushort value, out int bytesConsumed) 101ReadOnlySpan<byte> hexLookup = HexConverter.CharToHexLookup; 172private static bool TryParseUInt32X(ReadOnlySpan<byte> source, out uint value, out int bytesConsumed) 183ReadOnlySpan<byte> hexLookup = HexConverter.CharToHexLookup; 254private static bool TryParseUInt64X(ReadOnlySpan<byte> source, out ulong value, out int bytesConsumed) 265ReadOnlySpan<byte> hexLookup = HexConverter.CharToHexLookup;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Number.cs (1)
16private static bool TryParseNumber(ReadOnlySpan<byte> source, ref Number.NumberBuffer number, out int bytesConsumed, ParseNumberOptions options, out bool textUsedExponentNotation)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.TimeSpan.BigG.cs (1)
8private static bool TryParseTimeSpanBigG(ReadOnlySpan<byte> source, out TimeSpan value, out int bytesConsumed)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.TimeSpan.C.cs (1)
8private static bool TryParseTimeSpanC(ReadOnlySpan<byte> source, out TimeSpan value, out int bytesConsumed)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.TimeSpan.cs (2)
30public static bool TryParse(ReadOnlySpan<byte> source, out TimeSpan value, out int bytesConsumed, char standardFormat = default) => 43private static bool TryParseTimeSpanFraction(ReadOnlySpan<byte> source, out uint value, out int bytesConsumed)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.TimeSpan.LittleG.cs (1)
8private static bool TryParseTimeSpanLittleG(ReadOnlySpan<byte> source, out TimeSpan value, out int bytesConsumed)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.TimeSpanSplitter.cs (2)
35public bool TrySplitTimeSpan(ReadOnlySpan<byte> source, bool periodUsedToSeparateDay, out int bytesConsumed) 179private static ComponentParseResult ParseComponent(ReadOnlySpan<byte> source, bool neverParseAsFraction, ref int srcIndex, out uint value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (26)
109public static byte Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 117public static bool TryParse(ReadOnlySpan<char> s, out byte result) => TryParse(s, NumberStyles.Integer, provider: null, out result); 123public static bool TryParse(ReadOnlySpan<byte> utf8Text, out byte result) => TryParse(utf8Text, NumberStyles.Integer, provider: null, out result); 131public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out byte result) 157public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 163public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 294/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 295static bool IBinaryInteger<byte>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out byte value) 327/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 328static bool IBinaryInteger<byte>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out byte value) 1121/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{char}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1122public static bool TryParsePartial(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out byte result, out int charsConsumed) 1128/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1129public static bool TryParsePartial(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out byte result, out int bytesConsumed) 1159/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1160public static byte Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Integer, provider); 1162/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1163public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out byte result) => TryParse(s, NumberStyles.Integer, provider, out result); 1196/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1197public static byte Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 1203/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 1204public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out byte result) 1210/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 1211public static byte Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Integer, provider); 1213/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 1214public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out byte result) => TryParse(utf8Text, NumberStyles.Integer, provider, out result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (21)
60private static ReadOnlySpan<byte> Latin1CharInfo => 146ReadOnlySpan<char> thisCharsSlice = [this]; 147ReadOnlySpan<char> otherCharsSlice = [other]; 198bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) 212bool IUtf8SpanFormattable.TryFormat(Span<byte> utf8Destination, out int bytesWritten, ReadOnlySpan<char> format, IFormatProvider? provider) 226internal static char Parse(ReadOnlySpan<char> s) 245internal static bool TryParse(ReadOnlySpan<char> s, out char result) 257/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 258static char IUtf8SpanParsable<char>.Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) 274/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 275static bool IUtf8SpanParsable<char>.TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out char result) 1251/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 1252static bool IBinaryInteger<char>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out char value) 1292/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 1293static bool IBinaryInteger<char>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out char value) 1565static char INumberBase<char>.Parse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider) => Parse(s); 1985static bool INumberBase<char>.TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out char result) => TryParse(s, out result); 1999static bool INumberBase<char>.TryParsePartial(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out char result, out int charsConsumed) 2011static bool INumberBase<char>.TryParsePartial(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out char result, out int bytesConsumed) 2051static char ISpanParsable<char>.Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s); 2053static bool ISpanParsable<char>.TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out char result) => TryParse(s, out result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\CodeDom\Compiler\IndentedTextWriter.cs (2)
192public override void Write([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg) 404public override void WriteLine([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (8)
163public BitArray(ReadOnlySpan<byte> bytes) 168private static byte[] CreateArray(ReadOnlySpan<byte> bytes, out int bitLength) 206public BitArray(ReadOnlySpan<bool> values) 211private static byte[] CreateArray(ReadOnlySpan<bool> values, out int bitLength) 228ReadOnlySpan<byte> valuesAsBytes = MemoryMarshal.AsBytes(values); 324public BitArray(ReadOnlySpan<int> values) 329private static byte[] CreateArray(ReadOnlySpan<int> values, out int bitLength) 805ReadOnlySpan<byte> source = _array.AsSpan(0, byteLength);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\CollectionExtensions.cs (2)
96public static void AddRange<T>(this List<T> list, params ReadOnlySpan<T> source) 123public static void InsertRange<T>(this List<T> list, int index, params ReadOnlySpan<T> source)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (1)
157ReadOnlySpan<KeyValuePair<TKey, TValue>> span;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\EqualityComparer.cs (4)
295IAlternateEqualityComparer<ReadOnlySpan<char>, string>, 325public bool Equals(ReadOnlySpan<char> span, string target) 336public int GetHashCode(ReadOnlySpan<char> span) => string.GetHashCode(span); 338public string Create(ReadOnlySpan<char> span) => span.ToString();
src\runtime\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\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyCollection.cs (2)
247public static ReadOnlyCollection<T> CreateCollection<T>(params ReadOnlySpan<T> values) => 258public static ReadOnlySet<T> CreateSet<T>(params ReadOnlySpan<T> values)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Convert.cs (14)
2342public static string ToBase64String(ReadOnlySpan<byte> bytes, Base64FormattingOptions options = Base64FormattingOptions.None) 2416public static bool TryToBase64Chars(ReadOnlySpan<byte> bytes, Span<char> chars, out int charsWritten, Base64FormattingOptions options = Base64FormattingOptions.None) 2453private static int ConvertToBase64WithLineBreaks(Span<char> destination, ReadOnlySpan<byte> source) 2534public static bool TryFromBase64Chars(ReadOnlySpan<char> chars, Span<byte> bytes, out int bytesWritten) 2583public static byte[] FromHexString(ReadOnlySpan<char> chars) 2609public static byte[] FromHexString(ReadOnlySpan<byte> utf8Source) 2657public static OperationStatus FromHexString(ReadOnlySpan<char> source, Span<byte> destination, out int charsConsumed, out int bytesWritten) 2713public static OperationStatus FromHexString(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesConsumed, out int bytesWritten) 2797public static string ToHexString(ReadOnlySpan<byte> bytes) 2813public static bool TryToHexString(ReadOnlySpan<byte> source, Span<char> destination, out int charsWritten) 2836public static bool TryToHexString(ReadOnlySpan<byte> source, Span<byte> utf8Destination, out int bytesWritten) 2892public static string ToHexStringLower(ReadOnlySpan<byte> bytes) 2908public static bool TryToHexStringLower(ReadOnlySpan<byte> source, Span<char> destination, out int charsWritten) 2931public static bool TryToHexStringLower(ReadOnlySpan<byte> source, Span<byte> utf8Destination, out int bytesWritten)
src\runtime\src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (25)
287public static DateOnly Parse(ReadOnlySpan<char> s, IFormatProvider? provider = default, DateTimeStyles style = DateTimeStyles.None) 315public static DateOnly ParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] ReadOnlySpan<char> format, IFormatProvider? provider = default, DateTimeStyles style = DateTimeStyles.None) 339public static DateOnly ParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] string[] formats) => ParseExact(s, formats, null, DateTimeStyles.None); 350public static DateOnly ParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] string[] formats, IFormatProvider? provider, DateTimeStyles style = DateTimeStyles.None) 455public static bool TryParse(ReadOnlySpan<char> s, out DateOnly result) => TryParse(s, null, DateTimeStyles.None, out result); 465public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, DateTimeStyles style, out DateOnly result) 476private static ParseFailureKind TryParseInternal(ReadOnlySpan<char> s, IFormatProvider? provider, DateTimeStyles style, out DateOnly result) 505public static bool TryParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] ReadOnlySpan<char> format, out DateOnly result) => TryParseExact(s, format, null, DateTimeStyles.None, out result); 517public static bool TryParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] ReadOnlySpan<char> format, IFormatProvider? provider, DateTimeStyles style, out DateOnly result) 535private static ParseFailureKind TryParseExactInternal(ReadOnlySpan<char> s, ReadOnlySpan<char> format, IFormatProvider? provider, DateTimeStyles style, out DateOnly result) 582public static bool TryParseExact(ReadOnlySpan<char> s, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] string?[]? formats, out DateOnly result) => TryParseExact(s, formats, null, DateTimeStyles.None, out result); 593public static bool TryParseExact(ReadOnlySpan<char> s, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] string?[]? formats, IFormatProvider? provider, DateTimeStyles style, out DateOnly result) 617private static ParseFailureKind TryParseExactInternal(ReadOnlySpan<char> s, string?[]? formats, IFormatProvider? provider, DateTimeStyles style, out DateOnly result) 750private static void ThrowOnError(ParseFailureKind result, ReadOnlySpan<char> s) 844public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) => 848public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) => 851private bool TryFormatCore<TChar>(Span<TChar> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] ReadOnlySpan<char> format, IFormatProvider? provider = null) 902/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 903public static DateOnly Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, provider, DateTimeStyles.None); 905/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 906public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out DateOnly result) => TryParse(s, provider, DateTimeStyles.None, out result);
src\runtime\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; 1593public static DateTime Parse(ReadOnlySpan<char> s, IFormatProvider? provider = null, DateTimeStyles styles = DateTimeStyles.None) 1622public static DateTime ParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.DateTimeFormat)] ReadOnlySpan<char> format, IFormatProvider? provider, DateTimeStyles style = DateTimeStyles.None) 1635public static DateTime ParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.DateTimeFormat)] string[] formats, IFormatProvider? provider, DateTimeStyles style = DateTimeStyles.None) 1764public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.DateTimeFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) => 1768public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.DateTimeFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) => 1784public static bool TryParse(ReadOnlySpan<char> s, out DateTime result) 1802public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, DateTimeStyles styles, out DateTime result) 1821public static bool TryParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.DateTimeFormat)] ReadOnlySpan<char> format, IFormatProvider? provider, DateTimeStyles style, out DateTime result) 1840public static bool TryParseExact(ReadOnlySpan<char> s, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.DateTimeFormat)] string?[]? formats, IFormatProvider? provider, DateTimeStyles style, out DateTime result) 2001ReadOnlySpan<uint> days = IsLeapYear(year) ? DaysToMonth366 : DaysToMonth365; 2055/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 2056public static DateTime Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, provider, DateTimeStyles.None); 2058/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 2059public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out DateTime result) => TryParse(s, provider, DateTimeStyles.None, out result);
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (25)
283this((ReadOnlySpan<int>)(bits ?? throw new ArgumentNullException(nameof(bits)))) 292public Decimal(ReadOnlySpan<int> bits) 503public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 509public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 536public static decimal Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Number, IFormatProvider? provider = null) 544public static bool TryParse(ReadOnlySpan<char> s, out decimal result) => TryParse(s, NumberStyles.Number, provider: null, out result); 550public static bool TryParse(ReadOnlySpan<byte> utf8Text, out decimal result) => TryParse(utf8Text, NumberStyles.Number, provider: null, out result); 558public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out decimal result) 633internal static decimal ToDecimal(ReadOnlySpan<byte> span) 1802/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{char}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1803public static bool TryParsePartial(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out decimal result, out int charsConsumed) 1809/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1810public static bool TryParsePartial(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out decimal result, out int bytesConsumed) 1834/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1835public static decimal Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Number, provider); 1837/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1838public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out decimal result) => TryParse(s, NumberStyles.Number, provider, out result); 1844/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1845public static decimal Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Number, IFormatProvider? provider = null) 1851/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 1852public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out decimal result) 1858/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 1859public static decimal Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Number, provider); 1861/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 1862public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out decimal result) => TryParse(utf8Text, NumberStyles.Number, provider, out result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.DecCalc.cs (6)
113private static ReadOnlySpan<uint> UInt32Powers10 => 128private static ReadOnlySpan<ulong> UInt64Powers10 => 151private static ReadOnlySpan<double> DoublePowers10 => 1914ReadOnlySpan<ulong> pow5 = 2591private static ReadOnlySpan<uint> PowerOvflHi => 2604private static ReadOnlySpan<ulong> PowerOvflMidLo =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\DefaultBinder.cs (12)
57ReadOnlySpan<ParameterInfo> par = candidates[i]!.GetParametersAsSpan(); 109ReadOnlySpan<ParameterInfo> par = candidates[i]!.GetParametersAsSpan(); 311ReadOnlySpan<ParameterInfo> parms = candidates[0]!.GetParametersAsSpan(); 402ReadOnlySpan<ParameterInfo> parameters = bestMatch.GetParametersAsSpan(); 567ReadOnlySpan<ParameterInfo> par = candidates[i].GetParametersAsSpan(); 802ReadOnlySpan<ParameterInfo> par = match[i].GetParametersAsSpan(); 866private static int FindMostSpecific(ReadOnlySpan<ParameterInfo> p1, int[] paramOrder1, Type? paramArrayType1, 867ReadOnlySpan<ParameterInfo> p2, int[] paramOrder2, Type? paramArrayType2, 1101ReadOnlySpan<ParameterInfo> params1 = m1.GetParametersAsSpan(); 1102ReadOnlySpan<ParameterInfo> params2 = m2.GetParametersAsSpan(); 1186private static bool CreateParamOrder(int[] paramOrder, ReadOnlySpan<ParameterInfo> pars, string[] names) 1246private static ReadOnlySpan<Primitives> PrimitiveConversions =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Delegate.cs (10)
134Combine((ReadOnlySpan<Delegate?>)delegates); 145public static Delegate? Combine(params ReadOnlySpan<Delegate?> delegates) 265if (!TryGetInvocations(out ReadOnlySpan<Wrapper> invocations)) 282if (TryGetInvocations(out ReadOnlySpan<Wrapper> invocations)) 323ReadOnlySpan<Wrapper> followList = d.TryGetInvocations(out ReadOnlySpan<Wrapper> span) ? span : new ReadOnlySpan<Wrapper>(ref wrapper); 325if (!TryGetInvocations(out ReadOnlySpan<Wrapper> invocationList)) 363private static Wrapper[] DeleteFromInvocationList(ReadOnlySpan<Wrapper> invocationList, int deleteIndex, int deleteCount) 385bool isMulticast = TryGetInvocations(out ReadOnlySpan<Wrapper> invocationList); 387if (!d.TryGetInvocations(out ReadOnlySpan<Wrapper> otherInvocations))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Debug.cs (4)
348public void AppendFormatted(ReadOnlySpan<char> value) => _stringBuilderHandler.AppendFormatted(value); 354public void AppendFormatted(ReadOnlySpan<char> value, int alignment = 0, string? format = null) => _stringBuilderHandler.AppendFormatted(value, alignment, format); 443public void AppendFormatted(ReadOnlySpan<char> value) => _stringBuilderHandler.AppendFormatted(value); 449public void AppendFormatted(ReadOnlySpan<char> value, int alignment = 0, string? format = null) => _stringBuilderHandler.AppendFormatted(value, alignment, format);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeEventDispatcher.cs (1)
165ReadOnlySpan<byte> payload = new ReadOnlySpan<byte>((void*)instanceData.Payload, (int)instanceData.PayloadLength);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipePayloadDecoder.cs (2)
15internal static object[] DecodePayload(ref EventSource.EventMetadata metadata, ReadOnlySpan<byte> payload) 118ReadOnlySpan<char> charPayload;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (2)
1770ReadOnlySpan<byte> namespaceBytes = 3108foreach (string providerEnumKind in (ReadOnlySpan<string>)["Keywords", "Tasks", "Opcodes"])
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ManifestBuilder.cs (2)
460ReadOnlySpan<char> hexValueFormatted = ulongHexScratch.Slice(0, charsWritten); 507ReadOnlySpan<char> keywordFormatted = ulongHexScratch.Slice(0, charsWritten);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\NativeRuntimeEventSource.cs (1)
47internal unsafe void ProcessEvent(uint eventID, uint osThreadID, DateTime timeStamp, Guid activityId, Guid childActivityId, ReadOnlySpan<byte> payload)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventSource.cs (5)
21private protected virtual ReadOnlySpan<byte> ProviderMetadata => m_providerMetadata; 435var providerMetadata = ProviderMetadata; 542var providerMetadata = ProviderMetadata; 613var providerMetadata = ProviderMetadata; 750ReadOnlySpan<char> etwTrait = m_traits[i].AsSpan(4);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (23)
380public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 386public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 414public static double Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Float | NumberStyles.AllowThousands, IFormatProvider? provider = null) 422public static bool TryParse(ReadOnlySpan<char> s, out double result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider: null, out result); 426/// <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> 428public static bool TryParse(ReadOnlySpan<byte> utf8Text, out double result) => TryParse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider: null, out result); 436public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out double result) 1547/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{char}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1548public static bool TryParsePartial(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out double result, out int charsConsumed) 1554/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1555public static bool TryParsePartial(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out double result, out int bytesConsumed) 1879/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1880public static double Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider); 1882/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1883public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out double result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider, out result); 2575/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 2576public static double Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Float | NumberStyles.AllowThousands, IFormatProvider? provider = null) 2582/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 2583public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out double result) 2589/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 2590public static double Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider); 2592/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 2593public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out double result) => TryParse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider, out result);
src\runtime\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; 1688bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) 1748public static unsafe bool TryFormat<TEnum>(TEnum value, Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.EnumFormat)] ReadOnlySpan<char> format = default) where TEnum : struct 1804internal static unsafe bool TryFormatUnconstrained<TEnum>(TEnum value, Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.EnumFormat)] ReadOnlySpan<char> format = default) 1892private static bool TryFormatPrimitiveNonDefault<TUnderlying, TStorage>(RuntimeType enumType, TUnderlying value, Span<char> destination, out int charsWritten, ReadOnlySpan<char> format) 2108private static void WriteMultipleFoundFlagsNames(string[] names, ReadOnlySpan<int> foundItems, Span<char> destination) 2254ReadOnlySpan<byte> rawData = MemoryMarshal.AsBytes(new ReadOnlySpan<long>(ref value));
src\runtime\src\libraries\System.Private.CoreLib\src\System\GCMemoryInfo.cs (2)
181public ReadOnlySpan<TimeSpan> PauseDurations => _data._pauseDurations; 191public ReadOnlySpan<GCGenerationInfo> GenerationInfo => _data._generationInfo;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Icu.cs (1)
445ReadOnlySpan<char> calendarStringSpan = MemoryMarshal.CreateReadOnlySpanFromNullTerminated(calendarStringPtr);
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CharUnicodeInfo.cs (3)
51return GetBidiCategory((ReadOnlySpan<char>)s, index); 94internal static StrongBidiCategory GetBidiCategory(ReadOnlySpan<char> s, int index) 436private static int GetCodePoint(ReadOnlySpan<char> s, int index)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CharUnicodeInfoData.cs (12)
23private static ReadOnlySpan<byte> CategoryCasingLevel1Index => // 2176 163private static ReadOnlySpan<byte> CategoryCasingLevel2Index => // 6976 603private static ReadOnlySpan<byte> CategoryCasingLevel3Index => // 12864 1412private static ReadOnlySpan<byte> CategoriesValues => // 248 1433private static ReadOnlySpan<byte> UppercaseValues => // 496 1469private static ReadOnlySpan<byte> LowercaseValues => // 496 1514private static ReadOnlySpan<byte> NumericGraphemeLevel1Index => // 2176 1654private static ReadOnlySpan<byte> NumericGraphemeLevel2Index => // 5504 2002private static ReadOnlySpan<byte> NumericGraphemeLevel3Index => // 7344 2466private static ReadOnlySpan<byte> DigitValues => // 177 2483private static ReadOnlySpan<byte> NumericValues => // 1416 2577private static ReadOnlySpan<byte> GraphemeSegmentationValues => // 177
src\runtime\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 unsafe 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\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Icu.cs (27)
22ReadOnlySpan<bool> highCharTable = HighCharTable; 69private unsafe int IcuCompareString(ReadOnlySpan<char> string1, ReadOnlySpan<char> string2, CompareOptions options) 85private unsafe int IcuIndexOfCore(ReadOnlySpan<char> source, ReadOnlySpan<char> target, CompareOptions options, int* matchLengthPtr, bool fromBeginning) 122private unsafe int IndexOfOrdinalIgnoreCaseHelper(ReadOnlySpan<char> source, ReadOnlySpan<char> target, CompareOptions options, int* matchLengthPtr, bool fromBeginning) 214ReadOnlySpan<char> remainingSource = fromBeginning 237private unsafe int IndexOfOrdinalHelper(ReadOnlySpan<char> source, ReadOnlySpan<char> target, CompareOptions options, int* matchLengthPtr, bool fromBeginning) 332private unsafe bool IcuStartsWith(ReadOnlySpan<char> source, ReadOnlySpan<char> prefix, CompareOptions options, int* matchLengthPtr) 361private unsafe bool StartsWithOrdinalIgnoreCaseHelper(ReadOnlySpan<char> source, ReadOnlySpan<char> prefix, CompareOptions options, int* matchLengthPtr) 443private unsafe bool StartsWithOrdinalHelper(ReadOnlySpan<char> source, ReadOnlySpan<char> prefix, CompareOptions options, int* matchLengthPtr) 516private unsafe bool IcuEndsWith(ReadOnlySpan<char> source, ReadOnlySpan<char> suffix, CompareOptions options, int* matchLengthPtr) 545private unsafe bool EndsWithOrdinalIgnoreCaseHelper(ReadOnlySpan<char> source, ReadOnlySpan<char> suffix, CompareOptions options, int* matchLengthPtr) 628private unsafe bool EndsWithOrdinalHelper(ReadOnlySpan<char> source, ReadOnlySpan<char> suffix, CompareOptions options, int* matchLengthPtr) 759private unsafe int IcuGetSortKey(ReadOnlySpan<char> source, Span<byte> destination, CompareOptions options) 808private unsafe int IcuGetSortKeyLength(ReadOnlySpan<char> source, CompareOptions options) 838private static bool IcuIsSortable(ReadOnlySpan<char> text) 863private unsafe int IcuGetHashCodeOfString(ReadOnlySpan<char> source, CompareOptions options) 1011private static ReadOnlySpan<bool> HighCharTable => // 0x80
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Invariant.cs (5)
44private static void InvariantCreateSortKeyOrdinal(ReadOnlySpan<char> source, Span<byte> sortKey) 56private static void InvariantCreateSortKeyOrdinalIgnoreCase(ReadOnlySpan<char> source, Span<byte> sortKey) 84private static int InvariantGetSortKey(ReadOnlySpan<char> source, Span<byte> destination, CompareOptions options) 110private static int InvariantGetSortKeyLength(ReadOnlySpan<char> source, CompareOptions options) 131private static int InvariantGetHashCode(ReadOnlySpan<char> source, CompareOptions options)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Nls.cs (18)
47ReadOnlySpan<char> source, 48ReadOnlySpan<char> value, 78internal static int NlsIndexOfOrdinalCore(ReadOnlySpan<char> source, ReadOnlySpan<char> value, bool ignoreCase, bool fromBeginning) 107private unsafe int NlsGetHashCodeOfString(ReadOnlySpan<char> source, CompareOptions options) 196private unsafe int NlsCompareString(ReadOnlySpan<char> string1, ReadOnlySpan<char> string2, CompareOptions options) 248ReadOnlySpan<char> lpStringSource, 249ReadOnlySpan<char> lpStringValue, 297private unsafe int NlsIndexOfCore(ReadOnlySpan<char> source, ReadOnlySpan<char> target, CompareOptions options, int* matchLengthPtr, bool fromBeginning) 308private unsafe bool NlsStartsWith(ReadOnlySpan<char> source, ReadOnlySpan<char> prefix, CompareOptions options, int* matchLengthPtr) 329private unsafe bool NlsEndsWith(ReadOnlySpan<char> source, ReadOnlySpan<char> suffix, CompareOptions options, int* matchLengthPtr) 411private unsafe int NlsGetSortKey(ReadOnlySpan<char> source, Span<byte> destination, CompareOptions options) 474private unsafe int NlsGetSortKeyLength(ReadOnlySpan<char> source, CompareOptions options) 517private static unsafe bool NlsIsSortable(ReadOnlySpan<char> text)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Utf8.cs (4)
25internal bool IsPrefixUtf8(ReadOnlySpan<byte> source, ReadOnlySpan<byte> prefix, CompareOptions options = CompareOptions.None) 75private unsafe bool StartsWithCoreUtf8(ReadOnlySpan<byte> source, ReadOnlySpan<byte> prefix, CompareOptions options)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (6)
33private static unsafe string NormalizeCultureName(string name, ReadOnlySpan<char> extension, string originalName, out int collationStart) 130ReadOnlySpan<char> alternateSortName = realNameBuffer.AsSpan(index + 1); 155_sRealName = NormalizeCultureName(_sWindowsName, indexOfExtensions > 0 ? _sRealName.AsSpan(indexOfExtensions) : ReadOnlySpan<char>.Empty, _sRealName, out int collationStart); 305ReadOnlySpan<char> span; 365private static unsafe string ConvertIcuTimeFormatString(ReadOnlySpan<char> icuFormatString) 384static bool HandleQuoteLiteral(ReadOnlySpan<char> icuFormatString, ref int i, Span<char> result, ref int resultPos)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (14)
193internal static int ParseRepeatPattern(ReadOnlySpan<char> format, int pos, char patternChar) 280internal static int ParseQuoteString<TChar>(scoped ReadOnlySpan<char> format, int pos, ref ValueListBuilder<TChar> result) where TChar : unmanaged, IUtfChar<TChar> 359internal static int ParseNextChar(ReadOnlySpan<char> format, int pos) 381private static bool IsUseGenitiveForm(ReadOnlySpan<char> format, int index, int tokenLen, char patternToMatch) 444DateTime dateTime, scoped ReadOnlySpan<char> format, DateTimeFormatInfo dtfi, TimeSpan offset, ref ValueListBuilder<TChar> result) where TChar : unmanaged, IUtfChar<TChar> 805internal static int AppendChar<TChar>(ref ValueListBuilder<TChar> result, scoped ReadOnlySpan<char> value) where TChar : unmanaged, IUtfChar<TChar> 821private static void AppendString<TChar>(ref ValueListBuilder<TChar> result, scoped ReadOnlySpan<char> s) where TChar : unmanaged, IUtfChar<TChar> 825result.Append(Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(s)); 834internal static void FormatFraction<TChar>(ref ValueListBuilder<TChar> result, int fraction, ReadOnlySpan<char> fractionFormat) where TChar : unmanaged, IUtfChar<TChar> 1105internal static bool TryFormat<TChar>(DateTime dateTime, Span<TChar> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) where TChar : unmanaged, IUtfChar<TChar> => 1108internal static bool TryFormat<TChar>(DateTime dateTime, Span<TChar> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider, TimeSpan offset) where TChar : unmanaged, IUtfChar<TChar> 1250internal static bool IsValidCustomDateOnlyFormat(ReadOnlySpan<char> format, bool throwOnError) 1321internal static bool IsValidCustomTimeOnlyFormat(ReadOnlySpan<char> format, bool throwOnError)
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (43)
21internal static DateTime ParseExact(ReadOnlySpan<char> s, ReadOnlySpan<char> format, DateTimeFormatInfo dtfi, DateTimeStyles style) 35internal static DateTime ParseExact(ReadOnlySpan<char> s, ReadOnlySpan<char> format, DateTimeFormatInfo dtfi, DateTimeStyles style, out TimeSpan offset) 51internal static bool TryParseExact(ReadOnlySpan<char> s, ReadOnlySpan<char> format, DateTimeFormatInfo dtfi, DateTimeStyles style, out DateTime result) 66internal static bool TryParseExact(ReadOnlySpan<char> s, ReadOnlySpan<char> format, DateTimeFormatInfo dtfi, DateTimeStyles style, out DateTime result, out TimeSpan offset) 84internal static bool TryParseExact(ReadOnlySpan<char> s, ReadOnlySpan<char> format, DateTimeFormatInfo dtfi, DateTimeStyles style, scoped ref DateTimeResult result) 103internal static DateTime ParseExactMultiple(ReadOnlySpan<char> s, string[] formats, 118internal static DateTime ParseExactMultiple(ReadOnlySpan<char> s, string[] formats, 135internal static bool TryParseExactMultiple(ReadOnlySpan<char> s, string?[]? formats, 154internal static bool TryParseExactMultiple(ReadOnlySpan<char> s, string?[]? formats, 170internal static bool TryParseExactMultiple(ReadOnlySpan<char> s, string?[]? formats, 341private static ReadOnlySpan<DS> DateParsingStates => [ 2436internal static DateTime Parse(ReadOnlySpan<char> s, DateTimeFormatInfo dtfi, DateTimeStyles styles) 2450internal static DateTime Parse(ReadOnlySpan<char> s, DateTimeFormatInfo dtfi, DateTimeStyles styles, out TimeSpan offset) 2466internal static bool TryParse(ReadOnlySpan<char> s, DateTimeFormatInfo dtfi, DateTimeStyles styles, out DateTime result) 2481internal static bool TryParse(ReadOnlySpan<char> s, DateTimeFormatInfo dtfi, DateTimeStyles styles, out DateTime result, out TimeSpan offset) 2502internal static bool TryParse(ReadOnlySpan<char> s, DateTimeFormatInfo dtfi, DateTimeStyles styles, scoped ref DateTimeResult result) 3357private static bool FormatContainsDayOfMonthSpecifier(ReadOnlySpan<char> format) 3408private static bool MatchAbbreviatedMonthName(ref __DTString str, DateTimeFormatInfo dtfi, scoped ref int result, ReadOnlySpan<char> format) 3417ReadOnlySpan<char> span = str.Value.Slice(str.Index); 3509private static bool MatchMonthName(ref __DTString str, DateTimeFormatInfo dtfi, scoped ref int result, ReadOnlySpan<char> format) 3518ReadOnlySpan<char> span = str.Value.Slice(str.Index); 3619ReadOnlySpan<char> span = str.Value.Slice(str.Index); 3686ReadOnlySpan<char> span = str.Value.Slice(str.Index); 3738private static void SetIfStartsWith(ReadOnlySpan<char> span, [ConstantExpected] string match, int matchResult, scoped ref int result, ref int maxMatchStrLen) 4489ReadOnlySpan<char> quotedSpan = enquotedString.AsSpan(); 4611internal static bool TryParseQuoteString(ReadOnlySpan<char> format, int pos, ref ValueStringBuilder result, out int returnValue) 4681ReadOnlySpan<char> s, 4682ReadOnlySpan<char> formatParam, 4907private static bool TryParseFormatR(ReadOnlySpan<char> source, scoped ref DateTimeResult result) 5102private static bool TryParseFormatO(ReadOnlySpan<char> source, scoped ref DateTimeResult result) 5515internal ReadOnlySpan<char> Value; 5533internal __DTString(ReadOnlySpan<char> str, DateTimeFormatInfo dtfi, bool checkDigitToken) : this(str, dtfi) 5538internal __DTString(ReadOnlySpan<char> str, DateTimeFormatInfo dtfi) 6111internal ReadOnlySpan<char> s; 6249internal ReadOnlySpan<char> failureSpanArgument; // initially the original date time string, but may be overwritten 6252internal void Init(ReadOnlySpan<char> originalDateTimeString) 6271SetBadFormatSpecifierFailure(ReadOnlySpan<char>.Empty); 6274internal void SetBadFormatSpecifierFailure(ReadOnlySpan<char> failedFormatSpecifier)
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\GlobalizationMode.cs (6)
65ReadOnlySpan<char> version; 66ReadOnlySpan<char> icuSuffix = default; 84private static string CreateLibraryName(ReadOnlySpan<char> baseName, ReadOnlySpan<char> suffix, ReadOnlySpan<char> extension, ReadOnlySpan<char> version, bool versionAtEnd = false) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\GlobalizationMode.Unix.cs (3)
58private static void LoadAppLocalIcuCore(ReadOnlySpan<char> version, ReadOnlySpan<char> suffix) 68ReadOnlySpan<char> suffixAndSeparator = string.Concat(suffix, ".");
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\GregorianCalendarHelper.cs (2)
231ReadOnlySpan<int> daysArray = (y % 4 == 0 && (y % 100 != 0 || y % 400 == 0)) ? GregorianCalendar.DaysToMonth366 : GregorianCalendar.DaysToMonth365; 298ReadOnlySpan<int> days = ((year % 4 == 0 && (year % 100 != 0 || year % 400 == 0)) ? GregorianCalendar.DaysToMonth366 : GregorianCalendar.DaysToMonth365);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\HebrewCalendar.cs (2)
121private static ReadOnlySpan<byte> HebrewTable => 262private static ReadOnlySpan<byte> LunarMonthLen =>
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\IcuLocaleData.cs (11)
27private static ReadOnlySpan<byte> CultureNames => 613private static ReadOnlySpan<byte> LocalesNamesIndexes => // CulturesCount * 2 1483private static ReadOnlySpan<byte> LcidToCultureNameIndices => // 488 * 4 1950private static ReadOnlySpan<byte> ThreeLetterWindowsLanguageName => 2822private static ReadOnlySpan<byte> NameIndexToNumericData => // CulturesCount * NumericLocaleDataBytesPerRow 3695ReadOnlySpan<byte> indices = LcidToCultureNameIndices; 3751ReadOnlySpan<byte> numericData = NameIndexToNumericData.Slice(index * NumericLocaleDataBytesPerRow, NumericLocaleDataBytesPerRow); 3819ReadOnlySpan<byte> lname = lower_case; 3847private static ReadOnlySpan<byte> GetCultureName(int localeNameIndice) 3849ReadOnlySpan<byte> localesNamesIndexes = LocalesNamesIndexes; 3861private static string GetString(ReadOnlySpan<byte> buffer)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.cs (10)
105public bool TryGetAscii(ReadOnlySpan<char> unicode, Span<char> destination, out int charsWritten) 178public bool TryGetUnicode(ReadOnlySpan<char> ascii, Span<char> destination, out int charsWritten) 212private static string GetStringForOutput(string? originalString, ReadOnlySpan<char> input, ReadOnlySpan<char> output) 246ReadOnlySpan<char> unicode = unicodeString.AsSpan(index, count); 278private bool TryGetAsciiInvariant(ReadOnlySpan<char> unicode, Span<char> destination, out int charsWritten) 322private static bool ValidateStd3AndAscii(ReadOnlySpan<char> unicode, bool bUseStd3, bool bCheckAscii) 411private static string PunycodeEncode(ReadOnlySpan<char> unicode) 635private static int GetCodePoint(ReadOnlySpan<char> s, int index) 678private bool TryGetUnicodeInvariant(ReadOnlySpan<char> ascii, Span<char> destination, out int charsWritten)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.Icu.cs (6)
15ReadOnlySpan<char> unicode = unicodeString.AsSpan(index, count); 52private bool IcuTryGetAsciiCore(ReadOnlySpan<char> unicode, Span<char> destination, out int charsWritten) 82ReadOnlySpan<char> ascii = asciiString.AsSpan(index, count); 99private static string IcuGetUnicodeCore(string asciiString, ReadOnlySpan<char> ascii, uint flags, Span<char> output, bool reattempt) 123private bool IcuTryGetUnicodeCore(ReadOnlySpan<char> ascii, Span<char> destination, out int charsWritten) 166private static void CheckInvalidIdnCharacters(ReadOnlySpan<char> s, uint flags, string paramName)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.Nls.cs (6)
17ReadOnlySpan<char> unicode = unicodeString.AsSpan(index, count); 41private static string NlsGetAsciiCore(string unicodeString, ReadOnlySpan<char> unicode, uint flags, Span<char> output) 55private bool NlsTryGetAsciiCore(ReadOnlySpan<char> unicode, Span<char> destination, out int charsWritten) 91ReadOnlySpan<char> ascii = asciiString.AsSpan(index, count); 115private static string NlsGetUnicodeCore(string asciiString, ReadOnlySpan<char> ascii, uint flags, Span<char> output) 129private bool NlsTryGetUnicodeCore(ReadOnlySpan<char> ascii, Span<char> destination, out int charsWritten)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\InvariantModeCasing.cs (10)
26ReadOnlySpan<char> source = s; 58ReadOnlySpan<char> src = s; 72ReadOnlySpan<char> source = s; 104ReadOnlySpan<char> src = s; 111internal static void ToUpper(ReadOnlySpan<char> source, Span<char> destination) 137internal static void ToLower(ReadOnlySpan<char> source, Span<char> destination) 224internal static unsafe int IndexOfIgnoreCase(ReadOnlySpan<char> source, ReadOnlySpan<char> value) 286internal static unsafe int LastIndexOfIgnoreCase(ReadOnlySpan<char> source, ReadOnlySpan<char> value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.Nls.cs (6)
174ReadOnlySpan<char> valueSpan = value.AsSpan(); 193ReadOnlySpan<char> dataSpan = data; 196ReadOnlySpan<char> eraName = dataSpan[names[0]]; 197ReadOnlySpan<char> abbreviatedEraName = dataSpan[names[1]]; 198ReadOnlySpan<char> englishEraName = dataSpan[names[2]]; 199ReadOnlySpan<char> abbreviatedEnglishEraName = dataSpan[names[3]];
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\JulianCalendar.cs (5)
99ReadOnlySpan<int> days = isLeapYear ? GregorianCalendar.DaysToMonth366 : GregorianCalendar.DaysToMonth365; 146ReadOnlySpan<int> days = leapYear ? GregorianCalendar.DaysToMonth366 : GregorianCalendar.DaysToMonth365; 171ReadOnlySpan<int> days = (year % 4 == 0) ? GregorianCalendar.DaysToMonth366 : GregorianCalendar.DaysToMonth365; 205ReadOnlySpan<int> daysArray = (y % 4 == 0 && (y % 100 != 0 || y % 400 == 0)) ? GregorianCalendar.DaysToMonth366 : GregorianCalendar.DaysToMonth365; 238ReadOnlySpan<int> days = (year % 4 == 0) ? GregorianCalendar.DaysToMonth366 : GregorianCalendar.DaysToMonth365;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\Normalization.cs (3)
11internal static bool IsNormalized(ReadOnlySpan<char> source, NormalizationForm normalizationForm = NormalizationForm.FormC) 43internal static bool TryNormalize(ReadOnlySpan<char> source, Span<char> destination, out int charsWritten, NormalizationForm normalizationForm = NormalizationForm.FormC) 71internal static int GetNormalizedLength(this ReadOnlySpan<char> source, NormalizationForm normalizationForm = NormalizationForm.FormC)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\Normalization.Icu.cs (6)
13private static unsafe bool IcuIsNormalized(ReadOnlySpan<char> source, NormalizationForm normalizationForm) 89ReadOnlySpan<char> result = buffer.Slice(0, realLen); 122private static unsafe bool IcuTryNormalize(ReadOnlySpan<char> source, Span<char> destination, out int charsWritten, NormalizationForm normalizationForm = NormalizationForm.FormC) 168private static unsafe int IcuGetNormalizedLength(ReadOnlySpan<char> source, NormalizationForm normalizationForm) 200private static void ValidateArguments(ReadOnlySpan<char> strInput, string paramName = "strInput") 215private static bool HasInvalidUnicodeSequence(ReadOnlySpan<char> s)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\Normalization.Nls.cs (4)
14private static unsafe bool NlsIsNormalized(ReadOnlySpan<char> source, NormalizationForm normalizationForm) 72ReadOnlySpan<char> result = buffer.Slice(0, realLength); 115private static unsafe bool NlsTryNormalize(ReadOnlySpan<char> source, Span<char> destination, out int charsWritten, NormalizationForm normalizationForm = NormalizationForm.FormC) 165private static unsafe int NlsGetNormalizedLength(ReadOnlySpan<char> source, NormalizationForm normalizationForm)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\NumberFormatInfo.cs (71)
101private static ReadOnlySpan<byte> GetUtf8Span(ref byte[]? utf8Cache, string value) 284internal ReadOnlySpan<TChar> CurrencyDecimalSeparatorTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 288Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_currencyDecimalSeparator) : 289Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(GetUtf8Span(ref _currencyDecimalSeparatorUtf8, _currencyDecimalSeparator)); 376internal ReadOnlySpan<TChar> CurrencyGroupSeparatorTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 380Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_currencyGroupSeparator) : 381Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(GetUtf8Span(ref _currencyGroupSeparatorUtf8, _currencyGroupSeparator)); 398internal ReadOnlySpan<TChar> CurrencySymbolTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 402Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_currencySymbol) : 403Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(GetUtf8Span(ref _currencySymbolUtf8, _currencySymbol)); 442internal ReadOnlySpan<TChar> NaNSymbolTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 446Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_nanSymbol) : 447Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(GetUtf8Span(ref _nanSymbolUtf8, _nanSymbol)); 527internal ReadOnlySpan<TChar> NegativeInfinitySymbolTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 531Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_negativeInfinitySymbol) : 532Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(GetUtf8Span(ref _negativeInfinitySymbolUtf8, _negativeInfinitySymbol)); 550internal ReadOnlySpan<TChar> NegativeSignTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 554Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_negativeSign) : 555Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(GetUtf8Span(ref _negativeSignUtf8, _negativeSign)); 586internal ReadOnlySpan<TChar> NumberDecimalSeparatorTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 590Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_numberDecimalSeparator) : 591Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(GetUtf8Span(ref _numberDecimalSeparatorUtf8, _numberDecimalSeparator)); 607internal ReadOnlySpan<TChar> NumberGroupSeparatorTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 611Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_numberGroupSeparator) : 612Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(GetUtf8Span(ref _numberGroupSeparatorUtf8, _numberGroupSeparator)); 644internal ReadOnlySpan<TChar> PositiveInfinitySymbolTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 648Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_positiveInfinitySymbol) : 649Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(GetUtf8Span(ref _positiveInfinitySymbolUtf8, _positiveInfinitySymbol)); 667internal ReadOnlySpan<TChar> PositiveSignTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 671Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_positiveSign) : 672Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(GetUtf8Span(ref _positiveSignUtf8, _positiveSign)); 703internal ReadOnlySpan<TChar> PercentDecimalSeparatorTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 707Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_percentDecimalSeparator) : 708Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(GetUtf8Span(ref _percentDecimalSeparatorUtf8, _percentDecimalSeparator)); 724internal ReadOnlySpan<TChar> PercentGroupSeparatorTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 728Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_percentGroupSeparator) : 729Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(GetUtf8Span(ref _percentGroupSeparatorUtf8, _percentGroupSeparator)); 745internal ReadOnlySpan<TChar> PercentSymbolTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 749Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_percentSymbol) : 750Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(GetUtf8Span(ref _percentSymbolUtf8, _percentSymbol)); 767internal ReadOnlySpan<TChar> PerMilleSymbolTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 771Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_perMilleSymbol) : 772Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(GetUtf8Span(ref _perMilleSymbolUtf8, _perMilleSymbol));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\Ordinal.cs (11)
311if (!source.TryGetSpan(startIndex, count, out ReadOnlySpan<char> sourceSpan)) 331internal static int IndexOfOrdinalIgnoreCase(ReadOnlySpan<char> source, ReadOnlySpan<char> value) 635if (!source.TryGetSpan(startIndex, count, out ReadOnlySpan<char> sourceSpan)) 659internal static int LastIndexOfOrdinalIgnoreCase(ReadOnlySpan<char> source, ReadOnlySpan<char> value) 688internal static int ToUpperOrdinal(ReadOnlySpan<char> source, Span<char> destination) 713internal static int ToLowerOrdinal(ReadOnlySpan<char> source, Span<char> destination) 740private static void ChangeCaseNlsOrdinal(ReadOnlySpan<char> source, Span<char> destination, bool toUpper) 769private static void PreserveNlsOrdinalCasingClass(ReadOnlySpan<char> source, Span<char> destination) 859private static void PreserveOrdinalLowerCasingClass(ReadOnlySpan<char> source, Span<char> destination)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\Ordinal.Utf8.cs (6)
16internal static bool EqualsIgnoreCaseUtf8(ReadOnlySpan<byte> left, ReadOnlySpan<byte> right) 64internal static bool StartsWithIgnoreCaseUtf8(ReadOnlySpan<byte> source, ReadOnlySpan<byte> prefix) => 67private static bool MatchIgnoreCaseUtf8(ReadOnlySpan<byte> source, ReadOnlySpan<byte> prefix, bool prefixOnly)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\OrdinalCasing.Icu.cs (7)
117private static ReadOnlySpan<byte> s_casingTableInit => // 32 174internal static void ToUpperOrdinal(ReadOnlySpan<char> source, Span<char> destination) 228internal static void ToLowerOrdinal(ReadOnlySpan<char> source, Span<char> destination) 363internal static unsafe int IndexOf(ReadOnlySpan<char> source, ReadOnlySpan<char> value) 427internal static unsafe int LastIndexOf(ReadOnlySpan<char> source, ReadOnlySpan<char> value)
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\StringInfo.cs (2)
178public static int GetNextTextElementLength(ReadOnlySpan<char> str) => TextSegmentationUtility.GetLengthOfFirstUtf16ExtendedGraphemeCluster(str); 216ReadOnlySpan<char> remaining = str;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TextInfo.cs (8)
176internal void ToLower(ReadOnlySpan<char> source, Span<char> destination) 235internal void ChangeCaseToLower(ReadOnlySpan<char> source, Span<char> destination) 242internal void ChangeCaseToUpper(ReadOnlySpan<char> source, Span<char> destination) 249private static unsafe void ChangeCaseCommon<TConversion>(TextInfo? instance, ReadOnlySpan<char> source, Span<char> destination) where TConversion : struct 505internal void ToUpper(ReadOnlySpan<char> source, Span<char> destination) 528ReadOnlySpan<char> valueChars = value.AsSpan(stackalloc char[Rune.MaxUtf16CharsPerRune]); 550ReadOnlySpan<char> valueChars = value.AsSpan(stackalloc char[Rune.MaxUtf16CharsPerRune]); 753ReadOnlySpan<char> src = input.AsSpan(inputIndex, 2);
src\runtime\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 bool TryFormatStandard<TChar>(TimeSpan value, StandardFormat format, ReadOnlySpan<TChar> decimalSeparator, Span<TChar> destination, out int written) where TChar : unmanaged, IUtfChar<TChar> 345private static void FormatCustomized<TChar>(TimeSpan value, scoped ReadOnlySpan<char> format, DateTimeFormatInfo dtfi, ref ValueListBuilder<TChar> result) where TChar : unmanaged, IUtfChar<TChar> 555internal void Init(ReadOnlySpan<char> format, bool useInvariantFieldLengths)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanParse.cs (29)
91internal ReadOnlySpan<char> _sep; // Store the literal that we are parsing (if any) 99public TimeSpanToken(TTT type, int number, int leadingZeroes, ReadOnlySpan<char> separator) 166private readonly ReadOnlySpan<char> _value; 169internal TimeSpanTokenizer(ReadOnlySpan<char> input) : this(input, 0) { } 171internal TimeSpanTokenizer(ReadOnlySpan<char> input, int startPosition) 185ReadOnlySpan<char> value = _value; 402internal ReadOnlySpan<char> _literals0, _literals1, _literals2, _literals3, _literals4, _literals5; // MaxLiteralTokens=6 450private bool AddSep(ReadOnlySpan<char> sep, ref TimeSpanResult result) 496private readonly ReadOnlySpan<char> _originalTimeSpanString; 498internal TimeSpanResult(bool throwOnFailure, ReadOnlySpan<char> originalTimeSpanString) 609internal static TimeSpan Parse(ReadOnlySpan<char> input, IFormatProvider? formatProvider) 617internal static bool TryParse(ReadOnlySpan<char> input, IFormatProvider? formatProvider, out TimeSpan result) 631internal static TimeSpan ParseExact(ReadOnlySpan<char> input, ReadOnlySpan<char> format, IFormatProvider? formatProvider, TimeSpanStyles styles) 639internal static bool TryParseExact(ReadOnlySpan<char> input, ReadOnlySpan<char> format, IFormatProvider? formatProvider, TimeSpanStyles styles, out TimeSpan result) 653internal static TimeSpan ParseExactMultiple(ReadOnlySpan<char> input, string?[]? formats, IFormatProvider? formatProvider, TimeSpanStyles styles) 661internal static bool TryParseExactMultiple(ReadOnlySpan<char> input, string?[]? formats, IFormatProvider? formatProvider, TimeSpanStyles styles, out TimeSpan result) 676private static bool TryParseTimeSpan(ReadOnlySpan<char> input, TimeSpanStandardStyles style, IFormatProvider? formatProvider, ref TimeSpanResult result) 1210private static bool TryParseExactTimeSpan(ReadOnlySpan<char> input, ReadOnlySpan<char> format, IFormatProvider? formatProvider, TimeSpanStyles styles, ref TimeSpanResult result) 1232private static bool TryParseByFormat(ReadOnlySpan<char> input, ReadOnlySpan<char> format, TimeSpanStyles styles, ref TimeSpanResult result) 1432ReadOnlySpan<char> span = enquotedString.AsSpan(); 1448private static bool TryParseTimeSpanConstant(ReadOnlySpan<char> input, ref TimeSpanResult result) => 1453private ReadOnlySpan<char> _str; 1459ReadOnlySpan<char> str = _str; 1478internal bool TryParse(ReadOnlySpan<char> input, ref TimeSpanResult result) 1644private static bool TryParseExactMultipleTimeSpan(ReadOnlySpan<char> input, string?[]? formats, IFormatProvider? formatProvider, TimeSpanStyles styles, ref TimeSpanResult result)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\UmAlQuraCalendar.cs (1)
36ReadOnlySpan<short> rawData =
src\runtime\src\libraries\System.Private.CoreLib\src\System\Guid.cs (54)
66public Guid(ReadOnlySpan<byte> b) 83public Guid(ReadOnlySpan<byte> b, bool bigEndian) 337return Parse((ReadOnlySpan<char>)input); 340public static Guid Parse(ReadOnlySpan<char> input) 354public static Guid Parse(ReadOnlySpan<byte> utf8Text) 371return TryParse((ReadOnlySpan<char>)input, out result); 374public static bool TryParse(ReadOnlySpan<char> input, out Guid result) 395public static bool TryParse(ReadOnlySpan<byte> utf8Text, out Guid result) 415return ParseExact((ReadOnlySpan<char>)input, (ReadOnlySpan<char>)format); 418public static Guid ParseExact(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.GuidFormat)] ReadOnlySpan<char> format) 450return TryParseExact((ReadOnlySpan<char>)input, format, out result); 453public static bool TryParseExact(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.GuidFormat)] ReadOnlySpan<char> format, out Guid result) 485private static bool TryParseGuid<TChar>(ReadOnlySpan<TChar> guidString, ref GuidResult result) where TChar : unmanaged, IUtfChar<TChar> 507private static bool TryParseExactB<TChar>(ReadOnlySpan<TChar> guidString, ref GuidResult result) where TChar : unmanaged, IUtfChar<TChar> 520private static bool TryParseExactD<TChar>(ReadOnlySpan<TChar> guidString, ref GuidResult result) where TChar : unmanaged, IUtfChar<TChar> 575static bool TryCompatParsing(ReadOnlySpan<TChar> guidString, ref GuidResult result) 608private static bool TryParseExactN<TChar>(ReadOnlySpan<TChar> guidString, ref GuidResult result) where TChar : unmanaged, IUtfChar<TChar> 651private static bool TryParseExactP<TChar>(ReadOnlySpan<TChar> guidString, ref GuidResult result) where TChar : unmanaged, IUtfChar<TChar> 664private static bool TryParseExactX<TChar>(ReadOnlySpan<TChar> guidString, ref GuidResult result) where TChar : unmanaged, IUtfChar<TChar> 832ReadOnlySpan<byte> lookup = HexConverter.CharToHexLookup; 845private static bool TryParseHex<TChar>(ReadOnlySpan<TChar> guidString, out ushort result, ref bool overflow) where TChar : unmanaged, IUtfChar<TChar> 852private static bool TryParseHex<TChar>(ReadOnlySpan<TChar> guidString, out uint result) where TChar : unmanaged, IUtfChar<TChar> 858private static bool TryParseHex<TChar>(ReadOnlySpan<TChar> guidString, out uint result, ref bool overflow) where TChar : unmanaged, IUtfChar<TChar> 898private static ReadOnlySpan<TChar> EatAllWhitespace<TChar>(ReadOnlySpan<TChar> str, scoped ref GuidResult result) where TChar : unmanaged, IUtfChar<TChar> 902ReadOnlySpan<char> charSpan = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<char>>(str); 930return Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(new ReadOnlySpan<char>(chArr, 0, newLength)); 936ReadOnlySpan<byte> srcUtf8Span = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(str); 945return ReadOnlySpan<TChar>.Empty; 976return ReadOnlySpan<TChar>.Empty; 989return Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(destUtf8Span.Slice(0, newLength)); 993private static bool IsHexPrefix<TChar>(ReadOnlySpan<TChar> str, int i) where TChar : unmanaged, IUtfChar<TChar> => 1256public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.GuidFormat)] ReadOnlySpan<char> format = default) => 1259bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.GuidFormat)] ReadOnlySpan<char> format, IFormatProvider? provider) => 1263public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.GuidFormat)] ReadOnlySpan<char> format = default) => 1266bool IUtf8SpanFormattable.TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.GuidFormat)] ReadOnlySpan<char> format, IFormatProvider? provider) => 1279private bool TryFormatCore<TChar>(Span<TChar> destination, out int charsWritten, ReadOnlySpan<char> format) where TChar : unmanaged, IUtfChar<TChar> 1847/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1848public static Guid Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s); 1850/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1851public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out Guid result) => TryParse(s, out result); 1861/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 1862public static Guid Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text); 1864/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 1865public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out Guid result) => TryParse(utf8Text, out result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (26)
371/// Parses a <see cref="Half"/> from a <see cref="ReadOnlySpan{Char}"/> and <see cref="IFormatProvider"/>. 377public static Half Parse(ReadOnlySpan<char> s, NumberStyles style = DefaultParseStyle, IFormatProvider? provider = null) 392/// Tries to parse a <see cref="Half"/> from a <see cref="ReadOnlySpan{Char}"/> in the default parse style. 397public static bool TryParse(ReadOnlySpan<char> s, out Half result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider: null, out result); 401/// <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> 403public static bool TryParse(ReadOnlySpan<byte> utf8Text, out Half result) => TryParse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider: null, out result); 420/// Tries to parse a <see cref="Half"/> from a <see cref="ReadOnlySpan{Char}"/> with the given <see cref="NumberStyles"/> and <see cref="IFormatProvider"/>. 427public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out Half result) 562public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 568public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 2239/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{char}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 2240public static bool TryParsePartial(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out Half result, out int charsConsumed) 2246/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 2247public static bool TryParsePartial(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out Half result, out int bytesConsumed) 2295/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 2296public static Half Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, DefaultParseStyle, provider); 2298/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 2299public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out Half result) => TryParse(s, DefaultParseStyle, provider, out result); 2387/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 2388public static Half Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Float | NumberStyles.AllowThousands, IFormatProvider? provider = null) 2394/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 2395public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out Half result) 2401/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 2402public static Half Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider); 2404/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 2405public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out Half result) => TryParse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider, out result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\HashCode.cs (1)
317public void AddBytes(ReadOnlySpan<byte> value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (26)
119public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 125public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 142public static Int128 Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 150public static bool TryParse(ReadOnlySpan<char> s, out Int128 result) => TryParse(s, NumberStyles.Integer, provider: null, out result); 156public static bool TryParse(ReadOnlySpan<byte> utf8Text, out Int128 result) => TryParse(utf8Text, NumberStyles.Integer, provider: null, out result); 164public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out Int128 result) 756/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 757static bool IBinaryInteger<Int128>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out Int128 value) 829/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 830static bool IBinaryInteger<Int128>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out Int128 value) 1929/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{char}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1930public static bool TryParsePartial(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out Int128 result, out int charsConsumed) 1936/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1937public static bool TryParsePartial(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out Int128 result, out int bytesConsumed) 2066/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 2067public static Int128 Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Integer, provider); 2069/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 2070public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out Int128 result) => TryParse(s, NumberStyles.Integer, provider, out result); 2127/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 2128public static Int128 Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 2134/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 2135public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out Int128 result) 2141/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 2142public static Int128 Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Integer, provider); 2144/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 2145public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out Int128 result) => TryParse(utf8Text, NumberStyles.Integer, provider, out result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (26)
119public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 125public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 142public static short Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 150public static bool TryParse(ReadOnlySpan<char> s, out short result) => TryParse(s, NumberStyles.Integer, provider: null, out result); 156public static bool TryParse(ReadOnlySpan<byte> utf8Text, out short result) => TryParse(utf8Text, NumberStyles.Integer, provider: null, out result); 164public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out short result) 304/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 305static bool IBinaryInteger<short>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out short value) 370/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 371static bool IBinaryInteger<short>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out short value) 1320/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{char}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1321public static bool TryParsePartial(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out short result, out int charsConsumed) 1327/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1328public static bool TryParsePartial(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out short result, out int bytesConsumed) 1365/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1366public static short Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Integer, provider); 1368/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1369public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out short result) => TryParse(s, NumberStyles.Integer, provider, out result); 1402/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1403public static short Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 1409/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 1410public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out short result) 1416/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 1417public static short Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Integer, provider); 1419/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 1420public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out short result) => TryParse(utf8Text, NumberStyles.Integer, provider, out result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (26)
135public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 141public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 158public static int Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 166public static bool TryParse(ReadOnlySpan<char> s, out int result) => TryParse(s, NumberStyles.Integer, provider: null, out result); 172public static bool TryParse(ReadOnlySpan<byte> utf8Text, out int result) => TryParse(utf8Text, NumberStyles.Integer, provider: null, out result); 180public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out int result) 325/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 326static bool IBinaryInteger<int>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out int value) 398/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 399static bool IBinaryInteger<int>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out int value) 1371/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{char}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1372public static bool TryParsePartial(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out int result, out int charsConsumed) 1378/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1379public static bool TryParsePartial(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out int result, out int bytesConsumed) 1416/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1417public static int Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Integer, provider); 1419/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1420public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out int result) => TryParse(s, NumberStyles.Integer, provider, out result); 1453/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1454public static int Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 1460/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 1461public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out int result) 1467/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 1468public static int Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Integer, provider); 1470/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 1471public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out int result) => TryParse(utf8Text, NumberStyles.Integer, provider, out result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (26)
132public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 138public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 155public static long Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 163public static bool TryParse(ReadOnlySpan<char> s, out long result) => TryParse(s, NumberStyles.Integer, provider: null, out result); 169public static bool TryParse(ReadOnlySpan<byte> utf8Text, out long result) => TryParse(utf8Text, NumberStyles.Integer, provider: null, out result); 177public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out long result) 322/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 323static bool IBinaryInteger<long>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out long value) 395/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 396static bool IBinaryInteger<long>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out long value) 1374/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{char}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1375public static bool TryParsePartial(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out long result, out int charsConsumed) 1381/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1382public static bool TryParsePartial(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out long result, out int bytesConsumed) 1419/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1420public static long Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Integer, provider); 1422/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1423public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out long result) => TryParse(s, NumberStyles.Integer, provider, out result); 1456/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1457public static long Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 1463/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 1464public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out long result) 1470/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 1471public static long Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Integer, provider); 1473/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 1474public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out long result) => TryParse(utf8Text, NumberStyles.Integer, provider, out result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (24)
234public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) => 238public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) => 245public static nint Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => (nint)nint_t.Parse(s, provider); 246public static nint Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) => (nint)nint_t.Parse(s, style, provider); 267public static bool TryParse(ReadOnlySpan<char> s, out nint result) 277public static bool TryParse(ReadOnlySpan<byte> utf8Text, out nint result) 288public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out nint result) 294public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out nint result) 355/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 356static bool IBinaryInteger<nint>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out nint value) 428/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 429static bool IBinaryInteger<nint>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out nint value) 1392/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{char}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1393public static bool TryParsePartial(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out nint result, out int charsConsumed) 1400/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1401public static bool TryParsePartial(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out nint result, out int bytesConsumed) 1459/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1460public static nint Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) => (nint)nint_t.Parse(utf8Text, style, provider); 1462/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 1463public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out nint result) 1469/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 1470public static nint Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => (nint)nint_t.Parse(utf8Text, provider); 1472/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 1473public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out nint result)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BinaryReader.cs (3)
231ReadOnlySpan<byte> span = InternalRead(stackalloc byte[sizeof(decimal)]); 356scoped ReadOnlySpan<byte> byteBuffer; 472private ReadOnlySpan<byte> InternalRead(Span<byte> buffer)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BinaryWriter.cs (3)
387public virtual void Write(ReadOnlySpan<byte> buffer) 408public virtual void Write(ReadOnlySpan<char> chars) 416private void WriteCharsCommonWithoutLengthPrefix(ReadOnlySpan<char> chars, bool useThisWriteOverride)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BufferedStream.cs (2)
781private int WriteToBuffer(ReadOnlySpan<byte> buffer) 923public override void Write(ReadOnlySpan<byte> buffer)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\DirectoryInfo.cs (3)
50ReadOnlySpan<char> fullPath = FullPath.AsSpan(); 85ReadOnlySpan<char> trimmedNewPath = Path.TrimEndingDirectorySeparator(newPath.AsSpan()); 89ReadOnlySpan<char> trimmedCurrentPath = FullPath.TrimEnd(Path.DirectorySeparatorChar);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEntry.cs (1)
38ReadOnlySpan<char> relativePath = Directory.Slice(RootDirectory.Length);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEntry.Unix.cs (15)
22private ReadOnlySpan<char> _fullPath; 23private ReadOnlySpan<char> _fileName; 35ReadOnlySpan<char> directory, 36ReadOnlySpan<char> rootDirectory, 37ReadOnlySpan<char> originalRootDirectory, 45entry._fullPath = ReadOnlySpan<char>.Empty; 46entry._fileName = ReadOnlySpan<char>.Empty; 80private ReadOnlySpan<char> FullPath 96public ReadOnlySpan<char> FileName 115public ReadOnlySpan<char> Directory { get; private set; } 120public ReadOnlySpan<char> RootDirectory { get; private set; } 125public ReadOnlySpan<char> OriginalRootDirectory { get; private set; } 179ReadOnlySpan<char> originalRootDirectory, 180ReadOnlySpan<char> relativePath, 181ReadOnlySpan<char> fileName) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEnumerableFactory.cs (2)
45ReadOnlySpan<char> directoryName = Path.GetDirectoryName(expression.AsSpan()); 95private static bool MatchesPattern(string expression, ReadOnlySpan<char> name, EnumerationOptions options)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEnumerator.cs (1)
62protected virtual void OnDirectoryFinished(ReadOnlySpan<char> directory) { }
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemName.cs (9)
70public static bool MatchesWin32Expression(ReadOnlySpan<char> expression, ReadOnlySpan<char> name, bool ignoreCase = true) 80public static bool MatchesSimpleExpression(ReadOnlySpan<char> expression, ReadOnlySpan<char> name, bool ignoreCase = true) 141private static unsafe bool MatchPattern(ReadOnlySpan<char> expression, ReadOnlySpan<char> name, bool ignoreCase, bool useExtendedWildcards) 157ReadOnlySpan<char> expressionEnd = expression.Slice(1); 416ReadOnlySpan<char> span = expression; 417ReadOnlySpan<char> charsToEscape = ['\\', '"', '<', '>'];
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\File.cs (11)
682/// 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. 684public static void WriteAllText(string path, ReadOnlySpan<char> contents) 713public static void WriteAllText(string path, ReadOnlySpan<char> contents, Encoding encoding) 786public static void WriteAllBytes(string path, ReadOnlySpan<byte> bytes) 836public static void AppendAllBytes(string path, ReadOnlySpan<byte> bytes) 998public static void AppendAllText(string path, ReadOnlySpan<char> contents) 1031public static void AppendAllText(string path, ReadOnlySpan<char> contents, Encoding encoding) 1557private static unsafe void WriteToFile(string path, FileMode mode, ReadOnlySpan<char> contents, Encoding encoding) 1559ReadOnlySpan<byte> preamble = encoding.GetPreamble(); 1593ReadOnlySpan<char> toEncode = contents.Slice(0, Math.Min(contents.Length, ChunkSize)); 1664private static long GetPreallocationSize(FileMode mode, ReadOnlySpan<char> contents, Encoding encoding, int preambleSize)
src\runtime\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) 439internal long GetLength(ReadOnlySpan<char> path, bool continueOnError = false) 448internal UnixFileMode GetUnixFileMode(ReadOnlySpan<char> path, bool continueOnError = false) 454private UnixFileMode GetUnixFileMode(SafeFileHandle? handle, ReadOnlySpan<char> path, bool continueOnError = false) 486internal void RefreshCaches(ReadOnlySpan<char> path) 491internal void RefreshCaches(SafeFileHandle? handle, ReadOnlySpan<char> path) 546internal void EnsureCachesInitialized(ReadOnlySpan<char> path, bool continueOnError = false) 551internal void EnsureCachesInitialized(SafeFileHandle? handle, ReadOnlySpan<char> path, bool continueOnError = false) 565private void ThrowOnCacheInitializationError(ReadOnlySpan<char> path)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileStream.cs (2)
320public override void Write(ReadOnlySpan<byte> buffer) => _strategy.Write(buffer); 610internal void BaseWrite(ReadOnlySpan<byte> buffer) => base.Write(buffer);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.cs (2)
33ReadOnlySpan<char> srcNoDirectorySeparator = Path.TrimEndingDirectorySeparator(sourceFullPath.AsSpan()); 34ReadOnlySpan<char> destNoDirectorySeparator = Path.TrimEndingDirectorySeparator(destFullPath.AsSpan());
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Exists.Unix.cs (4)
11public static bool DirectoryExists(ReadOnlySpan<char> fullPath) 16private static bool DirectoryExists(ReadOnlySpan<char> fullPath, out Interop.ErrorInfo errorInfo) 30public static bool FileExists(ReadOnlySpan<char> fullPath) 35private static bool FileExists(ReadOnlySpan<char> fullPath, out Interop.ErrorInfo errorInfo)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (7)
295ReadOnlySpan<char> path = PathInternal.TrimEndingDirectorySeparator(fullPath.AsSpan()); 339ReadOnlySpan<char> mkdirPath = fullPath.AsSpan(0, i); 371ReadOnlySpan<char> mkdirPath = fullPath.AsSpan(0, stackDir[i]); 402ReadOnlySpan<char> srcNoDirectorySeparator = Path.TrimEndingDirectorySeparator(sourceFullPath.AsSpan()); 403ReadOnlySpan<char> destNoDirectorySeparator = Path.TrimEndingDirectorySeparator(destFullPath.AsSpan()); 662internal static string? GetLinkTarget(ReadOnlySpan<char> linkPath, bool isDirectory) => Interop.Sys.ReadLink(linkPath); 728static void GetLinkTargetFullPath(ref ValueStringBuilder sb, ReadOnlySpan<char> linkTarget)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (3)
212internal ReadOnlySpan<byte> InternalReadSpan(int count) 225var span = new ReadOnlySpan<byte>(_buffer, origPos, count); 618public override void Write(ReadOnlySpan<byte> buffer)
src\runtime\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 unsafe 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 unsafe 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\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Path.Unix.cs (5)
98ReadOnlySpan<byte> fileTemplate = "tmpXXXXXX.tmp"u8; 132public static bool IsPathRooted(ReadOnlySpan<char> path) 146public static ReadOnlySpan<char> GetPathRoot(ReadOnlySpan<char> path) 148return IsPathRooted(path) ? PathInternal.DirectorySeparatorCharAsString.AsSpan() : ReadOnlySpan<char>.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\PinnedBufferMemoryStream.cs (1)
33public override void Write(ReadOnlySpan<byte> buffer) => WriteCore(buffer);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\RandomAccess.cs (1)
168public static void Write(SafeFileHandle handle, ReadOnlySpan<byte> buffer, long fileOffset)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\RandomAccess.Unix.cs (2)
110internal static unsafe void WriteAtOffset(SafeFileHandle handle, ReadOnlySpan<byte> buffer, long fileOffset) 113internal static unsafe void WriteAtOffset(SafeFileHandle handle, ReadOnlySpan<byte> buffer, ref long fileOffset)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\ReadOnlyMemoryStream.cs (2)
88ReadOnlySpan<byte> span = _memory.Span; 230public override void Write(ReadOnlySpan<byte> buffer) => throw new NotSupportedException(SR.NotSupported_UnwritableStream);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\BufferedFileStreamStrategy.cs (2)
472public override void Write(ReadOnlySpan<byte> buffer) 479private void WriteSpan(ReadOnlySpan<byte> source, ArraySegment<byte> arraySegment)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\DerivedFileStreamStrategy.cs (1)
118public override void Write(ReadOnlySpan<byte> buffer)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\OSFileStreamStrategy.cs (1)
233public sealed override void Write(ReadOnlySpan<byte> buffer)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (3)
915public virtual void Write(ReadOnlySpan<byte> buffer) 1066public override void Write(ReadOnlySpan<byte> buffer) { } 1269public override void Write(ReadOnlySpan<byte> buffer)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (2)
579ReadOnlySpan<byte> preamble = _encoding.Preamble; 840ReadOnlySpan<char> charBufferSpan = _charBuffer.AsSpan(_charPos, _charLen - _charPos);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (11)
320ReadOnlySpan<byte> preamble = _encoding.Preamble; 499public override void Write(ReadOnlySpan<char> buffer) 514private unsafe void WriteSpan(ReadOnlySpan<char> buffer, bool appendNewLine) 601public override void WriteLine(ReadOnlySpan<char> buffer) 616private unsafe void WriteFormatHelper(string format, ReadOnlySpan<object?> args, bool appendNewLine) 683/// Writes a formatted string to the stream, using the same semantics as <see cref="string.Format(string, ReadOnlySpan{object?})"/>. 687public override void Write([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg) 749/// Writes out a formatted string and a new line to the stream, using the same semantics as <see cref="string.Format(string, ReadOnlySpan{object?})"/>. 753public override void WriteLine([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg) 1144public override void Write(ReadOnlySpan<char> buffer) { } 1169public override void WriteLine(ReadOnlySpan<char> buffer) { }
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StringReader.cs (1)
186ReadOnlySpan<char> remaining = s.AsSpan(pos);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StringStream.cs (3)
159ReadOnlySpan<char> remaining = _text.Span.Slice(_charPosition); 205GetEncoder().Convert(ReadOnlySpan<char>.Empty, _pendingBytes, flush: true, out _, out int flushBytes, out _); 302public override void Write(ReadOnlySpan<byte> buffer) => throw new NotSupportedException(SR.NotSupported_UnwritableStream);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StringWriter.cs (2)
190public override void Write(ReadOnlySpan<char> buffer) 242public override void WriteLine(ReadOnlySpan<char> buffer)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.CreateBroadcasting.cs (4)
191public override void Write(ReadOnlySpan<char> buffer) 279public override void Write([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg) 327public override void WriteLine(ReadOnlySpan<char> buffer) 455public override void WriteLine([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.cs (18)
148ReadOnlySpan<char> valueChars = value.AsSpan(stackalloc char[Rune.MaxUtf16CharsPerRune]); 190public virtual void Write(ReadOnlySpan<char> buffer) 365/// Writes a formatted string to the text stream, using the same semantics as <see cref="string.Format(string, ReadOnlySpan{object?})"/>. 369public virtual void Write([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg) 397ReadOnlySpan<char> valueChars = value.AsSpan(stackalloc char[Rune.MaxUtf16CharsPerRune]); 428public virtual void WriteLine(ReadOnlySpan<char> buffer) 592/// 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?})"/>. 596public virtual void WriteLine([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg) 616ReadOnlySpan<char> valueChars = value.AsSpan(stackalloc char[Rune.MaxUtf16CharsPerRune]); 710ReadOnlySpan<char> valueChars = value.AsSpan(stackalloc char[Rune.MaxUtf16CharsPerRune]); 842public override void Write(ReadOnlySpan<char> buffer) { } 858public override void Write([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg) { } 870public override void WriteLine(ReadOnlySpan<char> buffer) { } 886public override void WriteLine([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg) { } 954public override void Write(ReadOnlySpan<char> buffer) => _out.Write(buffer); 1002public override void Write([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg) => _out.Write(format, arg); 1023public override void WriteLine(ReadOnlySpan<char> buffer) => _out.WriteLine(buffer); 1068public override void WriteLine([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg) => _out.WriteLine(format, arg);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStream.cs (2)
611public override void Write(ReadOnlySpan<byte> buffer) 626internal unsafe void WriteCore(ReadOnlySpan<byte> buffer)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStreamWrapper.cs (1)
102public override void Write(ReadOnlySpan<byte> buffer)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\WritableMemoryStream.cs (2)
90ReadOnlySpan<byte> span = _memory.Span; 252public override void Write(ReadOnlySpan<byte> buffer)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ISpanFormattable.cs (1)
20bool TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider);
src\runtime\src\libraries\System.Private.CoreLib\src\System\ISpanParsable.cs (2)
19static abstract TSelf Parse(ReadOnlySpan<char> s, IFormatProvider? provider); 26static abstract bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, [MaybeNullWhen(returnValue: false)] out TSelf result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IUtf8SpanFormattable.cs (1)
19bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, ReadOnlySpan<char> format, IFormatProvider? provider);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IUtf8SpanParsable.cs (2)
19static abstract TSelf Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider); 26static abstract bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, [MaybeNullWhen(returnValue: false)] out TSelf result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Marvin.cs (1)
23public static int ComputeHash32(ReadOnlySpan<byte> data, ulong seed) => ComputeHash32(ref MemoryMarshal.GetReference(data), (uint)data.Length, (uint)seed, (uint)(seed >> 32));
src\runtime\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); 456public static bool ContainsAny<T>(this ReadOnlySpan<T> span, T value0, T value1) where T : IEquatable<T>? => 468public static bool ContainsAny<T>(this ReadOnlySpan<T> span, T value0, T value1, IEqualityComparer<T>? comparer = null) => 479public static bool ContainsAny<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2) where T : IEquatable<T>? => 491public static bool ContainsAny<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2, IEqualityComparer<T>? comparer = null) => 501public static bool ContainsAny<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>? => 512public static bool ContainsAny<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values, IEqualityComparer<T>? comparer = null) => 521public static bool ContainsAny<T>(this ReadOnlySpan<T> span, SearchValues<T> values) where T : IEquatable<T>? 537public static bool ContainsAny(this ReadOnlySpan<char> span, SearchValues<string> values) => 550public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>? => 564public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer = null) => 578public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1) where T : IEquatable<T>? => 593public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, IEqualityComparer<T>? comparer = null) => 608public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2) where T : IEquatable<T>? => 624public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2, IEqualityComparer<T>? comparer = null) => 637public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>? => 651public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values, IEqualityComparer<T>? comparer = null) => 664public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, SearchValues<T> values) where T : IEquatable<T>? 681public static bool ContainsAnyInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> => 695public static bool ContainsAnyExceptInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> => 706IndexOf((ReadOnlySpan<T>)span, value); 715public static int IndexOf<T>(this Span<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>? => 716IndexOf((ReadOnlySpan<T>)span, value); 726LastIndexOf((ReadOnlySpan<T>)span, value); 735public static int LastIndexOf<T>(this Span<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>? => 736LastIndexOf((ReadOnlySpan<T>)span, value); 748IndexOfAnyExcept((ReadOnlySpan<T>)span, value); 761IndexOfAnyExcept((ReadOnlySpan<T>)span, value0, value1); 775IndexOfAnyExcept((ReadOnlySpan<T>)span, value0, value1, value2); 786public static int IndexOfAnyExcept<T>(this Span<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>? => 787IndexOfAnyExcept((ReadOnlySpan<T>)span, values); 800IndexOfAnyExcept((ReadOnlySpan<T>)span, values); 811public static unsafe int IndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>? 858public static unsafe int IndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer = null) 895static int IndexOfAnyExceptDefaultComparer(ReadOnlySpan<T> span, T value) 911static int IndexOfAnyExceptComparer(ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer) 938public static unsafe int IndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1) where T : IEquatable<T>? 974public static unsafe int IndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, IEqualityComparer<T>? comparer = null) 999static int IndexOfAnyExceptDefaultComparer(ReadOnlySpan<T> span, T value0, T value1) 1016static int IndexOfAnyExceptComparer(ReadOnlySpan<T> span, T value0, T value1, IEqualityComparer<T>? comparer) 1045public static unsafe int IndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2) where T : IEquatable<T>? 1084public static unsafe int IndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2, IEqualityComparer<T>? comparer = null) 1111static int IndexOfAnyExceptDefaultComparer(ReadOnlySpan<T> span, T value0, T value1, T value2) 1129static int IndexOfAnyExceptComparer(ReadOnlySpan<T> span, T value0, T value1, T value2, IEqualityComparer<T>? comparer) 1148private static unsafe int IndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2, T value3) where T : IEquatable<T>? 1185public static unsafe int IndexOfAnyExcept<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>? 1268public static int IndexOfAnyExcept<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values, IEqualityComparer<T>? comparer = null) 1306public static int IndexOfAnyExcept<T>(this ReadOnlySpan<T> span, SearchValues<T> values) where T : IEquatable<T>? 1326LastIndexOfAnyExcept((ReadOnlySpan<T>)span, value); 1339LastIndexOfAnyExcept((ReadOnlySpan<T>)span, value0, value1); 1353LastIndexOfAnyExcept((ReadOnlySpan<T>)span, value0, value1, value2); 1364public static int LastIndexOfAnyExcept<T>(this Span<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>? => 1365LastIndexOfAnyExcept((ReadOnlySpan<T>)span, values); 1378LastIndexOfAnyExcept((ReadOnlySpan<T>)span, values); 1389public static unsafe int LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>? 1436public static unsafe int LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer = null) 1473static int LastIndexOfAnyExceptDefaultComparer(ReadOnlySpan<T> span, T value) 1489static int LastIndexOfAnyExceptComparer(ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer) 1516public static unsafe int LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1) where T : IEquatable<T>? 1552public static unsafe int LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, IEqualityComparer<T>? comparer = null) 1577static int LastIndexOfAnyExceptDefaultComparer(ReadOnlySpan<T> span, T value0, T value1) 1594static int LastIndexOfAnyExceptComparer(ReadOnlySpan<T> span, T value0, T value1, IEqualityComparer<T>? comparer) 1623public static unsafe int LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2) where T : IEquatable<T>? 1662public static unsafe int LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2, IEqualityComparer<T>? comparer = null) 1689static int LastIndexOfAnyExceptDefaultComparer(ReadOnlySpan<T> span, T value0, T value1, T value2) 1707static int LastIndexOfAnyExceptComparer(ReadOnlySpan<T> span, T value0, T value1, T value2, IEqualityComparer<T>? comparer) 1727private static unsafe int LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2, T value3) where T : IEquatable<T>? 1764public static unsafe int LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>? 1848public static int LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values, IEqualityComparer<T>? comparer = null) 1886public static int LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, SearchValues<T> values) where T : IEquatable<T>? 1896/// <inheritdoc cref="IndexOfAnyInRange{T}(ReadOnlySpan{T}, T, T)"/> 1900IndexOfAnyInRange((ReadOnlySpan<T>)span, lowInclusive, highInclusive); 1912public static int IndexOfAnyInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> 1967/// <inheritdoc cref="IndexOfAnyExceptInRange{T}(ReadOnlySpan{T}, T, T)"/> 1971IndexOfAnyExceptInRange((ReadOnlySpan<T>)span, lowInclusive, highInclusive); 1983public static int IndexOfAnyExceptInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> 2038/// <inheritdoc cref="LastIndexOfAnyInRange{T}(ReadOnlySpan{T}, T, T)"/> 2042LastIndexOfAnyInRange((ReadOnlySpan<T>)span, lowInclusive, highInclusive); 2054public static int LastIndexOfAnyInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> 2109/// <inheritdoc cref="LastIndexOfAnyExceptInRange{T}(ReadOnlySpan{T}, T, T)"/> 2113LastIndexOfAnyExceptInRange((ReadOnlySpan<T>)span, lowInclusive, highInclusive); 2125public static int LastIndexOfAnyExceptInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> 2194public static bool SequenceEqual<T>(this Span<T> span, ReadOnlySpan<T> other) where T : IEquatable<T>? => 2195SequenceEqual((ReadOnlySpan<T>)span, other); 2201public static int SequenceCompareTo<T>(this Span<T> span, ReadOnlySpan<T> other) where T : IComparable<T>? => 2202SequenceCompareTo((ReadOnlySpan<T>)span, other); 2210public static unsafe int IndexOf<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>? 2249public static unsafe int IndexOf<T>(this ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer = null) 2281static int IndexOfDefaultComparer(ReadOnlySpan<T> span, T value) 2297static int IndexOfComparer(ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer) 2319public static unsafe int IndexOf<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>? 2348public static unsafe int IndexOf<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value, IEqualityComparer<T>? comparer = null) 2368static int IndexOfComparer(ReadOnlySpan<T> span, ReadOnlySpan<T> value, IEqualityComparer<T>? comparer) 2405public static unsafe int LastIndexOf<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>? 2449public static unsafe int LastIndexOf<T>(this ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer = null) 2486static int LastIndexOfDefaultComparer(ReadOnlySpan<T> span, T value) 2502static int LastIndexOfComparer(ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer) 2525public static unsafe int LastIndexOf<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>? 2557public static unsafe int LastIndexOf<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value, IEqualityComparer<T>? comparer = null) 2580static int LastIndexOfComparer(ReadOnlySpan<T> span, ReadOnlySpan<T> value, IEqualityComparer<T>? comparer) 2617IndexOfAny((ReadOnlySpan<T>)span, value0, value1); 2629IndexOfAny((ReadOnlySpan<T>)span, value0, value1, value2); 2638public static int IndexOfAny<T>(this Span<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>? => 2639IndexOfAny((ReadOnlySpan<T>)span, values); 2649IndexOfAny((ReadOnlySpan<T>)span, values); 2659IndexOfAny((ReadOnlySpan<char>)span, values); 2668public static unsafe int IndexOfAny<T>(this ReadOnlySpan<T> span, T value0, T value1) where T : IEquatable<T>? 2701public static unsafe int IndexOfAny<T>(this ReadOnlySpan<T> span, T value0, T value1, IEqualityComparer<T>? comparer = null) 2726static int IndexOfAnyDefaultComparer(ReadOnlySpan<T> span, T value0, T value1) 2743static int IndexOfAnyComparer(ReadOnlySpan<T> span, T value0, T value1, IEqualityComparer<T>? comparer) 2768public static unsafe int IndexOfAny<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2) where T : IEquatable<T>? 2804public static unsafe int IndexOfAny<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2, IEqualityComparer<T>? comparer = null) 2831static int IndexOfAnyDefaultComparer(ReadOnlySpan<T> span, T value0, T value1, T value2) 2849static int IndexOfAnyComparer(ReadOnlySpan<T> span, T value0, T value1, T value2, IEqualityComparer<T>? comparer) 2873public static unsafe int IndexOfAny<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>? 2973public static int IndexOfAny<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values, IEqualityComparer<T>? comparer = null) 3011public static int IndexOfAny<T>(this ReadOnlySpan<T> span, SearchValues<T> values) where T : IEquatable<T>? 3028public static int IndexOfAny(this ReadOnlySpan<char> span, SearchValues<string> values) 3047LastIndexOfAny((ReadOnlySpan<T>)span, value0, value1); 3059LastIndexOfAny((ReadOnlySpan<T>)span, value0, value1, value2); 3068public static int LastIndexOfAny<T>(this Span<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>? => 3069LastIndexOfAny((ReadOnlySpan<T>)span, values); 3079LastIndexOfAny((ReadOnlySpan<T>)span, values); 3088public static unsafe int LastIndexOfAny<T>(this ReadOnlySpan<T> span, T value0, T value1) where T : IEquatable<T>? 3121public static unsafe int LastIndexOfAny<T>(this ReadOnlySpan<T> span, T value0, T value1, IEqualityComparer<T>? comparer = null) 3146static int LastIndexOfAnyDefaultComparer(ReadOnlySpan<T> span, T value0, T value1) 3163static int LastIndexOfAnyComparer(ReadOnlySpan<T> span, T value0, T value1, IEqualityComparer<T>? comparer) 3189public static unsafe int LastIndexOfAny<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2) where T : IEquatable<T>? 3225public static unsafe int LastIndexOfAny<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2, IEqualityComparer<T>? comparer = null) 3252static int LastIndexOfAnyDefaultComparer(ReadOnlySpan<T> span, T value0, T value1, T value2) 3270static int LastIndexOfAnyComparer(ReadOnlySpan<T> span, T value0, T value1, T value2, IEqualityComparer<T>? comparer) 3295public static unsafe int LastIndexOfAny<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>? 3395public static int LastIndexOfAny<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values, IEqualityComparer<T>? comparer = null) 3432public static int LastIndexOfAny<T>(this ReadOnlySpan<T> span, SearchValues<T> values) where T : IEquatable<T>? 3447public static unsafe bool SequenceEqual<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other) where T : IEquatable<T>? 3472public static bool SequenceEqual<T>(this Span<T> span, ReadOnlySpan<T> other, IEqualityComparer<T>? comparer = null) => 3473SequenceEqual((ReadOnlySpan<T>)span, other, comparer); 3482public static unsafe bool SequenceEqual<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other, IEqualityComparer<T>? comparer = null) 3533public static int SequenceCompareTo<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other) where T : IComparable<T>? 3558public static int SequenceCompareTo<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other, IComparer<T>? comparer = null) 3581public static bool StartsWith<T>(this Span<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>? => 3582StartsWith((ReadOnlySpan<T>)span, value); 3589public static unsafe bool StartsWith<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>? 3613public static bool StartsWith<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value, IEqualityComparer<T>? comparer = null) => 3623public static bool EndsWith<T>(this Span<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>? => 3624EndsWith((ReadOnlySpan<T>)span, value); 3631public static unsafe bool EndsWith<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>? 3660public static bool EndsWith<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value, IEqualityComparer<T>? comparer = null) => 3672public static bool StartsWith<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>? => 3684public static bool StartsWith<T>(this ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer = null) => 3696public static bool EndsWith<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>? => 3708public static bool EndsWith<T>(this ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer = null) => 4108public static bool Overlaps<T>(this Span<T> span, ReadOnlySpan<T> other) => 4109Overlaps((ReadOnlySpan<T>)span, other); 4116public static bool Overlaps<T>(this Span<T> span, ReadOnlySpan<T> other, out int elementOffset) => 4117Overlaps((ReadOnlySpan<T>)span, other, out elementOffset); 4122public static unsafe bool Overlaps<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other) 4140public static unsafe bool Overlaps<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other, out int elementOffset) 4187BinarySearch((ReadOnlySpan<T>)span, comparable); 4211BinarySearch((ReadOnlySpan<T>)span, comparable); 4236BinarySearch((ReadOnlySpan<T>)span, value, comparer); 4239/// Searches an entire sorted <see cref="ReadOnlySpan{T}"/> for a value 4243/// <param name="span">The sorted <see cref="ReadOnlySpan{T}"/> to search.</param> 4249/// no larger element, the bitwise complement of <see cref="ReadOnlySpan{T}.Length"/>. 4256this ReadOnlySpan<T> span, IComparable<T> comparable) => 4260/// Searches an entire sorted <see cref="ReadOnlySpan{T}"/> for a value 4265/// <param name="span">The sorted <see cref="ReadOnlySpan{T}"/> to search.</param> 4271/// no larger element, the bitwise complement of <see cref="ReadOnlySpan{T}.Length"/>. 4278this ReadOnlySpan<T> span, TComparable comparable) 4285/// Searches an entire sorted <see cref="ReadOnlySpan{T}"/> for the specified <paramref name="value"/> 4290/// <param name="span">The sorted <see cref="ReadOnlySpan{T}"/> to search.</param> 4297/// no larger element, the bitwise complement of <see cref="ReadOnlySpan{T}.Length"/>. 4304this ReadOnlySpan<T> span, T value, TComparer comparer) 4630public static unsafe void Replace<T>(this ReadOnlySpan<T> source, Span<T> destination, T oldValue, T newValue) where T : IEquatable<T>? 4714public static unsafe void Replace<T>(this ReadOnlySpan<T> source, Span<T> destination, T oldValue, T newValue, IEqualityComparer<T>? comparer = null) 4786static void ReplaceDefaultComparer(ReadOnlySpan<T> source, Span<T> destination, T oldValue, T newValue) 4799static void ReplaceComparer(ReadOnlySpan<T> source, Span<T> destination, T oldValue, T newValue, IEqualityComparer<T>? comparer) 4826public static void ReplaceAny<T>(this ReadOnlySpan<T> source, Span<T> destination, SearchValues<T> values, T newValue) where T : IEquatable<T>? 4876public static void ReplaceAnyExcept<T>(this ReadOnlySpan<T> source, Span<T> destination, SearchValues<T> values, T newValue) where T : IEquatable<T>? 4917public static int CommonPrefixLength<T>(this Span<T> span, ReadOnlySpan<T> other) => 4918CommonPrefixLength((ReadOnlySpan<T>)span, other); 4927public static int CommonPrefixLength<T>(this Span<T> span, ReadOnlySpan<T> other, IEqualityComparer<T>? comparer) => 4928CommonPrefixLength((ReadOnlySpan<T>)span, other, comparer); 4935public static unsafe int CommonPrefixLength<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other) 4983public static int CommonPrefixLength<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other, IEqualityComparer<T>? comparer) 5011private static void SliceLongerSpanToMatchShorterLength<T>(ref ReadOnlySpan<T> span, ref ReadOnlySpan<T> other) 5029public static SpanSplitEnumerator<T> Split<T>(this ReadOnlySpan<T> source, T separator) where T : IEquatable<T> => 5040public static SpanSplitEnumerator<T> Split<T>(this ReadOnlySpan<T> source, ReadOnlySpan<T> separator) where T : IEquatable<T> => 5055/// or when <see cref="SplitAny(ReadOnlySpan{char}, Span{Range}, ReadOnlySpan{char}, StringSplitOptions)"/> 5058public static SpanSplitEnumerator<T> SplitAny<T>(this ReadOnlySpan<T> source, [UnscopedRef] params ReadOnlySpan<T> separators) where T : IEquatable<T> => 5070/// Unlike <see cref="SplitAny{T}(ReadOnlySpan{T}, ReadOnlySpan{T})"/>, the <paramref name="separators"/> is not checked for being empty. 5072/// whereas <see cref="SplitAny{T}(ReadOnlySpan{T}, ReadOnlySpan{T})"/> will use all Unicode whitespace characters as separators if <paramref name="separators"/> is 5075public static SpanSplitEnumerator<T> SplitAny<T>(this ReadOnlySpan<T> source, SearchValues<T> separators) where T : IEquatable<T> => 5079/// Parses the source <see cref="ReadOnlySpan{Char}"/> for the specified <paramref name="separator"/>, populating the <paramref name="destination"/> span 5105public static int Split(this ReadOnlySpan<char> source, Span<Range> destination, char separator, StringSplitOptions options = StringSplitOptions.None) 5113/// Parses the source <see cref="ReadOnlySpan{Char}"/> for the specified <paramref name="separator"/>, populating the <paramref name="destination"/> span 5139public static int Split(this ReadOnlySpan<char> source, Span<Range> destination, ReadOnlySpan<char> separator, StringSplitOptions options = StringSplitOptions.None) 5169/// Parses the source <see cref="ReadOnlySpan{Char}"/> for one of the specified <paramref name="separators"/>, populating the <paramref name="destination"/> span 5195public static int SplitAny(this ReadOnlySpan<char> source, Span<Range> destination, ReadOnlySpan<char> separators, StringSplitOptions options = StringSplitOptions.None) 5210/// Parses the source <see cref="ReadOnlySpan{Char}"/> for one of the specified <paramref name="separators"/>, populating the <paramref name="destination"/> span 5236public static int SplitAny(this ReadOnlySpan<char> source, Span<Range> destination, ReadOnlySpan<string> separators, StringSplitOptions options = StringSplitOptions.None) 5260ReadOnlySpan<char> source, Span<Range> destination, 5261ReadOnlySpan<char> separatorOrSeparators, ReadOnlySpan<string?> stringSeparators, bool isAny, 5396private static (int StartInclusive, int EndExclusive) TrimSplitEntry(ReadOnlySpan<char> source, int startInclusive, int endExclusive) 5418Count((ReadOnlySpan<T>)span, value); 5426public static unsafe int Count<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>? 5473public static unsafe int Count<T>(this ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer = null) 5510static int CountDefaultComparer(ReadOnlySpan<T> span, T value) 5527static int CountComparer(ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer) 5551public static int Count<T>(this Span<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>? => 5552Count((ReadOnlySpan<T>)span, value); 5559public static int Count<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>? 5589public static int Count<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value, IEqualityComparer<T>? comparer = null) 5620public static int CountAny<T>(this ReadOnlySpan<T> span, SearchValues<T> values) where T : IEquatable<T>? 5640public static int CountAny<T>(this ReadOnlySpan<T> span, params ReadOnlySpan<T> values) where T : IEquatable<T>? 5664public static int CountAny<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values, IEqualityComparer<T>? comparer = null) 5792return TryWrite(destination, provider, format, out charsWritten, (ReadOnlySpan<object?>)args); 5807public static bool TryWrite(this Span<char> destination, IFormatProvider? provider, CompositeFormat format, out int charsWritten, params ReadOnlySpan<object?> args) 5820private 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) 5871/// Enables enumerating each split within a <see cref="ReadOnlySpan{T}"/> that has been divided using one or more separators. 5877private readonly ReadOnlySpan<T> _source; 5885private readonly ReadOnlySpan<T> _separatorBuffer; 5903/// <returns>Returns the <see cref="ReadOnlySpan{T}"/> that was provided when creating this enumerator.</returns> 5904public readonly ReadOnlySpan<T> Source => _source; 5911internal SpanSplitEnumerator(ReadOnlySpan<T> source, SearchValues<T> searchValues) 5924internal SpanSplitEnumerator(ReadOnlySpan<T> source, ReadOnlySpan<T> separators) 5941internal SpanSplitEnumerator(ReadOnlySpan<T> source, ReadOnlySpan<T> separator, bool treatAsSingleSeparator) 5953internal SpanSplitEnumerator(ReadOnlySpan<T> source, T separator) 6047/// instance instead of in a <see cref="ReadOnlySpan{Char}"/>. 6291public bool AppendFormatted(scoped ReadOnlySpan<char> value) 6307public bool AppendFormatted(scoped ReadOnlySpan<char> value, int alignment = 0, string? format = null)
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Globalization.cs (36)
17public static bool IsWhiteSpace(this ReadOnlySpan<char> span) 34public static bool Contains(this ReadOnlySpan<char> span, ReadOnlySpan<char> value, StringComparison comparisonType) 45public static bool ContainsAnyWhiteSpace(this ReadOnlySpan<char> span) => 56public static bool Equals(this ReadOnlySpan<char> span, ReadOnlySpan<char> other, StringComparison comparisonType) 80internal static bool EqualsOrdinal(this ReadOnlySpan<char> span, ReadOnlySpan<char> value) 90internal static bool EqualsOrdinalIgnoreCase(this ReadOnlySpan<char> span, ReadOnlySpan<char> value) 106public static int CompareTo(this ReadOnlySpan<char> span, ReadOnlySpan<char> other, StringComparison comparisonType) 137public static int IndexOf(this ReadOnlySpan<char> span, ReadOnlySpan<char> value, StringComparison comparisonType) 167public static int IndexOfAnyWhiteSpace(this ReadOnlySpan<char> span) => 175public static int IndexOfAnyExceptWhiteSpace(this ReadOnlySpan<char> span) => 184public static int LastIndexOf(this ReadOnlySpan<char> span, ReadOnlySpan<char> value, StringComparison comparisonType) 218public static int LastIndexOfAnyWhiteSpace(this ReadOnlySpan<char> span) => 226public static int LastIndexOfAnyExceptWhiteSpace(this ReadOnlySpan<char> span) => 239public static int ToLower(this ReadOnlySpan<char> source, Span<char> destination, CultureInfo? culture) 265public static int ToLowerInvariant(this ReadOnlySpan<char> source, Span<char> destination) 291public static int ToUpper(this ReadOnlySpan<char> source, Span<char> destination, CultureInfo? culture) 317public static int ToUpperInvariant(this ReadOnlySpan<char> source, Span<char> destination) 341public static int ToUpperOrdinal(this ReadOnlySpan<char> source, Span<char> destination) => 352public static int ToLowerOrdinal(this ReadOnlySpan<char> source, Span<char> destination) => 362public static bool EndsWith(this ReadOnlySpan<char> span, ReadOnlySpan<char> value, StringComparison comparisonType) 386internal static bool EndsWithOrdinalIgnoreCase(this ReadOnlySpan<char> span, ReadOnlySpan<char> value) 400public static bool StartsWith(this ReadOnlySpan<char> span, ReadOnlySpan<char> value, StringComparison comparisonType) 424internal static bool StartsWithOrdinalIgnoreCase(this ReadOnlySpan<char> span, ReadOnlySpan<char> value) 434public static SpanRuneEnumerator EnumerateRunes(this ReadOnlySpan<char> span) 459public static SpanLineEnumerator EnumerateLines(this ReadOnlySpan<char> span)
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Globalization.Utf8.cs (6)
13internal static bool EqualsOrdinalIgnoreCaseUtf8(this ReadOnlySpan<byte> span, ReadOnlySpan<byte> value) 24internal static bool StartsWithUtf8(this ReadOnlySpan<byte> span, ReadOnlySpan<byte> value, StringComparison comparisonType) 56internal static bool StartsWithOrdinalIgnoreCaseUtf8(this ReadOnlySpan<byte> span, ReadOnlySpan<byte> value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.MinMax.cs (14)
22/// <para>If type <typeparamref name="T" /> implements <see cref="System.IComparable{T}" />, the <see cref="Min{T}(ReadOnlySpan{T})" /> method uses that implementation to compare values. Otherwise, if type <typeparamref name="T" /> implements <see cref="System.IComparable" />, that implementation is used to compare values.</para> 26public static T? Min<T>(this ReadOnlySpan<T> span) 57public static T? Min<T>(this ReadOnlySpan<T> span, IComparer<T>? comparer) 75/// <para>If type <typeparamref name="T" /> implements <see cref="System.IComparable{T}" />, the <see cref="Max{T}(ReadOnlySpan{T})" /> method uses that implementation to compare values. Otherwise, if type <typeparamref name="T" /> implements <see cref="System.IComparable" />, that implementation is used to compare values.</para> 79public static T? Max<T>(this ReadOnlySpan<T> span) 110public static T? Max<T>(this ReadOnlySpan<T> span, IComparer<T>? comparer) 135private static T? MinMax<T, TDirection>(this ReadOnlySpan<T> span, IComparer<T> comparer) 224private static TOuter MinMaxInteger<TOuter, TInner, TMinMax>(this ReadOnlySpan<TOuter> span) 227Unsafe.BitCast<TInner, TOuter>(MinMaxInteger<TInner, TMinMax>(Unsafe.BitCast<ReadOnlySpan<TOuter>, ReadOnlySpan<TInner>>(span))); 229private static T MinMaxInteger<T, TMinMax>(this ReadOnlySpan<T> span) 259ReadOnlySpan<T> data = span; 272ReadOnlySpan<T> data = span; 288ReadOnlySpan<T> data = span;
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Trim.Utf8.cs (6)
12internal static ReadOnlySpan<byte> TrimStartUtf8(this ReadOnlySpan<byte> span) 35internal static ReadOnlySpan<byte> TrimUtf8(this ReadOnlySpan<byte> span) 69static ReadOnlySpan<byte> TrimFallback(ReadOnlySpan<byte> span)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (13)
24ReadOnlySpan<char> valueSpan = value.AsSpan(); 52ReadOnlySpan<char> valueSpan = value.AsSpan(); 78private static void HtmlEncode(ReadOnlySpan<char> input, ref ValueStringBuilder output) 157ReadOnlySpan<char> valueSpan = value.AsSpan(); 181ReadOnlySpan<char> valueSpan = value.AsSpan(); 203private static void HtmlDecode(ReadOnlySpan<char> input, ref ValueStringBuilder output) 214ReadOnlySpan<char> inputSlice = input.Slice(i + 1); 251ReadOnlySpan<char> entity = inputSlice.Slice(0, entityLength); 278private static int IndexOfHtmlEncodingChar(ReadOnlySpan<char> input) 383ReadOnlySpan<byte> source = value.AsSpan(offset, count); 688ReadOnlySpan<byte> tableData = 959public static char Lookup(ReadOnlySpan<char> entity) 975private static ulong ToUInt64Key(ReadOnlySpan<char> entity)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.BigInteger.cs (9)
49private static ReadOnlySpan<ulong> Pow10Table => ulong.PowersOf10; 68private static ReadOnlySpan<int> Pow10BigNumTableIndices => 79private static ReadOnlySpan<ulong> Pow10BigNumTable => 806ReadOnlySpan<nuint> largeBlocks = ((ReadOnlySpan<nuint>)large._blocks).Slice(0, largeLength); 807ReadOnlySpan<nuint> smallBlocks = ((ReadOnlySpan<nuint>)small._blocks).Slice(0, smallLength); 851ReadOnlySpan<byte> table = MemoryMarshal.AsBytes(Pow10BigNumTable); 996if (((ReadOnlySpan<nuint>)_blocks)[..fullBlocks].ContainsAnyExcept((nuint)0))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.DiyFp128Cbrt.cs (3)
23private static ReadOnlySpan<double> CbrtCoefficients => 34private static ReadOnlySpan<double> CbrtPow2Thirds => 51ReadOnlySpan<double> c = CbrtCoefficients;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.DiyFp128DecimalReduce.cs (4)
37private static ReadOnlySpan<ulong> TrigOneOverTwoPi => 227private static void DiyFp128ReduceFractionPositive(ReadOnlySpan<ulong> integerWords, Span<ulong> fractionWords) 344private static void DiyFp128ReducePropagate(ReadOnlySpan<UInt128> columnLo, ReadOnlySpan<ulong> columnHi, int columns, Span<ulong> fractionWords)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.DiyFp128Exp.cs (8)
34private static ReadOnlySpan<DiyFp128FixedCoefficient> DiyFp128FixedCoefficients(ReadOnlySpan<ulong> coefficients) 55private static ReadOnlySpan<DiyFp128FixedCoefficient> ExpCoefficients => DiyFp128FixedCoefficients( 95private static ReadOnlySpan<DiyFp128FixedCoefficient> Exp10Coefficients => DiyFp128FixedCoefficients( 194private static void DiyFp128EvaluatePositivePolynomial(scoped in DiyFp128 x, long shift, ReadOnlySpan<DiyFp128FixedCoefficient> coefficients, int index, long count, out DiyFp128 result) 370private static void DiyFp128EvaluateNegativePolynomial(scoped in DiyFp128 x, long shift, ReadOnlySpan<DiyFp128FixedCoefficient> coefficients, int index, long count, out DiyFp128 result) 516private static void DiyFp128EvaluateExpPolynomial(DiyFp128 argument, ReadOnlySpan<DiyFp128FixedCoefficient> coefficients, int degree, int trailingExponent, out DiyFp128 result) 556private static DiyFp128 DiyFp128ExpM1(scoped in DiyFp128 argument, ulong reciprocalHigh, ulong ln2High, int reduceConstantExponent, scoped in DiyFp128 ln2Low, ReadOnlySpan<DiyFp128FixedCoefficient> coefficients, int degree, int trailingExponent)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.DiyFp128Hyper.cs (2)
43private static ReadOnlySpan<DiyFp128FixedCoefficient> HyperSinhCoefficients => DiyFp128FixedCoefficients( 60private static ReadOnlySpan<DiyFp128FixedCoefficient> HyperCoshCoefficients => DiyFp128FixedCoefficients(
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.DiyFp128InvTrig.cs (6)
38ReadOnlySpan<int> exponents = [UxZeroExponent, 0, 1, 2, 2]; 39ReadOnlySpan<ulong> significands = 51private static ReadOnlySpan<DiyFp128FixedCoefficient> InvTrigAtanNumeratorCoefficients => DiyFp128FixedCoefficients( 67private static ReadOnlySpan<DiyFp128FixedCoefficient> InvTrigAtanDenominatorCoefficients => DiyFp128FixedCoefficients( 83private static ReadOnlySpan<DiyFp128FixedCoefficient> InvTrigAsinNumeratorCoefficients => DiyFp128FixedCoefficients( 99private static ReadOnlySpan<DiyFp128FixedCoefficient> InvTrigAsinDenominatorCoefficients => DiyFp128FixedCoefficients(
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.DiyFp128Log.cs (2)
29private static ReadOnlySpan<DiyFp128FixedCoefficient> Log2Coefficients => DiyFp128FixedCoefficients( 90private static void DiyFp128EvaluateLogPolynomial(scoped in DiyFp128 arg, ReadOnlySpan<DiyFp128FixedCoefficient> coefficients, int degree, int trailingExponent, out DiyFp128 result)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.DiyFp128PiTrig.cs (2)
23ReadOnlySpan<int> exponents = [UxZeroExponent, -1, 0, 0, 1]; 24ReadOnlySpan<ulong> significands = [0, UxMsb, UxMsb, 0xC000000000000000, UxMsb];
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.DiyFp128Pow.cs (2)
37private static ReadOnlySpan<DiyFp128FixedCoefficient> PowLog2Coefficients => DiyFp128FixedCoefficients( 63private static ReadOnlySpan<DiyFp128FixedCoefficient> Pow2Coefficients => DiyFp128FixedCoefficients(
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.DiyFp128Sqrt.cs (4)
37private static ReadOnlySpan<float> SqrtCoefficientsAB => 297private static ReadOnlySpan<double> SqrtCoefficientsC => 578ReadOnlySpan<float> coefficientsAB = SqrtCoefficientsAB; 579ReadOnlySpan<double> coefficientsC = SqrtCoefficientsC;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.DiyFp128Trig.cs (7)
51private static ReadOnlySpan<DiyFp128FixedCoefficient> TrigSinCoefficients => DiyFp128FixedCoefficients( 69private static ReadOnlySpan<DiyFp128FixedCoefficient> TrigCosCoefficients => DiyFp128FixedCoefficients( 87private static ReadOnlySpan<DiyFp128FixedCoefficient> TrigTanNumeratorCoefficients => DiyFp128FixedCoefficients( 99private static ReadOnlySpan<DiyFp128FixedCoefficient> TrigTanDenominatorCoefficients => DiyFp128FixedCoefficients( 112private static ReadOnlySpan<ulong> TrigFourOverPi => 406ReadOnlySpan<DiyFp128FixedCoefficient> numerator, int numeratorTrailingExponent, 407ReadOnlySpan<DiyFp128FixedCoefficient> denominator, int denominatorTrailingExponent,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Formatting.cs (28)
308private static string? FormatDecimalIeee754<TDecimal, TValue, TChar>(ref ValueListBuilder<TChar> vlb, ref NumberBuffer number, TValue value, ReadOnlySpan<char> format, NumberFormatInfo info) 370internal static bool TryFormatDecimalIeee754<TDecimal, TValue, TChar>(TValue value, ReadOnlySpan<char> format, NumberFormatInfo info, Span<TChar> destination, out int charsWritten) 418ReadOnlySpan<byte> dig = number.Digits.Slice(0, digitCount); 480public static string FormatDecimal(decimal value, ReadOnlySpan<char> format, NumberFormatInfo info) 504public static bool TryFormatDecimal<TChar>(decimal value, ReadOnlySpan<char> format, NumberFormatInfo info, Span<TChar> destination, out int charsWritten) where TChar : unmanaged, IUtfChar<TChar> 924public static bool TryFormatFloat<TNumber, TChar>(TNumber value, ReadOnlySpan<char> format, NumberFormatInfo info, Span<TChar> destination, out int charsWritten) 948private static string? FormatFloat<TNumber, TChar>(ref ValueListBuilder<TChar> vlb, ref NumberBuffer number, TNumber value, ReadOnlySpan<char> format, NumberFormatInfo info) 1081ReadOnlySpan<char> formatSpan = format; 1125public static bool TryFormatInt32<TChar>(int value, int hexMask, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten) where TChar : unmanaged, IUtfChar<TChar> 1137static bool TryFormatInt32Slow(int value, int hexMask, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten) 1193ReadOnlySpan<char> formatSpan = format; 1235public static bool TryFormatUInt32<TChar>(uint value, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten) where TChar : unmanaged, IUtfChar<TChar> 1247static bool TryFormatUInt32Slow(uint value, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten) 1303ReadOnlySpan<char> formatSpan = format; 1347public static bool TryFormatInt64<TChar>(long value, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten) where TChar : unmanaged, IUtfChar<TChar> 1361static bool TryFormatInt64Slow(long value, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten) 1417ReadOnlySpan<char> formatSpan = format; 1459public static bool TryFormatUInt64<TChar>(ulong value, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten) where TChar : unmanaged, IUtfChar<TChar> 1471static bool TryFormatUInt64Slow(ulong value, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten) 1527ReadOnlySpan<char> formatSpan = format; 1572public static bool TryFormatInt128<TChar>(Int128 value, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten) where TChar : unmanaged, IUtfChar<TChar> 1586static bool TryFormatInt128Slow(Int128 value, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten) 1643ReadOnlySpan<char> formatSpan = format; 1686public static bool TryFormatUInt128<TChar>(UInt128 value, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten) where TChar : unmanaged, IUtfChar<TChar> 1698static bool TryFormatUInt128Slow(UInt128 value, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten) 1814internal static bool TryNegativeInt32ToDecStr<TChar>(int value, int digits, ReadOnlySpan<TChar> sNegative, Span<TChar> destination, out int charsWritten) where TChar : unmanaged, IUtfChar<TChar> 2104internal static bool TryNegativeInt64ToDecStr<TChar>(long value, int digits, ReadOnlySpan<TChar> sNegative, Span<TChar> destination, out int charsWritten) where TChar : unmanaged, IUtfChar<TChar> 2506private static bool TryNegativeInt128ToDecStr<TChar>(Int128 value, int digits, ReadOnlySpan<TChar> sNegative, Span<TChar> destination, out int charsWritten) where TChar : unmanaged, IUtfChar<TChar>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Grisu3.cs (4)
37private static ReadOnlySpan<short> CachedPowersBinaryExponent => 128private static ReadOnlySpan<short> CachedPowersDecimalExponent => 219private static ReadOnlySpan<ulong> CachedPowersSignificand => 310private static ReadOnlySpan<uint> SmallPowersOfTen =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.NumberToFloatingPointBits.cs (6)
14internal static ReadOnlySpan<double> Pow10DoubleTable => 45private static ReadOnlySpan<ulong> Pow5128Table => 704ReadOnlySpan<byte> digits = number.Digits.Slice((int)firstIndex, (int)(lastIndex - firstIndex)); 871internal static uint DigitsToUInt32(ReadOnlySpan<byte> p) 893internal static ulong DigitsToUInt64(ReadOnlySpan<byte> p) 919internal static uint ParseEightDigitsUnrolled(ReadOnlySpan<byte> chars)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (80)
201ReadOnlySpan<byte> digits = number.Digits; 252internal static TInteger ParseBinaryInteger<TChar, TInteger>(ReadOnlySpan<TChar> value, NumberStyles styles, NumberFormatInfo info) 266internal static ParsingStatus TryParseBinaryInteger<TChar, TInteger>(ReadOnlySpan<TChar> value, NumberStyles styles, NumberFormatInfo info, out TInteger result, out int elementsConsumed) 289private static ParsingStatus TryParseBinaryIntegerNumber<TChar, TInteger>(ReadOnlySpan<TChar> value, NumberStyles styles, NumberFormatInfo info, out TInteger result, out int elementsConsumed) 311internal static ParsingStatus TryParseBinaryIntegerStyle<TChar, TInteger>(ReadOnlySpan<TChar> value, NumberStyles styles, NumberFormatInfo info, out TInteger result, out int elementsConsumed) 611internal static ParsingStatus TryParseBinaryIntegerHexOrBinaryNumberStyle<TChar, TInteger, TParser>(ReadOnlySpan<TChar> value, NumberStyles styles, out TInteger result, out int elementsConsumed) 786internal static decimal ParseDecimal<TChar>(ReadOnlySpan<TChar> value, NumberStyles styles, NumberFormatInfo info) 803internal static TDecimal ParseDecimalIeee754<TChar, TDecimal, TValue>(ReadOnlySpan<TChar> value, NumberStyles styles, NumberFormatInfo info) 825ReadOnlySpan<byte> digits = number.Digits.Slice(0, number.DigitsCount); 943static uint PeekDigit(ReadOnlySpan<byte> digits, int pos) 947internal static TFloat ParseFloat<TChar, TFloat>(ReadOnlySpan<TChar> value, NumberStyles styles, NumberFormatInfo info) 958internal static ParsingStatus TryParseDecimal<TChar>(ReadOnlySpan<TChar> value, NumberStyles styles, NumberFormatInfo info, out decimal result, out int elementsConsumed) 979internal static ParsingStatus TryParseDecimalIeee754<TChar, TDecimal, TValue>(ReadOnlySpan<TChar> value, NumberStyles styles, NumberFormatInfo info, out TDecimal result, out int elementsConsumed) 994ReadOnlySpan<TChar> valueTrim = SpanTrimStart(value); 1001ReadOnlySpan<TChar> positiveInfinitySymbol = info.PositiveInfinitySymbolTChar<TChar>(); 1015ReadOnlySpan<TChar> nanSymbol = info.NaNSymbolTChar<TChar>(); 1023ReadOnlySpan<TChar> positiveSign = info.PositiveSignTChar<TChar>(); 1027ReadOnlySpan<TChar> afterSign = valueTrim.Slice(positiveSign.Length); 1050ReadOnlySpan<TChar> afterSign = valueTrim.Slice(negativeSignLength); 1070internal static bool SpanStartsWith<TChar>(ReadOnlySpan<TChar> span, TChar c) 1076private static int GetMatchingNegativeSignLength<TChar>(ReadOnlySpan<TChar> value, ReadOnlySpan<TChar> negativeSign, NumberFormatInfo info) 1087internal static bool SpanStartsWith<TChar>(ReadOnlySpan<TChar> span, ReadOnlySpan<TChar> value, StringComparison comparisonType) 1092return Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<char>>(span) 1093.StartsWith(Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<char>>(value), comparisonType); 1099return Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(span) 1100.StartsWithUtf8(Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(value), comparisonType); 1104internal static bool SpanEqualsOrdinalIgnoreCase<TChar>(ReadOnlySpan<TChar> span, ReadOnlySpan<TChar> value) 1109return Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<char>>(span) 1110.EqualsOrdinalIgnoreCase(Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<char>>(value)); 1116return Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(span) 1117.EqualsOrdinalIgnoreCaseUtf8(Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(value)); 1122internal static ReadOnlySpan<TChar> SpanTrim<TChar>(ReadOnlySpan<TChar> span) 1127return Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<char>>(span).Trim()); 1133return Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(span).TrimUtf8()); 1138internal static ReadOnlySpan<TChar> SpanTrimStart<TChar>(ReadOnlySpan<TChar> span) 1143return Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<char>>(span).TrimStart()); 1149return Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(span).TrimStartUtf8()); 1162internal static bool TryMatchSpecialValueSymbol<TChar>(ReadOnlySpan<TChar> candidate, ReadOnlySpan<TChar> symbol, bool allowTrailingInvalid, ref int elementsConsumed) 1167ReadOnlySpan<TChar> trailing = SpanTrimStart(candidate.Slice(symbol.Length)); 1179internal static bool TryParseHexFloatingPoint<TChar, TFloat>(ReadOnlySpan<TChar> value, NumberStyles styles, NumberFormatInfo info, out TFloat result, out int elementsConsumed) 1298ReadOnlySpan<TChar> decimalSeparator = info.NumberDecimalSeparatorTChar<TChar>(); 1299ReadOnlySpan<TChar> remaining = value[index..]; 1546internal static bool TryParseFloat<TChar, TFloat>(ReadOnlySpan<TChar> value, NumberStyles styles, NumberFormatInfo info, out TFloat result, out int elementsConsumed) 1576ReadOnlySpan<TChar> valueTrim = SpanTrimStart(value); 1587ReadOnlySpan<TChar> positiveInfinitySymbol = info.PositiveInfinitySymbolTChar<TChar>(); 1601ReadOnlySpan<TChar> nanSymbol = info.NaNSymbolTChar<TChar>(); 1609ReadOnlySpan<TChar> positiveSign = info.PositiveSignTChar<TChar>(); 1613ReadOnlySpan<TChar> afterSign = valueTrim.Slice(positiveSign.Length); 1636ReadOnlySpan<TChar> afterSign = valueTrim.Slice(negativeSignLength); 1652internal static void ThrowOverflowOrFormatException<TChar, TInteger>(ParsingStatus status, ReadOnlySpan<TChar> value) 1664internal static void ThrowFormatException<TChar>(ReadOnlySpan<TChar> value) 1677ReadOnlySpan<byte> bytes = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (26)
267/// Parses a <see cref="BFloat16"/> from a <see cref="ReadOnlySpan{Char}"/> and <see cref="IFormatProvider"/>. 273public static BFloat16 Parse(ReadOnlySpan<char> s, NumberStyles style = DefaultParseStyle, IFormatProvider? provider = null) 288/// Tries to parse a <see cref="BFloat16"/> from a <see cref="ReadOnlySpan{Char}"/> in the default parse style. 293public static bool TryParse(ReadOnlySpan<char> s, out BFloat16 result) => TryParse(s, DefaultParseStyle, provider: null, out result); 297/// <param name="result">When this method returns, contains a <see cref="BFloat16"/> 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> 299public static bool TryParse(ReadOnlySpan<byte> utf8Text, out BFloat16 result) => TryParse(utf8Text, DefaultParseStyle, provider: null, out result); 316/// Tries to parse a <see cref="BFloat16"/> from a <see cref="ReadOnlySpan{Char}"/> with the given <see cref="NumberStyles"/> and <see cref="IFormatProvider"/>. 323public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out BFloat16 result) 423public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 429public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 1961/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{char}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1962public static bool TryParsePartial(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out BFloat16 result, out int charsConsumed) 1968/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1969public static bool TryParsePartial(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out BFloat16 result, out int bytesConsumed) 2016/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 2017public static BFloat16 Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, DefaultParseStyle, provider); 2019/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 2020public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out BFloat16 result) => TryParse(s, DefaultParseStyle, provider, out result); 2107/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 2108public static BFloat16 Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = DefaultParseStyle, IFormatProvider? provider = null) 2114/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 2115public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out BFloat16 result) 2121/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 2122public static BFloat16 Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, DefaultParseStyle, provider); 2124/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 2125public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out BFloat16 result) => TryParse(utf8Text, DefaultParseStyle, provider, out result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BigIntegerCalculator.Shared.cs (61)
35public static int Compare(ReadOnlySpan<nuint> left, ReadOnlySpan<nuint> right) 56private static int CompareActual(ReadOnlySpan<nuint> left, ReadOnlySpan<nuint> right) 83public static int ActualLength(ReadOnlySpan<nuint> value) 92internal static int GetLimbOffset(ReadOnlySpan<nuint> value) 102internal static int GetCommonLimbOffset(ReadOnlySpan<nuint> left, ReadOnlySpan<nuint> right) 165internal static void DivideByPowerOfTwo(ReadOnlySpan<nuint> left, int exponent, Span<nuint> quotient) 168ReadOnlySpan<nuint> source = left[limbShift..]; 299internal static nuint Mul1(Span<nuint> result, ReadOnlySpan<nuint> left, nuint multiplier) 350internal static nuint MulAdd1(Span<nuint> result, ReadOnlySpan<nuint> left, nuint multiplier) 405internal static nuint SubMul1(Span<nuint> result, ReadOnlySpan<nuint> right, nuint multiplier) 480private static void CopyTail(ReadOnlySpan<nuint> source, Span<nuint> dest, int start) 485public static void Add(ReadOnlySpan<nuint> left, nuint right, Span<nuint> bits) 493public static void Add(ReadOnlySpan<nuint> left, ReadOnlySpan<nuint> right, Span<nuint> bits) 534ReadOnlySpan<nuint> left, 536ReadOnlySpan<nuint> right, 545ReadOnlySpan<nuint> low = left; 547ReadOnlySpan<nuint> high = right; 567ReadOnlySpan<nuint> lowOverlap = low[highOffset..]; 568ReadOnlySpan<nuint> highMagnitude = high[highOffset..]; 582public static void AddSelf(Span<nuint> left, ReadOnlySpan<nuint> right) 609public static void Subtract(ReadOnlySpan<nuint> left, nuint right, Span<nuint> bits) 618public static void Subtract(ReadOnlySpan<nuint> left, ReadOnlySpan<nuint> right, Span<nuint> bits) 646public static void SubtractSelf(Span<nuint> left, ReadOnlySpan<nuint> right) 674private static void Add(ReadOnlySpan<nuint> left, Span<nuint> bits, int startIndex, nuint initialCarry) 721private static void Subtract(ReadOnlySpan<nuint> left, Span<nuint> bits, int startIndex, nuint initialBorrow) 768public static void MultiplyNaive(ReadOnlySpan<nuint> left, ReadOnlySpan<nuint> right, Span<nuint> bits) 787internal static void MultiplyNaiveSparse(ReadOnlySpan<nuint> left, ReadOnlySpan<nuint> right, Span<nuint> bits) 813internal static bool IsRepeatedLimbCandidate(ReadOnlySpan<nuint> value) 821ReadOnlySpan<nuint> left, 822ReadOnlySpan<nuint> right, 913ReadOnlySpan<nuint> left, 914ReadOnlySpan<nuint> right, 925internal static bool IsShiftedRepeatedLimbCandidate(ReadOnlySpan<nuint> value) 934ReadOnlySpan<nuint> left, 935ReadOnlySpan<nuint> right, 1038ReadOnlySpan<nuint> value, 1103public static void Multiply(ReadOnlySpan<nuint> left, nuint right, Span<nuint> bits) 1137private static void MultiplyByPowerOfTwo(ReadOnlySpan<nuint> value, int exponent, Span<nuint> bits) 1162public static void Divide(ReadOnlySpan<nuint> left, nuint right, Span<nuint> quotient, out nuint remainder) 1186public static void Divide(ReadOnlySpan<nuint> left, nuint right, Span<nuint> quotient) 1221ReadOnlySpan<nuint> left, 1232private static void RemainderDirect(ReadOnlySpan<nuint> left, nuint right, ref nuint carry) 1240private static void DivideCore(ReadOnlySpan<nuint> left, nuint right, Span<nuint> quotient, ref nuint carry) 1323ReadOnlySpan<nuint> left, 1364ReadOnlySpan<nuint> left, 1490private static nuint GetShiftedDigit(ReadOnlySpan<nuint> value, int index, int shift, nuint leading) 1505private static nuint RestoreShiftedRemainder(ReadOnlySpan<nuint> value, nuint remainder, int shift) => 1509ReadOnlySpan<nuint> left, 1554public static nuint Remainder(ReadOnlySpan<nuint> left, nuint right) 1610internal static void DivideGrammarSchoolSpecial(Span<nuint> left, ReadOnlySpan<nuint> right, Span<nuint> quotient) 1625ReadOnlySpan<nuint> reducedRight = right[commonOffset..]; 1648internal static void DivideGrammarSchool(Span<nuint> left, ReadOnlySpan<nuint> right, Span<nuint> quotient) 1739private static nuint AddDivisor(Span<nuint> left, ReadOnlySpan<nuint> right) 1756private static nuint SubtractDivisor(Span<nuint> left, ReadOnlySpan<nuint> right, nuint q)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BitOperations.cs (2)
28private static ReadOnlySpan<byte> TrailingZeroCountDeBruijn => // 32 36private static ReadOnlySpan<byte> Log2DeBruijn => // 32
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Colors\Argb.T.cs (2)
62/// The <see cref="ReadOnlySpan{T}"/> containing the color components in the order alpha, red, green, blue. 64public Argb(ReadOnlySpan<T> values)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Colors\Rgba.T.cs (2)
62/// The <see cref="ReadOnlySpan{T}"/> containing the color components in the order red, green, blue, alpha. 64public Rgba(ReadOnlySpan<T> values)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal128.cs (26)
135/// <inheritdoc cref="ISpanParsable{T}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 136public static Decimal128 Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider); 147/// Parses a <see cref="Decimal128"/> from a <see cref="ReadOnlySpan{Char}"/> and <see cref="IFormatProvider"/>. 153public static Decimal128 Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Float | NumberStyles.AllowThousands, IFormatProvider? provider = null) 184/// Tries to parse a <see cref="Decimal128"/> from a <see cref="ReadOnlySpan{Char}"/> in the default parse style. 189public static bool TryParse(ReadOnlySpan<char> s, out Decimal128 result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider: null, out result); 191/// <inheritdoc cref="ISpanParsable{T}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out T)" /> 192public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, [MaybeNullWhen(false)] out Decimal128 result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider, out result); 204/// Tries to parse a <see cref="Decimal128"/> from a <see cref="ReadOnlySpan{Char}"/> with the given <see cref="NumberStyles"/> and <see cref="IFormatProvider"/>. 211public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, [MaybeNullWhen(false)] out Decimal128 result) 329/// <inheritdoc cref="ISpanFormattable.TryFormat(Span{char}, out int, ReadOnlySpan{char}, IFormatProvider?)" /> 330public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 335/// <inheritdoc cref="IUtf8SpanFormattable.TryFormat(Span{byte}, out int, ReadOnlySpan{char}, IFormatProvider?)" /> 336public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 763/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{char}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 764public static bool TryParsePartial(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out Decimal128 result, out int charsConsumed) 770/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 771public static bool TryParsePartial(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out Decimal128 result, out int bytesConsumed) 778/// Tries to parse a <see cref="Decimal128"/> from a <see cref="ReadOnlySpan{Byte}"/> containing UTF-8 text in the default parse style. 783public static bool TryParse(ReadOnlySpan<byte> utf8Text, out Decimal128 result) => TryParse(utf8Text, provider: null, out result); 785/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 786public static Decimal128 Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Float | NumberStyles.AllowThousands, IFormatProvider? provider = null) 792/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 793public static Decimal128 Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider); 795/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 796public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, [MaybeNullWhen(false)] out Decimal128 result) => Number.TryParseDecimalIeee754<byte, Decimal128, UInt128>(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, NumberFormatInfo.GetInstance(provider), out result, out _) == Number.ParsingStatus.OK;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal32.cs (27)
101private static ReadOnlySpan<uint> UInt32Powers10 => 127/// <inheritdoc cref="ISpanParsable{T}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 128public static Decimal32 Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider); 139/// Parses a <see cref="Decimal32"/> from a <see cref="ReadOnlySpan{Char}"/> and <see cref="IFormatProvider"/>. 145public static Decimal32 Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Float | NumberStyles.AllowThousands, IFormatProvider? provider = null) 176/// Tries to parse a <see cref="Decimal32"/> from a <see cref="ReadOnlySpan{Char}"/> in the default parse style. 181public static bool TryParse(ReadOnlySpan<char> s, out Decimal32 result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider: null, out result); 183/// <inheritdoc cref="ISpanParsable{T}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out T)" /> 184public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, [MaybeNullWhen(false)] out Decimal32 result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider, out result); 196/// Tries to parse a <see cref="Decimal32"/> from a <see cref="ReadOnlySpan{Char}"/> with the given <see cref="NumberStyles"/> and <see cref="IFormatProvider"/>. 203public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, [MaybeNullWhen(false)] out Decimal32 result) 323/// <inheritdoc cref="ISpanFormattable.TryFormat(Span{char}, out int, ReadOnlySpan{char}, IFormatProvider?)" /> 324public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 329/// <inheritdoc cref="IUtf8SpanFormattable.TryFormat(Span{byte}, out int, ReadOnlySpan{char}, IFormatProvider?)" /> 330public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 774/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{char}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 775public static bool TryParsePartial(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out Decimal32 result, out int charsConsumed) 781/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 782public static bool TryParsePartial(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out Decimal32 result, out int bytesConsumed) 789/// Tries to parse a <see cref="Decimal32"/> from a <see cref="ReadOnlySpan{Byte}"/> containing UTF-8 text in the default parse style. 794public static bool TryParse(ReadOnlySpan<byte> utf8Text, out Decimal32 result) => TryParse(utf8Text, provider: null, out result); 796/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 797public static Decimal32 Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Float | NumberStyles.AllowThousands, IFormatProvider? provider = null) 803/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 804public static Decimal32 Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider); 806/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 807public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, [MaybeNullWhen(false)] out Decimal32 result) => Number.TryParseDecimalIeee754<byte, Decimal32, uint>(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, NumberFormatInfo.GetInstance(provider), out result, out _) == Number.ParsingStatus.OK;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal64.cs (27)
96private static ReadOnlySpan<ulong> UInt64Powers10 => 136/// <inheritdoc cref="ISpanParsable{T}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 137public static Decimal64 Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider); 148/// Parses a <see cref="Decimal64"/> from a <see cref="ReadOnlySpan{Char}"/> and <see cref="IFormatProvider"/>. 154public static Decimal64 Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Float | NumberStyles.AllowThousands, IFormatProvider? provider = null) 185/// Tries to parse a <see cref="Decimal64"/> from a <see cref="ReadOnlySpan{Char}"/> in the default parse style. 190public static bool TryParse(ReadOnlySpan<char> s, out Decimal64 result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider: null, out result); 192/// <inheritdoc cref="ISpanParsable{T}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out T)" /> 193public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, [MaybeNullWhen(false)] out Decimal64 result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider, out result); 205/// Tries to parse a <see cref="Decimal64"/> from a <see cref="ReadOnlySpan{Char}"/> with the given <see cref="NumberStyles"/> and <see cref="IFormatProvider"/>. 212public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, [MaybeNullWhen(false)] out Decimal64 result) 326/// <inheritdoc cref="ISpanFormattable.TryFormat(Span{char}, out int, ReadOnlySpan{char}, IFormatProvider?)" /> 327public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 332/// <inheritdoc cref="IUtf8SpanFormattable.TryFormat(Span{byte}, out int, ReadOnlySpan{char}, IFormatProvider?)" /> 333public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 767/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{char}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 768public static bool TryParsePartial(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out Decimal64 result, out int charsConsumed) 774/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 775public static bool TryParsePartial(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out Decimal64 result, out int bytesConsumed) 782/// Tries to parse a <see cref="Decimal64"/> from a <see cref="ReadOnlySpan{Byte}"/> containing UTF-8 text in the default parse style. 787public static bool TryParse(ReadOnlySpan<byte> utf8Text, out Decimal64 result) => TryParse(utf8Text, provider: null, out result); 789/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 790public static Decimal64 Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Float | NumberStyles.AllowThousands, IFormatProvider? provider = null) 796/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 797public static Decimal64 Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider); 799/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 800public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, [MaybeNullWhen(false)] out Decimal64 result) => Number.TryParseDecimalIeee754<byte, Decimal64, ulong>(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, NumberFormatInfo.GetInstance(provider), out result, out _) == Number.ParsingStatus.OK;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\IBinaryInteger.cs (4)
354static virtual TSelf ReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned) 397static virtual TSelf ReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned) 446static abstract bool TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out TSelf value); 453static abstract bool TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out TSelf value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\INumberBase.cs (9)
296static abstract TSelf Parse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider); 306static virtual unsafe TSelf Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider) 455static abstract bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, [MaybeNullWhen(false)] out TSelf result); 465static virtual bool TryParsePartial(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, [MaybeNullWhen(false)] out TSelf result, out int charsConsumed) 488static virtual unsafe bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, [MaybeNullWhen(false)] out TSelf result) 544static virtual bool TryParsePartial(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, [MaybeNullWhen(false)] out TSelf result, out int bytesConsumed) 560unsafe bool IUtf8SpanFormattable.TryFormat(Span<byte> utf8Destination, out int bytesWritten, ReadOnlySpan<char> format, IFormatProvider? provider) 614static unsafe TSelf IUtf8SpanParsable<TSelf>.Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) 661static unsafe bool IUtf8SpanParsable<TSelf>.TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, [MaybeNullWhen(returnValue: false)] out TSelf result)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\TotalOrderIeee754Comparer.cs (5)
125static int CompareMagnitudeBigEndian(ReadOnlySpan<byte> x, ReadOnlySpan<byte> y, bool isNegative) 137ReadOnlySpan<byte> longer = xIsLonger ? x : y; 138ReadOnlySpan<byte> shorter = xIsLonger ? y : x; 140ReadOnlySpan<byte> extra = longer[..(longer.Length - shorter.Length)];
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector_1.cs (5)
90public Vector(ReadOnlySpan<T> values) 107public Vector(ReadOnlySpan<byte> values) 125public Vector(Span<T> values) : this((ReadOnlySpan<T>)values) 907/// <inheritdoc cref="ISimdVector{TSelf, T}.Create(ReadOnlySpan{T})" /> 908static Vector<T> ISimdVector<Vector<T>, T>.Create(ReadOnlySpan<T> values) => Vector.Create(values);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector.cs (1)
825public static Vector<T> Create<T>(ReadOnlySpan<T> values)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector2.cs (4)
65/// <summary>Constructs a vector from the given <see cref="ReadOnlySpan{Single}" />. The span must contain at least 2 elements.</summary> 69public Vector2(ReadOnlySpan<float> values) 425/// <summary>Constructs a vector from the given <see cref="ReadOnlySpan{Single}" />. The span must contain at least 2 elements.</summary> 430public static Vector2 Create(ReadOnlySpan<float> values)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector3.cs (4)
79/// <summary>Constructs a vector from the given <see cref="ReadOnlySpan{Single}" />. The span must contain at least 3 elements.</summary> 83public Vector3(ReadOnlySpan<float> values) 462/// <summary>Constructs a vector from the given <see cref="ReadOnlySpan{Single}" />. The span must contain at least 3 elements.</summary> 467public static Vector3 Create(ReadOnlySpan<float> values)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector4.cs (4)
94/// <summary>Constructs a vector from the given <see cref="ReadOnlySpan{Single}" />. The span must contain at least 4 elements.</summary> 98public Vector4(ReadOnlySpan<float> values) 513/// <summary>Constructs a vector from the given <see cref="ReadOnlySpan{Single}" />. The span must contain at least 4 elements.</summary> 518public static Vector4 Create(ReadOnlySpan<float> values)
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Random.cs (5)
481public unsafe void GetItems<T>(ReadOnlySpan<T> choices, Span<T> destination) 616public T[] GetItems<T>(ReadOnlySpan<T> choices, int length) 673/// <seealso cref="GetItems{T}(ReadOnlySpan{T}, Span{T})" /> 674public string GetString(ReadOnlySpan<char> choices, int length) 712private static ReadOnlySpan<char> GetHexChoices(bool lowercase) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\ReadOnlyMemory.cs (3)
16/// Represents a contiguous region of memory, similar to <see cref="ReadOnlySpan{T}"/>. 17/// Unlike <see cref="ReadOnlySpan{T}"/>, it is not a byref-like type. 192public ReadOnlySpan<T> Span
src\runtime\src\libraries\System.Private.CoreLib\src\System\ReadOnlySpan.cs (19)
115/// <summary>Creates a new <see cref="ReadOnlySpan{T}"/> of length 1 around the specified reference.</summary> 166/// Gets a value indicating whether this <see cref="ReadOnlySpan{T}"/> is empty. 179public static bool operator !=(ReadOnlySpan<T> left, ReadOnlySpan<T> right) => !(left == right); 204/// Defines an implicit conversion of an array to a <see cref="ReadOnlySpan{T}"/> 206public static implicit operator ReadOnlySpan<T>(T[]? array) => new ReadOnlySpan<T>(array); 209/// Defines an implicit conversion of a <see cref="ArraySegment{T}"/> to a <see cref="ReadOnlySpan{T}"/> 211public static implicit operator ReadOnlySpan<T>(ArraySegment<T> segment) 217public static ReadOnlySpan<T> Empty => default; 226public static ReadOnlySpan<T> CastUp<TDerived>(ReadOnlySpan<TDerived> items) where TDerived : class?, T 234/// <summary>Enumerates the elements of a <see cref="ReadOnlySpan{T}"/>.</summary> 238private readonly ReadOnlySpan<T> _span; 245internal Enumerator(ReadOnlySpan<T> span) 347public static bool operator ==(ReadOnlySpan<T> left, ReadOnlySpan<T> right) => 352/// For <see cref="ReadOnlySpan{Char}"/>, returns a new instance of string that represents the characters pointed to by the span. 372public ReadOnlySpan<T> Slice(int start) 389public ReadOnlySpan<T> Slice(int start, int length)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (1)
324internal static void EscapeStringToBuilder(scoped ReadOnlySpan<char> stringToEscape, ref ValueStringBuilder vsb)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyNameHelpers.StrongName.cs (2)
43ReadOnlySpan<byte> publicKeyBlob = new ReadOnlySpan<byte>(publicKey); 97private static ReadOnlySpan<byte> EcmaKey => [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00];
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\AssemblyBuilder.cs (1)
46protected abstract void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ConstructorBuilder.cs (1)
41protected abstract void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\EnumBuilder.cs (1)
41protected abstract void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\EventBuilder.cs (1)
30protected abstract void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\FieldBuilder.cs (1)
25protected abstract void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\GenericTypeParameterBuilder.cs (1)
19protected abstract void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilder.cs (2)
59internal void SetCustomAttribute(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute) 64protected abstract void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ModuleBuilder.cs (1)
178protected abstract void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ParameterBuilder.cs (1)
27protected abstract void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\PropertyBuilder.cs (1)
30protected abstract void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilder.cs (1)
282protected abstract void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\EventInfo.cs (1)
48ReadOnlySpan<ParameterInfo> p = m.GetParametersAsSpan();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\MethodBase.cs (1)
128ReadOnlySpan<ParameterInfo> paramInfo = GetParametersAsSpan();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Module.cs (1)
189ReadOnlySpan<char> slice = str.AsSpan(0, str.Length - 1);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (2)
118ReadOnlySpan<ParameterInfo> parameters = metaMethod.GetParametersAsSpan(); 213ReadOnlySpan<ParameterInfo> parameters = setter.GetParametersAsSpan();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ParameterInfo.cs (1)
68ReadOnlySpan<ParameterInfo> args;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\RuntimeCustomAttributeData.cs (16)
236ReadOnlySpan<ParameterInfo> parameters = m_ctor.GetParametersAsSpan(); 771private readonly ReadOnlySpan<byte> _blob; 781internal CustomAttributeDataParser(ReadOnlySpan<byte> blob, MetadataReader reader) 807private ReadOnlySpan<byte> PeekData(int size) 817internal ReadOnlySpan<byte> ReadData(int size) 819ReadOnlySpan<byte> tmp = PeekData(size); 827ReadOnlySpan<byte> tmp = ReadData(sizeof(byte)); 835ReadOnlySpan<byte> tmp = ReadData(sizeof(ushort)); 843ReadOnlySpan<byte> tmp = ReadData(sizeof(uint)); 851ReadOnlySpan<byte> tmp = ReadData(sizeof(ulong)); 859ReadOnlySpan<byte> tmp = ReadData(sizeof(float)); 870ReadOnlySpan<byte> tmp = ReadData(sizeof(double)); 1232ReadOnlySpan<byte> attributeBlob = customAttribute.Blob.AsSpan(); 1461private static ReadOnlySpan<byte> GetAttributeBlob(IntPtr start, IntPtr end) 1486private static ReadOnlySpan<byte> ReadPrimitiveData(ref CustomAttributeEncodedArgument.CustomAttributeDataParser parser, CustomAttributeEncoding encoding) 1503ReadOnlySpan<byte> data = ReadPrimitiveData(ref parser, encoding);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\TypeNameResolver.cs (1)
108ReadOnlySpan<TypeName> genericArgs = typeName.GetGenericArguments();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncProfilerEventSource.cs (1)
83public void AsyncEvents(ReadOnlySpan<byte> buffer)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\CollectionBuilderAttribute.cs (1)
19/// type <see cref="ReadOnlySpan{T}"/> and returns an instance of the collection being built containing
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\DefaultInterpolatedStringHandler.cs (5)
141public ReadOnlySpan<char> Text => _chars.Slice(0, _pos); 404public void AppendFormatted(scoped ReadOnlySpan<char> value) 421public void AppendFormatted(scoped ReadOnlySpan<char> value, int alignment = 0, string? format = null) 611/// <summary>Fallback for <see cref="AppendFormatted(ReadOnlySpan{char})"/> for when not enough space exists in the current buffer.</summary> 614private void GrowThenCopySpan(scoped ReadOnlySpan<char> value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\RuntimeHelpers.cs (2)
120ReadOnlySpan<short> primitiveWidenTable = 153public static ReadOnlySpan<T> CreateSpan<T>(RuntimeFieldHandle fldHandle)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Java\JavaMarshal.Unsupported.cs (1)
93ReadOnlySpan<GCHandle> unreachableObjectHandles)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.Unix.cs (2)
47internal static unsafe int GetAnsiStringByteCount(ReadOnlySpan<char> chars) 54internal static unsafe void GetAnsiStringBytes(ReadOnlySpan<char> chars, Span<byte> bytes)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ArrayMarshaller.cs (5)
51/// <returns>The <see cref="ReadOnlySpan{T}"/> containing the managed elements to marshal.</returns> 52public static ReadOnlySpan<T> GetManagedValuesSource(T[]? managed) 96/// <returns>The <see cref="ReadOnlySpan{TUnmanagedElement}"/> containing the unmanaged elements to marshal.</returns> 97public static ReadOnlySpan<TUnmanagedElement> GetUnmanagedValuesSource(TUnmanagedElement* unmanagedValue, int numElements) 169public ReadOnlySpan<T> GetManagedValuesSource() => _managedArray;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ComVariant.cs (1)
427private readonly void ThrowIfNotVarType(params ReadOnlySpan<VarEnum> requiredType)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\PointerArrayMarshaller.cs (5)
52/// <returns>The <see cref="ReadOnlySpan{IntPtr}"/> containing the managed elements to marshal.</returns> 53public static ReadOnlySpan<IntPtr> GetManagedValuesSource(T*[]? managed) 97/// <returns>The <see cref="ReadOnlySpan{TUnmanagedElement}"/> containing the unmanaged elements to marshal.</returns> 98public static ReadOnlySpan<TUnmanagedElement> GetUnmanagedValuesSource(TUnmanagedElement* unmanagedValue, int numElements) 170public ReadOnlySpan<IntPtr> GetManagedValuesSource() => Unsafe.As<IntPtr[]>(_managedArray);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ReadOnlySpanMarshaller.cs (15)
13/// Supports marshalling a <see cref="ReadOnlySpan{T}"/> from managed value 19/// A <see cref="ReadOnlySpan{T}"/> marshalled with this marshaller will match the semantics of <see cref="MemoryMarshal.GetReference{T}(ReadOnlySpan{T})"/>. 23[CustomMarshaller(typeof(ReadOnlySpan<>), MarshalMode.ManagedToUnmanagedIn, typeof(ReadOnlySpanMarshaller<,>.ManagedToUnmanagedIn))] 24[CustomMarshaller(typeof(ReadOnlySpan<>), MarshalMode.ManagedToUnmanagedOut, typeof(ReadOnlySpanMarshaller<,>.ManagedToUnmanagedOut))] 25[CustomMarshaller(typeof(ReadOnlySpan<>), MarshalMode.UnmanagedToManagedOut, typeof(ReadOnlySpanMarshaller<,>.UnmanagedToManagedOut))] 41public static TUnmanagedElement* AllocateContainerForUnmanagedElements(ReadOnlySpan<T> managed, out int numElements) 63public static ReadOnlySpan<T> GetManagedValuesSource(ReadOnlySpan<T> managed) 92private ReadOnlySpan<T> _managedArray; 105public void FromManaged(ReadOnlySpan<T> managed, Span<TUnmanagedElement> buffer) 136public ReadOnlySpan<T> GetManagedValuesSource() => _managedArray; 171public static ref T GetPinnableReference(ReadOnlySpan<T> managed) 198public ReadOnlySpan<T> ToManaged() 208public ReadOnlySpan<TUnmanagedElement> GetUnmanagedValuesSource(int numElements)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\SpanMarshaller.cs (3)
57public static ReadOnlySpan<T> GetManagedValuesSource(Span<T> managed) 102public static ReadOnlySpan<TUnmanagedElement> GetUnmanagedValuesSource(TUnmanagedElement* unmanaged, int numElements) 168public ReadOnlySpan<T> GetManagedValuesSource() => _managedArray;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\MemoryMarshal.cs (13)
15/// <see cref="Span{T}"/>, and <see cref="ReadOnlySpan{T}"/>. 55public static unsafe ReadOnlySpan<byte> AsBytes<T>(ReadOnlySpan<T> span) 88public static ref T GetReference<T>(ReadOnlySpan<T> span) => ref span._reference; 140internal static unsafe ref T GetNonNullPinnableReference<T>(ReadOnlySpan<T> span) => ref (span.Length != 0) ? ref Unsafe.AsRef(in span._reference) : ref Unsafe.AsRef<T>((void*)1); 210public static unsafe ReadOnlySpan<TTo> Cast<TFrom, TTo>(ReadOnlySpan<TFrom> span) 284public static ReadOnlySpan<T> CreateReadOnlySpan<T>(scoped ref readonly T reference, int length) => 293public static unsafe ReadOnlySpan<char> CreateReadOnlySpanFromNullTerminated(char* value) => 303public static unsafe ReadOnlySpan<byte> CreateReadOnlySpanFromNullTerminated(byte* value) => 509public static unsafe T Read<T>(ReadOnlySpan<byte> source) 528public static unsafe bool TryRead<T>(ReadOnlySpan<byte> source, out T value) 613public static unsafe ref readonly T AsRef<T>(ReadOnlySpan<byte> span)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (24)
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); 1738/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{char}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1739public static bool TryParsePartial(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out NFloat result, out int charsConsumed) 1746/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1747public static bool TryParsePartial(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out NFloat result, out int bytesConsumed) 1795/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1796public static NFloat Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider); 1798/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1799public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out NFloat result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider, out result); 1877/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1878public static NFloat Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Float | NumberStyles.AllowThousands, IFormatProvider? provider = null) 1884/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 1885public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out NFloat result) 1891/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 1892public static NFloat Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider); 1894/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 1895public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out NFloat result) => TryParse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider, out result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeBuffer.cs (1)
320public void WriteSpan<T>(ulong byteOffset, ReadOnlySpan<T> data)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\ISimdVector_2.cs (1)
252static virtual TSelf Create(ReadOnlySpan<T> values)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128_1.cs (2)
568/// <inheritdoc cref="ISimdVector{TSelf, T}.Create(ReadOnlySpan{T})" /> 569static Vector128<T> ISimdVector<Vector128<T>, T>.Create(ReadOnlySpan<T> values) => Vector128.Create(values);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (1)
1063public static Vector128<T> Create<T>(ReadOnlySpan<T> values)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256_1.cs (2)
557/// <inheritdoc cref="ISimdVector{TSelf, T}.Create(ReadOnlySpan{T})" /> 558static Vector256<T> ISimdVector<Vector256<T>, T>.Create(ReadOnlySpan<T> values) => Vector256.Create(values);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (1)
1063public static Vector256<T> Create<T>(ReadOnlySpan<T> values)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512_1.cs (2)
557/// <inheritdoc cref="ISimdVector{TSelf, T}.Create(ReadOnlySpan{T})" /> 558static Vector512<T> ISimdVector<Vector512<T>, T>.Create(ReadOnlySpan<T> values) => Vector512.Create(values);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (1)
958public static Vector512<T> Create<T>(ReadOnlySpan<T> values)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64_1.cs (2)
625/// <inheritdoc cref="ISimdVector{TSelf, T}.Create(ReadOnlySpan{T})" /> 626static Vector64<T> ISimdVector<Vector64<T>, T>.Create(ReadOnlySpan<T> values) => Vector64.Create(values);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64.cs (1)
1037public static Vector64<T> Create<T>(ReadOnlySpan<T> values)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (4)
425ReadOnlySpan<byte> spanAssembly = ReadAllBytes(assembly); 432ReadOnlySpan<byte> spanSymbols = default; 445static ReadOnlySpan<byte> ReadAllBytes(Stream stream) 459return ReadOnlySpan<byte>.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Versioning\FrameworkName.cs (4)
113ReadOnlySpan<char> frameworkNameSpan = frameworkName; 143ReadOnlySpan<char> component = frameworkNameSpan[components[i]]; 152ReadOnlySpan<char> key = component.Slice(0, separatorIndex).Trim(); 153ReadOnlySpan<char> value = component.Slice(separatorIndex + 1).Trim();
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (26)
122public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 128public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 145public static sbyte Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 153public static bool TryParse(ReadOnlySpan<char> s, out sbyte result) => TryParse(s, NumberStyles.Integer, provider: null, out result); 159public static bool TryParse(ReadOnlySpan<byte> utf8Text, out sbyte result) => TryParse(utf8Text, NumberStyles.Integer, provider: null, out result); 167public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out sbyte result) 307/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 308static bool IBinaryInteger<sbyte>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out sbyte value) 360/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 361static bool IBinaryInteger<sbyte>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out sbyte value) 1299/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{char}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1300public static bool TryParsePartial(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out sbyte result, out int charsConsumed) 1306/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1307public static bool TryParsePartial(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out sbyte result, out int bytesConsumed) 1344/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1345public static sbyte Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Integer, provider); 1347/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1348public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out sbyte result) => TryParse(s, NumberStyles.Integer, provider, out result); 1381/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1382public static sbyte Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 1388/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 1389public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out sbyte result) 1395/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 1396public static sbyte Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Integer, provider); 1398/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 1399public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out sbyte result) => TryParse(utf8Text, NumberStyles.Integer, provider, out result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Any1CharPackedIgnoreCaseSearchValues.cs (4)
36internal override int IndexOfAny(ReadOnlySpan<char> span) => 41internal override int IndexOfAnyExcept(ReadOnlySpan<char> span) => 45internal override int LastIndexOfAny(ReadOnlySpan<char> span) => 49internal override int LastIndexOfAnyExcept(ReadOnlySpan<char> span) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Any1CharPackedSearchValues.cs (4)
26internal override int IndexOfAny(ReadOnlySpan<char> span) => 31internal override int IndexOfAnyExcept(ReadOnlySpan<char> span) => 35internal override int LastIndexOfAny(ReadOnlySpan<char> span) => 39internal override int LastIndexOfAnyExcept(ReadOnlySpan<char> span) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Any1SearchValues.cs (5)
17public unsafe Any1SearchValues(ReadOnlySpan<TImpl> values) 35internal override int IndexOfAny(ReadOnlySpan<T> span) => 39internal override int IndexOfAnyExcept(ReadOnlySpan<T> span) => 43internal override int LastIndexOfAny(ReadOnlySpan<T> span) => 47internal override int LastIndexOfAnyExcept(ReadOnlySpan<T> span) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Any2CharPackedIgnoreCaseSearchValues.cs (4)
43internal override int IndexOfAny(ReadOnlySpan<char> span) => 48internal override int IndexOfAnyExcept(ReadOnlySpan<char> span) => 55internal override int LastIndexOfAny(ReadOnlySpan<char> span) => 63internal override int LastIndexOfAnyExcept(ReadOnlySpan<char> span) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Any2CharPackedSearchValues.cs (4)
26internal override int IndexOfAny(ReadOnlySpan<char> span) => 31internal override int IndexOfAnyExcept(ReadOnlySpan<char> span) => 35internal override int LastIndexOfAny(ReadOnlySpan<char> span) => 39internal override int LastIndexOfAnyExcept(ReadOnlySpan<char> span) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Any2SearchValues.cs (5)
17public unsafe Any2SearchValues(ReadOnlySpan<TImpl> values) 35internal override int IndexOfAny(ReadOnlySpan<T> span) => 39internal override int IndexOfAnyExcept(ReadOnlySpan<T> span) => 43internal override int LastIndexOfAny(ReadOnlySpan<T> span) => 47internal override int LastIndexOfAnyExcept(ReadOnlySpan<T> span) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Any3CharPackedSearchValues.cs (4)
26internal override int IndexOfAny(ReadOnlySpan<char> span) => 31internal override int IndexOfAnyExcept(ReadOnlySpan<char> span) => 35internal override int LastIndexOfAny(ReadOnlySpan<char> span) => 39internal override int LastIndexOfAnyExcept(ReadOnlySpan<char> span) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Any3SearchValues.cs (5)
17public unsafe Any3SearchValues(ReadOnlySpan<TImpl> values) 35internal override int IndexOfAny(ReadOnlySpan<T> span) => 39internal override int IndexOfAnyExcept(ReadOnlySpan<T> span) => 43internal override int LastIndexOfAny(ReadOnlySpan<T> span) => 47internal override int LastIndexOfAnyExcept(ReadOnlySpan<T> span) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Any4SearchValues.cs (5)
17public unsafe Any4SearchValues(ReadOnlySpan<TImpl> values) 38internal override int IndexOfAny(ReadOnlySpan<T> span) => 42internal override int IndexOfAnyExcept(ReadOnlySpan<T> span) => 46internal override int LastIndexOfAny(ReadOnlySpan<T> span) => 50internal override int LastIndexOfAnyExcept(ReadOnlySpan<T> span) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Any5SearchValues.cs (5)
17public unsafe Any5SearchValues(ReadOnlySpan<TImpl> values) 39internal override int IndexOfAny(ReadOnlySpan<T> span) => 43internal override int IndexOfAnyExcept(ReadOnlySpan<T> span) => 47internal override int LastIndexOfAny(ReadOnlySpan<T> span) => 51internal override int LastIndexOfAnyExcept(ReadOnlySpan<T> span) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\AnyByteSearchValues.cs (7)
16public AnyByteSearchValues(ReadOnlySpan<byte> values) => 30internal override int IndexOfAny(ReadOnlySpan<byte> span) => 38internal override int IndexOfAnyExcept(ReadOnlySpan<byte> span) => 46internal override int LastIndexOfAny(ReadOnlySpan<byte> span) => 54internal override int LastIndexOfAnyExcept(ReadOnlySpan<byte> span) => 62internal override bool ContainsAny(ReadOnlySpan<byte> span) => 70internal override bool ContainsAnyExcept(ReadOnlySpan<byte> span) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\AsciiByteSearchValues.cs (7)
19public AsciiByteSearchValues(ReadOnlySpan<byte> values) 46internal override int IndexOfAny(ReadOnlySpan<byte> span) => 54internal override int IndexOfAnyExcept(ReadOnlySpan<byte> span) => 62internal override int LastIndexOfAny(ReadOnlySpan<byte> span) => 70internal override int LastIndexOfAnyExcept(ReadOnlySpan<byte> span) => 78internal override bool ContainsAny(ReadOnlySpan<byte> span) => 86internal override bool ContainsAnyExcept(ReadOnlySpan<byte> span) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\AsciiCharSearchValues.cs (7)
20public AsciiCharSearchValues(ReadOnlySpan<char> values) 48internal override int IndexOfAny(ReadOnlySpan<char> span) => 56internal override int IndexOfAnyExcept(ReadOnlySpan<char> span) => 64internal override int LastIndexOfAny(ReadOnlySpan<char> span) => 72internal override int LastIndexOfAnyExcept(ReadOnlySpan<char> span) => 80internal override bool ContainsAny(ReadOnlySpan<char> span) => 88internal override bool ContainsAnyExcept(ReadOnlySpan<char> span) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\BitmapCharSearchValues.cs (7)
14public BitmapCharSearchValues(ReadOnlySpan<char> values, int maxInclusive) 54internal override int IndexOfAny(ReadOnlySpan<char> span) => 58internal override int IndexOfAnyExcept(ReadOnlySpan<char> span) => 62internal override int LastIndexOfAny(ReadOnlySpan<char> span) => 66internal override int LastIndexOfAnyExcept(ReadOnlySpan<char> span) => 69private int IndexOfAny<TNegator>(ReadOnlySpan<char> span) 86private int LastIndexOfAny<TNegator>(ReadOnlySpan<char> span)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\EmptySearchValues.cs (5)
15internal override int IndexOfAny(ReadOnlySpan<T> span) => 18internal override int IndexOfAnyExcept(ReadOnlySpan<T> span) => 21internal override int LastIndexOfAny(ReadOnlySpan<T> span) => 24internal override int LastIndexOfAnyExcept(ReadOnlySpan<T> span) => 27internal override int IndexOfAnyMultiString(ReadOnlySpan<char> span) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\IndexOfAnyAsciiSearcher.cs (11)
46internal static void ComputeAnyByteState(ReadOnlySpan<byte> values, out AnyByteState state) 72internal static void ComputeAsciiState<T>(ReadOnlySpan<T> values, out AsciiState state) 96public static bool CanUseUniqueLowNibbleSearch<T>(ReadOnlySpan<T> values, int maxInclusive) 138public static void ComputeUniqueLowNibbleState<T>(ReadOnlySpan<T> values, out AsciiState state) 170private static unsafe bool TryComputeBitmap(ReadOnlySpan<char> values, byte* bitmap, out bool needleContainsZero) 190public static bool TryIndexOfAny(ref char searchSpace, int searchSpaceLength, ReadOnlySpan<char> asciiValues, out int index) => 194public static bool TryIndexOfAnyExcept(ref char searchSpace, int searchSpaceLength, ReadOnlySpan<char> asciiValues, out int index) => 198public static bool TryLastIndexOfAny(ref char searchSpace, int searchSpaceLength, ReadOnlySpan<char> asciiValues, out int index) => 202public static bool TryLastIndexOfAnyExcept(ref char searchSpace, int searchSpaceLength, ReadOnlySpan<char> asciiValues, out int index) => 206private static unsafe bool TryIndexOfAny<TNegator>(ref short searchSpace, int searchSpaceLength, ReadOnlySpan<char> asciiValues, out int index) 233private static unsafe bool TryLastIndexOfAny<TNegator>(ref short searchSpace, int searchSpaceLength, ReadOnlySpan<char> asciiValues, out int index)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticCharSearchValues.cs (5)
13public ProbabilisticCharSearchValues(ReadOnlySpan<char> values, int maxInclusive) 25internal override int IndexOfAny(ReadOnlySpan<char> span) => 28internal override int IndexOfAnyExcept(ReadOnlySpan<char> span) => 31internal override int LastIndexOfAny(ReadOnlySpan<char> span) => 34internal override int LastIndexOfAnyExcept(ReadOnlySpan<char> span) =>
src\runtime\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) => 309var valuesSpan = new ReadOnlySpan<char>(ref values, valuesLength); 327var valuesSpan = new ReadOnlySpan<char>(ref values, valuesLength); 341var valuesSpan = new ReadOnlySpan<char>(ref values, valuesLength); 359var valuesSpan = new ReadOnlySpan<char>(ref values, valuesLength); 374var valuesSpan = new ReadOnlySpan<char>(ref values, valuesLength); 387var valuesSpan = new ReadOnlySpan<char>(ref values, valuesLength); 988internal static int IndexOfAnySimpleLoop<TNegator>(ref char searchSpace, int searchSpaceLength, ReadOnlySpan<char> values) 1009internal static int LastIndexOfAnySimpleLoop<TNegator>(ref char searchSpace, int searchSpaceLength, ReadOnlySpan<char> values)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticMapState.cs (6)
31private readonly ReadOnlySpan<char>* _slowContainsValuesPtr; 33public ProbabilisticMapState(ReadOnlySpan<char> values, int maxInclusive) 55public ProbabilisticMapState(ReadOnlySpan<char>* valuesPtr) 129private static uint FindModulus(ReadOnlySpan<char> values, int maxInclusive) 165static bool TestModulus(ReadOnlySpan<char> values, int modulus) 192static bool TryRemoveDuplicates(ReadOnlySpan<char> values, [NotNullWhen(true)] out char[]? deduplicated)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticWithAsciiCharSearchValues.cs (5)
20public ProbabilisticWithAsciiCharSearchValues(ReadOnlySpan<char> values, int maxInclusive) 38internal override int IndexOfAny(ReadOnlySpan<char> span) 99internal override int IndexOfAnyExcept(ReadOnlySpan<char> span) 137internal override int LastIndexOfAny(ReadOnlySpan<char> span) 190internal override int LastIndexOfAnyExcept(ReadOnlySpan<char> span)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\RangeByteSearchValues.cs (4)
38internal override int IndexOfAny(ReadOnlySpan<byte> span) => 42internal override int IndexOfAnyExcept(ReadOnlySpan<byte> span) => 46internal override int LastIndexOfAny(ReadOnlySpan<byte> span) => 50internal override int LastIndexOfAnyExcept(ReadOnlySpan<byte> span) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\RangeCharSearchValues.cs (4)
41internal override int IndexOfAny(ReadOnlySpan<char> span) => 51internal override int IndexOfAnyExcept(ReadOnlySpan<char> span) => 61internal override int LastIndexOfAny(ReadOnlySpan<char> span) => 65internal override int LastIndexOfAnyExcept(ReadOnlySpan<char> span) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\SearchValues.cs (5)
28public static SearchValues<byte> Create(params ReadOnlySpan<byte> values) 78public static unsafe SearchValues<char> Create(params ReadOnlySpan<char> values) 86ReadOnlySpan<short> shortValues = MemoryMarshal.Cast<char, short>(values); 234public static SearchValues<string> Create(ReadOnlySpan<string> values, StringComparison comparisonType) 244private static bool TryGetSingleRange<T>(ReadOnlySpan<T> values, out T minInclusive, out T maxInclusive)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\SearchValues.T.cs (10)
11/// Instances are created by <see cref="SearchValues.Create(ReadOnlySpan{byte})"/>, <see cref="SearchValues.Create(ReadOnlySpan{char})"/>, or 12/// <see cref="SearchValues.Create(ReadOnlySpan{string}, StringComparison)"/>. 37internal virtual int IndexOfAny(ReadOnlySpan<T> span) => throw new UnreachableException(); 38internal virtual int IndexOfAnyExcept(ReadOnlySpan<T> span) => throw new UnreachableException(); 39internal virtual int LastIndexOfAny(ReadOnlySpan<T> span) => throw new UnreachableException(); 40internal virtual int LastIndexOfAnyExcept(ReadOnlySpan<T> span) => throw new UnreachableException(); 42internal virtual bool ContainsAny(ReadOnlySpan<T> span) => IndexOfAny(span) >= 0; 43internal virtual bool ContainsAnyExcept(ReadOnlySpan<T> span) => IndexOfAnyExcept(span) >= 0; 46internal virtual int IndexOfAnyMultiString(ReadOnlySpan<char> span) => throw new UnreachableException();
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\AsciiStringSearchValuesTeddyBase.cs (15)
120protected AsciiStringSearchValuesTeddyBase(ReadOnlySpan<string> values, HashSet<string> uniqueValues, int n) : base(values, uniqueValues) 125ReadOnlySpan<object?>.CastUp(values).CopyTo(_buckets); 136protected AsciiStringSearchValuesTeddyBase(string[][] buckets, ReadOnlySpan<string> values, HashSet<string> uniqueValues, int n) : base(values, uniqueValues) 141((ReadOnlySpan<object?>)buckets).CopyTo(_buckets); 155protected int IndexOfAnyN2(ReadOnlySpan<char> span) 176protected int IndexOfAnyN3(ReadOnlySpan<char> span) 197private int IndexOfAnyN2Vector128(ReadOnlySpan<char> span) 252private int IndexOfAnyN2Avx2(ReadOnlySpan<char> span) 304private int IndexOfAnyN2Avx512(ReadOnlySpan<char> span) 358private int IndexOfAnyN3Vector128(ReadOnlySpan<char> span) 430private int IndexOfAnyN3Avx2(ReadOnlySpan<char> span) 485private int IndexOfAnyN3Avx512(ReadOnlySpan<char> span) 540private bool TryFindMatch(ReadOnlySpan<char> span, ref char searchSpace, Vector128<byte> result, int matchStartOffset, out int offsetFromStart) 588private bool TryFindMatch(ReadOnlySpan<char> span, ref char searchSpace, Vector256<byte> result, int matchStartOffset, out int offsetFromStart) 633private bool TryFindMatch(ReadOnlySpan<char> span, ref char searchSpace, Vector512<byte> result, int matchStartOffset, out int offsetFromStart)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\AsciiStringSearchValuesTeddyBucketizedN2.cs (2)
16public AsciiStringSearchValuesTeddyBucketizedN2(string[][] buckets, ReadOnlySpan<string> values, HashSet<string> uniqueValues) 23internal override int IndexOfAnyMultiString(ReadOnlySpan<char> span) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\AsciiStringSearchValuesTeddyBucketizedN3.cs (2)
16public AsciiStringSearchValuesTeddyBucketizedN3(string[][] buckets, ReadOnlySpan<string> values, HashSet<string> uniqueValues) 23internal override int IndexOfAnyMultiString(ReadOnlySpan<char> span) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\AsciiStringSearchValuesTeddyNonBucketizedN2.cs (2)
16public AsciiStringSearchValuesTeddyNonBucketizedN2(ReadOnlySpan<string> values, HashSet<string> uniqueValues) 23internal override int IndexOfAnyMultiString(ReadOnlySpan<char> span) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\AsciiStringSearchValuesTeddyNonBucketizedN3.cs (2)
16public AsciiStringSearchValuesTeddyNonBucketizedN3(ReadOnlySpan<string> values, HashSet<string> uniqueValues) 23internal override int IndexOfAnyMultiString(ReadOnlySpan<char> span) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\AhoCorasick.cs (4)
66public readonly int IndexOfAny<TCaseSensitivity, TFastScanVariant>(ReadOnlySpan<char> span) 75private readonly int IndexOfAnyCore<TCaseSensitivity, TFastScanVariant>(ReadOnlySpan<char> span) 181private readonly int IndexOfAnyCaseInsensitiveUnicode<TFastScanVariant>(ReadOnlySpan<char> span) 334ReadOnlySpan<char> chars = [h, l];
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\AhoCorasickBuilder.cs (2)
16private readonly ReadOnlySpan<string> _values; 22public AhoCorasickBuilder(ReadOnlySpan<string> values, bool ignoreCase, ref HashSet<string>? unreachableValues)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\CharacterFrequencyHelper.cs (2)
12public static ReadOnlySpan<float> AsciiFrequency => 83private static int IndexOfAsciiCharWithLowestFrequency(ReadOnlySpan<char> span, bool ignoreCase, int excludeIndex = -1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\RabinKarp.cs (4)
40public RabinKarp(ReadOnlySpan<string> values) 100public readonly int IndexOfAny<TCaseSensitivity>(ReadOnlySpan<char> span) 108private readonly int IndexOfAnyCore<TCaseSensitivity>(ReadOnlySpan<char> span) 162private readonly unsafe int IndexOfAnyCaseInsensitiveUnicode(ReadOnlySpan<char> span)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\StringSearchValuesHelper.cs (1)
27public static void ValidateReadPosition(ReadOnlySpan<char> span, ref char searchSpace, int offset = 0)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\TeddyBucketizer.cs (2)
15public static (Vector512<byte> Low, Vector512<byte> High) GenerateNonBucketizedFingerprint(ReadOnlySpan<string> values, int offset) 75public static unsafe string[][] Bucketize(ReadOnlySpan<string> values, int bucketCount, int n)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\MultiStringIgnoreCaseSearchValuesFallback.cs (2)
22internal override int IndexOfAnyMultiString(ReadOnlySpan<char> span) 28ReadOnlySpan<char> remaining = span.Slice(i);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\SingleStringSearchValuesFallback.cs (1)
21internal override int IndexOfAnyMultiString(ReadOnlySpan<char> span) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\SingleStringSearchValuesPackedThreeChars.cs (1)
78internal override int IndexOfAnyMultiString(ReadOnlySpan<char> span) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\SingleStringSearchValuesThreeChars.cs (1)
73internal override int IndexOfAnyMultiString(ReadOnlySpan<char> span) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\StringSearchValues.cs (8)
24public static SearchValues<string> Create(ReadOnlySpan<string> values, bool ignoreCase) 105ReadOnlySpan<string> values, 161ReadOnlySpan<string> values, 236ReadOnlySpan<char> slice = value.AsSpan(0, n); 275ReadOnlySpan<string> values, 304private static bool TryGenerateAllCasePermutationsForPrefixes(ReadOnlySpan<string> values, int n, int maxValues, [NotNullWhen(true)] out string[]? newValues) 455ReadOnlySpan<string> values, 494private static bool ContainsInvalidValues(ReadOnlySpan<string> values)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\StringSearchValuesAhoCorasick.cs (1)
19internal override int IndexOfAnyMultiString(ReadOnlySpan<char> span) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\StringSearchValuesBase.cs (7)
13/// <see cref="MemoryExtensions.IndexOfAny(ReadOnlySpan{char}, SearchValues{string})"/> is the main 42internal sealed override int IndexOfAny(ReadOnlySpan<string> span) => 45internal sealed override int IndexOfAnyExcept(ReadOnlySpan<string> span) => 48internal sealed override int LastIndexOfAny(ReadOnlySpan<string> span) => 51internal sealed override int LastIndexOfAnyExcept(ReadOnlySpan<string> span) => 54private int IndexOfAny<TNegator>(ReadOnlySpan<string> span) 68private int LastIndexOfAny<TNegator>(ReadOnlySpan<string> span)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\StringSearchValuesRabinKarp.cs (2)
14public StringSearchValuesRabinKarp(ReadOnlySpan<string> values, HashSet<string> uniqueValues) : base(uniqueValues) => 18protected int ShortInputFallback(ReadOnlySpan<char> span) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Security\SecureString.cs (2)
22Initialize(ReadOnlySpan<char>.Empty); 36private void Initialize(ReadOnlySpan<char> value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Security\SecurityElement.cs (1)
329ReadOnlySpan<char> span = str;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (23)
373public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 379public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 407public static float Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Float | NumberStyles.AllowThousands, IFormatProvider? provider = null) 415public static bool TryParse(ReadOnlySpan<char> s, out float result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider: null, out result); 419/// <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> 421public static bool TryParse(ReadOnlySpan<byte> utf8Text, out float result) => TryParse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider: null, out result); 429public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out float result) 1544/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{char}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1545public static bool TryParsePartial(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out float result, out int charsConsumed) 1551/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1552public static bool TryParsePartial(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out float result, out int bytesConsumed) 1773/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1774public static float Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider); 1776/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1777public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out float result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider, out result); 2243/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 2244public static float Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Float | NumberStyles.AllowThousands, IFormatProvider? provider = null) 2250/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 2251public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out float result) 2257/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 2258public static float Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider); 2260/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 2261public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out float result) => TryParse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider, out result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Span.cs (2)
370/// Defines an implicit conversion of a <see cref="Span{T}"/> to a <see cref="ReadOnlySpan{T}"/> 372public static implicit operator ReadOnlySpan<T>(Span<T> span) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanDebugView.cs (1)
17public SpanDebugView(ReadOnlySpan<T> span)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.BinarySearch.cs (1)
14ReadOnlySpan<T> span, TComparable comparable)
src\runtime\src\libraries\System.Private.CoreLib\src\System\StartupHookProvider.cs (1)
105ReadOnlySpan<char> disallowedSimpleAssemblyNameChars =
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (12)
348internal static int CompareOrdinal(ReadOnlySpan<char> strA, ReadOnlySpan<char> strB) 514ReadOnlySpan<char> valueChars = [value]; 545ReadOnlySpan<char> valueChars = value.AsSpan(stackalloc char[Rune.MaxUtf16CharsPerRune]); 712public static int GetHashCode(ReadOnlySpan<char> value) 721public static int GetHashCode(ReadOnlySpan<char> value, StringComparison comparisonType) 747internal static int GetHashCodeOrdinalIgnoreCase(ReadOnlySpan<char> value) 798internal static unsafe int GetNonRandomizedHashCode(ReadOnlySpan<char> span) 907internal static unsafe int GetNonRandomizedHashCodeOrdinalIgnoreCase(ReadOnlySpan<char> span) 993private static unsafe int GetNonRandomizedHashCodeOrdinalIgnoreCaseSlow(uint hash1, uint hash2, ReadOnlySpan<char> str) 1132ReadOnlySpan<char> valueChars = [value]; 1163ReadOnlySpan<char> valueChars = value.AsSpan(stackalloc char[Rune.MaxUtf16CharsPerRune]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.cs (6)
313public extern safe String(ReadOnlySpan<char> value); 315private static string Ctor(ReadOnlySpan<char> value) 369public static implicit operator ReadOnlySpan<char>(string? value) => 373internal bool TryGetSpan(int startIndex, int count, out ReadOnlySpan<char> slice) 776static string ISpanParsable<string>.Parse(ReadOnlySpan<char> s, IFormatProvider? provider) 785static bool ISpanParsable<string>.TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, [MaybeNullWhen(returnValue: false)] out string result)
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (78)
91return Concat((ReadOnlySpan<object?>)args); 99public static string Concat(params ReadOnlySpan<object?> args) 160JoinCore(ReadOnlySpan<char>.Empty, values); 173return Concat((ReadOnlySpan<string?>)valuesArray); 308public static string Concat(ReadOnlySpan<char> str0, ReadOnlySpan<char> str1) 325public static string Concat(ReadOnlySpan<char> str0, ReadOnlySpan<char> str1, ReadOnlySpan<char> str2) 347public static string Concat(ReadOnlySpan<char> str0, ReadOnlySpan<char> str1, ReadOnlySpan<char> str2, ReadOnlySpan<char> str3) 372internal static string Concat(ReadOnlySpan<char> str0, ReadOnlySpan<char> str1, ReadOnlySpan<char> str2, ReadOnlySpan<char> str3, ReadOnlySpan<char> str4) 403return Concat((ReadOnlySpan<string?>)values); 411public static string Concat(params ReadOnlySpan<string?> values) 473return copiedLength == totalLength ? result : Concat((ReadOnlySpan<string?>)values.ToArray()); 500return FormatHelper(null, format, (ReadOnlySpan<object?>)args); 509public static string Format([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> args) 538return FormatHelper(provider, format, (ReadOnlySpan<object?>)args); 549public static string Format(IFormatProvider? provider, [StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> args) 554private static unsafe string FormatHelper(IFormatProvider? provider, string format, ReadOnlySpan<object?> args) 639return Format(provider, format, (ReadOnlySpan<object?>)args); 652public static string Format(IFormatProvider? provider, CompositeFormat format, params ReadOnlySpan<object?> args) 665private static unsafe string Format<TArg0, TArg1, TArg2>(IFormatProvider? provider, CompositeFormat format, TArg0 arg0, TArg1 arg1, TArg2 arg2, ReadOnlySpan<object?> args) 758public static string Join(char separator, params ReadOnlySpan<string?> value) 783public static string Join(string? separator, params ReadOnlySpan<string?> value) 794private static string JoinCore(ReadOnlySpan<char> separator, string?[] value, int startIndex, int count) 859return JoinCore(new ReadOnlySpan<char>(in separator), (ReadOnlySpan<object?>)values); 872public static string Join(char separator, params ReadOnlySpan<object?> values) => 882return JoinCore(separator.AsSpan(), (ReadOnlySpan<object?>)values); 895public static string Join(string? separator, params ReadOnlySpan<object?> values) => 898private static unsafe string JoinCore(ReadOnlySpan<char> separator, ReadOnlySpan<object?> values) 935private static unsafe string JoinCore<T>(ReadOnlySpan<char> separator, IEnumerable<T> values) 1054private static string JoinCore(ReadOnlySpan<char> separator, ReadOnlySpan<string?> values) 1241private static unsafe string? ReplaceCore(ReadOnlySpan<char> searchSpace, ReadOnlySpan<char> oldValue, ReadOnlySpan<char> newValue, CompareInfo compareInfo, CompareOptions options) 1432private string ReplaceHelper(int oldValueLength, string newValue, ReadOnlySpan<int> indices) 1487ReadOnlySpan<char> oldChars = oldRune.AsSpan(stackalloc char[Rune.MaxUtf16CharsPerRune]); 1488ReadOnlySpan<char> newChars = newRune.AsSpan(stackalloc char[Rune.MaxUtf16CharsPerRune]); 1571ReadOnlySpan<char> firstSegment = this.AsSpan(0, idxOfFirstNewlineChar); 1572ReadOnlySpan<char> remaining = this.AsSpan(idxOfFirstNewlineChar + stride); 1591private static int IndexOfNewlineChar(ReadOnlySpan<char> text, string replacementText, out int stride) 1661ReadOnlySpan<char> remaining = this.AsSpan(idxOfFirstNewlineChar + stride); 1725ReadOnlySpan<char> separatorSpan = separator.AsSpan(stackalloc char[Rune.MaxUtf16CharsPerRune]); 1748public string[] Split(params ReadOnlySpan<char> separator) 1779private unsafe string[] SplitInternal(ReadOnlySpan<char> separators, int count, StringSplitOptions options) 1803ReadOnlySpan<int> sepList = sepListBuilder.AsSpan(); 1852return SplitInternal(default(ReadOnlySpan<char>), count, options); 1880ReadOnlySpan<int> sepList = sepListBuilder.AsSpan(); 1881ReadOnlySpan<int> lengthList = lengthListBuilder.AsSpan(); 1924private unsafe string[] Split(ReadOnlySpan<char> separator, int count, StringSplitOptions options) 1929ReadOnlySpan<int> sepList = sepListBuilder.AsSpan(); 1946private string[] SplitWithoutPostProcessing(ReadOnlySpan<int> sepList, ReadOnlySpan<int> lengthList, int defaultLength, int count) 1983private string[] SplitWithPostProcessing(ReadOnlySpan<int> sepList, ReadOnlySpan<int> lengthList, int defaultLength, int count, StringSplitOptions options) 1998ReadOnlySpan<char> thisEntry; 2060/// <param name="separators"><see cref="ReadOnlySpan{T}"/> of separator chars</param> 2062internal static void MakeSeparatorListAny(ReadOnlySpan<char> source, ReadOnlySpan<char> separators, ref ValueListBuilder<int> sepListBuilder) 2116private static void MakeSeparatorListVectorized(ReadOnlySpan<char> sourceSpan, ref ValueListBuilder<int> sepListBuilder, char c, char c2, char c3) 2126ReadOnlySpan<ushort> sourceSpanUInt16 = MemoryMarshal.Cast<char, ushort>(sourceSpan); 2127ReadOnlySpan<ushort> remaining = sourceSpanUInt16; 2424internal static void MakeSeparatorList(ReadOnlySpan<char> source, ReadOnlySpan<char> separator, ref ValueListBuilder<int> sepListBuilder) 2452internal static void MakeSeparatorListAny(ReadOnlySpan<char> source, ReadOnlySpan<string?> separators, ref ValueListBuilder<int> sepListBuilder, ref ValueListBuilder<int> lengthListBuilder) 2754public unsafe string Trim(params ReadOnlySpan<char> trimChars) 2821public unsafe string TrimStart(params ReadOnlySpan<char> trimChars) 2888public unsafe string TrimEnd(params ReadOnlySpan<char> trimChars)
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Searching.cs (2)
441ReadOnlySpan<char> valueChars = value.AsSpan(stackalloc char[Rune.MaxUtf16CharsPerRune]); 776ReadOnlySpan<char> valueChars = value.AsSpan(stackalloc char[Rune.MaxUtf16CharsPerRune]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\StringComparer.cs (28)
213public sealed class CultureAwareComparer : StringComparer, IAlternateEqualityComparer<ReadOnlySpan<char>, string?>, ISerializable 273int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.GetHashCode(ReadOnlySpan<char> span) => 276bool IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Equals(ReadOnlySpan<char> span, string? target) 287string IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Create(ReadOnlySpan<char> span) => 321public class OrdinalComparer : StringComparer, IAlternateEqualityComparer<ReadOnlySpan<char>, string?> 380bool IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Equals(ReadOnlySpan<char> span, string? target) 401int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.GetHashCode(ReadOnlySpan<char> span) => 406string IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Create(ReadOnlySpan<char> span) => 433internal sealed class OrdinalCaseSensitiveComparer : OrdinalComparer, ISerializable, IAlternateEqualityComparer<ReadOnlySpan<char>, string?> 454bool IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Equals(ReadOnlySpan<char> span, string? target) 465int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.GetHashCode(ReadOnlySpan<char> span) => 468string IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Create(ReadOnlySpan<char> span) => 479internal sealed class OrdinalIgnoreCaseComparer : OrdinalComparer, IAlternateEqualityComparer<ReadOnlySpan<char>, string?>, ISerializable 536bool IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Equals(ReadOnlySpan<char> span, string? target) 547int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.GetHashCode(ReadOnlySpan<char> span) => 550string IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Create(ReadOnlySpan<char> span) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\StringNormalizationExtensions.cs (3)
44public static bool IsNormalized(this ReadOnlySpan<char> source, NormalizationForm normalizationForm = NormalizationForm.FormC) => 80public static bool TryNormalize(this ReadOnlySpan<char> source, Span<char> destination, out int charsWritten, NormalizationForm normalizationForm = NormalizationForm.FormC) => 90public static int GetNormalizedLength(this ReadOnlySpan<char> source, NormalizationForm normalizationForm = NormalizationForm.FormC) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Ascii.CaseConversion.cs (9)
28public static OperationStatus ToUpper(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 41public static OperationStatus ToUpper(ReadOnlySpan<char> source, Span<char> destination, out int charsWritten) 53public static OperationStatus ToUpper(ReadOnlySpan<byte> source, Span<char> destination, out int charsWritten) 65public static OperationStatus ToUpper(ReadOnlySpan<char> source, Span<byte> destination, out int bytesWritten) 78public static OperationStatus ToLower(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 91public static OperationStatus ToLower(ReadOnlySpan<char> source, Span<char> destination, out int charsWritten) 103public static OperationStatus ToLower(ReadOnlySpan<byte> source, Span<char> destination, out int charsWritten) 115public static OperationStatus ToLower(ReadOnlySpan<char> source, Span<byte> destination, out int bytesWritten) 158private static unsafe OperationStatus ChangeCase<TFrom, TTo, TCasing>(ReadOnlySpan<TFrom> source, Span<TTo> destination, out int destinationElementsWritten)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Ascii.cs (2)
21public static bool IsValid(ReadOnlySpan<byte> value) => 31public static bool IsValid(ReadOnlySpan<char> value) =>
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Transcoding.cs (2)
20public static unsafe OperationStatus ToUtf16(ReadOnlySpan<byte> source, Span<char> destination, out int charsWritten) 55public static unsafe OperationStatus FromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int bytesWritten)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Trimming.cs (10)
15public static Range Trim(ReadOnlySpan<byte> value) => TrimHelper(value, TrimType.Both); 17/// <inheritdoc cref="Trim(ReadOnlySpan{byte})"/> 18public static Range Trim(ReadOnlySpan<char> value) => TrimHelper(value, TrimType.Both); 25public static Range TrimStart(ReadOnlySpan<byte> value) => TrimHelper(value, TrimType.Head); 27/// <inheritdoc cref="TrimStart(ReadOnlySpan{byte})"/> 28public static Range TrimStart(ReadOnlySpan<char> value) => TrimHelper(value, TrimType.Head); 35public static Range TrimEnd(ReadOnlySpan<byte> value) => TrimHelper(value, TrimType.Tail); 37/// <inheritdoc cref="TrimEnd(ReadOnlySpan{byte})"/> 38public static Range TrimEnd(ReadOnlySpan<char> value) => TrimHelper(value, TrimType.Tail); 40private static Range TrimHelper<T>(ReadOnlySpan<T> value, TrimType trimType)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (9)
141public override unsafe int GetByteCount(ReadOnlySpan<char> chars) 315public override unsafe int GetBytes(ReadOnlySpan<char> chars, Span<byte> bytes) 327public override unsafe bool TryGetBytes(ReadOnlySpan<char> chars, Span<byte> bytes, out int bytesWritten) 382private protected sealed override int GetBytesWithFallback(ReadOnlySpan<char> chars, int originalCharsLength, Span<byte> bytes, int originalBytesLength, EncoderNLS? encoder, bool throwForDestinationOverflow = true) 483public override unsafe int GetCharCount(ReadOnlySpan<byte> bytes) 606public override unsafe int GetChars(ReadOnlySpan<byte> bytes, Span<char> chars) 618public override unsafe bool TryGetChars(ReadOnlySpan<byte> bytes, Span<char> chars, out int charsWritten) 671private protected sealed override int GetCharsWithFallback(ReadOnlySpan<byte> bytes, int originalBytesLength, Span<char> chars, int originalCharsLength, DecoderNLS? decoder, bool throwForDestinationOverflow = true) 802internal sealed override OperationStatus DecodeFirstRune(ReadOnlySpan<byte> bytes, out Rune value, out int bytesConsumed)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\CompositeFormat.cs (3)
112private static unsafe bool TryParseLiterals(ReadOnlySpan<char> format, List<(string? Literal, int ArgIndex, int Alignment, string? Format)> segments, ref int failureOffset, ref ExceptionResource failureReason) 135ReadOnlySpan<char> remainder = format.Slice(pos); 340static bool TryMoveNext(ReadOnlySpan<char> format, ref int pos, out char nextChar)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Decoder.cs (3)
111public virtual unsafe int GetCharCount(ReadOnlySpan<byte> bytes, bool flush) 197public virtual unsafe int GetChars(ReadOnlySpan<byte> bytes, Span<char> chars, bool flush) 303public virtual unsafe void Convert(ReadOnlySpan<byte> bytes, Span<char> chars, bool flush, out int bytesUsed, out int charsUsed, out bool completed)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\DecoderFallback.cs (2)
208internal int InternalFallbackGetCharCount(ReadOnlySpan<byte> remainingBytes, int fallbackLength) 215internal bool TryInternalFallbackGetChars(ReadOnlySpan<byte> remainingBytes, int fallbackLength, Span<char> chars, out int charsWritten)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\DecoderNLS.cs (6)
206internal ReadOnlySpan<byte> GetLeftoverData() => 209internal void SetLeftoverData(ReadOnlySpan<byte> bytes) 222internal int DrainLeftoverDataForGetCharCount(ReadOnlySpan<byte> bytes, out int bytesConsumed) 278internal int DrainLeftoverDataForGetChars(ReadOnlySpan<byte> bytes, Span<char> chars, out int bytesConsumed) 377private static int ConcatInto(ReadOnlySpan<byte> srcLeft, ReadOnlySpan<byte> srcRight, Span<byte> dest)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Encoder.cs (3)
109public virtual unsafe int GetByteCount(ReadOnlySpan<char> chars, bool flush) 194public virtual unsafe int GetBytes(ReadOnlySpan<char> chars, Span<byte> bytes, bool flush) 302public virtual unsafe void Convert(ReadOnlySpan<char> chars, Span<byte> bytes, bool flush, out int charsUsed, out int bytesUsed, out bool completed)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncoderFallback.cs (3)
122private bool InternalFallback(ReadOnlySpan<char> chars, out int charsConsumed) 162internal int InternalFallbackGetByteCount(ReadOnlySpan<char> chars, out int charsConsumed) 176internal bool TryInternalFallbackGetBytes(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsConsumed, out int bytesWritten)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncoderLatin1BestFitFallback.Data.cs (1)
9private static ReadOnlySpan<char> ArrayCharBestFit =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncoderNLS.cs (2)
235internal int DrainLeftoverDataForGetByteCount(ReadOnlySpan<char> chars, out int charsConsumed) 313internal bool TryDrainLeftoverDataForGetBytes(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsConsumed, out int bytesWritten)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (8)
325public virtual ReadOnlySpan<byte> Preamble => GetPreamble(); 581public virtual unsafe int GetByteCount(ReadOnlySpan<char> chars) 727public virtual unsafe int GetBytes(ReadOnlySpan<char> chars, Span<byte> bytes) 741public virtual bool TryGetBytes(ReadOnlySpan<char> chars, Span<byte> bytes, out int bytesWritten) 783public virtual unsafe int GetCharCount(ReadOnlySpan<byte> bytes) 876public virtual unsafe int GetChars(ReadOnlySpan<byte> bytes, Span<char> chars) 890public virtual bool TryGetChars(ReadOnlySpan<byte> bytes, Span<char> chars, out int charsWritten) 913public unsafe string GetString(ReadOnlySpan<byte> bytes)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Encoding.Internal.cs (14)
74internal virtual OperationStatus DecodeFirstRune(ReadOnlySpan<byte> bytes, out Rune value, out int bytesConsumed) 247/// after data has been drained, then to call <see cref="GetByteCountWithFallback(ReadOnlySpan{char}, int, EncoderNLS)"/>. 264ReadOnlySpan<char> chars = new ReadOnlySpan<char>(pOriginalChars, originalCharCount).Slice(charsConsumedSoFar); 311private protected virtual unsafe int GetByteCountWithFallback(ReadOnlySpan<char> chars, int originalCharsLength, EncoderNLS? encoder) 513/// after data has been drained, then to call <see cref="GetBytesWithFallback(ReadOnlySpan{char}, int, Span{byte}, int, EncoderNLS, bool)"/>. 532ReadOnlySpan<char> chars = new ReadOnlySpan<char>(pOriginalChars, originalCharCount).Slice(charsConsumedSoFar); 587private protected virtual unsafe int GetBytesWithFallback(ReadOnlySpan<char> chars, int originalCharsLength, Span<byte> bytes, int originalBytesLength, EncoderNLS? encoder, bool throwForDestinationOverflow = true) 617chars = ReadOnlySpan<char>.Empty; 841/// after data has been drained, then to call <see cref="GetCharCountWithFallback(ReadOnlySpan{byte}, int, DecoderNLS)"/>. 858ReadOnlySpan<byte> bytes = new ReadOnlySpan<byte>(pOriginalBytes, originalByteCount).Slice(bytesConsumedSoFar); 911private unsafe int GetCharCountWithFallback(ReadOnlySpan<byte> bytes, int originalBytesLength, DecoderNLS? decoder) 1134ReadOnlySpan<byte> bytes = new ReadOnlySpan<byte>(pOriginalBytes, originalByteCount).Slice(bytesConsumedSoFar); 1188private protected virtual unsafe int GetCharsWithFallback(ReadOnlySpan<byte> bytes, int originalBytesLength, Span<char> chars, int originalCharsLength, DecoderNLS? decoder, bool throwForDestinationOverflow = true) 1219bytes = ReadOnlySpan<byte>.Empty;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncodingData.cs (6)
71private static ReadOnlySpan<int> EncodingNameIndices => 128private static ReadOnlySpan<ushort> CodePagesByName => 187private static ReadOnlySpan<ushort> MappedCodePages => 202private static ReadOnlySpan<int> UiFamilyCodePages => 236private static ReadOnlySpan<int> WebNameIndices => 256private static ReadOnlySpan<uint> Flags =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncodingTable.cs (5)
54ReadOnlySpan<char> invariantName = name.ToLowerInvariant().AsSpan(); 104ReadOnlySpan<ushort> mappedCodePages = MappedCodePages; 107ReadOnlySpan<int> webNameIndices = WebNameIndices; 132ReadOnlySpan<ushort> mappedCodePages = MappedCodePages; 134ReadOnlySpan<int> webNameIndices = WebNameIndices;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Latin1Encoding.cs (8)
27public override ReadOnlySpan<byte> Preamble => default; 80public override unsafe int GetByteCount(ReadOnlySpan<char> chars) 227public override unsafe int GetBytes(ReadOnlySpan<char> chars, Span<byte> bytes) 239public override unsafe bool TryGetBytes(ReadOnlySpan<char> chars, Span<byte> bytes, out int bytesWritten) 379public override int GetCharCount(ReadOnlySpan<byte> bytes) 522public override unsafe int GetChars(ReadOnlySpan<byte> bytes, Span<char> chars) 534public override unsafe bool TryGetChars(ReadOnlySpan<byte> bytes, Span<char> chars, out int charsWritten) 686internal sealed override OperationStatus DecodeFirstRune(ReadOnlySpan<byte> bytes, out Rune value, out int bytesConsumed)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (21)
57private static ReadOnlySpan<byte> AsciiCharInfo => 299internal ReadOnlySpan<char> AsSpan(Span<char> buffer) 332public static OperationStatus DecodeFromUtf16(ReadOnlySpan<char> source, out Rune result, out int charsConsumed) 416public static OperationStatus DecodeFromUtf8(ReadOnlySpan<byte> source, out Rune result, out int bytesConsumed) 579/// This method is very similar to <see cref="DecodeFromUtf16(ReadOnlySpan{char}, out Rune, out int)"/>, but it allows 584public static OperationStatus DecodeLastFromUtf16(ReadOnlySpan<char> source, out Rune result, out int charsConsumed) 639/// This method is very similar to <see cref="DecodeFromUtf8(ReadOnlySpan{byte}, out Rune, out int)"/>, but it allows 644public static OperationStatus DecodeLastFromUtf8(ReadOnlySpan<byte> source, out Rune value, out int bytesConsumed) 806ReadOnlySpan<char> thisChars = AsSpan(stackalloc char[MaxUtf16CharsPerRune]); 809ReadOnlySpan<char> otherChars = other.AsSpan(stackalloc char[MaxUtf16CharsPerRune]); 852internal static int ReadFirstRuneFromUtf16Buffer(ReadOnlySpan<char> input) 968bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) => 971bool IUtf8SpanFormattable.TryFormat(Span<byte> utf8Destination, out int bytesWritten, ReadOnlySpan<char> format, IFormatProvider? provider) => 974/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 975static bool IUtf8SpanParsable<Rune>.TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out Rune result) 990/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 991static Rune IUtf8SpanParsable<Rune>.Parse(ReadOnlySpan<byte> utf8Text, System.IFormatProvider? provider) 1026/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1027static Rune ISpanParsable<Rune>.Parse(ReadOnlySpan<char> s, IFormatProvider? provider) 1037/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1038static bool ISpanParsable<Rune>.TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out Rune result)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\RunePosition.cs (10)
22/// <param name="span">The <see cref="ReadOnlySpan{T}"/> with Unicode data.</param> 31public static Utf16Enumerator EnumerateUtf16(ReadOnlySpan<char> span) => new(span); 36/// <param name="span">The <see cref="ReadOnlySpan{T}"/> with Unicode data.</param> 44public static Utf8Enumerator EnumerateUtf8(ReadOnlySpan<byte> span) => new(span); 181private ReadOnlySpan<char> _original; 182private ReadOnlySpan<char> _remaining; 195internal Utf16Enumerator(ReadOnlySpan<char> buffer) 260private ReadOnlySpan<byte> _original; 261private ReadOnlySpan<byte> _remaining; 278internal Utf8Enumerator(ReadOnlySpan<byte> buffer)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\SpanLineEnumerator.cs (8)
10/// Enumerates the lines of a <see cref="ReadOnlySpan{Char}"/>. 13/// To get an instance of this type, use <see cref="MemoryExtensions.EnumerateLines(ReadOnlySpan{char})"/>. 15public ref struct SpanLineEnumerator : IEnumerator<ReadOnlySpan<char>> 17private ReadOnlySpan<char> _remaining; 18private ReadOnlySpan<char> _current; 21internal SpanLineEnumerator(ReadOnlySpan<char> buffer) 31public ReadOnlySpan<char> Current => _current; 53ReadOnlySpan<char> remaining = _remaining;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\SpanRuneEnumerator.cs (2)
14private ReadOnlySpan<char> _remaining; 17internal SpanRuneEnumerator(ReadOnlySpan<char> buffer)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (36)
960private StringBuilder Insert(int index, ReadOnlySpan<char> value, int count) 1063ReadOnlySpan<char> valueChars = value.AsSpan(stackalloc char[Rune.MaxUtf16CharsPerRune]); 1133public StringBuilder Append(ReadOnlySpan<char> value) 1183public StringBuilder AppendJoin(string? separator, params ReadOnlySpan<object?> values) 1218public StringBuilder AppendJoin(string? separator, params ReadOnlySpan<string?> values) 1231return AppendJoinCore(ref separator, 1, (ReadOnlySpan<object?>)values); 1241public StringBuilder AppendJoin(char separator, params ReadOnlySpan<object?> values) => 1261return AppendJoinCore(ref separator, 1, (ReadOnlySpan<string?>)values); 1271public StringBuilder AppendJoin(char separator, params ReadOnlySpan<string?> values) => 1306private StringBuilder AppendJoinCore<T>(ref char separator, int separatorLength, ReadOnlySpan<T> values) 1378ReadOnlySpan<char> valueChars = value.AsSpan(stackalloc char[Rune.MaxUtf16CharsPerRune]); 1451public StringBuilder Insert(int index, ReadOnlySpan<char> value) 1522public StringBuilder AppendFormat([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> args) 1551return AppendFormat(provider, format, (ReadOnlySpan<object?>)args); 1569public StringBuilder AppendFormat(IFormatProvider? provider, [StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> args) 1596ReadOnlySpan<char> remainder = format.AsSpan(pos); 1634ReadOnlySpan<char> itemFormatSpan = default; // used if itemFormat is null 1916return AppendFormat(provider, format, (ReadOnlySpan<object?>)args); 1929public StringBuilder AppendFormat(IFormatProvider? provider, CompositeFormat format, params ReadOnlySpan<object?> args) 1942private StringBuilder AppendFormat<TArg0, TArg1, TArg2>(IFormatProvider? provider, CompositeFormat format, TArg0 arg0, TArg1 arg1, TArg2 arg2, ReadOnlySpan<object?> args) 2003public StringBuilder Replace(ReadOnlySpan<char> oldValue, ReadOnlySpan<char> newValue) => Replace(oldValue, newValue, 0, Length); 2070/// Determines if the contents of this builder are equal to the contents of <see cref="ReadOnlySpan{Char}"/>. 2072/// <param name="span">The <see cref="ReadOnlySpan{Char}"/>.</param> 2073public bool Equals(ReadOnlySpan<char> span) 2088ReadOnlySpan<char> chunk = new ReadOnlySpan<char>(sbChunk.m_ChunkChars, 0, chunk_length); 2130public unsafe StringBuilder Replace(ReadOnlySpan<char> oldValue, ReadOnlySpan<char> newValue, int startIndex, int count) 2159ReadOnlySpan<char> remainingChunk = chunk.m_ChunkChars.AsSpan(indexInChunk, Math.Min(chunk.m_ChunkLength - indexInChunk, count)); 2326ReadOnlySpan<char> oldChars = oldRune.AsSpan(stackalloc char[Rune.MaxUtf16CharsPerRune]); 2329ReadOnlySpan<char> newChars = newRune.AsSpan(stackalloc char[Rune.MaxUtf16CharsPerRune]); 2441private void ReplaceAllInChunk(ReadOnlySpan<int> replacements, StringBuilder sourceChunk, int removeCount, ReadOnlySpan<char> value) 2505private bool StartsWith(StringBuilder chunk, int indexInChunk, int count, ReadOnlySpan<char> value) 3191public void AppendFormatted(ReadOnlySpan<char> value) => _stringBuilder.Append(value); 3197public void AppendFormatted(ReadOnlySpan<char> value, int alignment = 0, string? format = null)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\TranscodingStream.cs (1)
475public override void Write(ReadOnlySpan<byte> buffer)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Unicode\TextSegmentationUtility.cs (5)
19private delegate OperationStatus DecodeFirstRune<T>(ReadOnlySpan<T> input, out Rune rune, out int elementsConsumed); 23private static int GetLengthOfFirstExtendedGraphemeCluster<T>(ReadOnlySpan<T> input, DecodeFirstRune<T> decoder) 184public static int GetLengthOfFirstUtf16ExtendedGraphemeCluster(ReadOnlySpan<char> input) 192private readonly ReadOnlySpan<T> _buffer; 196internal Processor(ReadOnlySpan<T> buffer, DecodeFirstRune<T> decoder)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf16.cs (4)
14/// <param name="value">The <see cref="ReadOnlySpan{T}"/> containing the UTF-16 input text to validate.</param> 16public static bool IsValid(ReadOnlySpan<char> value) => 22/// <param name="value">The <see cref="ReadOnlySpan{T}"/> containing the UTF-16 input text to examine.</param> 24public static int IndexOfInvalidSubsequence(ReadOnlySpan<char> value) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf16Utility.cs (1)
302public static unsafe int GetIndexOfFirstInvalidUtf16Sequence(ReadOnlySpan<char> utf16Data)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8.cs (11)
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) 823/// <param name="value">The <see cref="ReadOnlySpan{T}"/> containing the UTF-8 input text to examine.</param> 825public static int IndexOfInvalidSubsequence(ReadOnlySpan<byte> value) => 832/// <param name="value">The <see cref="ReadOnlySpan{T}"/> string.</param> 834public static bool IsValid(ReadOnlySpan<byte> value) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8Utility.cs (1)
28public static unsafe int GetIndexOfFirstInvalidUtf8Sequence(ReadOnlySpan<byte> utf8Data, out bool isAscii)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (1)
1739public override ReadOnlySpan<byte> Preamble =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (1)
1131public override ReadOnlySpan<byte> Preamble =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF7Encoding.cs (2)
69ReadOnlySpan<byte> directChars = "\t\n\r '(),-./0123456789:?ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"u8; 79ReadOnlySpan<byte> optionalChars = "!\"#$%&*;<=>@[]^_`{|}"u8;
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.Sealed.cs (2)
26public override ReadOnlySpan<byte> Preamble => _emitUTF8Identifier ? PreambleSpan : default; 153public override bool TryGetBytes(ReadOnlySpan<char> chars, Span<byte> bytes, out int bytesWritten)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\ValueStringBuilder.AppendFormat.cs (3)
14internal void AppendFormatHelper(IFormatProvider? provider, string format, ReadOnlySpan<object?> args) 41ReadOnlySpan<char> remainder = format.AsSpan(pos); 79ReadOnlySpan<char> itemFormatSpan = default; // used if itemFormat is null
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (3)
866return CreateLinkedTokenSource((ReadOnlySpan<CancellationToken>)tokens); 875public static CancellationTokenSource CreateLinkedTokenSource(params ReadOnlySpan<CancellationToken> tokens) 943internal LinkedNCancellationTokenSource(ReadOnlySpan<CancellationToken> tokens)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PollThread.cs (3)
312private static void LinkChildren(PollIOEvent root, ReadOnlySpan<PollIOEvent> rest) 335ReadOnlySpan<PollIOEvent> left = rest.Slice(0, leftCount); 336ReadOnlySpan<PollIOEvent> right = rest.Slice(leftCount);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (22)
4781public static void WaitAll(params ReadOnlySpan<Task> tasks) 4971ReadOnlySpan<Task> span = 5773return WhenAll((ReadOnlySpan<Task>)taskArray); 5834return WhenAll((ReadOnlySpan<Task>)tasks); 5859        public static Task WhenAll(params ReadOnlySpan<Task> tasks) 5885internal WhenAllPromise(ReadOnlySpan<Task> tasks) 6174return WhenAll((ReadOnlySpan<Task<TResult>>)tasks); 6205public static Task<TResult[]> WhenAll<TResult>(params ReadOnlySpan<Task<TResult>> tasks) 6361return WhenAnyCore((ReadOnlySpan<Task>)tasks); 6376public static Task<Task> WhenAny(params ReadOnlySpan<Task> tasks) => 6391private static Task<TTask> WhenAnyCore<TTask>(ReadOnlySpan<TTask> tasks) where TTask : Task 6574return WhenAnyCore((ReadOnlySpan<TTask>)CollectionsMarshal.AsSpan(Unsafe.As<List<TTask>>(tasks))); 6578return WhenAnyCore((ReadOnlySpan<TTask>)tasksAsArray); 6647return WhenAnyCore((ReadOnlySpan<Task<TResult>>)tasks); 6663public static Task<Task<TResult>> WhenAny<TResult>(params ReadOnlySpan<Task<TResult>> tasks) => 6714return WhenEach((ReadOnlySpan<Task>)tasks); 6719public static IAsyncEnumerable<Task> WhenEach(params ReadOnlySpan<Task> tasks) => 6733return WhenEach((ReadOnlySpan<Task<TResult>>)tasks); 6739public static IAsyncEnumerable<Task<TResult>> WhenEach<TResult>(params ReadOnlySpan<Task<TResult>> tasks) => 6740WhenEachState.Iterate<Task<TResult>>(WhenEachState.Create(ReadOnlySpan<Task>.CastUp(tasks))); 6789public static WhenEachState? Create(ReadOnlySpan<Task> tasks) 6811/// <inheritdoc cref="Create(ReadOnlySpan{Task})"/>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.MultiThreading.cs (1)
149private static bool WaitAllCore(ReadOnlySpan<Task> tasks, int millisecondsTimeout, CancellationToken cancellationToken)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandle.cs (6)
239ReadOnlySpan<WaitHandle> waitHandles, 298private static unsafe int WaitMultiple(ReadOnlySpan<WaitHandle> waitHandles, bool waitAll, int millisecondsTimeout) 361private static unsafe int WaitAnyMultiple(ReadOnlySpan<SafeWaitHandle> safeWaitHandles, int millisecondsTimeout) 400internal static int WaitMultipleIgnoringSyncContext(ReadOnlySpan<IntPtr> handles, bool waitAll, int millisecondsTimeout) 519internal static int WaitAny(ReadOnlySpan<SafeWaitHandle> safeWaitHandles, int millisecondsTimeout) => 521internal static int WaitAny(ReadOnlySpan<WaitHandle> waitHandles, int millisecondsTimeout) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandle.Unix.cs (1)
13private static int WaitMultipleIgnoringSyncContextCore(ReadOnlySpan<IntPtr> handles, bool waitAll, int millisecondsTimeout) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitSubsystem.Unix.cs (1)
376ReadOnlySpan<IntPtr> waitHandles,
src\runtime\src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
618internal static void ThrowFormatException_BadBoolean(ReadOnlySpan<char> value)
src\runtime\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) 484public static TimeOnly ParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] ReadOnlySpan<char> format, IFormatProvider? provider = default, DateTimeStyles style = DateTimeStyles.None) 507public static TimeOnly ParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] string[] formats) => ParseExact(s, formats, null, DateTimeStyles.None); 518public static TimeOnly ParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] string[] formats, IFormatProvider? provider, DateTimeStyles style = DateTimeStyles.None) 623public static bool TryParse(ReadOnlySpan<char> s, out TimeOnly result) => TryParse(s, null, DateTimeStyles.None, out result); 633/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 634public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, DateTimeStyles style, out TimeOnly result) 644private static ParseFailureKind TryParseInternal(ReadOnlySpan<char> s, IFormatProvider? provider, DateTimeStyles style, out TimeOnly result) 674public static bool TryParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] ReadOnlySpan<char> format, out TimeOnly result) => TryParseExact(s, format, null, DateTimeStyles.None, out result); 686public static bool TryParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] ReadOnlySpan<char> format, IFormatProvider? provider, DateTimeStyles style, out TimeOnly result) 705private static ParseFailureKind TryParseExactInternal(ReadOnlySpan<char> s, ReadOnlySpan<char> format, IFormatProvider? provider, DateTimeStyles style, out TimeOnly result) 751public static bool TryParseExact(ReadOnlySpan<char> s, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] string?[]? formats, out TimeOnly result) => TryParseExact(s, formats, null, DateTimeStyles.None, out result); 762public static bool TryParseExact(ReadOnlySpan<char> s, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] string?[]? formats, IFormatProvider? provider, DateTimeStyles style, out TimeOnly result) 786private static ParseFailureKind TryParseExactInternal(ReadOnlySpan<char> s, string?[]? formats, IFormatProvider? provider, DateTimeStyles style, out TimeOnly result) 919private static void ThrowOnError(ParseFailureKind result, ReadOnlySpan<char> s) 1016public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) => 1020public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) => 1023private bool TryFormatCore<TChar>(Span<TChar> destination, out int written, [StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] ReadOnlySpan<char> format, IFormatProvider? provider) where TChar : unmanaged, IUtfChar<TChar> 1071/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1072public static TimeOnly Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, provider, DateTimeStyles.None); 1074/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1075public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out TimeOnly result) => TryParse(s, provider, DateTimeStyles.None, out result);
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (40)
710out ReadOnlySpan<char> standardOffset, 711out ReadOnlySpan<char> daylightSavingsName, 712out ReadOnlySpan<char> daylightSavingsOffset, 713out ReadOnlySpan<char> start, 714out ReadOnlySpan<char> startTime, 715out ReadOnlySpan<char> end, 716out ReadOnlySpan<char> endTime)) 778private static TimeSpan? TZif_ParseOffsetString(ReadOnlySpan<char> offset) 816private static DateTime ParseTimeOfDay(ReadOnlySpan<char> time) 847private static TransitionTime? TZif_CreateTransitionTimeFromPosixRule(ReadOnlySpan<char> date, ReadOnlySpan<char> time) 928private static void TZif_ParseJulianDay(ReadOnlySpan<char> date, out int month, out int day) 951ReadOnlySpan<int> days = GregorianCalendar.DaysToMonth365; 976private static bool TZif_ParseMDateRule(ReadOnlySpan<char> dateRule, out int month, out int week, out DayOfWeek dayOfWeek) 983ReadOnlySpan<char> weekDaySpan = dateRule.Slice(monthWeekDotIndex + 1); 1005ReadOnlySpan<char> posixFormat, 1006out ReadOnlySpan<char> standardName, 1007out ReadOnlySpan<char> standardOffset, 1008out ReadOnlySpan<char> daylightSavingsName, 1009out ReadOnlySpan<char> daylightSavingsOffset, 1010out ReadOnlySpan<char> start, 1011out ReadOnlySpan<char> startTime, 1012out ReadOnlySpan<char> end, 1013out ReadOnlySpan<char> endTime) 1046private static ReadOnlySpan<char> TZif_ParsePosixName(ReadOnlySpan<char> posixFormat, scoped ref int index) 1054ReadOnlySpan<char> result = TZif_ParsePosixString(posixFormat, ref index, c => c == '>'); 1073private static ReadOnlySpan<char> TZif_ParsePosixOffset(ReadOnlySpan<char> posixFormat, scoped ref int index) => 1076private static void TZif_ParsePosixDateTime(ReadOnlySpan<char> posixFormat, scoped ref int index, out ReadOnlySpan<char> date, out ReadOnlySpan<char> time) 1088private static ReadOnlySpan<char> TZif_ParsePosixDate(ReadOnlySpan<char> posixFormat, scoped ref int index) => 1091private static ReadOnlySpan<char> TZif_ParsePosixTime(ReadOnlySpan<char> posixFormat, scoped ref int index) => 1094private static ReadOnlySpan<char> TZif_ParsePosixString(ReadOnlySpan<char> posixFormat, scoped ref int index, Func<char, bool> breakCondition) 1121private static short TZif_ToInt16(ReadOnlySpan<byte> value) 1131private static int TZif_ToInt32(ReadOnlySpan<byte> value)
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Type.Helpers.cs (2)
529ReadOnlySpan<char> str = filterCriteriaString.AsSpan().Trim(); 530ReadOnlySpan<char> name = m.Name;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (27)
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 UInt128 Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 152public static bool TryParse(ReadOnlySpan<char> s, out UInt128 result) => TryParse(s, NumberStyles.Integer, provider: null, out result); 158public static bool TryParse(ReadOnlySpan<byte> utf8Text, out UInt128 result) => TryParse(utf8Text, NumberStyles.Integer, provider: null, out result); 166public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out UInt128 result) 1037internal static ReadOnlySpan<UInt128> PowersOf10 => s_powersOf10; 1104/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 1105static bool IBinaryInteger<UInt128>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out UInt128 value) 1152/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 1153static bool IBinaryInteger<UInt128>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out UInt128 value) 2050/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{char}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 2051public static bool TryParsePartial(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out UInt128 result, out int charsConsumed) 2057/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 2058public static bool TryParsePartial(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out UInt128 result, out int bytesConsumed) 2148/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 2149public static UInt128 Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Integer, provider); 2151/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 2152public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out UInt128 result) => TryParse(s, NumberStyles.Integer, provider, out result); 2205/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 2206public static UInt128 Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 2212/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 2213public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out UInt128 result) 2219/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 2220public static UInt128 Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Integer, provider); 2222/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 2223public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out UInt128 result) => TryParse(utf8Text, NumberStyles.Integer, provider, out result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (26)
114public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 120public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 137public static ushort Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 145public static bool TryParse(ReadOnlySpan<char> s, out ushort result) => TryParse(s, NumberStyles.Integer, provider: null, out result); 151public static bool TryParse(ReadOnlySpan<byte> utf8Text, out ushort result) => TryParse(utf8Text, NumberStyles.Integer, provider: null, out result); 159public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out ushort result) 291/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 292static bool IBinaryInteger<ushort>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out ushort value) 332/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 333static bool IBinaryInteger<ushort>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out ushort value) 1126/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{char}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1127public static bool TryParsePartial(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out ushort result, out int charsConsumed) 1133/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1134public static bool TryParsePartial(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out ushort result, out int bytesConsumed) 1164/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1165public static ushort Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Integer, provider); 1167/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1168public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out ushort result) => TryParse(s, NumberStyles.Integer, provider, out result); 1201/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1202public static ushort Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 1208/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 1209public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out ushort result) 1215/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 1216public static ushort Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Integer, provider); 1218/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 1219public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out ushort result) => TryParse(utf8Text, NumberStyles.Integer, provider, out result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (27)
130public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 136public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 153public static uint Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 161public static bool TryParse(ReadOnlySpan<char> s, out uint result) => TryParse(s, NumberStyles.Integer, provider: null, out result); 167public static bool TryParse(ReadOnlySpan<byte> utf8Text, out uint result) => TryParse(utf8Text, NumberStyles.Integer, provider: null, out result); 175public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out uint result) 308internal static ReadOnlySpan<uint> PowersOf10 => 338/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 339static bool IBinaryInteger<uint>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out uint value) 386/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 387static bool IBinaryInteger<uint>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out uint value) 1197/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{char}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1198public static bool TryParsePartial(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out uint result, out int charsConsumed) 1204/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1205public static bool TryParsePartial(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out uint result, out int bytesConsumed) 1235/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1236public static uint Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Integer, provider); 1238/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1239public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out uint result) => TryParse(s, NumberStyles.Integer, provider, out result); 1272/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1273public static uint Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 1279/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 1280public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out uint result) 1286/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 1287public static uint Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Integer, provider); 1289/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 1290public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out uint result) => TryParse(utf8Text, NumberStyles.Integer, provider, out result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (27)
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 ulong Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 160public static bool TryParse(ReadOnlySpan<char> s, out ulong result) => TryParse(s, NumberStyles.Integer, provider: null, out result); 166public static bool TryParse(ReadOnlySpan<byte> utf8Text, out ulong result) => TryParse(utf8Text, NumberStyles.Integer, provider: null, out result); 174public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out ulong result) 305internal static ReadOnlySpan<ulong> PowersOf10 => 345/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 346static bool IBinaryInteger<ulong>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out ulong value) 393/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 394static bool IBinaryInteger<ulong>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out ulong value) 1198/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{char}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1199public static bool TryParsePartial(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out ulong result, out int charsConsumed) 1205/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1206public static bool TryParsePartial(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out ulong result, out int bytesConsumed) 1236/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1237public static ulong Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Integer, provider); 1239/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1240public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out ulong result) => TryParse(s, NumberStyles.Integer, provider, out result); 1273/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1274public static ulong Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 1280/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 1281public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out ulong result) 1287/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 1288public static ulong Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Integer, provider); 1290/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 1291public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out ulong result) => TryParse(utf8Text, NumberStyles.Integer, provider, out result);
src\runtime\src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (24)
230public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) => 234public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) => 241public static nuint Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => (nuint)nuint_t.Parse(s, provider); 242public static nuint Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) => (nuint)nuint_t.Parse(s, style, provider); 255public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out nuint result) 267public static bool TryParse(ReadOnlySpan<char> s, out nuint result) 277public static bool TryParse(ReadOnlySpan<byte> utf8Text, out nuint result) 290public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out nuint result) 350/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 351static bool IBinaryInteger<nuint>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out nuint value) 398/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 399static bool IBinaryInteger<nuint>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out nuint value) 1198/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{char}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1199public static bool TryParsePartial(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out nuint result, out int charsConsumed) 1206/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1207public static bool TryParsePartial(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out nuint result, out int bytesConsumed) 1258/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1259public static nuint Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) => (nuint)nuint_t.Parse(utf8Text, style, provider); 1261/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 1262public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out nuint result) 1268/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 1269public static nuint Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => (nuint)nuint_t.Parse(utf8Text, provider); 1271/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 1272public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out nuint result)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Version.cs (18)
270bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) => 275bool IUtf8SpanFormattable.TryFormat(Span<byte> utf8Destination, out int bytesWritten, ReadOnlySpan<char> format, IFormatProvider? provider) => 291public static Version Parse(ReadOnlySpan<char> input) => 294/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)"/> 295static Version IUtf8SpanParsable<Version>.Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) 315public static Version Parse(ReadOnlySpan<byte> utf8Text) => 330public static bool TryParse(ReadOnlySpan<char> input, [NotNullWhen(true)] out Version? result) 345public static bool TryParse(ReadOnlySpan<byte> utf8Text, [NotNullWhen(true)] out Version? result) 351/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)"/> 352static bool IUtf8SpanParsable<Version>.TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, [NotNullWhen(true)] out Version? result) 358private static Version? ParseVersion<TChar>(ReadOnlySpan<TChar> input, bool throwOnFailure) 430private static bool TryParseComponent<TChar>(ReadOnlySpan<TChar> component, string componentName, bool throwOnFailure, ReadOnlySpan<TChar> originalInput, out int parsedComponent) 448static void ThrowFailure(Number.ParsingStatus parseStatus, int parsedComponent, string componentName, ReadOnlySpan<TChar> originalInput) 458Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<char>>(originalInput).ToString() : 459Encoding.UTF8.GetString(Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(originalInput));
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\AssemblyNameInfo.cs (2)
204public static AssemblyNameInfo Parse(ReadOnlySpan<char> assemblyName) 215public static bool TryParse(ReadOnlySpan<char> assemblyName, [NotNullWhen(true)] out AssemblyNameInfo? result)
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeName.cs (5)
358ReadOnlySpan<char> name = _fullName.AsSpan(); 404ReadOnlySpan<char> rootFullName = rootTypeName._fullName.AsSpan(); 526public static TypeName Parse(ReadOnlySpan<char> typeName, TypeNameParseOptions? options = default) 536public static bool TryParse(ReadOnlySpan<char> typeName, [NotNullWhen(true)] out TypeName? result, TypeNameParseOptions? options = default) 586ReadOnlySpan<TypeName> GetGenericArguments() => CollectionsMarshal.AsSpan(_genericArguments);
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParser.cs (8)
22private ReadOnlySpan<char> _inputString; 24private TypeNameParser(ReadOnlySpan<char> name, bool throwOnError, TypeNameParseOptions? options) : this() 31internal static TypeName? Parse(ReadOnlySpan<char> typeName, bool throwOnError, TypeNameParseOptions? options = default) 33ReadOnlySpan<char> trimmedName = typeName.TrimStart(); // whitespaces at beginning are always OK 85ReadOnlySpan<char> fullTypeName = _inputString.Slice(0, fullTypeNameLength); 99ReadOnlySpan<char> capturedBeforeProcessing = _inputString; 240ReadOnlySpan<char> capturedBeforeProcessing = _inputString; 249ReadOnlySpan<char> candidate = GetAssemblyNameCandidate(_inputString);
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (12)
22internal static int GetFullTypeNameLength(ReadOnlySpan<char> input, out bool isNestedType) 51static int GetUnescapedOffset(ReadOnlySpan<char> input, int startOffset) 76internal static int IndexOfNamespaceDelimiter(ReadOnlySpan<char> fullName) 130internal static ReadOnlySpan<char> GetAssemblyNameCandidate(ReadOnlySpan<char> input) 143static int GetUnescapedOffset(ReadOnlySpan<char> input, int startIndex) 198internal static bool IsBeginningOfGenericArgs(ref ReadOnlySpan<char> span, out bool doubleBrackets) 205ReadOnlySpan<char> trimmed = span.Slice(1).TrimStart(); 225internal static bool TryGetTypeNameInfo(TypeNameParseOptions options, ref ReadOnlySpan<char> input, 268internal static bool TryParseNextDecorator(ref ReadOnlySpan<char> input, out int rankOrModifier) 273ReadOnlySpan<char> originalInput = input; // so we can restore on 'false' return 332internal static bool TryStripFirstCharAndTrailingSpaces(ref ReadOnlySpan<char> span, char value)
System\CrashInfo.cs (14)
84ReadOnlySpan<byte> key = "exception"u8; 152private bool WriteExceptionWithFallback(ReadOnlySpan<byte> key, Exception exception, int maxMessageSize, int maxNumberStackFrames, int maxMethodNameSize) 172private bool WriteExceptionHelper(ReadOnlySpan<byte> key, Exception exception, int maxMessageSize, int maxNumberStackFrames, int maxMethodNameSize) 272private bool WriteHexValue(ReadOnlySpan<byte> key, ulong value) => WriteValue(key, $"0x{value:X}".AsSpan()); 274private bool WriteHexValue(ReadOnlySpan<byte> key, int value) => WriteValue(key, $"0x{value:X}".AsSpan()); 276private bool WriteIntValue(ReadOnlySpan<byte> key, int value) => WriteValue(key, $"{value}".AsSpan()); 278private bool WriteStringValue(ReadOnlySpan<byte> key, string value, int maxChars = int.MaxValue, bool truncateLeft = false) 317private bool WriteValue(ReadOnlySpan<byte> key, ReadOnlySpan<char> value) 333private bool WriteValue(ReadOnlySpan<byte> key, ReadOnlySpan<byte> bytes) 343private bool OpenValue(ReadOnlySpan<byte> key, char marker) 380private bool WriteChars(ReadOnlySpan<char> chars) 392private bool WriteBytes(ReadOnlySpan<byte> bytes)
System\Delegate.NativeAot.cs (7)
31if (TryGetInvocations(out ReadOnlySpan<Wrapper> invocations)) 79private bool TryGetInvocations(out ReadOnlySpan<Wrapper> invocations) 285if (TryGetInvocations(out ReadOnlySpan<Wrapper> invocations)) 304if (TryGetInvocations(out ReadOnlySpan<Wrapper> invocations)) 454if (TryGetInvocations(out ReadOnlySpan<Wrapper> invocations)) 455return other.TryGetInvocations(out ReadOnlySpan<Wrapper> otherInvocations) && invocations.SequenceEqual(otherInvocations); 481if (TryGetInvocations(out ReadOnlySpan<Wrapper> invocations))
System\Diagnostics\StackFrame.NativeAot.cs (1)
140ReadOnlySpan<char> fileNameWithoutExtension = Path.GetFileNameWithoutExtension(moduleFullFileName.AsSpan());
System\EETypePtr.cs (1)
36ReadOnlySpan<byte> map =
System\InvokeUtils.cs (1)
370ReadOnlySpan<ushort> primitiveAttributes = [
System\Reflection\DynamicInvokeInfo.cs (1)
65ReadOnlySpan<ParameterInfo> parameters = method.GetParametersAsSpan();
System\Reflection\Metadata\MetadataUpdater.cs (3)
10public static void ApplyUpdate(Assembly assembly, ReadOnlySpan<byte> metadataDelta, ReadOnlySpan<byte> ilDelta, ReadOnlySpan<byte> pdbDelta)
System\Reflection\MethodBase.NativeAot.cs (1)
20public virtual ReadOnlySpan<ParameterInfo> GetParametersAsSpan() => GetParameters();
System\Reflection\Runtime\Assemblies\NativeFormat\NativeFormatRuntimeAssembly.GetTypeCore.CaseSensitive.cs (2)
19ReadOnlySpan<char> namespaceName = separator < 0 ? default : fullName.AsSpan(0, separator); 20ReadOnlySpan<char> name = fullName.AsSpan(separator + 1);
System\Reflection\Runtime\BindingFlagSupport\MemberPolicies.cs (2)
78ReadOnlySpan<ParameterInfo> p1 = method1.GetParametersAsSpan(); 79ReadOnlySpan<ParameterInfo> p2 = method2.GetParametersAsSpan();
System\Reflection\Runtime\BindingFlagSupport\Shared.cs (1)
44ReadOnlySpan<ParameterInfo> parameterInfos = methodBase.GetParametersAsSpan();
System\Reflection\Runtime\EventInfos\RuntimeEventInfo.cs (1)
112ReadOnlySpan<ParameterInfo> parameters = addMethod.GetParametersAsSpan();
System\Reflection\Runtime\MethodInfos\CustomMethodInvoker.cs (1)
35ReadOnlySpan<object?> arguments,
System\Reflection\Runtime\MethodInfos\CustomMethodMapper.cs (1)
33ReadOnlySpan<ParameterInfo> parameterInfos = methodBase.GetParametersAsSpan();
System\Reflection\Runtime\MethodInfos\RuntimeConstructorInfo.cs (2)
80public sealed override ReadOnlySpan<ParameterInfo> GetParametersAsSpan() 92ReadOnlySpan<ParameterInfo> parameters = GetParametersAsSpan();
System\Reflection\RuntimeCustomAttributeData.NativeAot.cs (1)
115ReadOnlySpan<ParameterInfo> candidateParameters = candidate.GetParametersAsSpan();
System\Reflection\RuntimeMethodInfo.cs (5)
180public sealed override ReadOnlySpan<ParameterInfo> GetParametersAsSpan() 341ReadOnlySpan<ParameterInfo> delegateParameters = invokeMethod.GetParametersAsSpan(); 342ReadOnlySpan<ParameterInfo> targetParameters = this.GetParametersAsSpan(); 343ReadOnlySpan<ParameterInfo>.Enumerator delegateParameterEnumerator = delegateParameters.GetEnumerator(); 344ReadOnlySpan<ParameterInfo>.Enumerator targetParameterEnumerator = targetParameters.GetEnumerator();
System\Reflection\TypeNameResolver.NativeAot.cs (1)
121private Type? GetType(string escapedTypeName, ReadOnlySpan<string> nestedTypeNames, TypeName parsedName)
System\Runtime\InteropServices\PInvokeMarshal.cs (1)
537ReadOnlySpan<byte> span = MemoryMarshal.CreateReadOnlySpanFromNullTerminated(pchBuffer);
System\Runtime\Loader\AssemblyLoadContext.NativeAot.cs (2)
53internal Assembly InternalLoad(ReadOnlySpan<byte> rawAssembly, ReadOnlySpan<byte> rawSymbols)
System\ValueType.cs (1)
124private static unsafe ReadOnlySpan<byte> GetSpanForField(MethodTable* type, ref byte data)
System.Private.CoreLib.Generators (4)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (4)
65public void Append(scoped ReadOnlySpan<T> source) 81private void AppendMultiChar(scoped ReadOnlySpan<T> source) 92public void Insert(int index, scoped ReadOnlySpan<T> source) 144public ReadOnlySpan<T> AsSpan()
System.Private.DataContractSerialization (56)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\RegexGenerator.g.cs (4)
220protected override void Scan(ReadOnlySpan<char> inputSpan) 232private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 254private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 259ReadOnlySpan<char> slice = inputSpan.Slice(pos);
src\runtime\src\libraries\Common\src\System\HexConverter.cs (9)
187public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper) 204public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper) 221public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 244public ReadOnlySpan<byte> Bytes { get; set; } 276public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 288public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 456private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 491private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 598public static ReadOnlySpan<byte> CharToHexLookup =>
System\Runtime\Serialization\DataContract.cs (1)
1574ReadOnlySpan<char> tempLocalName = typeName.AsSpan(startIndex, endIndex - startIndex);
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (2)
245public override void Write(ReadOnlySpan<byte> buffer) 326private static SupportedEncoding DetectEncoding(ReadOnlySpan<byte> data, out int bomLength)
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (1)
156ReadOnlySpan<char> ticksvalue = dateTimeValue.AsSpan(6, dateTimeValue.Length - 8);
System\Runtime\Serialization\Json\XmlJsonReader.cs (3)
19private static ReadOnlySpan<byte> CharTypes => 929private static char ParseChar(ReadOnlySpan<char> value, NumberStyles style) 942private static int ParseInt(ReadOnlySpan<char> value, NumberStyles style)
System\Runtime\Serialization\ObjectToIdCache.cs (1)
150ReadOnlySpan<int> primes =
System\Text\Base64Encoding.cs (2)
14private static ReadOnlySpan<byte> Char2val => // 128 27private static ReadOnlySpan<byte> Val2byte => "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"u8;
System\Xml\EncodingStreamWrapper.cs (1)
183ReadOnlySpan<byte> bom = _encoding.Preamble;
System\Xml\UniqueId.cs (2)
17private static ReadOnlySpan<short> Char2val => 76ReadOnlySpan<byte> source = guid.AsSpan(offset, guidLength);
System\Xml\XmlBinaryWriter.cs (14)
599private unsafe void WriteTextImpl(ReadOnlySpan<char> chars) 854public void WriteArray(XmlBinaryNodeType nodeType, int count, ReadOnlySpan<byte> bytes) 860public void WriteBoolArray(ReadOnlySpan<bool> items) 865public void WriteInt16Array(ReadOnlySpan<short> items) 881public void WriteInt32Array(ReadOnlySpan<int> items) 897public void WriteInt64Array(ReadOnlySpan<long> items) 913public void WriteFloatArray(ReadOnlySpan<float> items) 931public void WriteDoubleArray(ReadOnlySpan<double> items) 949public void WriteDecimalArray(ReadOnlySpan<decimal> items) 974public void WriteDateTimeArray(ReadOnlySpan<DateTime> items) 983public void WriteGuidArray(ReadOnlySpan<Guid> items) 1002public void WriteTimeSpanArray(ReadOnlySpan<TimeSpan> items) 1262XmlBinaryNodeType nodeType, int count, ReadOnlySpan<byte> bytes) 1269XmlBinaryNodeType nodeType, int count, ReadOnlySpan<byte> bytes)
System\Xml\XmlBufferReader.cs (6)
252public void InsertBytes(ReadOnlySpan<byte> bytes) 399ReadOnlySpan<byte> bytes = buffer.AsSpan(offset, sizeof(decimal)); 400ReadOnlySpan<int> span = 941ReadOnlySpan<byte> buffer = GetBuffer(sizeof(T), out int offset) 978ReadOnlySpan<byte> bytes = _buffer.AsSpan(offset, sizeof(decimal)); 979ReadOnlySpan<int> span =
System\Xml\XmlConverter.cs (2)
1085public static bool IsWhitespace(ReadOnlySpan<char> chars) => 1088public static bool IsWhitespace(ReadOnlySpan<byte> bytes) =>
System\Xml\XmlStreamNodeWriter.cs (2)
228protected void WriteBytes(ReadOnlySpan<byte> bytes) 277protected void WriteUTF8Bytes(ReadOnlySpan<byte> value)
System\Xml\XmlUTF8TextReader.cs (5)
34private static ReadOnlySpan<byte> CharTypeMap => // 256 754ReadOnlySpan<byte> charTypeMap = XmlUTF8TextReader.CharTypeMap; 1132ReadOnlySpan<byte> charTypeMap = XmlUTF8TextReader.CharTypeMap; 1141ReadOnlySpan<byte> charTypeMap = XmlUTF8TextReader.CharTypeMap; 1151ReadOnlySpan<byte> charTypeMap = XmlUTF8TextReader.CharTypeMap;
System\Xml\XmlUTF8TextWriter.cs (1)
61private static ReadOnlySpan<byte> Digits => "0123456789ABCDEF"u8;
System.Private.Reflection.Execution (2)
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatReader.String.cs (2)
44public unsafe ReadOnlySpan<byte> ReadLengthPrefixedBytes(uint offset) 99public unsafe bool StringEquals(uint offset, ReadOnlySpan<char> value)
System.Private.StackTraceMetadata (7)
src\runtime\src\libraries\Common\src\Internal\VersionResilientHashCode.cs (7)
25public HashCodeBuilder(ReadOnlySpan<byte> seed) 33public void Append(ReadOnlySpan<byte> src) 77public static int NameHashCode(ReadOnlySpan<byte> src) 106public static int NameHashCode(ReadOnlySpan<char> src) 110HashCodeBuilder builder = new HashCodeBuilder(ReadOnlySpan<byte>.Empty); 132public static int NameHashCode(ReadOnlySpan<byte> namespacePart, ReadOnlySpan<byte> namePart)
System.Private.TypeLoader (17)
Internal\TypeSystem\RuntimeNoMetadataType.cs (1)
38public unsafe NoMetadataType(TypeSystemContext context, RuntimeTypeHandle genericTypeDefinition, int instantiationLength, ReadOnlySpan<Runtime.GenericVariance> runtimeVarianceData, int hashcode)
Internal\TypeSystem\TypeSystemContext.Runtime.cs (1)
196ReadOnlySpan<Runtime.GenericVariance> varianceData = new ReadOnlySpan<Runtime.GenericVariance>(runtimeVariance, runtimeVariance == null ? 0 : genericParameters.Length);
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatReader.String.cs (2)
44public unsafe ReadOnlySpan<byte> ReadLengthPrefixedBytes(uint offset) 99public unsafe bool StringEquals(uint offset, ReadOnlySpan<char> value)
src\runtime\src\coreclr\tools\Common\Internal\Text\Utf8Span.cs (4)
13private readonly ReadOnlySpan<byte> _value; 15public Utf8Span(ReadOnlySpan<byte> value) => _value = value; 21public ReadOnlySpan<byte> AsSpan() => _value; 61public static implicit operator Utf8Span(ReadOnlySpan<byte> s) => new Utf8Span(s);
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\Instantiation.cs (1)
32public static implicit operator ReadOnlySpan<TypeDesc>(Instantiation instantiation)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\MethodDesc.cs (1)
232public EmbeddedSignatureData[] GetEmbeddedSignatureData(ReadOnlySpan<EmbeddedSignatureDataKind> kinds)
src\runtime\src\libraries\Common\src\Internal\VersionResilientHashCode.cs (7)
25public HashCodeBuilder(ReadOnlySpan<byte> seed) 33public void Append(ReadOnlySpan<byte> src) 77public static int NameHashCode(ReadOnlySpan<byte> src) 106public static int NameHashCode(ReadOnlySpan<char> src) 110HashCodeBuilder builder = new HashCodeBuilder(ReadOnlySpan<byte>.Empty); 132public static int NameHashCode(ReadOnlySpan<byte> namespacePart, ReadOnlySpan<byte> namePart)
System.Private.Uri (81)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (4)
65public void Append(scoped ReadOnlySpan<T> source) 81private void AppendMultiChar(scoped ReadOnlySpan<T> source) 92public void Insert(int index, scoped ReadOnlySpan<T> source) 144public ReadOnlySpan<T> AsSpan()
src\runtime\src\libraries\Common\src\System\HexConverter.cs (9)
187public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper) 204public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper) 221public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 244public ReadOnlySpan<byte> Bytes { get; set; } 276public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 288public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 456private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 491private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 598public static ReadOnlySpan<byte> CharToHexLookup =>
src\runtime\src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (4)
34internal static unsafe int ParseHostNumber<TChar>(ReadOnlySpan<TChar> str, int start, int end) 100internal static bool IsValid<TChar>(ReadOnlySpan<TChar> name, out int end, bool allowIPv6, bool notImplicitFile, bool unknownScheme) 127internal static bool IsValidCanonical<TChar>(ReadOnlySpan<TChar> name, out int end, bool allowIPv6, bool notImplicitFile) 205internal static long ParseNonCanonical<TChar>(ReadOnlySpan<TChar> name, out int end, bool notImplicitFile)
src\runtime\src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (6)
17internal static (int longestSequenceStart, int longestSequenceLength) FindCompressionRange(ReadOnlySpan<ushort> numbers) 45internal static bool ShouldHaveIpv4Embedded(ReadOnlySpan<ushort> numbers) 98internal static bool IsValidStrict<TChar>(ReadOnlySpan<TChar> name) 313internal static void Parse<TChar>(ReadOnlySpan<TChar> address, scoped Span<ushort> numbers, out ReadOnlySpan<TChar> scopeId) 324scopeId = ReadOnlySpan<TChar>.Empty;
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
101public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 102public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 103public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 209public void Append(scoped ReadOnlySpan<char> value)
System\DomainNameHelper.cs (5)
77ReadOnlySpan<char> span = str.AsSpan(start, end - start); 100public static bool IsValid(ReadOnlySpan<char> hostname, bool iri, bool notImplicitFile, out int length) 152ReadOnlySpan<char> label = hostname.Slice(0, labelLength); 239ReadOnlySpan<char> label = hostname.AsSpan(i); 299private static void AppendIdnUnicode(scoped ReadOnlySpan<char> ascii, ref ValueStringBuilder dest)
System\IPv6AddressHelper.cs (4)
12internal static unsafe string ParseCanonicalName(ReadOnlySpan<char> str, ref bool isLoopback, out ReadOnlySpan<char> scopeId) 90private static bool IsLoopback(ReadOnlySpan<ushort> numbers) 124public static bool IsValid(ReadOnlySpan<char> name, out int length)
System\IriHelper.cs (2)
74public static void EscapeUnescapeIri(ref ValueStringBuilder dest, scoped ReadOnlySpan<char> span, bool isQuery) 159ReadOnlySpan<byte> encodedBytes = maxUtf8EncodedSpan.Slice(0, bytesWritten);
System\PercentEncodingHelper.cs (1)
13public static int UnescapePercentEncodedUTF8Sequence(scoped ReadOnlySpan<char> input, ref ValueStringBuilder dest, bool isQuery, bool iriParsing)
System\UncNameHelper.cs (1)
39public static bool IsValid(ReadOnlySpan<char> name, bool notImplicitFile, out int nameLength)
System\Uri.cs (24)
1053ReadOnlySpan<char> path = _string.AsSpan(start, _info.Offset.Query - start); 1591ReadOnlySpan<char> result; 1657bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) => 1995ReadOnlySpan<char> str = _string; 2500host = IPv6AddressHelper.ParseCanonicalName(str.AsSpan(idx), ref loopback, out ReadOnlySpan<char> scopeIdSpan); 2715scoped ReadOnlySpan<char> result = RecreateParts(ref dest, str, parts, nonCanonical, formatAs); 2732scoped ReadOnlySpan<char> result = RecreateParts(ref dest, str, parts, nonCanonical, formatAs); 2740private ReadOnlySpan<char> RecreateParts(scoped ref ValueStringBuilder dest, string str, UriComponents parts, ushort nonCanonical, UriFormat formatAs) 2762ReadOnlySpan<char> slice = str.AsSpan(_info.Offset.User, _info.Offset.Host - _info.Offset.User); 2830ReadOnlySpan<char> hostSlice = hostBuilder.Length == 0 ? host : hostBuilder.AsSpan(); 2920void FormatQueryOrFragment(ReadOnlySpan<char> slice, ref ValueStringBuilder dest, ushort nonCanonical, UriFormat formatAs, bool isQuery) 3174ReadOnlySpan<char> str = inputStr.AsSpan(_info.Offset.Scheme); 3430ReadOnlySpan<char> original = _originalUnicodeString.AsSpan(_info.Offset.Path); 3509private static string EscapeUnescapeIri(scoped ReadOnlySpan<char> prefix, scoped ReadOnlySpan<char> span, bool isQuery) 3617private static UriParser? CheckSchemeSyntax(ReadOnlySpan<char> scheme, ref ParsingError error) 3688private int CheckAuthorityHelper(ReadOnlySpan<char> str, int startOffset, out ParsingError err, ref Flags flags, UriSyntaxFlags syntaxFlags, ref string? newHost) 3728ReadOnlySpan<char> slice = str.Slice(i); 3802ReadOnlySpan<char> host = str.Slice(i, hostLength); 4023private Check CheckCanonical(ReadOnlySpan<char> span, char delim, out int end) 4217ReadOnlySpan<char> str = _string; 4311ReadOnlySpan<char> slice = dest.AsSpan(start, dest.Length - start); 4463ReadOnlySpan<char> share = basePart.GetParts(UriComponents.Path | UriComponents.KeepDelimiter, UriFormat.Unescaped); 4546ReadOnlySpan<char> extra = string.Empty;
System\UriExt.cs (5)
516public static string UnescapeDataString(ReadOnlySpan<char> charsToUnescape) 521private static string UnescapeDataString(ReadOnlySpan<char> charsToUnescape, string? backingString = null) 549public static bool TryUnescapeDataString(ReadOnlySpan<char> charsToUnescape, Span<char> destination, out int charsWritten) 637public static string EscapeDataString(ReadOnlySpan<char> charsToEscape) => 645public static bool TryEscapeDataString(ReadOnlySpan<char> charsToEscape, Span<char> destination, out int charsWritten) =>
System\UriHelper.cs (12)
14public static string SpanToLowerInvariantString(ReadOnlySpan<char> span) 23public static string NormalizeAndConcat(string? start, ReadOnlySpan<char> toNormalize) 58internal static bool TestForSubPath(ReadOnlySpan<char> self, ReadOnlySpan<char> other, bool ignoreCase) 134public static bool TryEscapeDataString(ReadOnlySpan<char> charsToEscape, Span<char> destination, out int charsWritten) 204public static string EscapeString(ReadOnlySpan<char> charsToEscape, bool checkExistingEscaped, SearchValues<char> noEscape, string? backingString) 230internal static void EscapeString(scoped ReadOnlySpan<char> stringToEscape, ref ValueStringBuilder dest, 250scoped ReadOnlySpan<char> stringToEscape, ref ValueStringBuilder vsb, 319internal static void Unescape(scoped ReadOnlySpan<char> chars, ref ValueStringBuilder dest) 369internal static void UnescapeString(scoped ReadOnlySpan<char> chars, ref ValueStringBuilder dest, 566public static string StripBidiControlCharacters(ReadOnlySpan<char> strToClean, string? backingString = null) 578public static bool StripBidiControlCharacters(ReadOnlySpan<char> strToClean, [NotNullWhen(true)] out string? stripped)
System.Private.Windows.Core (120)
Generated\361d1da7f942c932\Windows.Win32.IDataObjectAsyncCapability.g.cs (1)
321 ReadOnlySpan<byte> data = new byte[] {
Generated\361d1da7f942c932\Windows.Win32.InlineArrayIndexerExtensions.g.cs (2)
23 internal static ReadOnlySpan<char> SliceAtNull(this ReadOnlySpan<char>value)
Generated\361d1da7f942c932\Windows.Win32.System_Com_ISequentialStream_Extensions.g.cs (2)
49 internal static unsafe winmdroot.Foundation.HRESULT Write(this winmdroot.System.Com.ISequentialStream.Interface @this, ReadOnlySpan<byte> pv, out uint pcbWritten) 62 internal static unsafe winmdroot.Foundation.HRESULT Write(this winmdroot.System.Com.ISequentialStream.Interface @this, ReadOnlySpan<byte> pv)
Generated\361d1da7f942c932\Windows.Win32.System_Com_IStream_Extensions.g.cs (2)
49 internal static unsafe winmdroot.Foundation.HRESULT Write(this winmdroot.System.Com.IStream.Interface @this, ReadOnlySpan<byte> pv, out uint pcbWritten) 62 internal static unsafe winmdroot.Foundation.HRESULT Write(this winmdroot.System.Com.IStream.Interface @this, ReadOnlySpan<byte> pv)
Generated\361d1da7f942c932\Windows.Win32.System_Com_ITypeInfo_Extensions.g.cs (1)
89 internal static unsafe winmdroot.Foundation.HRESULT GetIDsOfNames(this winmdroot.System.Com.ITypeInfo.Interface @this, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, Span<int> pMemId)
Generated\361d1da7f942c932\Windows.Win32.System_Com_StructuredStorage_IStorage_Extensions.g.cs (1)
69 internal static unsafe winmdroot.Foundation.HRESULT CopyTo(this winmdroot.System.Com.StructuredStorage.IStorage.Interface @this, [Optional] ReadOnlySpan<global::System.Guid> rgiidExclude, in ushort* snbExclude, winmdroot.System.Com.StructuredStorage.IStorage* pstgDest)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.BSTR.g.cs (3)
64 public static unsafe implicit operator ReadOnlySpan<char>(BSTR bstr) => bstr.Value != null ? new ReadOnlySpan<char>(bstr.Value, *((int*)bstr.Value - 1) / 2) : default(ReadOnlySpan<char>); 67 internal ReadOnlySpan<char> AsSpan() => this;
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.byte.InlineArrays.g.cs (3)
52 internal unsafe readonly ReadOnlySpan<byte> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength); 54 internal readonly bool Equals(ReadOnlySpan<byte> value) => AsReadOnlySpan().SequenceEqual(value); 56 public static implicit operator __byte_32(ReadOnlySpan<byte> value)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.char.InlineArrays.g.cs (6)
53 internal unsafe readonly ReadOnlySpan<char> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength); 55 internal readonly bool Equals(ReadOnlySpan<char> value) => value.Length == SpanLength ? AsReadOnlySpan().SequenceEqual(value) : AsReadOnlySpan().SliceAtNull().SequenceEqual(value); 74 public static implicit operator __char_32(ReadOnlySpan<char> value) 117 internal unsafe readonly ReadOnlySpan<char> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength); 119 internal readonly bool Equals(ReadOnlySpan<char> value) => value.Length == SpanLength ? AsReadOnlySpan().SequenceEqual(value) : AsReadOnlySpan().SliceAtNull().SequenceEqual(value); 138 public static implicit operator __char_260(ReadOnlySpan<char> value)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IAdviseSink.g.cs (1)
267 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IBindCtx.g.cs (1)
483 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IDataObject.g.cs (1)
539 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IDispatch.g.cs (2)
95 internal unsafe winmdroot.Foundation.HRESULT GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 244 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IDispatchEx.g.cs (2)
78 internal unsafe winmdroot.Foundation.HRESULT GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 486 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IDragSourceHelper.g.cs (1)
206 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IDragSourceHelper2.g.cs (1)
215 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IDropSource.g.cs (1)
175 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IDropSourceNotify.g.cs (1)
167 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IDropTarget.g.cs (1)
296 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IDropTargetHelper.g.cs (1)
338 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IEnumFORMATETC.g.cs (1)
264 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IEnumMoniker.g.cs (1)
259 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IEnumSTATDATA.g.cs (1)
264 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IEnumSTATSTG.g.cs (1)
274 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IEnumString.g.cs (1)
261 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IEnumUnknown.g.cs (1)
256 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IGlobalInterfaceTable.g.cs (1)
243 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IInspectable.g.cs (1)
263 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IMoniker.g.cs (1)
951 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IPersist.g.cs (1)
147 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IPersistStream.g.cs (1)
298 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IPicture.g.cs (1)
746 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IPictureDisp.g.cs (2)
79 internal unsafe winmdroot.Foundation.HRESULT GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 192 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IRecordInfo.g.cs (1)
816 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IRunningObjectTable.g.cs (1)
402 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.ISequentialStream.g.cs (3)
120 internal unsafe winmdroot.Foundation.HRESULT Write(ReadOnlySpan<byte> pv, out uint pcbWritten) 133 internal unsafe winmdroot.Foundation.HRESULT Write(ReadOnlySpan<byte> pv) 227 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IServiceProvider.g.cs (1)
150 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IStorage.g.cs (2)
268 internal unsafe winmdroot.Foundation.HRESULT CopyTo([Optional] ReadOnlySpan<global::System.Guid> rgiidExclude, in ushort* snbExclude, winmdroot.System.Com.StructuredStorage.IStorage* pstgDest) 874 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IStream.g.cs (3)
106 internal unsafe winmdroot.Foundation.HRESULT Write(ReadOnlySpan<byte> pv, out uint pcbWritten) 119 internal unsafe winmdroot.Foundation.HRESULT Write(ReadOnlySpan<byte> pv) 606 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.ITypeComp.g.cs (1)
199 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.ITypeInfo.g.cs (2)
362 internal unsafe winmdroot.Foundation.HRESULT GetIDsOfNames(ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, Span<int> pMemId) 1057 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.ITypeLib.g.cs (1)
577 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IUnknown.g.cs (1)
120 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PCSTR.g.cs (2)
75 internal ReadOnlySpan<byte> AsSpan() => this.Value is null ? default(ReadOnlySpan<byte>) : new ReadOnlySpan<byte>(this.Value, this.Length);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PCWSTR.g.cs (2)
75 internal ReadOnlySpan<char> AsSpan() => this.Value is null ? default(ReadOnlySpan<char>) : new ReadOnlySpan<char>(this.Value, this.Length);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PInvokeCore.USER32.dll.g.cs (2)
851 internal static unsafe int MapWindowPoints([Optional] winmdroot.Foundation.HWND hWndFrom, [Optional] winmdroot.Foundation.HWND hWndTo, ReadOnlySpan<global::System.Drawing.Point> lpPoints) 929 internal static unsafe winmdroot.Foundation.WAIT_EVENT MsgWaitForMultipleObjectsEx([Optional] ReadOnlySpan<winmdroot.Foundation.HANDLE> pHandles, uint dwMilliseconds, winmdroot.UI.WindowsAndMessaging.QUEUE_STATUS_FLAGS dwWakeMask, winmdroot.UI.WindowsAndMessaging.MSG_WAIT_FOR_MULTIPLE_OBJECTS_EX_FLAGS dwFlags)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.RECT.InlineArrays.g.cs (2)
47 internal unsafe readonly ReadOnlySpan<winmdroot.Foundation.RECT> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in _0), SpanLength); 49 public static implicit operator __RECT_3(ReadOnlySpan<winmdroot.Foundation.RECT> value)
System\BufferScope.cs (1)
117public static implicit operator ReadOnlySpan<T>(BufferScope<T> scope) => scope._span;
System\IO\BinaryReaderExtensions.cs (1)
239ReadOnlySpan<T> span;
System\IO\Compression\RunLengthEncoder.cs (4)
19public static int GetEncodedLength(params ReadOnlySpan<byte> data) 41public static int GetDecodedLength(params ReadOnlySpan<byte> encoded) 58public static bool TryEncode(ReadOnlySpan<byte> data, Span<byte> encoded, out int written) 82public static bool TryDecode(ReadOnlySpan<byte> encoded, Span<byte> data, out int written)
System\IO\IRawData.cs (1)
8ReadOnlySpan<byte> Data { get; }
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (4)
211ReadOnlySpan<char> chars = new((char*)buffer, size / sizeof(char)); 224ReadOnlySpan<byte> bytes = new((byte*)buffer, size); 257ReadOnlySpan<byte> bytes = new((byte*)buffer, size); 291ReadOnlySpan<byte> bytes = new((byte*)buffer, size);
System\SpanHelpers.cs (3)
13public static void CopyAndTerminate(this ReadOnlySpan<char> source, Span<char> destination) 31public static ReadOnlySpan<char> SliceAtFirstNull(this ReadOnlySpan<char> span)
System\SpanReader.cs (14)
7/// Fast stack based <see cref="ReadOnlySpan{T}"/> reader. 19internal unsafe ref struct SpanReader<T>(ReadOnlySpan<T> span) where T : unmanaged, IEquatable<T> 21private ReadOnlySpan<T> _unread = span; 22public ReadOnlySpan<T> Span { get; } = span; 34/// <inheritdoc cref="TryReadTo(T, bool, out ReadOnlySpan{T})"/> 35public bool TryReadTo(T delimiter, out ReadOnlySpan<T> span) => 45public bool TryReadTo(T delimiter, bool advancePastDelimiter, out ReadOnlySpan<T> span) 95public bool TryRead(int count, out ReadOnlySpan<T> span) 157/// This effectively does a <see cref="MemoryMarshal.Cast{TFrom, TTo}(ReadOnlySpan{TFrom})"/> and the same 161public bool TryRead<TValue>(int count, out ReadOnlySpan<TValue> value) where TValue : unmanaged 194public readonly bool IsNext(params ReadOnlySpan<T> next) => _unread.StartsWith(next); 201public bool TryAdvancePast(params ReadOnlySpan<T> next) 265private static void UncheckedSliceTo(ref ReadOnlySpan<T> span, int length) 276private static void UncheckedSlice(ref ReadOnlySpan<T> span, int start, int length)
System\SpanWriter.cs (1)
42public bool TryWrite(params ReadOnlySpan<T> values)
System\Text\ValueStringBuilder.cs (5)
122public ReadOnlySpan<char> AsSpan(bool terminate) 133public readonly ReadOnlySpan<char> AsSpan() => _chars[.._pos]; 134public readonly ReadOnlySpan<char> AsSpan(int start) => _chars[start.._pos]; 135public readonly ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 291public void Append(ReadOnlySpan<char> value)
System\TypeExtensions.cs (4)
251private static bool ComparePublicKeys(ReadOnlySpan<byte> publicKey1, ReadOnlySpan<byte> publicKey2) 269static bool TryComparePublicKeyTokenToKey(ReadOnlySpan<byte> publicKeyToken, ReadOnlySpan<byte> publicKey)
System\Types.cs (2)
49/// <inheritdoc cref="TypeName.Parse(ReadOnlySpan{char}, TypeNameParseOptions?)"/> 53/// <see cref="TypeName.Parse(ReadOnlySpan{char}, TypeNameParseOptions?)"/>
Windows\Win32\Graphics\Gdi\ARGB.cs (2)
45public static Color[] ToColorArray(params ReadOnlySpan<ARGB> argbColors) 56public static Color[] ToColorArray(params ReadOnlySpan<uint> argbColors) =>
Windows\Win32\Graphics\Gdi\LOGFONTW.cs (1)
9public ReadOnlySpan<char> FaceName
Windows\Win32\System\Com\ComManagedStream.cs (1)
241ReadOnlySpan<byte> buffer = new(pv, checked((int)cb));
Windows\Win32\System\Com\IComCallableWrapper.cs (1)
19ReadOnlySpan<byte> data =
Windows\Win32\System\Com\IID.cs (1)
13ReadOnlySpan<byte> data =
Windows\Win32\System\Com\SAFEARRAY.cs (1)
80ReadOnlySpan<SAFEARRAYBOUND> bounds = new(b, cDims);
Windows\Win32\UI\ViewManagement\IUISettings3.cs (1)
28ReadOnlySpan<byte> data =
System.Private.Windows.GdiPlus (9)
Generated\361d1da7f942c932\Windows.Win32.PInvokeGdiPlus.gdiplus.dll.g.cs (5)
870 internal static unsafe winmdroot.Graphics.GdiPlus.Status GdipComment(ref winmdroot.Graphics.GdiPlus.GpGraphics graphics, uint sizeData, ReadOnlySpan<byte> data) 1469 internal static unsafe winmdroot.Graphics.GdiPlus.Status GdipCreatePath2(in winmdroot.Graphics.GdiPlus.PointF param0, ReadOnlySpan<byte> param1, int param2, winmdroot.Graphics.GdiPlus.FillMode param3, ref winmdroot.Graphics.GdiPlus.GpPath* path) 1489 internal static unsafe winmdroot.Graphics.GdiPlus.Status GdipCreatePath2I(in winmdroot.Graphics.GdiPlus.Point param0, ReadOnlySpan<byte> param1, int param2, winmdroot.Graphics.GdiPlus.FillMode param3, ref winmdroot.Graphics.GdiPlus.GpPath* path) 1670 internal static unsafe winmdroot.Graphics.GdiPlus.Status GdipCreateRegionRgnData(ReadOnlySpan<byte> regionData, int size, ref winmdroot.Graphics.GdiPlus.GpRegion* region) 6711 internal static unsafe winmdroot.Graphics.GdiPlus.Status GdipPlayMetafileRecord(in winmdroot.Graphics.GdiPlus.GpMetafile metafile, winmdroot.Graphics.GdiPlus.EmfPlusRecordType recordType, uint flags, uint dataSize, ReadOnlySpan<byte> data)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.float.InlineArrays.g.cs (3)
52 internal unsafe readonly ReadOnlySpan<float> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength); 54 internal readonly bool Equals(ReadOnlySpan<float> value) => AsReadOnlySpan().SequenceEqual(value); 56 public static implicit operator __float_25(ReadOnlySpan<float> value)
System\Drawing\ImageCodecInfoHelper.cs (1)
51ReadOnlySpan<ImageCodecInfo> codecInfo = new((ImageCodecInfo*)b, (int)numEncoders);
System.Private.Xml (113)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\RegexGenerator.g.cs (48)
332protected override void Scan(ReadOnlySpan<char> inputSpan) 350private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 375private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 379ReadOnlySpan<char> slice = inputSpan.Slice(pos); 465protected override void Scan(ReadOnlySpan<char> inputSpan) 483private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 508private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 513ReadOnlySpan<char> slice = inputSpan.Slice(pos); 624protected override void Scan(ReadOnlySpan<char> inputSpan) 636private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 658private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 665ReadOnlySpan<char> slice = inputSpan.Slice(pos); 810protected override void Scan(ReadOnlySpan<char> inputSpan) 828private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 853private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 863ReadOnlySpan<char> slice = inputSpan.Slice(pos); 1100protected override void Scan(ReadOnlySpan<char> inputSpan) 1118private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 1143private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 1149ReadOnlySpan<char> slice = inputSpan.Slice(pos); 1279protected override void Scan(ReadOnlySpan<char> inputSpan) 1297private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 1322private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 1333ReadOnlySpan<char> slice = inputSpan.Slice(pos); 1624protected override void Scan(ReadOnlySpan<char> inputSpan) 1642private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 1667private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 1675ReadOnlySpan<char> slice = inputSpan.Slice(pos); 1829protected override void Scan(ReadOnlySpan<char> inputSpan) 1847private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 1872private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 1877ReadOnlySpan<char> slice = inputSpan.Slice(pos); 1967protected override void Scan(ReadOnlySpan<char> inputSpan) 1985private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 2010private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 2016ReadOnlySpan<char> slice = inputSpan.Slice(pos); 2140protected override void Scan(ReadOnlySpan<char> inputSpan) 2158private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 2183private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 2188ReadOnlySpan<char> slice = inputSpan.Slice(pos); 2284protected override void Scan(ReadOnlySpan<char> inputSpan) 2302private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 2327private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 2332ReadOnlySpan<char> slice = inputSpan.Slice(pos); 2428protected override void Scan(ReadOnlySpan<char> inputSpan) 2446private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 2471private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 2476ReadOnlySpan<char> slice = inputSpan.Slice(pos);
src\runtime\src\libraries\Common\src\System\HexConverter.cs (9)
187public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper) 204public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper) 221public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 244public ReadOnlySpan<byte> Bytes { get; set; } 276public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 288public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 456private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 491private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 598public static ReadOnlySpan<byte> CharToHexLookup =>
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
101public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 102public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 103public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 209public void Append(scoped ReadOnlySpan<char> value)
System\Xml\Base64Decoder.cs (2)
102private void Decode(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsDecoded, out int bytesDecoded) 111ReadOnlySpan<byte> mapBase64 = // 123
System\Xml\BinaryXml\SqlUtils.cs (2)
123private static ReadOnlySpan<byte> RgCLenFromPrec => 309internal static ReadOnlySpan<int> KatmaiTimeScaleMultiplicator =>
System\Xml\BinaryXml\XmlBinaryReader.cs (3)
21private static ReadOnlySpan<byte> XsdKatmaiTimeScaleToValueLengthMap => // 8 2334ReadOnlySpan<byte> srcBytes = state._data.AsSpan(state.pos, checked(cch * sizeof(char))); 3490ReadOnlySpan<byte> data = _data.AsSpan(_tokDataPos, _pos - _tokDataPos);
System\Xml\BinHexDecoder.cs (2)
105public static byte[] Decode(ReadOnlySpan<char> chars, bool allowOddChars) 136private static void Decode(ReadOnlySpan<char> chars,
System\Xml\Core\ReadOnlyTernaryTree.cs (6)
51private static ReadOnlySpan<byte> HtmlElements => 98private static ReadOnlySpan<byte> HtmlAttributes => 125public static ElementProperties FindElementProperty(ReadOnlySpan<char> stringToFind) 129public static AttributeProperties FindAttributeProperty(ReadOnlySpan<char> stringToFind) 140private static byte FindCaseInsensitiveString(ReadOnlySpan<char> stringToFind, ReadOnlySpan<byte> nodeBuffer)
System\Xml\Core\XmlEncodedRawTextWriter.cs (1)
161ReadOnlySpan<byte> bom = _encoding.Preamble;
System\Xml\Core\XmlTextEncoder.cs (1)
238internal void Write(ReadOnlySpan<char> text)
System\Xml\Core\XmlTextReaderImpl.cs (2)
3197ReadOnlySpan<byte> preamble = _ps.encoding.Preamble; 9620private static void AdjustLineInfo(ReadOnlySpan<char> chars, bool isNormalized, ref LineInfo lineInfo)
System\Xml\Core\XmlUtf8RawTextWriter.cs (1)
114ReadOnlySpan<byte> bom = _encoding.Preamble;
System\Xml\Core\XmlWellFormedWriterHelpers.cs (1)
406ReadOnlySpan<char> valAfter = valBefore.AsSpan().Trim(XmlConvert.WhitespaceChars);
System\Xml\Schema\XsdBuilder.cs (1)
601private static ReadOnlySpan<int> DerivationMethodValues =>
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]; 638ReadOnlySpan<int> days = leapYear ? DaysToMonth366 : DaysToMonth365; 956private static ReadOnlySpan<int> Power10 => [-1, 10, 100, 1000, 10000, 100000, 1000000];
System\Xml\Serialization\XmlSerializationReader.cs (1)
1024ReadOnlySpan<char> lengthStringSpan = value.AsSpan(pos + 1, len);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
319ReadOnlySpan<char> xmlWhitespace = [' ', '\t', '\n', '\r'];
System\Xml\Serialization\XmlSerializationWriter.cs (2)
4551ReadOnlySpan<char> choiceNs = colon < 0 ? choiceMapping.Namespace : xmlName.AsSpan(0, colon); 4552ReadOnlySpan<char> choiceName = colon < 0 ? xmlName : xmlName.AsSpan(colon + 1);
System\Xml\XmlCharType.cs (4)
133internal static bool IsOnlyWhitespace(ReadOnlySpan<char> str) => 137internal static int IsOnlyWhitespaceWithPos(ReadOnlySpan<char> str) => 140internal static int IsOnlyCharData(ReadOnlySpan<char> str) 188private static ReadOnlySpan<byte> CharProperties =>
System\Xml\XmlConvert.cs (8)
294internal static byte[] FromBinHexString(ReadOnlySpan<char> s, bool allowOddCount) 958ReadOnlySpan<char> value = s.AsSpan().Trim(WhitespaceChars); 978ReadOnlySpan<char> value = s.AsSpan().Trim(WhitespaceChars); 1005ReadOnlySpan<char> value = s.AsSpan().Trim(WhitespaceChars); 1025ReadOnlySpan<char> value = s.AsSpan().Trim(WhitespaceChars); 1057ReadOnlySpan<char> value = str.AsSpan().Trim(WhitespaceChars); 1703ReadOnlySpan<char> valueSpan; 1727ReadOnlySpan<char> valueSpan;
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\XPath\Internal\Function.cs (1)
86internal static ReadOnlySpan<XPathResultType> ReturnTypes =>
System\Xml\XPath\Internal\XPathScanner.cs (1)
329ReadOnlySpan<char> span = _xpathExpr.AsSpan(_xpathExprIndex - 1);
System\Xml\XPath\XPathNavigatorReader.cs (1)
46private static ReadOnlySpan<XmlNodeType> ConvertFromXPathNodeType =>
System\Xml\Xsl\Runtime\NumberFormatter.cs (1)
110ReadOnlySpan<int> RomanDigitValue = [1, 4, 5, 9, 10, 40, 50, 90, 100, 400, 500, 900, 1000];
System\Xml\Xsl\XPath\XPathParser.cs (1)
358ReadOnlySpan<byte> xpathOperatorPrecedence =
System\Xml\Xsl\XPathConvert.cs (1)
92public static ReadOnlySpan<double> C10toN =>
System.Private.Xml.Linq (1)
System\Xml\XPath\XNodeNavigator.cs (1)
19private static ReadOnlySpan<int> ElementContentMasks =>
System.Reflection.Emit (20)
System\Reflection\Emit\ConstructorBuilderImpl.cs (1)
41protected override void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute) =>
System\Reflection\Emit\CustomAttributeWrapper.cs (5)
14public CustomAttributeWrapper(ConstructorInfo constructorInfo, ReadOnlySpan<byte> binaryAttribute) 37internal static CustomAttributeInfo DecodeCustomAttribute(ConstructorInfo ctor, ReadOnlySpan<byte> binaryAttribute) 95private static string StringFromBytes(ReadOnlySpan<byte> data, int pos, int len) 100private static int DecodeLen(ReadOnlySpan<byte> data, int pos, out int rpos) 121private static object? DecodeCustomAttributeValue(Type t, ReadOnlySpan<byte> data, int pos, out int rpos)
System\Reflection\Emit\EnumBuilderImpl.cs (1)
41protected override void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute) =>
System\Reflection\Emit\EventBuilderImpl.cs (1)
52protected override void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute)
System\Reflection\Emit\FieldBuilderImpl.cs (1)
53protected override void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute)
System\Reflection\Emit\GenericTypeParameterBuilderImpl.cs (1)
51protected override void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute)
System\Reflection\Emit\MethodBuilderImpl.cs (2)
169internal void SetCustomAttribute(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute) => 172protected override void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute)
System\Reflection\Emit\ModuleBuilderImpl.cs (1)
1340protected override void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute)
System\Reflection\Emit\ParameterBuilderImpl.cs (1)
39protected override void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute)
System\Reflection\Emit\PersistedAssemblyBuilder.cs (1)
194protected override void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute)
System\Reflection\Emit\PropertyBuilderImpl.cs (1)
63protected override void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute)
System\Reflection\Emit\PseudoCustomAttributesData.cs (1)
292internal static MarshallingData CreateMarshallingData(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute, bool isField)
System\Reflection\Emit\TypeBuilderImpl.cs (3)
460protected override void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute) 491internal void SetCustomAttribute(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute) 496private void ParseStructLayoutAttribute(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute)
System.Reflection.Metadata (71)
src\runtime\src\libraries\Common\src\System\HexConverter.cs (9)
187public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper) 204public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper) 221public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 244public ReadOnlySpan<byte> Bytes { get; set; } 276public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 288public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 456private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 491private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 598public static ReadOnlySpan<byte> CharToHexLookup =>
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameFormatter.cs (1)
107ReadOnlySpan<char> span = s.AsSpan();
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (4)
57private readonly ReadOnlySpan<char> _input; 60private AssemblyNameParser(ReadOnlySpan<char> input) 88internal static bool TryParse(ReadOnlySpan<char> name, ref AssemblyNameParts parts) 250ReadOnlySpan<char> attributeValueSpan = attributeValue;
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
101public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 102public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 103public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 209public void Append(scoped ReadOnlySpan<char> value)
System\Reflection\Internal\Utilities\Hash.cs (1)
38internal static int GetFNVHashCode(ReadOnlySpan<byte> data)
System\Reflection\Internal\Utilities\MemoryBlock.cs (2)
318ReadOnlySpan<byte> span = new ReadOnlySpan<byte>(Pointer + offset, Length - offset); 340ReadOnlySpan<byte> span = new ReadOnlySpan<byte>(Pointer + startOffset, Length - startOffset);
System\Reflection\Metadata\AssemblyNameInfo.cs (2)
204public static AssemblyNameInfo Parse(ReadOnlySpan<char> assemblyName) 215public static bool TryParse(ReadOnlySpan<char> assemblyName, [NotNullWhen(true)] out AssemblyNameInfo? result)
System\Reflection\Metadata\BlobBuilder.cs (5)
321internal bool TryGetSpan(out ReadOnlySpan<byte> buffer) 678private void WriteBytesUnchecked(ReadOnlySpan<byte> buffer) 686ReadOnlySpan<byte> remaining = buffer.Slice(bytesToCurrent); 798internal void WriteBytes(ReadOnlySpan<byte> buffer) 1000private void WriteUTF16(ReadOnlySpan<char> value)
System\Reflection\Metadata\BlobContentId.cs (2)
47private static unsafe void Initialize(ReadOnlySpan<byte> id, out Guid guid, out uint stamp) 84private static BlobContentId FromHash(ReadOnlySpan<byte> hashCode)
System\Reflection\Metadata\BlobReader.cs (1)
619private static ReadOnlySpan<uint> CorEncodeTokenArray => [TokenTypeIds.TypeDef, TokenTypeIds.TypeRef, TokenTypeIds.TypeSpec, 0];
System\Reflection\Metadata\BlobWriter.cs (2)
151internal void WriteBytes(ReadOnlySpan<byte> buffer) 397private void WriteUTF16(ReadOnlySpan<char> value)
System\Reflection\Metadata\Ecma335\BlobDictionary.cs (2)
25private unsafe ref KeyValuePair<ImmutableArray<byte>, BlobHandle> GetValueRefOrAddDefault(ReadOnlySpan<byte> key, out bool exists) 43public BlobHandle GetOrAdd(ReadOnlySpan<byte> key, ImmutableArray<byte> immutableKey, BlobHandle value, out bool exists)
System\Reflection\Metadata\Ecma335\MetadataBuilder.cs (1)
97private static void SerializeStreamHeader(ref int offsetFromStartOfMetadata, int alignedStreamSize, ReadOnlySpan<byte> streamName, BlobBuilder builder)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (3)
120_blobs.GetOrAdd(ReadOnlySpan<byte>.Empty, ImmutableArray<byte>.Empty, default, out _); 195if (value.TryGetSpan(out ReadOnlySpan<byte> buffer)) 219private BlobHandle GetOrAddBlob(ReadOnlySpan<byte> value, ImmutableArray<byte> immutableValue = default)
System\Reflection\Metadata\Ecma335\MetadataSizes.cs (1)
388internal static int GetMetadataStreamHeaderSize(ReadOnlySpan<byte> streamName)
System\Reflection\Metadata\Internal\HasCustomAttributeTag.cs (1)
39internal static ReadOnlySpan<uint> TagToTokenTypeArray =>
System\Reflection\Metadata\PortablePdb\HasCustomDebugInformationTag.cs (1)
47internal static ReadOnlySpan<uint> TagToTokenTypeArray =>
System\Reflection\Metadata\TypeName.cs (4)
358ReadOnlySpan<char> name = _fullName.AsSpan(); 404ReadOnlySpan<char> rootFullName = rootTypeName._fullName.AsSpan(); 526public static TypeName Parse(ReadOnlySpan<char> typeName, TypeNameParseOptions? options = default) 536public static bool TryParse(ReadOnlySpan<char> typeName, [NotNullWhen(true)] out TypeName? result, TypeNameParseOptions? options = default)
System\Reflection\Metadata\TypeNameParser.cs (8)
22private ReadOnlySpan<char> _inputString; 24private TypeNameParser(ReadOnlySpan<char> name, bool throwOnError, TypeNameParseOptions? options) : this() 31internal static TypeName? Parse(ReadOnlySpan<char> typeName, bool throwOnError, TypeNameParseOptions? options = default) 33ReadOnlySpan<char> trimmedName = typeName.TrimStart(); // whitespaces at beginning are always OK 85ReadOnlySpan<char> fullTypeName = _inputString.Slice(0, fullTypeNameLength); 99ReadOnlySpan<char> capturedBeforeProcessing = _inputString; 240ReadOnlySpan<char> capturedBeforeProcessing = _inputString; 249ReadOnlySpan<char> candidate = GetAssemblyNameCandidate(_inputString);
System\Reflection\Metadata\TypeNameParserHelpers.cs (12)
22internal static int GetFullTypeNameLength(ReadOnlySpan<char> input, out bool isNestedType) 51static int GetUnescapedOffset(ReadOnlySpan<char> input, int startOffset) 76internal static int IndexOfNamespaceDelimiter(ReadOnlySpan<char> fullName) 130internal static ReadOnlySpan<char> GetAssemblyNameCandidate(ReadOnlySpan<char> input) 143static int GetUnescapedOffset(ReadOnlySpan<char> input, int startIndex) 198internal static bool IsBeginningOfGenericArgs(ref ReadOnlySpan<char> span, out bool doubleBrackets) 205ReadOnlySpan<char> trimmed = span.Slice(1).TrimStart(); 225internal static bool TryGetTypeNameInfo(TypeNameParseOptions options, ref ReadOnlySpan<char> input, 268internal static bool TryParseNextDecorator(ref ReadOnlySpan<char> input, out int rankOrModifier) 273ReadOnlySpan<char> originalInput = input; // so we can restore on 'false' return 332internal static bool TryStripFirstCharAndTrailingSpaces(ref ReadOnlySpan<char> span, char value)
System\Reflection\PortableExecutable\DebugDirectory\DebugDirectoryBuilder.EmbeddedPortablePdb.cs (1)
75public override void Write(ReadOnlySpan<byte> buffer) => builder.WriteBytes(buffer);
System\Reflection\PortableExecutable\ManagedTextSection.cs (2)
98private static ReadOnlySpan<byte> CorEntryPointDll => "mscoree.dll"u8; 99private ReadOnlySpan<byte> CorEntryPointName => (ImageCharacteristics & Characteristics.Dll) != 0 ? "_CorDllMain"u8 : "_CorExeMain"u8;
System\Reflection\PortableExecutable\PEBuilder.cs (2)
163internal static ReadOnlySpan<byte> DosHeader => 522private static void AddToChecksum(ReadOnlySpan<byte> segment, ref uint checksum, ref int pendingByte)
System.Reflection.MetadataLoadContext (153)
src\runtime\src\libraries\Common\src\System\Collections\HashHelpers.cs (2)
32internal static ReadOnlySpan<int> Primes => 83ReadOnlySpan<int> primes = Primes;
System\Reflection\PathAssemblyResolver.cs (2)
61ReadOnlySpan<byte> pktFromName = assemblyName.GetPublicKeyToken(); 69ReadOnlySpan<byte> pktFromAssembly = assemblyNameFromPath.GetPublicKeyToken();
System\Reflection\TypeLoading\Assemblies\Ecma\EcmaAssembly.cs (2)
95ReadOnlySpan<byte> ns = exportedType.Namespace.AsReadOnlySpan(reader); 96ReadOnlySpan<byte> name = exportedType.Name.AsReadOnlySpan(reader);
System\Reflection\TypeLoading\Assemblies\RoAssembly.cs (2)
120internal RoDefinitionType? GetTypeCore(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, bool ignoreCase, out Exception? e)
System\Reflection\TypeLoading\Assemblies\RoAssembly.GetForwardedTypes.cs (4)
20delegate (RoAssembly redirectedAssembly, ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) 77protected delegate void TypeForwardHandler(RoAssembly redirectedAssembly, ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name);
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\Reflection\TypeLoading\General\CoreType.cs (2)
81public static void GetFullName(this CoreType coreType, out ReadOnlySpan<byte> ns, out ReadOnlySpan<byte> name)
System\Reflection\TypeLoading\General\CoreTypes.cs (2)
21((CoreType)i).GetFullName(out ReadOnlySpan<byte> ns, out ReadOnlySpan<byte> name);
System\Reflection\TypeLoading\General\Ecma\EcmaHelpers.cs (1)
112public static unsafe ReadOnlySpan<byte> AsReadOnlySpan(this StringHandle handle, MetadataReader reader)
System\Reflection\TypeLoading\General\Ecma\EcmaResolver.cs (2)
54ReadOnlySpan<byte> ns = tr.Namespace.AsReadOnlySpan(reader); 55ReadOnlySpan<byte> name = tr.Name.AsReadOnlySpan(reader);
System\Reflection\TypeLoading\General\Ecma\EcmaSignatureTypeProviderForToString.cs (2)
79typeCode.ToCoreType().GetFullName(out ReadOnlySpan<byte> ns, out ReadOnlySpan<byte> name);
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (2)
81public static unsafe bool Equals(this StringHandle handle, ReadOnlySpan<byte> utf8, MetadataReader reader) 87ReadOnlySpan<byte> actual = new ReadOnlySpan<byte>(br.CurrentPointer, br.Length);
System\Reflection\TypeLoading\General\Helpers.cs (1)
357public static string ToUtf16(this ReadOnlySpan<byte> utf8) => Encoding.UTF8.GetString(utf8);
System\Reflection\TypeLoading\General\RoAssemblyName.cs (1)
61if (!(((ReadOnlySpan<byte>)PublicKeyToken).SequenceEqual(other.PublicKeyToken)))
System\Reflection\TypeLoading\General\Utf8Constants.cs (58)
8public static ReadOnlySpan<byte> System => "System"u8; 9public static ReadOnlySpan<byte> SystemReflection => "System.Reflection"u8; 10public static ReadOnlySpan<byte> SystemCollectionsGeneric => "System.Collections.Generic"u8; 11public static ReadOnlySpan<byte> SystemRuntimeInteropServices => "System.Runtime.InteropServices"u8; 12public static ReadOnlySpan<byte> SystemRuntimeCompilerServices => "System.Runtime.CompilerServices"u8; 14public static ReadOnlySpan<byte> Array => "Array"u8; 15public static ReadOnlySpan<byte> Boolean => "Boolean"u8; 16public static ReadOnlySpan<byte> Byte => "Byte"u8; 17public static ReadOnlySpan<byte> Char => "Char"u8; 18public static ReadOnlySpan<byte> Double => "Double"u8; 19public static ReadOnlySpan<byte> Enum => "Enum"u8; 20public static ReadOnlySpan<byte> Int16 => "Int16"u8; 21public static ReadOnlySpan<byte> Int32 => "Int32"u8; 22public static ReadOnlySpan<byte> Int64 => "Int64"u8; 23public static ReadOnlySpan<byte> IntPtr => "IntPtr"u8; 24public static ReadOnlySpan<byte> Object => "Object"u8; 25public static ReadOnlySpan<byte> NullableT => "Nullable`1"u8; 26public static ReadOnlySpan<byte> SByte => "SByte"u8; 27public static ReadOnlySpan<byte> Single => "Single"u8; 28public static ReadOnlySpan<byte> String => "String"u8; 29public static ReadOnlySpan<byte> TypedReference => "TypedReference"u8; 30public static ReadOnlySpan<byte> UInt16 => "UInt16"u8; 31public static ReadOnlySpan<byte> UInt32 => "UInt32"u8; 32public static ReadOnlySpan<byte> UInt64 => "UInt64"u8; 33public static ReadOnlySpan<byte> UIntPtr => "UIntPtr"u8; 34public static ReadOnlySpan<byte> ValueType => "ValueType"u8; 35public static ReadOnlySpan<byte> Void => "Void"u8; 36public static ReadOnlySpan<byte> MulticastDelegate => "MulticastDelegate"u8; 37public static ReadOnlySpan<byte> IEnumerableT => "IEnumerable`1"u8; 38public static ReadOnlySpan<byte> ICollectionT => "ICollection`1"u8; 39public static ReadOnlySpan<byte> IListT => "IList`1"u8; 40public static ReadOnlySpan<byte> IReadOnlyListT => "IReadOnlyList`1"u8; 41public static ReadOnlySpan<byte> Type => "Type"u8; 42public static ReadOnlySpan<byte> DBNull => "DBNull"u8; 43public static ReadOnlySpan<byte> Decimal => "Decimal"u8; 44public static ReadOnlySpan<byte> DateTime => "DateTime"u8; 45public static ReadOnlySpan<byte> ComImportAttribute => "ComImportAttribute"u8; 46public static ReadOnlySpan<byte> DllImportAttribute => "DllImportAttribute"u8; 47public static ReadOnlySpan<byte> CallingConvention => "CallingConvention"u8; 48public static ReadOnlySpan<byte> CharSet => "CharSet"u8; 49public static ReadOnlySpan<byte> MarshalAsAttribute => "MarshalAsAttribute"u8; 50public static ReadOnlySpan<byte> UnmanagedType => "UnmanagedType"u8; 51public static ReadOnlySpan<byte> VarEnum => "VarEnum"u8; 52public static ReadOnlySpan<byte> InAttribute => "InAttribute"u8; 53public static ReadOnlySpan<byte> OutAttriubute => "OutAttribute"u8; 54public static ReadOnlySpan<byte> OptionalAttribute => "OptionalAttribute"u8; 55public static ReadOnlySpan<byte> PreserveSigAttribute => "PreserveSigAttribute"u8; 56public static ReadOnlySpan<byte> FieldOffsetAttribute => "FieldOffsetAttribute"u8; 57public static ReadOnlySpan<byte> IsByRefLikeAttribute => "IsByRefLikeAttribute"u8; 58public static ReadOnlySpan<byte> DecimalConstantAttribute => "DecimalConstantAttribute"u8; 59public static ReadOnlySpan<byte> CustomConstantAttribute => "CustomConstantAttribute"u8; 60public static ReadOnlySpan<byte> GuidAttribute => "GuidAttribute"u8; 61public static ReadOnlySpan<byte> DefaultMemberAttribute => "DefaultMemberAttribute"u8; 62public static ReadOnlySpan<byte> DateTimeConstantAttribute => "DateTimeConstantAttribute"u8; 63public static ReadOnlySpan<byte> CallConvCdecl => "CallConvCdecl"u8; 64public static ReadOnlySpan<byte> CallConvStdcall => "CallConvStdcall"u8; 65public static ReadOnlySpan<byte> CallConvThiscall => "CallConvThiscall"u8; 66public static ReadOnlySpan<byte> CallConvFastcall => "CallConvFastcall"u8;
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.GetTypeCore.cs (2)
22protected sealed override RoDefinitionType? GetTypeCoreNoCache(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, out Exception? e)
System\Reflection\TypeLoading\Modules\GetTypeCoreCache.cs (7)
22public bool TryGet(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, int hashCode, [NotNullWhen(true)] out RoDefinitionType? type) 27public RoDefinitionType GetOrAdd(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, int hashCode, RoDefinitionType type) 48public static int ComputeHashCode(ReadOnlySpan<byte> name) 80public bool TryGetValue(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, int hashCode, [NotNullWhen(true)] out RoDefinitionType? value)
System\Reflection\TypeLoading\Modules\RoModule.cs (4)
118internal RoDefinitionType? GetTypeCore(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, bool ignoreCase, out Exception? e) 139protected abstract RoDefinitionType? GetTypeCoreNoCache(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, out Exception? e);
System\Reflection\TypeLoading\Modules\RoResourceModule.cs (2)
54protected sealed override RoDefinitionType? GetTypeCoreNoCache(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, out Exception? e)
System\Reflection\TypeLoading\Types\Ecma\EcmaDefinitionType.BindingFlags.cs (1)
87internal sealed override RoDefinitionType? GetNestedTypeCore(ReadOnlySpan<byte> utf8Name)
System\Reflection\TypeLoading\Types\Ecma\EcmaDefinitionType.cs (6)
74internal sealed override bool IsCustomAttributeDefined(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => TypeDefinition.GetCustomAttributes().IsCustomAttributeDefined(ns, name, GetEcmaModule()); 75internal sealed override CustomAttributeData? TryFindCustomAttribute(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => TypeDefinition.GetCustomAttributes().TryFindCustomAttribute(ns, name, GetEcmaModule()); 134internal sealed override bool IsTypeNameEqual(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name)
System\Reflection\TypeLoading\Types\Ecma\EcmaGenericParameterType.cs (4)
34internal sealed override bool IsCustomAttributeDefined(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => GenericParameter.GetCustomAttributes().IsCustomAttributeDefined(ns, name, GetEcmaModule()); 35internal sealed override CustomAttributeData? TryFindCustomAttribute(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => GenericParameter.GetCustomAttributes().TryFindCustomAttribute(ns, name, GetEcmaModule());
System\Reflection\TypeLoading\Types\RoConstructedGenericType.cs (4)
110internal sealed override bool IsCustomAttributeDefined(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => _genericTypeDefinition.IsCustomAttributeDefined(ns, name); 111internal sealed override CustomAttributeData? TryFindCustomAttribute(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => _genericTypeDefinition.TryFindCustomAttribute(ns, name);
System\Reflection\TypeLoading\Types\RoDefinitionType.cs (3)
250internal abstract bool IsTypeNameEqual(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name); 251internal abstract RoDefinitionType? GetNestedTypeCore(ReadOnlySpan<byte> utf8Name);
System\Reflection\TypeLoading\Types\RoExceptionType.cs (9)
17internal RoExceptionType(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, Exception? exception) 25internal sealed override bool IsTypeNameEqual(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => name.SequenceEqual(_name) && ns.SequenceEqual(_ns); 36internal sealed override bool IsCustomAttributeDefined(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => throw null!; 37internal sealed override CustomAttributeData TryFindCustomAttribute(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => throw null!; 44internal sealed override RoDefinitionType GetNestedTypeCore(ReadOnlySpan<byte> utf8Name) => throw null!;
System\Reflection\TypeLoading\Types\RoFunctionPointerType.cs (4)
176internal sealed override bool IsCustomAttributeDefined(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => false; 177internal sealed override CustomAttributeData? TryFindCustomAttribute(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => null;
System\Reflection\TypeLoading\Types\RoHasElementType.cs (4)
55internal sealed override bool IsCustomAttributeDefined(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => false; 56internal sealed override CustomAttributeData? TryFindCustomAttribute(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => null;
System\Reflection\TypeLoading\Types\RoModifiedType.cs (4)
162internal override bool IsCustomAttributeDefined(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => _unmodifiedType.IsCustomAttributeDefined(ns, name); 163internal override CustomAttributeData? TryFindCustomAttribute(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => _unmodifiedType.TryFindCustomAttribute(ns, name);
System\Reflection\TypeLoading\Types\RoStubType.cs (4)
49internal sealed override bool IsCustomAttributeDefined(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => throw null!; 50internal sealed override CustomAttributeData TryFindCustomAttribute(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name) => throw null!;
System\Reflection\TypeLoading\Types\RoType.cs (4)
151internal abstract bool IsCustomAttributeDefined(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name); 152internal abstract CustomAttributeData? TryFindCustomAttribute(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name);
System.Resources.Extensions (15)
System\Resources\Extensions\TypeNameComparer.cs (15)
29private static ReadOnlySpan<char> ReadTypeName(ReadOnlySpan<char> assemblyQualifiedTypeName) 38private static ReadOnlySpan<char> ReadAssemblySimpleName(ReadOnlySpan<char> assemblyName) 45private static bool IsMscorlib(ReadOnlySpan<char> assemblyName) 70ReadOnlySpan<char> typeSpan1 = assemblyQualifiedTypeName1.AsSpan().TrimStart(s_whiteSpaceChars); 71ReadOnlySpan<char> typeSpan2 = assemblyQualifiedTypeName2.AsSpan().TrimStart(s_whiteSpaceChars); 74ReadOnlySpan<char> type1 = ReadTypeName(typeSpan1); 75ReadOnlySpan<char> type2 = ReadTypeName(typeSpan2); 80typeSpan1 = typeSpan1.Length > type1.Length ? typeSpan1.Slice(type1.Length + 1).TrimStart(s_whiteSpaceChars) : ReadOnlySpan<char>.Empty; 81typeSpan2 = typeSpan2.Length > type2.Length ? typeSpan2.Slice(type2.Length + 1).TrimStart(s_whiteSpaceChars) : ReadOnlySpan<char>.Empty; 84ReadOnlySpan<char> simpleName1 = ReadAssemblySimpleName(typeSpan1); 85ReadOnlySpan<char> simpleName2 = ReadAssemblySimpleName(typeSpan2); 123ReadOnlySpan<char> typeSpan = assemblyQualifiedTypeName.AsSpan().TrimStart(s_whiteSpaceChars); 124ReadOnlySpan<char> typeName = ReadTypeName(typeSpan);
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net12.0\System.Runtime.Forwards.cs (1)
432[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ReadOnlySpan<>))]
System.Runtime.InteropServices.JavaScript (5)
System\Runtime\InteropServices\JavaScript\JSFunctionBinding.cs (3)
175public static JSFunctionBinding BindJSFunction(string functionName, string moduleName, ReadOnlySpan<JSMarshalerType> signatures) 192public static JSFunctionBinding BindManagedFunction(string fullyQualifiedName, int signatureHash, ReadOnlySpan<JSMarshalerType> signatures) 467internal static unsafe JSFunctionBinding BindJSImportImpl(string functionName, string moduleName, ReadOnlySpan<JSMarshalerType> signatures)
System\Runtime\InteropServices\JavaScript\JSHostImplementation.cs (1)
109public static unsafe JSFunctionBinding GetMethodSignature(ReadOnlySpan<JSMarshalerType> types, string? functionName, string? moduleName)
System\Runtime\InteropServices\JavaScript\JSHostImplementation.Exports.cs (1)
13public static unsafe JSFunctionBinding BindManagedFunction(string fullyQualifiedName, int signatureHash, ReadOnlySpan<JSMarshalerType> signatures)
System.Runtime.Numerics (525)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (4)
65public void Append(scoped ReadOnlySpan<T> source) 81private void AppendMultiChar(scoped ReadOnlySpan<T> source) 92public void Insert(int index, scoped ReadOnlySpan<T> source) 144public ReadOnlySpan<T> AsSpan()
src\runtime\src\libraries\Common\src\System\Number.Formatting.Common.cs (22)
20private static ReadOnlySpan<byte> GetCurrencyFormat(bool isNegative, int index) 57private static ReadOnlySpan<byte> GetPercentFormat(bool isNegative, int index) 89private static ReadOnlySpan<byte> GetNumberFormat(bool isNegative, int index) 107internal static char ParseFormatSpecifier(ReadOnlySpan<char> format, out int digits) 180private static ReadOnlySpan<ushort> TwoDigitsBytesTable => 195private static ReadOnlySpan<uint> TwoDigitsCharsTable => 261internal static void CopyNegativeSign<TChar>(ReadOnlySpan<TChar> sign, Span<TChar> destination) 473internal static void NumberToStringFormat<TChar>(ref ValueListBuilder<TChar> vlb, ref NumberBuffer number, ReadOnlySpan<char> format, NumberFormatInfo info) where TChar : unmanaged, IUtfChar<TChar> 717ReadOnlySpan<byte> digits = number.Digits; 735ReadOnlySpan<byte> adjustDigits = digits.Slice(0, Math.Min(adjust, digits.Length)); 958ReadOnlySpan<byte> fmt = GetCurrencyFormat( 988ReadOnlySpan<TChar> sDecimal, ReadOnlySpan<TChar> sGroup) where TChar : unmanaged, IUtfChar<TChar> 993ReadOnlySpan<byte> dig = number.Digits; 1032ReadOnlySpan<byte> intDigits = dig.Slice(0, Math.Min(digPos, dig.Length)); 1175ReadOnlySpan<byte> fmt = GetNumberFormat(number.IsNegative, info.NumberNegativePattern); 1200ReadOnlySpan<byte> dig = number.Digits; 1272ReadOnlySpan<byte> dig = number.Digits; 1320ReadOnlySpan<byte> fmt = GetPercentFormat( 1397static bool ShouldRoundUp(ReadOnlySpan<byte> dig, int i, NumberBufferKind numberKind, bool isCorrectlyRounded) 1457private static bool HasNegativeSection(ReadOnlySpan<char> format) => FindSection(format, 1) != 0; 1459private static int FindSection(ReadOnlySpan<char> format, int section)
src\runtime\src\libraries\Common\src\System\Number.Parsing.Common.cs (31)
18private static bool TryParseNumber<TChar>(ReadOnlySpan<TChar> value, NumberStyles styles, ref NumberBuffer number, NumberFormatInfo info, out int elementsConsumed) 37ReadOnlySpan<TChar> decSep; // decimal separator from NumberFormatInfo. 38ReadOnlySpan<TChar> groupSep; // group separator from NumberFormatInfo. 39ReadOnlySpan<TChar> currSymbol = ReadOnlySpan<TChar>.Empty; // currency symbol from NumberFormatInfo. 85currSymbol = ReadOnlySpan<TChar>.Empty; 275currSymbol = ReadOnlySpan<TChar>.Empty; 321internal static bool TryStringToNumber<TChar>(ReadOnlySpan<TChar> value, NumberStyles styles, ref NumberBuffer number, NumberFormatInfo info, out int elementsConsumed) 331private static int ConsumeTrailingNulls<TChar>(ReadOnlySpan<TChar> value, int index) 335var remainder = value.Slice(index); 358private static int MatchNegativeSignChars<TChar>(ReadOnlySpan<TChar> value, int index, NumberFormatInfo info) 371private static int MatchSignChars<TChar>(ReadOnlySpan<TChar> value, int index, NumberFormatInfo info, out bool isNegative) 395ReadOnlySpan<TChar> positiveSign = info.PositiveSignTChar<TChar>(); 399ReadOnlySpan<TChar> negativeSign = info.NegativeSignTChar<TChar>(); 430private static int MatchChars<TChar>(ReadOnlySpan<TChar> source, int index, ReadOnlySpan<TChar> value) 445ReadOnlySpan<byte> input = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(source.Slice(index)); 446ReadOnlySpan<byte> utf8Value = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(value); 461ReadOnlySpan<byte> input = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(source.Slice(index)); 462ReadOnlySpan<byte> utf8Value = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(value); 478private static int MatchUtf8SpaceReplacingChars(ReadOnlySpan<byte> input, ReadOnlySpan<byte> value) 512private static int GetUtf8SpaceCharLength(ReadOnlySpan<byte> value)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder_1.cs (11)
106return Encoding.UTF8.GetString(Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(slice)); 111return Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<char>>(slice).ToString(); 129public ReadOnlySpan<TChar> AsSpan(bool terminate) 139public readonly ReadOnlySpan<TChar> AsSpan() => _chars.Slice(0, _pos); 140public readonly ReadOnlySpan<TChar> AsSpan(int start) => _chars.Slice(start, _pos - start); 141public readonly ReadOnlySpan<TChar> AsSpan(int start, int length) => _chars.Slice(start, length); 172public void Insert(int index, ReadOnlySpan<TChar> text) 209public void Append(ReadOnlySpan<TChar> text) 228private void AppendSlow(ReadOnlySpan<TChar> text)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\FormattingHelpers.CountDigits.cs (3)
18ReadOnlySpan<byte> log2ToPow10 = 30ReadOnlySpan<ulong> powersOf10 = 67ReadOnlySpan<long> table =
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BigIntegerCalculator.Shared.cs (61)
35public static int Compare(ReadOnlySpan<nuint> left, ReadOnlySpan<nuint> right) 56private static int CompareActual(ReadOnlySpan<nuint> left, ReadOnlySpan<nuint> right) 83public static int ActualLength(ReadOnlySpan<nuint> value) 92internal static int GetLimbOffset(ReadOnlySpan<nuint> value) 102internal static int GetCommonLimbOffset(ReadOnlySpan<nuint> left, ReadOnlySpan<nuint> right) 165internal static void DivideByPowerOfTwo(ReadOnlySpan<nuint> left, int exponent, Span<nuint> quotient) 168ReadOnlySpan<nuint> source = left[limbShift..]; 299internal static nuint Mul1(Span<nuint> result, ReadOnlySpan<nuint> left, nuint multiplier) 350internal static nuint MulAdd1(Span<nuint> result, ReadOnlySpan<nuint> left, nuint multiplier) 405internal static nuint SubMul1(Span<nuint> result, ReadOnlySpan<nuint> right, nuint multiplier) 480private static void CopyTail(ReadOnlySpan<nuint> source, Span<nuint> dest, int start) 485public static void Add(ReadOnlySpan<nuint> left, nuint right, Span<nuint> bits) 493public static void Add(ReadOnlySpan<nuint> left, ReadOnlySpan<nuint> right, Span<nuint> bits) 534ReadOnlySpan<nuint> left, 536ReadOnlySpan<nuint> right, 545ReadOnlySpan<nuint> low = left; 547ReadOnlySpan<nuint> high = right; 567ReadOnlySpan<nuint> lowOverlap = low[highOffset..]; 568ReadOnlySpan<nuint> highMagnitude = high[highOffset..]; 582public static void AddSelf(Span<nuint> left, ReadOnlySpan<nuint> right) 609public static void Subtract(ReadOnlySpan<nuint> left, nuint right, Span<nuint> bits) 618public static void Subtract(ReadOnlySpan<nuint> left, ReadOnlySpan<nuint> right, Span<nuint> bits) 646public static void SubtractSelf(Span<nuint> left, ReadOnlySpan<nuint> right) 674private static void Add(ReadOnlySpan<nuint> left, Span<nuint> bits, int startIndex, nuint initialCarry) 721private static void Subtract(ReadOnlySpan<nuint> left, Span<nuint> bits, int startIndex, nuint initialBorrow) 768public static void MultiplyNaive(ReadOnlySpan<nuint> left, ReadOnlySpan<nuint> right, Span<nuint> bits) 787internal static void MultiplyNaiveSparse(ReadOnlySpan<nuint> left, ReadOnlySpan<nuint> right, Span<nuint> bits) 813internal static bool IsRepeatedLimbCandidate(ReadOnlySpan<nuint> value) 821ReadOnlySpan<nuint> left, 822ReadOnlySpan<nuint> right, 913ReadOnlySpan<nuint> left, 914ReadOnlySpan<nuint> right, 925internal static bool IsShiftedRepeatedLimbCandidate(ReadOnlySpan<nuint> value) 934ReadOnlySpan<nuint> left, 935ReadOnlySpan<nuint> right, 1038ReadOnlySpan<nuint> value, 1103public static void Multiply(ReadOnlySpan<nuint> left, nuint right, Span<nuint> bits) 1137private static void MultiplyByPowerOfTwo(ReadOnlySpan<nuint> value, int exponent, Span<nuint> bits) 1162public static void Divide(ReadOnlySpan<nuint> left, nuint right, Span<nuint> quotient, out nuint remainder) 1186public static void Divide(ReadOnlySpan<nuint> left, nuint right, Span<nuint> quotient) 1221ReadOnlySpan<nuint> left, 1232private static void RemainderDirect(ReadOnlySpan<nuint> left, nuint right, ref nuint carry) 1240private static void DivideCore(ReadOnlySpan<nuint> left, nuint right, Span<nuint> quotient, ref nuint carry) 1323ReadOnlySpan<nuint> left, 1364ReadOnlySpan<nuint> left, 1490private static nuint GetShiftedDigit(ReadOnlySpan<nuint> value, int index, int shift, nuint leading) 1505private static nuint RestoreShiftedRemainder(ReadOnlySpan<nuint> value, nuint remainder, int shift) => 1509ReadOnlySpan<nuint> left, 1554public static nuint Remainder(ReadOnlySpan<nuint> left, nuint right) 1610internal static void DivideGrammarSchoolSpecial(Span<nuint> left, ReadOnlySpan<nuint> right, Span<nuint> quotient) 1625ReadOnlySpan<nuint> reducedRight = right[commonOffset..]; 1648internal static void DivideGrammarSchool(Span<nuint> left, ReadOnlySpan<nuint> right, Span<nuint> quotient) 1739private static nuint AddDivisor(Span<nuint> left, ReadOnlySpan<nuint> right) 1756private static nuint SubtractDivisor(Span<nuint> left, ReadOnlySpan<nuint> right, nuint q)
System\Number.BigInteger.cs (59)
28private static ReadOnlySpan<nuint> UInt32PowersOfTen => nint.Size == 8 32private static ReadOnlySpan<uint> UInt32PowersOfTenCore => [1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000]; 33private static ReadOnlySpan<ulong> UInt64PowersOfTen => [1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000]; 58internal static ParsingStatus TryParseBigInteger<TChar>(ReadOnlySpan<TChar> value, NumberStyles style, NumberFormatInfo info, out BigInteger result, out int elementsConsumed) 72internal static ParsingStatus TryParseBigIntegerPartial<TChar>(ReadOnlySpan<TChar> value, NumberStyles style, NumberFormatInfo info, out BigInteger result, out int elementsConsumed) 83private static ParsingStatus TryParseBigIntegerCore<TChar>(ReadOnlySpan<TChar> value, NumberStyles style, NumberFormatInfo info, out BigInteger result, out int elementsConsumed) 99internal static ParsingStatus TryParseBigIntegerNumber<TChar>(ReadOnlySpan<TChar> value, NumberStyles style, NumberFormatInfo info, out BigInteger result, out int elementsConsumed) 147internal static BigInteger ParseBigInteger<TChar>(ReadOnlySpan<TChar> value, NumberStyles style, NumberFormatInfo info) 164internal static ParsingStatus TryParseBigIntegerHexOrBinaryNumberStyle<TParser, TChar>(ReadOnlySpan<TChar> value, NumberStyles style, out BigInteger result, out int elementsConsumed) 394ReadOnlySpan<byte> intDigits= number.Digits.Slice(0, Math.Min(number.Scale, number.DigitsCount)); 399ReadOnlySpan<byte> fracDigitsSpan = number.Digits.Slice(intDigits.Length); 423ReadOnlySpan<byte> leadingDigits = intDigits[..(intDigits.Length % PowersOf1e9.MaxPartialDigits)]; 466static void DivideAndConquer(ReadOnlySpan<nuint> base1E9, int trailingZeroCount, scoped Span<nuint> bits) 492static void Recursive(in PowersOf1e9 powersOf1e9, int powersOf1e9Index, ReadOnlySpan<nuint> base1E9, Span<nuint> bits) 510ReadOnlySpan<nuint> multiplier = powersOf1e9.GetSpan(powersOf1e9Index); 521ReadOnlySpan<nuint> buffer2 = buffer.Slice(0, BigIntegerCalculator.ActualLength(buffer)); 534static void Naive(ReadOnlySpan<nuint> base1E9, int trailingZeroCount, scoped Span<nuint> bits) 567static int NaiveBase1E9ToBits(ReadOnlySpan<nuint> base1E9, Span<nuint> bits) 810internal static bool TryFormatBigInteger<TChar>(BigInteger value, ReadOnlySpan<char> format, NumberFormatInfo info, Span<TChar> destination, out int charsWritten) 817private static string? FormatBigInteger<TChar>(bool targetSpan, BigInteger value, string? formatString, ReadOnlySpan<char> formatSpan, NumberFormatInfo info, Span<TChar> destination, out int charsWritten, out bool spanSuccess) 876ReadOnlySpan<nuint> base1E9Value = base1E9Buffer[..written]; 885ReadOnlySpan<TChar> sNegative = value.Sign < 0 ? info.NegativeSignTChar<TChar>() : default; 988public ReadOnlySpan<nuint> base1E9Value; 992private static void BigIntegerToDecChars<TChar>(Span<TChar> destination, ReadOnlySpan<nuint> base1E9Value, int digits) 1009private static bool TryFormatInt32<TChar>(int value, Span<TChar> destination, ReadOnlySpan<char> format, IFormatProvider? provider, out int charsWritten) 1021private static string Utf8CharsToString<TChar>(ReadOnlySpan<TChar> value) 1024return Encoding.UTF8.GetString(Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(value)); 1027private static string Utf16CharsToString<TChar>(ReadOnlySpan<TChar> value) 1030return new string(Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<char>>(value)); 1040private static void BigIntegerToBase1E9(ReadOnlySpan<nuint> bits, Span<nuint> base1E9Buffer, out int base1E9Written) 1055static void DivideAndConquer(in PowersOf1e9 powersOf1e9, int powersIndex, ReadOnlySpan<nuint> bits, Span<nuint> base1E9Buffer, out int base1E9Written) 1066ReadOnlySpan<nuint> powOfTen = powersOf1e9.GetSpan(powersIndex); 1112static void Naive(ReadOnlySpan<nuint> bits, Span<nuint> base1E9Buffer, out int base1E9Written) 1161private readonly ReadOnlySpan<nuint> pow1E9; 1203private static ReadOnlySpan<int> Indexes => nint.Size == 8 ? Indexes64 : Indexes32; 1205private static ReadOnlySpan<int> Indexes32 => 1241private static ReadOnlySpan<int> Indexes64 => 1281private static ReadOnlySpan<nuint> LeadingPowers1E9 => nint.Size == 8 1285private static ReadOnlySpan<uint> LeadingPowers1E9_32 => 1339private static ReadOnlySpan<ulong> LeadingPowers1E9_64 => 1386ReadOnlySpan<nuint> src = pow1E9.Slice(Indexes[5], Indexes[6] - Indexes[5]); 1436public ReadOnlySpan<nuint> GetSpan(int index) 1475public void MultiplyPowerOfTen(ReadOnlySpan<nuint> left, int trailingZeroCount, Span<nuint> bits) 1493ReadOnlySpan<nuint> first = GetSpan(fi); 1514ReadOnlySpan<nuint> power = GetSpan(fi); 1585static virtual bool TryParseUnalignedBlock(ReadOnlySpan<TChar> input, out nuint result) 1589return nuint.TryParse(Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(input), TParser.BlockNumberStyle, null, out result); 1594return nuint.TryParse(Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<char>>(input), TParser.BlockNumberStyle, null, out result); 1599static virtual bool TryParseSingleBlock(ReadOnlySpan<TChar> input, out nuint result) 1602static virtual bool TryParseWholeBlocks(ReadOnlySpan<TChar> input, Span<nuint> destination) 1633public static bool TryParseWholeBlocks(ReadOnlySpan<TChar> input, Span<nuint> destination) 1637? (Convert.FromHexString(Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(input), bytes, out _, out _) != OperationStatus.Done) 1638: (Convert.FromHexString(Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<char>>(input), bytes, out _, out _) != OperationStatus.Done))
System\Number.Polyfill.cs (22)
92internal static bool IsWhiteSpace<TChar>(this ReadOnlySpan<TChar> span, out int elementsConsumed) 116internal static OperationStatus DecodeFromUtfChar<TChar>(ReadOnlySpan<TChar> span, out Rune result, out int elemsConsumed) 121return Rune.DecodeFromUtf8(Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(span), out result, out elemsConsumed); 126return Rune.DecodeFromUtf16(Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<char>>(span), out result, out elemsConsumed); 130internal static ReadOnlySpan<TChar> FromString<TChar>(string value) 135return Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(Encoding.UTF8.GetBytes(value)); 139return Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(value.AsSpan()); 143internal static ReadOnlySpan<TChar> PositiveSignTChar<TChar>(this NumberFormatInfo info) 147internal static ReadOnlySpan<TChar> NegativeSignTChar<TChar>(this NumberFormatInfo info) 151internal static ReadOnlySpan<TChar> CurrencySymbolTChar<TChar>(this NumberFormatInfo info) 155internal static ReadOnlySpan<TChar> PercentSymbolTChar<TChar>(this NumberFormatInfo info) 159internal static ReadOnlySpan<TChar> PerMilleSymbolTChar<TChar>(this NumberFormatInfo info) 163internal static ReadOnlySpan<TChar> CurrencyDecimalSeparatorTChar<TChar>(this NumberFormatInfo info) 167internal static ReadOnlySpan<TChar> CurrencyGroupSeparatorTChar<TChar>(this NumberFormatInfo info) 171internal static ReadOnlySpan<TChar> NumberDecimalSeparatorTChar<TChar>(this NumberFormatInfo info) 175internal static ReadOnlySpan<TChar> NumberGroupSeparatorTChar<TChar>(this NumberFormatInfo info) 179internal static ReadOnlySpan<TChar> PercentDecimalSeparatorTChar<TChar>(this NumberFormatInfo info) 183internal static ReadOnlySpan<TChar> PercentGroupSeparatorTChar<TChar>(this NumberFormatInfo info)
System\Numerics\BigInteger.cs (72)
337public BigInteger(ReadOnlySpan<byte> value, bool isUnsigned = false, bool isBigEndian = false) 541internal BigInteger(ReadOnlySpan<nuint> value, bool negative) 833public static BigInteger Parse(ReadOnlySpan<char> value, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 838public static BigInteger Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 843public static bool TryParse(ReadOnlySpan<char> value, out BigInteger result) 848public static bool TryParse(ReadOnlySpan<char> value, NumberStyles style, IFormatProvider? provider, out BigInteger result) 853public static bool TryParse(ReadOnlySpan<byte> utf8Text, out BigInteger result) 858public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out BigInteger result) 869/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 870public static bool TryParsePartial(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out BigInteger result, out int bytesConsumed) 875/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{char}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 876public static bool TryParsePartial(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out BigInteger result, out int charsConsumed) 964ReadOnlySpan<nuint> dividendBits = dividend._bits.AsSpan(commonOffset); 965ReadOnlySpan<nuint> divisorBits = divisor._bits.AsSpan(commonOffset); 1128ReadOnlySpan<nuint> reducedLeft = leftBits.AsSpan(commonOffset); 1129ReadOnlySpan<nuint> reducedRight = rightBits.AsSpan(commonOffset); 1136private static BigInteger GreatestCommonDivisor(ReadOnlySpan<nuint> leftBits, ReadOnlySpan<nuint> rightBits, int resultOffset) 1205ReadOnlySpan<nuint> bits = value._bits; 1260ReadOnlySpan<nuint> dividendBits = dividend._bits; 1463ReadOnlySpan<int> powerIndices = default; 1464ReadOnlySpan<nuint> powers = default; 1517ReadOnlySpan<nuint> exactBits = BigIntegerCalculator.GetPower( 1570ReadOnlySpan<int> firstPowerIndices; 1571ReadOnlySpan<nuint> firstPowers; 1595ReadOnlySpan<int> secondPowerIndices = powerOfSeven != 0 1598ReadOnlySpan<nuint> secondPowers = powerOfSeven != 0 2034nonZeroLimbIndex = ((ReadOnlySpan<nuint>)bits).IndexOfAnyExcept(0u); 2107ReadOnlySpan<byte> srcBytes = MemoryMarshal.AsBytes(bits.AsSpan(..^1)); 2322public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 2327public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 2332private static BigInteger Add(ReadOnlySpan<nuint> leftBits, int leftSign, ReadOnlySpan<nuint> rightBits, int rightSign) 2410private static BigInteger Subtract(ReadOnlySpan<nuint> leftBits, int leftSign, ReadOnlySpan<nuint> rightBits, int rightSign) 2475ReadOnlySpan<nuint> leftBits, 2477ReadOnlySpan<nuint> rightBits, 2487ReadOnlySpan<nuint> reducedLeft = leftBits[commonOffset..]; 2488ReadOnlySpan<nuint> reducedRight = rightBits[commonOffset..]; 2508ReadOnlySpan<nuint> leftBits, 2510ReadOnlySpan<nuint> rightBits, 2520ReadOnlySpan<nuint> reducedLeft = leftBits[commonOffset..]; 2521ReadOnlySpan<nuint> reducedRight = rightBits[commonOffset..]; 2523ReadOnlySpan<nuint> large = compare < 0 ? reducedRight : reducedLeft; 2524ReadOnlySpan<nuint> small = compare < 0 ? reducedLeft : reducedRight; 3305ReadOnlySpan<nuint> bits = value._bits; 3426ReadOnlySpan<nuint> bits = value._bits; 3594private static BigInteger Multiply(ReadOnlySpan<nuint> left, int leftSign, ReadOnlySpan<nuint> right, int rightSign) 3693ReadOnlySpan<nuint> dividendBits = dividend._bits.AsSpan(commonOffset); 3694ReadOnlySpan<nuint> divisorBits = divisor._bits.AsSpan(commonOffset); 3755ReadOnlySpan<nuint> dividendBits = dividend._bits.AsSpan(commonOffset); 3756ReadOnlySpan<nuint> divisorBits = divisor._bits.AsSpan(commonOffset); 3782private static bool ShouldUseSpecialDivision(ReadOnlySpan<nuint> left, ReadOnlySpan<nuint> right) 4090private static BigInteger Rotate(ReadOnlySpan<nuint> bits, bool negative, long rotateLeftAmount) 4302private static BigInteger RotateNuint(ReadOnlySpan<nuint> bits, bool negative, long rotateLeftAmount) 4375/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 4376static bool IBinaryInteger<BigInteger>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out BigInteger value) 4382/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 4383static bool IBinaryInteger<BigInteger>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out BigInteger value) 4471int firstNonZero = ((ReadOnlySpan<nuint>)bits).IndexOfAnyExcept(0u); 4541int firstNonZero = ((ReadOnlySpan<nuint>)bits).IndexOfAnyExcept(0u); 6033ReadOnlySpan<nuint> bits = value._bits; 6144/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 6145public static BigInteger Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Integer, provider); 6147/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 6148public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out BigInteger result) => TryParse(s, NumberStyles.Integer, provider, out result); 6154/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 6155public static BigInteger Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Integer, provider); 6157/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 6158public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out BigInteger result) => TryParse(utf8Text, NumberStyles.Integer, provider, out result);
System\Numerics\BigIntegerCalculator.Bitwise.cs (3)
40ReadOnlySpan<nuint> left, int leftSign, 41ReadOnlySpan<nuint> right, int rightSign, 72private static nuint GetTwosComplementLimb(ReadOnlySpan<nuint> bits, nuint inlineValue, int i, int len, bool isNegative, ref nuint borrow)
System\Numerics\BigIntegerCalculator.DivRem.cs (35)
18public static void Divide(ReadOnlySpan<nuint> left, ReadOnlySpan<nuint> right, Span<nuint> quotient, Span<nuint> remainder) 39public static void Divide(ReadOnlySpan<nuint> left, ReadOnlySpan<nuint> right, Span<nuint> quotient) 62public static void Remainder(ReadOnlySpan<nuint> left, ReadOnlySpan<nuint> right, Span<nuint> remainder) 88ReadOnlySpan<nuint> left, 89ReadOnlySpan<nuint> right, 129ReadOnlySpan<nuint> left, 130ReadOnlySpan<nuint> right, 170ReadOnlySpan<nuint> left, 171ReadOnlySpan<nuint> right, 215private static void DivRem(Span<nuint> left, ReadOnlySpan<nuint> right, Span<nuint> quotient) 254ReadOnlySpan<nuint> left, 255ReadOnlySpan<nuint> right, 275ReadOnlySpan<nuint> left, 276ReadOnlySpan<nuint> right, 366static void SumChunks(ReadOnlySpan<nuint> value, int chunkLength, Span<nuint> sum) 374static nuint GetQuotientAdjustment(ReadOnlySpan<nuint> sum) 425private static void DivideBurnikelZiegler(ReadOnlySpan<nuint> left, ReadOnlySpan<nuint> right, Span<nuint> quotient, Span<nuint> remainder) 463static void Normalize(ReadOnlySpan<nuint> src, int sigmaDigit, int sigmaSmall, Span<nuint> bits) 566private static void BurnikelZieglerFallback(ReadOnlySpan<nuint> left, ReadOnlySpan<nuint> right, Span<nuint> quotient, Span<nuint> remainder) 636private static void BurnikelZieglerD2n1n(ReadOnlySpan<nuint> left, ReadOnlySpan<nuint> right, Span<nuint> quotient, Span<nuint> remainder) 661private static void BurnikelZieglerD3n2n(ReadOnlySpan<nuint> left12, ReadOnlySpan<nuint> left3, ReadOnlySpan<nuint> right, Span<nuint> quotient, Span<nuint> remainder) 674ReadOnlySpan<nuint> a1 = left12.Slice(n); 675ReadOnlySpan<nuint> b1 = right.Slice(n); 676ReadOnlySpan<nuint> b2 = right.Slice(0, n); 692ReadOnlySpan<nuint> a2 = left12.Slice(0, n); 719static void MultiplyActual(ReadOnlySpan<nuint> left, ReadOnlySpan<nuint> right, Span<nuint> bits)
System\Numerics\BigIntegerCalculator.FastReducer.cs (7)
18private readonly ReadOnlySpan<nuint> _modulus; 19private readonly ReadOnlySpan<nuint> _mu; 23public FastReducer(ReadOnlySpan<nuint> modulus, Span<nuint> r, Span<nuint> mu, Span<nuint> q1, Span<nuint> q2) 71private static int DivMul(ReadOnlySpan<nuint> left, ReadOnlySpan<nuint> right, Span<nuint> bits, int k) 95private static int SubMod(Span<nuint> left, ReadOnlySpan<nuint> right, ReadOnlySpan<nuint> modulus, int k)
System\Numerics\BigIntegerCalculator.GcdInv.cs (5)
76public static nuint Gcd(ReadOnlySpan<nuint> left, nuint right) 88public static void Gcd(ReadOnlySpan<nuint> left, ReadOnlySpan<nuint> right, Span<nuint> result) 299private static void ExtractDigits(ReadOnlySpan<nuint> xBuffer, 300ReadOnlySpan<nuint> yBuffer,
System\Numerics\BigIntegerCalculator.PowMod.cs (40)
21public static void Pow(ReadOnlySpan<nuint> value, nuint power, Span<nuint> bits) 47ReadOnlySpan<int> powerIndices, 48ReadOnlySpan<nuint> powers, 87ReadOnlySpan<int> powerIndices, 88ReadOnlySpan<nuint> powers, 103ReadOnlySpan<nuint> selectedPower = GetPower(powerIndices, powers, index); 124ReadOnlySpan<int> powerIndices, 125ReadOnlySpan<nuint> powers, 140ReadOnlySpan<nuint> selectedPower = GetPower(powerIndices, powers, index); 158ReadOnlySpan<nuint> lastPower = GetPower(powerIndices, powers, powerIndices.Length - 1); 239private static int MultiplySelf(ref Span<nuint> left, int leftLength, scoped ReadOnlySpan<nuint> right, ref Span<nuint> temp) 309public static nuint Pow(ReadOnlySpan<nuint> value, nuint power, nuint modulus) 318public static nuint Pow(nuint value, ReadOnlySpan<nuint> power, nuint modulus) 326public static nuint Pow(ReadOnlySpan<nuint> value, ReadOnlySpan<nuint> power, nuint modulus) 335private static nuint PowCore(nuint value, ReadOnlySpan<nuint> power, nuint modulus, nuint result) 424ReadOnlySpan<nuint> modulus, Span<nuint> bits) 429public static void Pow(ReadOnlySpan<nuint> value, nuint power, 430ReadOnlySpan<nuint> modulus, Span<nuint> bits) 463public static void Pow(nuint value, ReadOnlySpan<nuint> power, 464ReadOnlySpan<nuint> modulus, Span<nuint> bits) 469public static void Pow(ReadOnlySpan<nuint> value, ReadOnlySpan<nuint> power, 470ReadOnlySpan<nuint> modulus, Span<nuint> bits) 512ReadOnlySpan<nuint> power, ReadOnlySpan<nuint> modulus, 536nuint power, ReadOnlySpan<nuint> modulus, 560ReadOnlySpan<nuint> power, ReadOnlySpan<nuint> modulus, 625private static int BitLength(ReadOnlySpan<nuint> value) 645private static int GetBit(ReadOnlySpan<nuint> value, int bitIndex) 651ReadOnlySpan<nuint> power, ReadOnlySpan<nuint> modulus, 748ReadOnlySpan<nuint> prev = table.Slice((i - 1) * k, k); 804ReadOnlySpan<nuint> entry = table.Slice(((wValue - 1) >> 1) * k, k); 848private static int MontgomeryReduce(Span<nuint> value, ReadOnlySpan<nuint> modulus, nuint n0inv) 912ReadOnlySpan<nuint> power, ReadOnlySpan<nuint> modulus, 943nuint power, ReadOnlySpan<nuint> modulus, 974ReadOnlySpan<nuint> power, in FastReducer reducer,
System\Numerics\BigIntegerCalculator.PowTables.cs (25)
12internal static ReadOnlySpan<uint> Pow3FactorizationPowers => 17internal static ReadOnlySpan<uint> Pow5FactorizationPowers => 22internal static ReadOnlySpan<uint> Pow7FactorizationPowers => 27internal static int ExtractFactorPower(ref nuint value, nuint factor, ReadOnlySpan<uint> factorizationPowers) 118private static ReadOnlySpan<int> Pow3TableIndices64 => 123private static ReadOnlySpan<ulong> Pow3TableStorage64 => 190private static ReadOnlySpan<int> Pow5TableIndices64 => 195private static ReadOnlySpan<ulong> Pow5TableStorage64 => 289private static ReadOnlySpan<int> Pow7TableIndices64 => 294private static ReadOnlySpan<ulong> Pow7TableStorage64 => 402private static ReadOnlySpan<int> Pow3TableIndices32 => 407private static ReadOnlySpan<uint> Pow3TableStorage32 => 527private static ReadOnlySpan<int> Pow5TableIndices32 => 532private static ReadOnlySpan<uint> Pow5TableStorage32 => 703private static ReadOnlySpan<int> Pow7TableIndices32 => 708private static ReadOnlySpan<uint> Pow7TableStorage32 => 908internal static ReadOnlySpan<int> Pow3TableIndices 911internal static ReadOnlySpan<nuint> Pow3Table 918internal static ReadOnlySpan<int> Pow5TableIndices 921internal static ReadOnlySpan<nuint> Pow5Table 928internal static ReadOnlySpan<int> Pow7TableIndices 931internal static ReadOnlySpan<nuint> Pow7Table 938internal static ReadOnlySpan<nuint> GetPower( 939ReadOnlySpan<int> indices, 940ReadOnlySpan<nuint> powers,
System\Numerics\BigIntegerCalculator.SquMul.cs (62)
27public static void Square(ReadOnlySpan<nuint> value, Span<nuint> bits) 82static void Toom3(ReadOnlySpan<nuint> value, Span<nuint> bits) 120static void Karatsuba(ReadOnlySpan<nuint> value, Span<nuint> bits) 137ReadOnlySpan<nuint> valueLow = value.Slice(0, n); 138ReadOnlySpan<nuint> valueHigh = value.Slice(n); 172static void Naive(ReadOnlySpan<nuint> value, Span<nuint> bits) 245public static void Multiply(ReadOnlySpan<nuint> left, ReadOnlySpan<nuint> right, Span<nuint> bits) 249ReadOnlySpan<nuint> tmp = right; 327static void Toom3(ReadOnlySpan<nuint> left, ReadOnlySpan<nuint> right, Span<nuint> bits) 373static void Toom25(ReadOnlySpan<nuint> left, ReadOnlySpan<nuint> right, Span<nuint> bits, int n) 383ReadOnlySpan<nuint> left0 = left.Slice(0, n).TrimEnd((nuint)0); 384ReadOnlySpan<nuint> left1 = left.Slice(n, n).TrimEnd((nuint)0); 385ReadOnlySpan<nuint> left2 = left.Slice(n + n); 387ReadOnlySpan<nuint> right0 = right.Slice(0, n).TrimEnd((nuint)0); 388ReadOnlySpan<nuint> right1 = right.Slice(n); 470static void Karatsuba(ReadOnlySpan<nuint> left, ReadOnlySpan<nuint> right, Span<nuint> bits, int n) 501ReadOnlySpan<nuint> leftLow = left.Slice(0, n); 502ReadOnlySpan<nuint> leftHigh = left.Slice(n); 505ReadOnlySpan<nuint> rightLow = right.Slice(0, n); 506ReadOnlySpan<nuint> rightHigh = right.Slice(n); 554static void RightSmall(ReadOnlySpan<nuint> left, ReadOnlySpan<nuint> right, Span<nuint> bits, int n) 563ReadOnlySpan<nuint> leftLow = left.Slice(0, n).TrimEnd((nuint)0); 564ReadOnlySpan<nuint> leftHigh = left.Slice(n); 594ReadOnlySpan<nuint> c0, 595ReadOnlySpan<nuint> cInf, 596ReadOnlySpan<nuint> c1, 597ReadOnlySpan<nuint> cm1, 599ReadOnlySpan<nuint> cm2, 602private readonly ReadOnlySpan<nuint> c0 = c0; 603private readonly ReadOnlySpan<nuint> c1 = c1; 604private readonly ReadOnlySpan<nuint> cInf = cInf; 605private readonly ReadOnlySpan<nuint> cm1 = cm1; 606private readonly ReadOnlySpan<nuint> cm2 = cm2; 610public static Toom3Data Build(ReadOnlySpan<nuint> value, int n, Span<nuint> buffer) 619ReadOnlySpan<nuint> v0, v1, v2; 696ReadOnlySpan<nuint> p0 = c0; 697ReadOnlySpan<nuint> q0 = right.c0; 699ReadOnlySpan<nuint> p1 = c1; 700ReadOnlySpan<nuint> q1 = right.c1; 702ReadOnlySpan<nuint> pm1 = cm1; 703ReadOnlySpan<nuint> qm1 = right.cm1; 705ReadOnlySpan<nuint> pm2 = cm2; 706ReadOnlySpan<nuint> qm2 = right.cm2; 708ReadOnlySpan<nuint> pInf = cInf; 709ReadOnlySpan<nuint> qInf = right.cInf; 750ReadOnlySpan<nuint> p0 = c0; 751ReadOnlySpan<nuint> p1 = c1; 752ReadOnlySpan<nuint> pm1 = cm1; 753ReadOnlySpan<nuint> pm2 = cm2; 754ReadOnlySpan<nuint> pInf = cInf; 786ReadOnlySpan<nuint> r0, 787ReadOnlySpan<nuint> rInf, 918private static void SubtractCore(ReadOnlySpan<nuint> left, ReadOnlySpan<nuint> right, Span<nuint> core) 991private static void AddSelf(Span<nuint> left, ref int leftSign, ReadOnlySpan<nuint> right, int rightSign) 1009private static void AddSelf(Span<nuint> left, ref int leftSign, ReadOnlySpan<nuint> right) 1055private static void SubtractSelf(Span<nuint> left, ref int leftSign, ReadOnlySpan<nuint> right)
System\Numerics\BigIntegerCalculator.Utils.cs (1)
8private static int Reduce(Span<nuint> bits, ReadOnlySpan<nuint> modulus)
System\Numerics\Complex.cs (25)
696/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{char}, NumberStyles, IFormatProvider?)" /> 697public static Complex Parse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider) 706/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 707public static Complex Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider) 803/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{char}, NumberStyles, IFormatProvider?, out TSelf)" /> 804public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out Complex result) 810/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 811public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out Complex result) 824/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 825public static bool TryParsePartial(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out Complex result, out int bytesConsumed) 831/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{char}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 832public static bool TryParsePartial(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out Complex result, out int charsConsumed) 865/// <inheritdoc cref="ISpanFormattable.TryFormat(Span{char}, out int, ReadOnlySpan{char}, IFormatProvider?)" /> 866public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) => 869/// <inheritdoc cref="IUtf8SpanFormattable.TryFormat(Span{byte}, out int, ReadOnlySpan{char}, IFormatProvider?)" /> 870public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) => 873private bool TryFormat<TChar>(Span<TChar> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) 918/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 919public static Complex Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, DefaultNumberStyle, provider); 921/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 922public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out Complex result) => TryParse(s, DefaultNumberStyle, provider, out result); 935/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 936public static Complex Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, DefaultNumberStyle, provider); 938/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 939public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out Complex result) => TryParse(utf8Text, DefaultNumberStyle, provider, out result);
System\Numerics\Complex.Generic.cs (37)
1600/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{char}, NumberStyles, IFormatProvider?)" /> 1601public static Complex<T> Parse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider) 1610/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1611public static Complex<T> Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider) 1892/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{char}, NumberStyles, IFormatProvider?, out TSelf)" /> 1893public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out Complex<T> result) 1896/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 1897public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out Complex<T> result) 1904/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1905public static bool TryParsePartial(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out Complex<T> result, out int bytesConsumed) 1908/// <inheritdoc cref="INumberBase{TSelf}.TryParsePartial(ReadOnlySpan{char}, NumberStyles, IFormatProvider?, out TSelf, out int)" /> 1909public static bool TryParsePartial(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out Complex<T> result, out int charsConsumed) 1912internal static bool TryParse<TChar>(ReadOnlySpan<TChar> text, NumberStyles style, IFormatProvider? provider, out Complex<T> result, out int elementsConsumed) 1922internal static bool TryParsePartial<TChar>(ReadOnlySpan<TChar> text, NumberStyles style, IFormatProvider? provider, out Complex<T> result, out int elementsConsumed) 1929private static bool TryParseCore<TChar>(ReadOnlySpan<TChar> text, NumberStyles style, IFormatProvider? provider, out Complex<T> result, out int elementsConsumed) 1961ReadOnlySpan<TChar> slice = text.Slice(openBracket + 1, semicolon - openBracket - 1); 1964? !T.TryParse(Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(slice), componentStyle, provider, out T? real) 1965: !T.TryParse(Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<char>>(slice), componentStyle, provider, out real)) 1985? !T.TryParse(Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(slice), componentStyle, provider, out T? imaginary) 1986: !T.TryParse(Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<char>>(slice), componentStyle, provider, out imaginary)) 2073/// <inheritdoc cref="ISpanFormattable.TryFormat(Span{char}, out int, ReadOnlySpan{char}, IFormatProvider?)" /> 2074public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) => 2077/// <inheritdoc cref="IUtf8SpanFormattable.TryFormat(Span{byte}, out int, ReadOnlySpan{char}, IFormatProvider?)" /> 2078public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) => 2081private bool TryFormat<TChar>(Span<TChar> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) 2126/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 2127public static Complex<T> Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, Complex.DefaultNumberStyle, provider); 2129/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 2130public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out Complex<T> result) => TryParse(s, Complex.DefaultNumberStyle, provider, out result); 2143/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 2144public static Complex<T> Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, Complex.DefaultNumberStyle, provider); 2146/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 2147public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out Complex<T> result) => TryParse(utf8Text, Complex.DefaultNumberStyle, provider, out result);
System.Runtime.Serialization.Formatters (2)
src\runtime\src\libraries\Common\src\System\Collections\HashHelpers.cs (2)
32internal static ReadOnlySpan<int> Primes => 83ReadOnlySpan<int> primes = Primes;
System.Security.Cryptography (2767)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LibraryImports.g.cs (6)
1322public static partial global::Interop.BCrypt.NTSTATUS BCryptSetProperty(global::Microsoft.Win32.SafeHandles.SafeBCryptHandle hObject, string pszProperty, global::System.ReadOnlySpan<byte> pbInput, int cbInput, int dwFlags) 1387internal static partial global::Interop.BCrypt.NTSTATUS BCryptCreateHash(global::Microsoft.Win32.SafeHandles.SafeBCryptAlgorithmHandle hAlgorithm, out global::Microsoft.Win32.SafeHandles.SafeBCryptHashHandle phHash, nint pbHashObject, int cbHashObject, global::System.ReadOnlySpan<byte> secret, int cbSecret, global::Interop.BCrypt.BCryptCreateHashFlags dwFlags) 1440internal static partial global::Interop.BCrypt.NTSTATUS BCryptCreateHash(nuint hAlgorithm, out global::Microsoft.Win32.SafeHandles.SafeBCryptHashHandle phHash, nint pbHashObject, int cbHashObject, global::System.ReadOnlySpan<byte> secret, int cbSecret, global::Interop.BCrypt.BCryptCreateHashFlags dwFlags) 2203internal static partial global::Interop.BCrypt.NTSTATUS BCryptHashData(global::Microsoft.Win32.SafeHandles.SafeBCryptHashHandle hHash, global::System.ReadOnlySpan<byte> pbInput, int cbInput, int dwFlags) 5140internal static unsafe partial global::Interop.NCrypt.ErrorCode NCryptEncrypt(global::Microsoft.Win32.SafeHandles.SafeNCryptKeyHandle hKey, global::System.ReadOnlySpan<byte> pbInput, int cbInput, void* pPaddingInfo, global::System.Span<byte> pbOutput, int cbOutput, out int pcbResult, global::Interop.NCrypt.AsymmetricPaddingMode dwFlags) 5182internal static unsafe partial global::Interop.NCrypt.ErrorCode NCryptDecrypt(global::Microsoft.Win32.SafeHandles.SafeNCryptKeyHandle hKey, global::System.ReadOnlySpan<byte> pbInput, int cbInput, void* pPaddingInfo, global::System.Span<byte> pbOutput, int cbOutput, out int pcbResult, global::Interop.NCrypt.AsymmetricPaddingMode dwFlags)
Microsoft\Win32\SafeHandles\SafePasswordHandle.cs (2)
36public SafePasswordHandle(ReadOnlySpan<char> password, bool passwordProvided) 93internal ReadOnlySpan<char> DangerousGetSpan()
src\runtime\src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (5)
65public static void EnsureSingleBerValue(ReadOnlySpan<byte> source) 102public static string DecodeOid(ReadOnlySpan<byte> encodedOid) 131public static int FirstBerValueLength(ReadOnlySpan<byte> source) 340public static Pkcs9AttributeObject CreateBestPkcs9AttributeObjectAvailable(Oid oid, ReadOnlySpan<byte> encodedAttribute) 356static Pkcs9LocalKeyId CreatePkcs9LocalKeyId(ReadOnlySpan<byte> data)
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Cng.cs (1)
147public static partial NTSTATUS BCryptSetProperty(SafeBCryptHandle hObject, string pszProperty, ReadOnlySpan<byte> pbInput, int cbInput, int dwFlags);
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.BCryptCreateHash.cs (2)
16internal static partial NTSTATUS BCryptCreateHash(SafeBCryptAlgorithmHandle hAlgorithm, out SafeBCryptHashHandle phHash, IntPtr pbHashObject, int cbHashObject, ReadOnlySpan<byte> secret, int cbSecret, BCryptCreateHashFlags dwFlags); 20internal static partial NTSTATUS BCryptCreateHash(nuint hAlgorithm, out SafeBCryptHashHandle phHash, IntPtr pbHashObject, int cbHashObject, ReadOnlySpan<byte> secret, int cbSecret, BCryptCreateHashFlags dwFlags);
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.BCryptDecapsulateEncapsulate.cs (1)
37ReadOnlySpan<byte> cipherText,
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.BCryptEncryptDecrypt.cs (2)
15internal static int BCryptEncrypt(SafeKeyHandle hKey, ReadOnlySpan<byte> input, byte[]? iv, Span<byte> output) 36internal static int BCryptDecrypt(SafeKeyHandle hKey, ReadOnlySpan<byte> input, byte[]? iv, Span<byte> output)
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.BCryptEncryptDecrypt.RSA.cs (8)
51ReadOnlySpan<byte> source, 57ReadOnlySpan<byte> notNull = [0]; 58scoped ReadOnlySpan<byte> effectiveSource; 98ReadOnlySpan<byte> source, 148ReadOnlySpan<byte> source, 161ReadOnlySpan<byte> source, 181ReadOnlySpan<byte> source, 196ReadOnlySpan<byte> source,
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.BCryptExportKey.cs (1)
80internal delegate T ExportKeyCallback<T>(ReadOnlySpan<byte> keyBytes);
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.BCryptHashData.cs (1)
15internal static partial NTSTATUS BCryptHashData(SafeBCryptHashHandle hHash, ReadOnlySpan<byte> pbInput, int cbInput, int dwFlags);
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.BCryptImportKey.cs (1)
14internal static unsafe SafeKeyHandle BCryptImportKey(SafeAlgorithmHandle hAlg, ReadOnlySpan<byte> key)
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.BCryptImportKeyPair.cs (1)
27ReadOnlySpan<byte> keyBlob,
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.BCryptSignHash.cs (6)
29ReadOnlySpan<byte> hash, 55ReadOnlySpan<byte> hash, 82ReadOnlySpan<byte> data, 83ReadOnlySpan<byte> context, 120ReadOnlySpan<byte> hash, 122ReadOnlySpan<byte> context,
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.BCryptVerifySignature.cs (10)
35ReadOnlySpan<byte> hash, 36ReadOnlySpan<byte> signature, 63ReadOnlySpan<byte> hash, 64ReadOnlySpan<byte> signature, 93ReadOnlySpan<byte> data, 94ReadOnlySpan<byte> context, 95ReadOnlySpan<byte> signature) 122ReadOnlySpan<byte> hash, 124ReadOnlySpan<byte> context, 125ReadOnlySpan<byte> signature)
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.Blobs.cs (2)
75internal static byte[] Consume(ReadOnlySpan<byte> blob, ref int offset, int count) 85internal static void Consume(ReadOnlySpan<byte> blob, ref int offset, int count, Span<byte> destination)
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.DATA_BLOB.cs (1)
35internal unsafe ReadOnlySpan<byte> DangerousAsSpan() => new ReadOnlySpan<byte>((void*)pbData, (int)cbData);
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
78private static string GetAndTrimString(ReadOnlySpan<char> buffer)
src\runtime\src\libraries\Common\src\Interop\Windows\NCrypt\Interop.EncryptDecrypt.cs (2)
14internal static unsafe partial ErrorCode NCryptEncrypt(SafeNCryptKeyHandle hKey, ReadOnlySpan<byte> pbInput, int cbInput, void* pPaddingInfo, Span<byte> pbOutput, int cbOutput, out int pcbResult, AsymmetricPaddingMode dwFlags); 18internal static unsafe partial ErrorCode NCryptDecrypt(SafeNCryptKeyHandle hKey, ReadOnlySpan<byte> pbInput, int cbInput, void* pPaddingInfo, Span<byte> pbOutput, int cbOutput, out int pcbResult, AsymmetricPaddingMode dwFlags);
src\runtime\src\libraries\Common\src\Interop\Windows\NCrypt\Interop.NCryptDecapsulateEncapsulate.cs (1)
38ReadOnlySpan<byte> cipherText,
src\runtime\src\libraries\Common\src\Interop\Windows\NCrypt\Interop.NCryptDeriveKeyMaterial.cs (2)
135ReadOnlySpan<NCryptBuffer> parameters, 265ReadOnlySpan<NCryptBuffer>.Empty,
src\runtime\src\libraries\Common\src\Interop\Windows\NCrypt\Interop.SignVerify.cs (3)
17internal static unsafe ErrorCode NCryptSignHash(SafeNCryptKeyHandle hKey, void* pPaddingInfo, ReadOnlySpan<byte> pbHashValue, Span<byte> pbSignature, out int pcbResult, AsymmetricPaddingMode dwFlags) 30internal static unsafe ErrorCode NCryptVerifySignature(SafeNCryptKeyHandle hKey, void* pPaddingInfo, ReadOnlySpan<byte> pbHashValue, int cbHashValue, ReadOnlySpan<byte> pbSignature, int cbSignature, AsymmetricPaddingMode dwFlags)
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeUnicodeStringHandle.cs (1)
24public unsafe SafeUnicodeStringHandle(ReadOnlySpan<char> s)
src\runtime\src\libraries\Common\src\System\HexConverter.cs (9)
187public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper) 204public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper) 221public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 244public ReadOnlySpan<byte> Bytes { get; set; } 276public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 288public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 456private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 491private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 598public static ReadOnlySpan<byte> CharToHexLookup =>
src\runtime\src\libraries\Common\src\System\Security\Cryptography\AeadCommon.Windows.cs (7)
15ReadOnlySpan<byte> nonce, 16ReadOnlySpan<byte> associatedData, 17ReadOnlySpan<byte> plaintext, 59ReadOnlySpan<byte> nonce, 60ReadOnlySpan<byte> associatedData, 61ReadOnlySpan<byte> ciphertext, 62ReadOnlySpan<byte> tag,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\AesGcm.cs (22)
78public AesGcm(ReadOnlySpan<byte> key, int tagSizeInBytes) 120private partial void ImportKey(ReadOnlySpan<byte> key); 123ReadOnlySpan<byte> nonce, 124ReadOnlySpan<byte> ciphertext, 125ReadOnlySpan<byte> tag, 127ReadOnlySpan<byte> associatedData); 130ReadOnlySpan<byte> nonce, 131ReadOnlySpan<byte> plaintext, 134ReadOnlySpan<byte> associatedData); 173Encrypt((ReadOnlySpan<byte>)nonce, plaintext, ciphertext, tag, associatedData); 204ReadOnlySpan<byte> nonce, 205ReadOnlySpan<byte> plaintext, 208ReadOnlySpan<byte> associatedData = default) 252Decrypt((ReadOnlySpan<byte>)nonce, ciphertext, tag, plaintext, associatedData); 283ReadOnlySpan<byte> nonce, 284ReadOnlySpan<byte> ciphertext, 285ReadOnlySpan<byte> tag, 287ReadOnlySpan<byte> associatedData = default) 299ReadOnlySpan<byte> plaintext, 300ReadOnlySpan<byte> ciphertext, 301ReadOnlySpan<byte> nonce, 302ReadOnlySpan<byte> tag)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\AesGcm.Windows.cs (8)
21private partial void ImportKey(ReadOnlySpan<byte> key) 27ReadOnlySpan<byte> nonce, 28ReadOnlySpan<byte> plaintext, 31ReadOnlySpan<byte> associatedData) 37ReadOnlySpan<byte> nonce, 38ReadOnlySpan<byte> ciphertext, 39ReadOnlySpan<byte> tag, 41ReadOnlySpan<byte> associatedData)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.manual.cs (3)
47ReadOnlySpan<byte> span = parameters.Value.Span; 78internal static ReadOnlySpan<byte> ExplicitDerNull => [0x05, 0x00]; 115ReadOnlySpan<byte> span = algorithm.Parameters;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs (5)
92ReadOnlySpan<byte> rebindSpan = rebind.Span; 94ReadOnlySpan<byte> tmpSpan; 114internal ReadOnlySpan<byte> Parameters 160internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueAlgorithmIdentifierAsn decoded) 165internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueAlgorithmIdentifierAsn decoded)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (10)
96ReadOnlySpan<byte> rebindSpan = rebind.Span; 98ReadOnlySpan<byte> tmpSpan; 127internal ReadOnlySpan<byte> AttrValues; 158internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueAttributeAsn decoded) 163internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueAttributeAsn decoded) 220private readonly ReadOnlySpan<byte> _encoded; 223internal AttrValuesEnumerable(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet) 234private ReadOnlySpan<byte> _current; 236internal Enumerator(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet) 248public ReadOnlySpan<byte> Current => _current;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\CurveAsn.xml.cs (6)
14internal ReadOnlySpan<byte> A; 15internal ReadOnlySpan<byte> B; 17internal ReadOnlySpan<byte> Seed 49internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueCurveAsn decoded) 54internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueCurveAsn decoded) 90ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs (6)
73ReadOnlySpan<byte> rebindSpan = rebind.Span; 75ReadOnlySpan<byte> tmpSpan; 97internal ReadOnlySpan<byte> Digest; 113internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueDigestInfoAsn decoded) 118internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueDigestInfoAsn decoded) 154ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (2)
160ReadOnlySpan<byte> rebindSpan = rebind.Span; 162ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\DssParms.xml.cs (5)
14internal ReadOnlySpan<byte> P; 15internal ReadOnlySpan<byte> Q; 16internal ReadOnlySpan<byte> G; 33internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueDssParms decoded) 38internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueDssParms decoded)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\ECDomainParameters.xml.cs (1)
97internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueECDomainParameters decoded)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\ECPrivateKey.xml.cs (5)
15internal ReadOnlySpan<byte> PrivateKey; 29internal ReadOnlySpan<byte> PublicKey 71internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueECPrivateKey decoded) 76internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueECPrivateKey decoded) 113ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\EncryptedPrivateKeyInfoAsn.xml.cs (6)
73ReadOnlySpan<byte> rebindSpan = rebind.Span; 75ReadOnlySpan<byte> tmpSpan; 97internal ReadOnlySpan<byte> EncryptedData; 113internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueEncryptedPrivateKeyInfoAsn decoded) 118internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueEncryptedPrivateKeyInfoAsn decoded) 154ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\FieldID.xml.cs (3)
15internal ReadOnlySpan<byte> Parameters; 46internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueFieldID decoded) 51internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueFieldID decoded)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (2)
221ReadOnlySpan<byte> rebindSpan = rebind.Span; 223ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\MLDsaPrivateKeyAsn.xml.cs (4)
43internal ReadOnlySpan<byte> Seed 55internal ReadOnlySpan<byte> ExpandedKey 123internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueMLDsaPrivateKeyAsn decoded) 154ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\MLDsaPrivateKeyBothAsn.xml.cs (5)
14internal ReadOnlySpan<byte> Seed; 15internal ReadOnlySpan<byte> ExpandedKey; 31internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueMLDsaPrivateKeyBothAsn decoded) 36internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueMLDsaPrivateKeyBothAsn decoded) 72ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\MLKemPrivateKeyAsn.xml.cs (4)
43internal ReadOnlySpan<byte> Seed 55internal ReadOnlySpan<byte> ExpandedKey 123internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueMLKemPrivateKeyAsn decoded) 154ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\MLKemPrivateKeyBothAsn.xml.cs (5)
14internal ReadOnlySpan<byte> Seed; 15internal ReadOnlySpan<byte> ExpandedKey; 31internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueMLKemPrivateKeyBothAsn decoded) 36internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueMLKemPrivateKeyBothAsn decoded) 72ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\OtherNameAsn.xml.cs (2)
90ReadOnlySpan<byte> rebindSpan = rebind.Span; 92ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PBEParameter.xml.cs (4)
14internal ReadOnlySpan<byte> Salt; 31internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePBEParameter decoded) 36internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePBEParameter decoded) 72ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PBES2Params.xml.cs (2)
31internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePBES2Params decoded) 36internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePBES2Params decoded)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2Params.xml.cs (3)
13internal static ReadOnlySpan<byte> DefaultPrf => [0x30, 0x0C, 0x06, 0x08, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x07, 0x05, 0x00]; 68internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePbkdf2Params decoded) 73internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePbkdf2Params decoded)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (3)
42internal ReadOnlySpan<byte> Specified 101internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePbkdf2SaltChoice decoded) 132ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs (2)
90ReadOnlySpan<byte> rebindSpan = rebind.Span; 92ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs (7)
13internal static ReadOnlySpan<byte> DefaultIterationCount => [0x02, 0x01, 0x01]; 110ReadOnlySpan<byte> rebindSpan = rebind.Span; 112ReadOnlySpan<byte> tmpSpan; 155internal ReadOnlySpan<byte> MacSalt; 185internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueMacData decoded) 190internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueMacData decoded) 227ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs (2)
16ReadOnlySpan<char> macPassword, 17ReadOnlySpan<byte> authSafeContents)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml.cs (2)
140internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePfxAsn decoded) 145internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePfxAsn decoded)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs (2)
106ReadOnlySpan<byte> rebindSpan = rebind.Span; 108ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SecretBagAsn.xml.cs (2)
90ReadOnlySpan<byte> rebindSpan = rebind.Span; 92ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\CertificateChoiceAsn.xml.cs (2)
208ReadOnlySpan<byte> rebindSpan = rebind.Span; 210ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs (5)
90ReadOnlySpan<byte> rebindSpan = rebind.Span; 92ReadOnlySpan<byte> tmpSpan; 110internal ReadOnlySpan<byte> Content; 143internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueContentInfoAsn decoded) 148internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueContentInfoAsn decoded)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncapsulatedContentInfoAsn.xml.cs (2)
95ReadOnlySpan<byte> rebindSpan = rebind.Span; 97ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs (2)
87ReadOnlySpan<byte> rebindSpan = rebind.Span; 89ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\IssuerAndSerialNumberAsn.xml.cs (2)
89ReadOnlySpan<byte> rebindSpan = rebind.Span; 91ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\OtherCertificateFormat.xml.cs (2)
87ReadOnlySpan<byte> rebindSpan = rebind.Span; 89ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignedDataAsn.xml.cs (2)
128ReadOnlySpan<byte> rebindSpan = rebind.Span; 130ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerIdentifierAsn.xml.cs (2)
111ReadOnlySpan<byte> rebindSpan = rebind.Span; 113ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerInfoAsn.xml.cs (2)
118ReadOnlySpan<byte> rebindSpan = rebind.Span; 120ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (10)
91ReadOnlySpan<byte> rebindSpan = rebind.Span; 93ReadOnlySpan<byte> tmpSpan; 143internal ReadOnlySpan<byte> PrivateKey; 145internal ReadOnlySpan<byte> Attributes 186internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePrivateKeyInfoAsn decoded) 191internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePrivateKeyInfoAsn decoded) 227ReadOnlySpan<byte> tmpSpan; 265private readonly ReadOnlySpan<byte> _encoded; 268internal AttributesEnumerable(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet) 281internal Enumerator(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs (6)
13internal static ReadOnlySpan<byte> DefaultHashAlgorithm => [0x30, 0x09, 0x06, 0x05, 0x2B, 0x0E, 0x03, 0x02, 0x1A, 0x05, 0x00]; 15internal 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]; 17internal static ReadOnlySpan<byte> DefaultSaltLength => [0x02, 0x01, 0x14]; 19internal static ReadOnlySpan<byte> DefaultTrailerField => [0x02, 0x01, 0x01]; 134internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePssParamsAsn decoded) 139internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePssParamsAsn decoded)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Rc2CbcParameters.manual.cs (1)
15internal static ReadOnlySpan<byte> Rc2EkbEncoding =>
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Rc2CbcParameters.xml.cs (6)
73ReadOnlySpan<byte> rebindSpan = rebind.Span; 75ReadOnlySpan<byte> tmpSpan; 102internal ReadOnlySpan<byte> Iv; 118internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueRc2CbcParameters decoded) 123internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueRc2CbcParameters decoded) 159ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\RSAPrivateKeyAsn.xml.cs (10)
15internal ReadOnlySpan<byte> Modulus; 16internal ReadOnlySpan<byte> PublicExponent; 17internal ReadOnlySpan<byte> PrivateExponent; 18internal ReadOnlySpan<byte> Prime1; 19internal ReadOnlySpan<byte> Prime2; 20internal ReadOnlySpan<byte> Exponent1; 21internal ReadOnlySpan<byte> Exponent2; 22internal ReadOnlySpan<byte> Coefficient; 45internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueRSAPrivateKeyAsn decoded) 50internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueRSAPrivateKeyAsn decoded)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\RSAPublicKeyAsn.xml.cs (4)
14internal ReadOnlySpan<byte> Modulus; 15internal ReadOnlySpan<byte> PublicExponent; 31internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueRSAPublicKeyAsn decoded) 36internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueRSAPublicKeyAsn decoded)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\SpecifiedECDomain.xml.cs (6)
17internal ReadOnlySpan<byte> Base; 18internal ReadOnlySpan<byte> Order; 20internal ReadOnlySpan<byte> Cofactor 69internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueSpecifiedECDomain decoded) 74internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueSpecifiedECDomain decoded) 110ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\SubjectPublicKeyInfoAsn.xml.cs (6)
73ReadOnlySpan<byte> rebindSpan = rebind.Span; 75ReadOnlySpan<byte> tmpSpan; 97internal ReadOnlySpan<byte> SubjectPublicKey; 113internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueSubjectPublicKeyInfoAsn decoded) 118internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueSubjectPublicKeyInfoAsn decoded) 154ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml.cs (7)
13internal static ReadOnlySpan<byte> DefaultCritical => [0x01, 0x01, 0x00]; 112ReadOnlySpan<byte> rebindSpan = rebind.Span; 114ReadOnlySpan<byte> tmpSpan; 148internal ReadOnlySpan<byte> ExtnValue; 184internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueX509ExtensionAsn decoded) 189internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueX509ExtensionAsn decoded) 226ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\AsnWriter\AsnWriterExtensions.cs (1)
12ReadOnlySpan<byte> value)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs (8)
14public static byte[] ConvertIeee1363ToDer(ReadOnlySpan<byte> input) 21ReadOnlySpan<byte> input, 29private static AsnWriter WriteIeee1363ToDer(ReadOnlySpan<byte> input) 49public static byte[] ConvertDerToIeee1363(ReadOnlySpan<byte> input, int fieldSizeBits) 59internal static int ConvertDerToIeee1363(ReadOnlySpan<byte> input, int fieldSizeBits, Span<byte> destination) 71ReadOnlySpan<byte> rDer = sequenceReader.ReadIntegerBytes(); 72ReadOnlySpan<byte> sDer = sequenceReader.ReadIntegerBytes(); 85private static void CopySignatureField(ReadOnlySpan<byte> signatureField, Span<byte> response)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CngHelpers.cs (3)
144internal delegate void ExportKeyBlobCallback(ReadOnlySpan<byte> blob); 230ReadOnlySpan<char> password, 238ReadOnlySpan<byte> pkcs12TripleDesOidBytes = "1.2.840.113549.1.12.1.3\0"u8; // the Windows APIs for OID strings are ASCII-only
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CngHelpers.SignVerify.cs (5)
15public static unsafe byte[] SignHash(this SafeNCryptKeyHandle keyHandle, ReadOnlySpan<byte> hash, AsymmetricPaddingMode paddingMode, void* pPaddingInfo, int estimatedSize) 49ReadOnlySpan<byte> hash, 69public static unsafe bool TrySignHash(this SafeNCryptKeyHandle keyHandle, ReadOnlySpan<byte> hash, Span<byte> signature, AsymmetricPaddingMode paddingMode, void* pPaddingInfo, out int bytesWritten) 104public static unsafe bool VerifyHash(this SafeNCryptKeyHandle keyHandle, ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature, AsymmetricPaddingMode paddingMode, void* pPaddingInfo)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CngPkcs8.cs (16)
36ReadOnlySpan<byte> passwordBytes, 43ReadOnlySpan<char>.Empty, 49return key.ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char>.Empty, pbeParameters); 58ReadOnlySpan<byte> passwordBytes, 67ReadOnlySpan<char>.Empty, 79ReadOnlySpan<char> password, 88ReadOnlySpan<char> password, 97internal static Pkcs8Response ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead) 116ReadOnlySpan<byte> pkcs8Source = source.Slice(0, len); 155ReadOnlySpan<byte> passwordBytes, 156ReadOnlySpan<byte> source, 204ReadOnlySpan<char> password, 205ReadOnlySpan<byte> source, 273ReadOnlySpan<byte> passwordBytes, 332ReadOnlySpan<char> password, 376private static unsafe AsnWriter? RewritePkcs8ECPrivateKeyWithZeroPublicKey(ReadOnlySpan<byte> source)
src\runtime\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) 673static void SubjectPublicKeyReader(ReadOnlySpan<byte> key, in ValueAlgorithmIdentifierAsn identifier, out CompositeMLDsa dsa) 691/// <inheritdoc cref="ImportEncryptedPkcs8PrivateKey(ReadOnlySpan{char}, ReadOnlySpan{byte})" /> 744public static CompositeMLDsa ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source) 802public static CompositeMLDsa ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source) 814/// <inheritdoc cref="ImportPkcs8PrivateKey(ReadOnlySpan{byte})" />> 859public static CompositeMLDsa ImportPkcs8PrivateKey(ReadOnlySpan<byte> source) 869ReadOnlySpan<byte> privateKeyContents, 889/// <inheritdoc cref="ImportCompositeMLDsaPublicKey(CompositeMLDsaAlgorithm, ReadOnlySpan{byte})" /> 926public static CompositeMLDsa ImportCompositeMLDsaPublicKey(CompositeMLDsaAlgorithm algorithm, ReadOnlySpan<byte> source) 939/// <inheritdoc cref="ImportCompositeMLDsaPrivateKey(CompositeMLDsaAlgorithm, ReadOnlySpan{byte})" /> 976public static CompositeMLDsa ImportCompositeMLDsaPrivateKey(CompositeMLDsaAlgorithm algorithm, ReadOnlySpan<byte> source) 989/// <inheritdoc cref="ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan{char}, PbeParameters)"/> 1031ReadOnlySpan<char> password, 1035PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty); 1075ReadOnlySpan<byte> passwordBytes, 1079PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes); 1088/// <inheritdoc cref="ExportEncryptedPkcs8PrivateKey(ReadOnlySpan{char}, PbeParameters)"/> 1128public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters) 1131PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes); 1173public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters) 1176PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty); 1191/// <inheritdoc cref="TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan{char}, PbeParameters, Span{byte}, out int)"/> 1243ReadOnlySpan<char> password, 1249PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty); 1303ReadOnlySpan<byte> passwordBytes, 1309PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes); 1852private AsnWriter WriteEncryptedPkcs8PrivateKeyToAsnWriter(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters) 1867private AsnWriter WriteEncryptedPkcs8PrivateKeyToAsnWriter(ReadOnlySpan<char> password, PbeParameters pbeParameters) 1912ReadOnlySpan<byte> publicKey = buffer.AsSpan(0, written);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaCng.Windows.cs (8)
69protected override int SignDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, Span<byte> destination) 105protected override bool VerifyDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, ReadOnlySpan<byte> signature) 140ReadOnlySpan<byte> privateKey = KeyFormatHelper.ReadPkcs8([Algorithm.Oid], pkcs8.AsSpan(), out _); 208ReadOnlySpan<byte> keyBytes = PqcBlobHelpers.DecodeCompositeMLDsaBlob(blob, out ReadOnlySpan<char> parameterSet, out string blobType);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaImplementation.cs (2)
14internal static partial CompositeMLDsa ImportCompositeMLDsaPublicKeyImpl(CompositeMLDsaAlgorithm algorithm, ReadOnlySpan<byte> source); 16internal static partial CompositeMLDsa ImportCompositeMLDsaPrivateKeyImpl(CompositeMLDsaAlgorithm algorithm, ReadOnlySpan<byte> source);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaImplementation.Windows.cs (9)
40protected override int SignDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, Span<byte> destination) 50protected override bool VerifyDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, ReadOnlySpan<byte> signature) => 79internal static partial CompositeMLDsa ImportCompositeMLDsaPublicKeyImpl(CompositeMLDsaAlgorithm algorithm, ReadOnlySpan<byte> source) 101internal static partial CompositeMLDsa ImportCompositeMLDsaPrivateKeyImpl(CompositeMLDsaAlgorithm algorithm, ReadOnlySpan<byte> source) 163ReadOnlySpan<byte> keyBytes = PqcBlobHelpers.DecodeCompositeMLDsaBlob( 165out ReadOnlySpan<char> parameterSet,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLKem.cs (32)
299public void Decapsulate(ReadOnlySpan<byte> ciphertext, Span<byte> sharedSecret) 339protected abstract void DecapsulateCore(ReadOnlySpan<byte> ciphertext, Span<byte> sharedSecret); 405public static CompositeMLKem ImportEncapsulationKey(CompositeMLKemAlgorithm algorithm, ReadOnlySpan<byte> source) 483public static CompositeMLKem ImportDecapsulationKey(CompositeMLKemAlgorithm algorithm, ReadOnlySpan<byte> source) 567public static CompositeMLKem ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source) 575static void SubjectPublicKeyReader(ReadOnlySpan<byte> key, in ValueAlgorithmIdentifierAsn identifier, out CompositeMLKem kem) 663public static CompositeMLKem ImportPkcs8PrivateKey(ReadOnlySpan<byte> source) 672ReadOnlySpan<byte> privateKeyContents, 777public static CompositeMLKem ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source) 830public static CompositeMLKem ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source) 945public static CompositeMLKem ImportFromPem(ReadOnlySpan<char> source) 1081public static CompositeMLKem ImportFromEncryptedPem(ReadOnlySpan<char> source, ReadOnlySpan<char> password) 1204public static CompositeMLKem ImportFromEncryptedPem(ReadOnlySpan<char> source, ReadOnlySpan<byte> passwordBytes) 1275public string ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<char> password, PbeParameters pbeParameters) 1278PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty); 1317public string ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters) 1320PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes); 1390public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters) 1393PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty); 1437public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters) 1440PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes); 1539ReadOnlySpan<char> password, 1545PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty); 1599ReadOnlySpan<byte> passwordBytes, 1605PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes); 2154private AsnWriter WriteEncryptedPkcs8PrivateKeyToAsnWriter(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters) 2169private AsnWriter WriteEncryptedPkcs8PrivateKeyToAsnWriter(ReadOnlySpan<char> password, PbeParameters pbeParameters) 2214ReadOnlySpan<byte> encapsulationKey = buffer.AsSpan(0, written);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLKemCng.Windows.cs (4)
67protected override void DecapsulateCore(ReadOnlySpan<byte> ciphertext, Span<byte> sharedSecret) 132ReadOnlySpan<byte> key = KeyFormatHelper.ReadPkcs8([Algorithm.Oid], pkcs8.AsSpan(), out _); 200ReadOnlySpan<byte> keyBytes = PqcBlobHelpers.DecodeCompositeMLKemBlob( 202out ReadOnlySpan<char> parameterSet,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLKemImplementation.cs (2)
12internal static partial CompositeMLKem ImportEncapsulationKeyImpl(CompositeMLKemAlgorithm algorithm, ReadOnlySpan<byte> source); 14internal static partial CompositeMLKem ImportDecapsulationKeyImpl(CompositeMLKemAlgorithm algorithm, ReadOnlySpan<byte> source);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLKemImplementation.Windows.cs (6)
66internal static partial CompositeMLKem ImportEncapsulationKeyImpl(CompositeMLKemAlgorithm algorithm, ReadOnlySpan<byte> source) 74internal static partial CompositeMLKem ImportDecapsulationKeyImpl(CompositeMLKemAlgorithm algorithm, ReadOnlySpan<byte> source) 82protected override void DecapsulateCore(ReadOnlySpan<byte> ciphertext, Span<byte> sharedSecret) 163ReadOnlySpan<byte> source, 191ReadOnlySpan<byte> keyBytes = PqcBlobHelpers.DecodeCompositeMLKemBlob( 193out ReadOnlySpan<char> parameterSet,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\DSACng.ImportExport.cs (11)
58ReadOnlySpan<byte> passwordBytes, 59ReadOnlySpan<byte> source, 67ReadOnlySpan<char> password, 68ReadOnlySpan<byte> source, 76ReadOnlySpan<byte> passwordBytes, 88ReadOnlySpan<char> password, 96ReadOnlySpan<byte>.Empty); 110ReadOnlySpan<byte> passwordBytes, 119ReadOnlySpan<char>.Empty, 131ReadOnlySpan<char> password, 141ReadOnlySpan<byte>.Empty);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\DSACng.SignVerify.cs (8)
25ReadOnlySpan<byte> source = AdjustHashSizeIfNecessary(rgbHash, stackBuf); 37ReadOnlySpan<byte> hash, 43ReadOnlySpan<byte> source = AdjustHashSizeIfNecessary(hash, stackBuf); 82ReadOnlySpan<byte> hash, 83ReadOnlySpan<byte> signature, 87ReadOnlySpan<byte> source = AdjustHashSizeIfNecessary(hash, stackBuf); 112private ReadOnlySpan<byte> AdjustHashSizeIfNecessary(ReadOnlySpan<byte> hash, Span<byte> stackBuf)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\DSAKeyFormatHelper.cs (9)
19ReadOnlySpan<byte> xBytes, 32ReadOnlySpan<byte> xSpan = AsnDecoder.ReadIntegerBytes( 91ReadOnlySpan<byte> yBytes, 175ReadOnlySpan<byte> source, 188ReadOnlySpan<byte> source, 201ReadOnlySpan<byte> source, 202ReadOnlySpan<char> password, 216ReadOnlySpan<byte> source, 217ReadOnlySpan<byte> passwordBytes,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECCng.ImportExport.NamedCurve.cs (2)
85internal static T DecodeEccKeyBlob<T>(ReadOnlySpan<byte> ecBlob, DecodeBlobFunc<T> decodeCallback, bool clearPrivateKey = true) 146ReadOnlySpan<byte> keyBlob,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanCng.ImportExport.cs (12)
77public override void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead) 87ReadOnlySpan<byte> passwordBytes, 88ReadOnlySpan<byte> source, 102ReadOnlySpan<char> password, 103ReadOnlySpan<byte> source, 129ReadOnlySpan<byte> passwordBytes, 141ReadOnlySpan<char> password, 149ReadOnlySpan<byte>.Empty); 163ReadOnlySpan<byte> passwordBytes, 172ReadOnlySpan<char>.Empty, 184ReadOnlySpan<char> password, 194ReadOnlySpan<byte>.Empty);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDsaCng.ImportExport.cs (12)
107public override void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead) 118ReadOnlySpan<byte> passwordBytes, 119ReadOnlySpan<byte> source, 134ReadOnlySpan<char> password, 135ReadOnlySpan<byte> source, 166ReadOnlySpan<byte> passwordBytes, 178ReadOnlySpan<char> password, 186ReadOnlySpan<byte>.Empty); 200ReadOnlySpan<byte> passwordBytes, 209ReadOnlySpan<char>.Empty, 221ReadOnlySpan<char> password, 231ReadOnlySpan<byte>.Empty);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDsaCng.SignVerify.cs (6)
32public override bool TrySignHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 42ReadOnlySpan<byte> hash, 86public override bool VerifyHash(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature) => 90ReadOnlySpan<byte> hash, 91ReadOnlySpan<byte> signature,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Helpers.cs (6)
81internal static bool ContainsNull<T>(this ReadOnlySpan<T> span) 105internal static bool TryCopyToDestination(this ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 117private static int? TryGetHashOidToByteLength(ReadOnlySpan<char> hashOid) 146internal static void ValidateHashLength(ReadOnlySpan<byte> hash, ReadOnlySpan<char> hashAlgorithmOid) 257internal static void ThrowIfAsnInvalidLength(ReadOnlySpan<byte> data)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Hpke.cs (55)
111public static Hpke DeriveKey(HpkeSuite suite, ReadOnlySpan<byte> ikm) 204public static Hpke ImportDecapsulationKey(HpkeSuite suite, ReadOnlySpan<byte> source) 271public static Hpke ImportEncapsulationKey(HpkeSuite suite, ReadOnlySpan<byte> source) 446ReadOnlySpan<byte> plaintext, 449ReadOnlySpan<byte> associatedData = default, 450ReadOnlySpan<byte> info = default) 572ReadOnlySpan<byte> plaintext, 575ReadOnlySpan<byte> associatedData = default, 576ReadOnlySpan<byte> info = default) 633ReadOnlySpan<byte> plaintext, 636ReadOnlySpan<byte> associatedData, 637ReadOnlySpan<byte> info); 682ReadOnlySpan<byte> encapsulatedSecret, 683ReadOnlySpan<byte> ciphertext, 684ReadOnlySpan<byte> associatedData = default, 685ReadOnlySpan<byte> info = default) 819ReadOnlySpan<byte> encapsulatedSecret, 820ReadOnlySpan<byte> ciphertext, 822ReadOnlySpan<byte> associatedData = default, 823ReadOnlySpan<byte> info = default) 873ReadOnlySpan<byte> encapsulatedSecret, 874ReadOnlySpan<byte> ciphertext, 876ReadOnlySpan<byte> associatedData, 877ReadOnlySpan<byte> info); 900public HpkeSender CreateSender(out byte[] encapsulatedSecret, ReadOnlySpan<byte> info = default) 946public HpkeSender CreateSender(Span<byte> encapsulatedSecret, ReadOnlySpan<byte> info = default) 981protected abstract HpkeSender CreateSenderCore(Span<byte> encapsulatedSecret, ReadOnlySpan<byte> info); 1013ReadOnlySpan<byte> encapsulatedSecret, 1014ReadOnlySpan<byte> info = default) 1078ReadOnlySpan<byte> encapsulatedSecret, 1079ReadOnlySpan<byte> info); 1113ReadOnlySpan<byte> psk, 1114ReadOnlySpan<byte> pskId, 1116ReadOnlySpan<byte> info = default) 1214ReadOnlySpan<byte> psk, 1215ReadOnlySpan<byte> pskId, 1217ReadOnlySpan<byte> info = default) 1266ReadOnlySpan<byte> info, 1267ReadOnlySpan<byte> psk, 1268ReadOnlySpan<byte> pskId); 1309ReadOnlySpan<byte> encapsulatedSecret, 1310ReadOnlySpan<byte> psk, 1311ReadOnlySpan<byte> pskId, 1312ReadOnlySpan<byte> info = default) 1408ReadOnlySpan<byte> encapsulatedSecret, 1409ReadOnlySpan<byte> info, 1410ReadOnlySpan<byte> psk, 1411ReadOnlySpan<byte> pskId); 1446private void ThrowIfInfoExceedsLimit(ReadOnlySpan<byte> info) 1456private void ThrowIfInvalidPskInputs(ReadOnlySpan<byte> psk, ReadOnlySpan<byte> pskId) 1487private void ThrowIfInvalidEncapsulatedSecretLength(ReadOnlySpan<byte> encapsulatedSecret) 1498ReadOnlySpan<byte> encapsulatedSecret, 1499ReadOnlySpan<byte> ciphertext, 1500ReadOnlySpan<byte> info)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\HpkeRecipient.cs (11)
66public byte[] Open(ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> associatedData = default) 162ReadOnlySpan<byte> ciphertext, 164ReadOnlySpan<byte> associatedData = default) 203ReadOnlySpan<byte> ciphertext, 205ReadOnlySpan<byte> associatedData); 231public byte[] Export(ReadOnlySpan<byte> exporterContext, int length) 317public void Export(ReadOnlySpan<byte> exporterContext, Span<byte> destination) 350protected abstract void ExportCore(ReadOnlySpan<byte> exporterContext, Span<byte> destination); 376private void ThrowIfExporterContextExceedsLimit(ReadOnlySpan<byte> exporterContext) 388private int GetPlaintextLength(ReadOnlySpan<byte> ciphertext)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\HpkeSender.cs (10)
64public byte[] Seal(ReadOnlySpan<byte> plaintext, ReadOnlySpan<byte> associatedData = default) 144ReadOnlySpan<byte> plaintext, 146ReadOnlySpan<byte> associatedData = default) 182ReadOnlySpan<byte> plaintext, 184ReadOnlySpan<byte> associatedData); 210public byte[] Export(ReadOnlySpan<byte> exporterContext, int length) 296public void Export(ReadOnlySpan<byte> exporterContext, Span<byte> destination) 329protected abstract void ExportCore(ReadOnlySpan<byte> exporterContext, Span<byte> destination); 355private void ThrowIfExporterContextExceedsLimit(ReadOnlySpan<byte> exporterContext)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\HpkeSuite.cs (1)
20internal ReadOnlySpan<byte> SuiteId => _suiteId;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\KeyBlobHelpers.cs (3)
11internal static byte[] ToUnsignedIntegerBytes(this ReadOnlySpan<byte> span) 31internal static void ToUnsignedIntegerBytes(this ReadOnlySpan<byte> span, Span<byte> destination) 59internal static void WriteKeyParameterInteger(this AsnWriter writer, ReadOnlySpan<byte> integer)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.cs (11)
12internal delegate TResult ExportPkcs8PrivateKeyFunc<TResult>(ReadOnlySpan<byte> pkcs8); 15ReadOnlySpan<TChar> password, 21internal delegate void KeyReader<TRet>(ReadOnlySpan<byte> key, in ValueAlgorithmIdentifierAsn algId, out TRet ret); 23internal delegate void KeyReader<TRet, TState>(ReadOnlySpan<byte> key, TState state, in ValueAlgorithmIdentifierAsn algId, out TRet ret) 32ReadOnlySpan<byte> source, 60internal static ReadOnlySpan<byte> ReadSubjectPublicKeyInfo( 62ReadOnlySpan<byte> source, 93ReadOnlySpan<byte> source, 109ReadOnlySpan<byte> source, 139internal static ReadOnlySpan<byte> ReadPkcs8( 141ReadOnlySpan<byte> source,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (44)
15internal delegate TRet ReadOnlySpanFunc<TIn, TRet>(ReadOnlySpan<TIn> span); 19ReadOnlySpan<byte> source, 20ReadOnlySpan<char> password, 29ReadOnlySpan<byte>.Empty, 37ReadOnlySpan<byte> source, 38ReadOnlySpan<char> password, 51ReadOnlySpan<byte>.Empty, 60ReadOnlySpan<byte> source, 61ReadOnlySpan<byte> passwordBytes, 69ReadOnlySpan<char>.Empty, 78ReadOnlySpan<byte> source, 79ReadOnlySpan<byte> passwordBytes, 91ReadOnlySpan<char>.Empty, 101ReadOnlySpan<byte> source, 102ReadOnlySpan<char> password, 103ReadOnlySpan<byte> passwordBytes, 121ReadOnlySpan<byte> source, 122ReadOnlySpan<char> password, 123ReadOnlySpan<byte> passwordBytes, 190ReadOnlySpan<char> password, 196ReadOnlySpan<byte>.Empty, 202ReadOnlySpan<byte> passwordBytes, 207ReadOnlySpan<char>.Empty, 214ReadOnlySpan<char> password, 215ReadOnlySpan<byte> passwordBytes, 285ReadOnlySpan<char> inputPassword, 286ReadOnlySpan<byte> source, 291ReadOnlySpan<byte>.Empty, 297ReadOnlySpan<byte> inputPasswordBytes, 298ReadOnlySpan<byte> source, 302ReadOnlySpan<char>.Empty, 309ReadOnlySpan<char> password, 310ReadOnlySpan<byte> source, 334ReadOnlySpan<byte> passwordBytes, 335ReadOnlySpan<byte> source, 359ReadOnlySpan<char> inputPassword, 360ReadOnlySpan<byte> inputPasswordBytes, 361ReadOnlySpan<byte> source, 403ReadOnlySpan<char> inputPassword, 404ReadOnlySpan<byte> current, 405ReadOnlySpan<char> newPassword, 439ReadOnlySpan<char> inputPassword, 440ReadOnlySpan<byte> current, 441ReadOnlySpan<byte> newPasswordBytes,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (81)
109/// <paramref name="context"/> has a <see cref="ReadOnlySpan{T}.Length"/> in excess of 120public void SignData(ReadOnlySpan<byte> data, Span<byte> destination, ReadOnlySpan<byte> context = default) 192/// <paramref name="context"/> has a <see cref="ReadOnlySpan{T}.Length"/> in excess of 203public bool VerifyData(ReadOnlySpan<byte> data, ReadOnlySpan<byte> signature, ReadOnlySpan<byte> context = default) 286/// <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) 401/// <paramref name="context"/> has a <see cref="ReadOnlySpan{T}.Length"/> in excess of 415public bool VerifyPreHash(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature, string hashAlgorithmOid, ReadOnlySpan<byte> context = default) 500/// <inheritdoc cref="SignMu(ReadOnlySpan{byte})"/> 535public byte[] SignMu(ReadOnlySpan<byte> externalMu) 573/// <seealso cref="VerifyMu(ReadOnlySpan{byte}, ReadOnlySpan{byte})"/> 575public void SignMu(ReadOnlySpan<byte> externalMu, Span<byte> destination) 600protected abstract void SignMuCore(ReadOnlySpan<byte> externalMu, Span<byte> destination); 602/// <inheritdoc cref="VerifyMu(ReadOnlySpan{byte}, ReadOnlySpan{byte})"/> 632public bool VerifyMu(ReadOnlySpan<byte> externalMu, ReadOnlySpan<byte> signature) 654protected abstract bool VerifyMuCore(ReadOnlySpan<byte> externalMu, ReadOnlySpan<byte> signature); 865public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters) 868PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty); 912public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters) 915PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes); 930/// <inheritdoc cref="ExportEncryptedPkcs8PrivateKey(ReadOnlySpan{char}, PbeParameters)"/> 978ReadOnlySpan<char> password, 984PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty); 1038ReadOnlySpan<byte> passwordBytes, 1044PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes); 1059/// <inheritdoc cref="TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan{char}, PbeParameters, Span{byte}, out int)"/> 1103ReadOnlySpan<char> password, 1107PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty); 1147ReadOnlySpan<byte> passwordBytes, 1151PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes); 1160/// <inheritdoc cref="ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan{char}, PbeParameters)"/> 1357public static MLDsa ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source) 1366static void SubjectPublicKeyReader(ReadOnlySpan<byte> key, in ValueAlgorithmIdentifierAsn identifier, out MLDsa mldsa) 1379/// <inheritdoc cref="ImportSubjectPublicKeyInfo(ReadOnlySpan{byte})" /> 1420public static MLDsa ImportPkcs8PrivateKey(ReadOnlySpan<byte> source) 1430/// <inheritdoc cref="ImportPkcs8PrivateKey(ReadOnlySpan{byte})" /> 1483public static MLDsa ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source) 1532public static MLDsa ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source) 1544/// <inheritdoc cref="ImportEncryptedPkcs8PrivateKey(ReadOnlySpan{char}, ReadOnlySpan{byte})" /> 1592public static MLDsa ImportFromPem(ReadOnlySpan<char> source) 1605/// <inheritdoc cref="ImportFromPem(ReadOnlySpan{char})" /> 1676public static MLDsa ImportFromEncryptedPem(ReadOnlySpan<char> source, ReadOnlySpan<char> password) 1740public static MLDsa ImportFromEncryptedPem(ReadOnlySpan<char> source, ReadOnlySpan<byte> passwordBytes) 1750/// <inheritdoc cref="ImportFromEncryptedPem(ReadOnlySpan{char}, ReadOnlySpan{char})" /> 1763/// <inheritdoc cref="ImportFromEncryptedPem(ReadOnlySpan{char}, ReadOnlySpan{byte})" /> 1801public static MLDsa ImportMLDsaPublicKey(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source) 1814/// <inheritdoc cref="ImportMLDsaPublicKey(MLDsaAlgorithm, ReadOnlySpan{byte})" /> 1851public static MLDsa ImportMLDsaPrivateKey(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source) 1864/// <inheritdoc cref="ImportMLDsaPrivateKey(MLDsaAlgorithm, ReadOnlySpan{byte})" /> 1901public static MLDsa ImportMLDsaPrivateSeed(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source) 1914/// <inheritdoc cref="ImportMLDsaPrivateSeed(MLDsaAlgorithm, ReadOnlySpan{byte})" /> 1954protected abstract void SignDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, Span<byte> destination); 1974protected abstract bool VerifyDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, ReadOnlySpan<byte> signature); 1996protected abstract void SignPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, Span<byte> destination); 2020protected abstract bool VerifyPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, ReadOnlySpan<byte> signature); 2082private AsnWriter ExportEncryptedPkcs8PrivateKeyCore(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters) 2111private AsnWriter ExportEncryptedPkcs8PrivateKeyCore(ReadOnlySpan<char> password, PbeParameters pbeParameters) 2177ReadOnlySpan<byte> privateKeyContents,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsaCng.cs (3)
51protected override void SignMuCore(ReadOnlySpan<byte> mu, Span<byte> destination) => 55protected override bool VerifyMuCore(ReadOnlySpan<byte> mu, ReadOnlySpan<byte> signature) =>
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsaCng.Windows.cs (17)
116ReadOnlySpan<byte> seedValue = default; 161ReadOnlySpan<byte> expandedKeyValue = default; 188ReadOnlySpan<byte> seedValue = mldsaPrivateKeyAsn.Seed; 247protected override unsafe void SignDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, Span<byte> destination) 267protected override unsafe bool VerifyDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, ReadOnlySpan<byte> signature) 288ReadOnlySpan<byte> hash, 289ReadOnlySpan<byte> context, 323ReadOnlySpan<byte> hash, 324ReadOnlySpan<byte> context, 326ReadOnlySpan<byte> signature) 379ReadOnlySpan<byte> pkcs8Source = source.AsSpan(0, len); 454ReadOnlySpan<byte> keyBytes = PqcBlobHelpers.DecodeMLDsaBlob(blob, out ReadOnlySpan<char> parameterSet, out string blobType); 486ReadOnlySpan<byte> privateKey = KeyFormatHelper.ReadPkcs8(KnownOids, pkcs8.AsSpan(), out _);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsaImplementation.CreateCng.cs (1)
29(ReadOnlySpan<byte> keyMaterial) => CngKey.Import(keyMaterial, cngBlobFormat));
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsaImplementation.cs (3)
16internal static partial MLDsaImplementation ImportPublicKey(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source); 17internal static partial MLDsaImplementation ImportPrivateKey(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source); 18internal static partial MLDsaImplementation ImportSeed(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsaImplementation.Windows.cs (18)
40protected override void SignDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, Span<byte> destination) 56protected override bool VerifyDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, ReadOnlySpan<byte> signature) => 60ReadOnlySpan<byte> hash, 61ReadOnlySpan<byte> context, 83ReadOnlySpan<byte> hash, 84ReadOnlySpan<byte> context, 86ReadOnlySpan<byte> signature) 100protected override void SignMuCore(ReadOnlySpan<byte> externalMu, Span<byte> destination) => 103protected override bool VerifyMuCore(ReadOnlySpan<byte> externalMu, ReadOnlySpan<byte> signature) => 127internal static partial MLDsaImplementation ImportPublicKey(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source) 143internal static partial MLDsaImplementation ImportPrivateKey(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source) 159internal static partial MLDsaImplementation ImportSeed(MLDsaAlgorithm algorithm, ReadOnlySpan<byte> source) 234ReadOnlySpan<byte> keyBytes = PqcBlobHelpers.DecodeMLDsaBlob( 236out ReadOnlySpan<char> parameterSet,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKem.cs (38)
201public void Decapsulate(ReadOnlySpan<byte> ciphertext, Span<byte> sharedSecret) 272protected abstract void DecapsulateCore(ReadOnlySpan<byte> ciphertext, Span<byte> sharedSecret); 350public static MLKem ImportPrivateSeed(MLKemAlgorithm algorithm, ReadOnlySpan<byte> source) 409public static MLKem ImportDecapsulationKey(MLKemAlgorithm algorithm, ReadOnlySpan<byte> source) 466public static MLKem ImportEncapsulationKey(MLKemAlgorithm algorithm, ReadOnlySpan<byte> source) 813ReadOnlySpan<char> password, 819PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty); 912ReadOnlySpan<byte> passwordBytes, 918PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes); 955public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters) 958PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes); 995public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters) 998PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty); 1069public string ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters) 1072PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes); 1110public string ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<char> password, PbeParameters pbeParameters) 1113PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty); 1183public static MLKem ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source) 1192static void SubjectPublicKeyReader(ReadOnlySpan<byte> key, in ValueAlgorithmIdentifierAsn identifier, out MLKem kem) 1205/// <inheritdoc cref="ImportSubjectPublicKeyInfo(ReadOnlySpan{byte})" /> 1245public static MLKem ImportPkcs8PrivateKey(ReadOnlySpan<byte> source) 1255/// <inheritdoc cref="ImportPkcs8PrivateKey(ReadOnlySpan{byte})" /> 1303public static MLKem ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source) 1348public static MLKem ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source) 1442public static MLKem ImportFromPem(ReadOnlySpan<char> source) 1455/// <inheritdoc cref="ImportFromPem(ReadOnlySpan{char})" /> 1520public static MLKem ImportFromEncryptedPem(ReadOnlySpan<char> source, ReadOnlySpan<char> password) 1578public static MLKem ImportFromEncryptedPem(ReadOnlySpan<char> source, ReadOnlySpan<byte> passwordBytes) 1586/// <inheritdoc cref="ImportFromEncryptedPem(ReadOnlySpan{char}, ReadOnlySpan{char})" /> 1598/// <inheritdoc cref="ImportFromEncryptedPem(ReadOnlySpan{char}, ReadOnlySpan{byte})" /> 1691ReadOnlySpan<byte> privateKeyContents, 1765ReadOnlySpan<TChar> password,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKem.Windows.cs (4)
16ReadOnlySpan<byte> exportedSpan, 38ReadOnlySpan<char> paramSetWithNull = new(pExportedSpan + blobHeaderSize, paramSetSize / sizeof(char)); 39ReadOnlySpan<char> paramSet = paramSetWithNull[0..^1]; 40ReadOnlySpan<char> expectedParamSet = PqcBlobHelpers.GetMLKemParameterSet(Algorithm);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKemCng.Windows.cs (1)
93protected override void DecapsulateCore(ReadOnlySpan<byte> ciphertext, Span<byte> sharedSecret)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKemImplementation.Windows.cs (5)
57internal static MLKemImplementation ImportPrivateSeedImpl(MLKemAlgorithm algorithm, ReadOnlySpan<byte> source) 65internal static MLKemImplementation ImportDecapsulationKeyImpl(MLKemAlgorithm algorithm, ReadOnlySpan<byte> source) 73internal static MLKemImplementation ImportEncapsulationKeyImpl(MLKemAlgorithm algorithm, ReadOnlySpan<byte> source) 81protected override void DecapsulateCore(ReadOnlySpan<byte> ciphertext, Span<byte> sharedSecret) 188private static SafeBCryptKeyHandle ImportKey(KeyBlobMagicNumber kind, MLKemAlgorithm algorithm, ReadOnlySpan<byte> key)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Oids.Shared.cs (1)
97ReadOnlySpan<byte> contentBytes = valueAsnReader.PeekContentBytes();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (34)
19public OptionalReadOnlySpan(ReadOnlySpan<T> value, bool hasValue) 25public ReadOnlySpan<T> Value { get; } 38ReadOnlySpan<char> password, 39ReadOnlySpan<byte> passwordBytes) 81ReadOnlySpan<char> password, 82ReadOnlySpan<byte> passwordBytes, 83ReadOnlySpan<byte> encryptedData, 98ReadOnlySpan<char> password, 99ReadOnlySpan<byte> passwordBytes, 100ReadOnlySpan<byte> encryptedData, 200scoped ReadOnlySpan<byte> effectivePasswordBytes = default; 338ReadOnlySpan<char> password, 339ReadOnlySpan<byte> passwordBytes, 344ReadOnlySpan<byte> salt, 479ReadOnlySpan<char> password, 480ReadOnlySpan<byte> passwordBytes, 481ReadOnlySpan<byte> encryptedData, 485scoped ReadOnlySpan<byte> effectivePasswordBytes = default; 539ReadOnlySpan<byte> password, 540ReadOnlySpan<byte> encryptedData, 738ReadOnlySpan<byte> source = encryptionSchemeParameters.Value; 762ReadOnlySpan<byte> password, 810ReadOnlySpan<byte> saltSpan = pbkdf2Params.Salt.Specified; 846ReadOnlySpan<byte> password, 849ReadOnlySpan<byte> encryptedData, 898ReadOnlySpan<char> password, 901ReadOnlySpan<byte> encryptedData, 929ReadOnlySpan<byte> saltSpan = pbeParameters.Salt; 958ReadOnlySpan<byte> key, 959ReadOnlySpan<byte> iv, 960ReadOnlySpan<byte> encryptedData, 1020ReadOnlySpan<byte> password, 1021ReadOnlySpan<byte> salt, 1156ReadOnlySpan<byte> salt,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PemKeyHelpers.Factory.cs (15)
12internal delegate TAlg ImportFactoryKeyAction<TAlg>(ReadOnlySpan<byte> source); 13internal delegate ImportFactoryKeyAction<TAlg>? FindImportFactoryActionFunc<TAlg>(ReadOnlySpan<char> label); 14internal delegate TAlg ImportFactoryEncryptedKeyAction<TAlg, TPass>(ReadOnlySpan<TPass> password, ReadOnlySpan<byte> source); 16internal static TAlg ImportFactoryPem<TAlg>(ReadOnlySpan<char> source, FindImportFactoryActionFunc<TAlg> callback) where TAlg : class 20ReadOnlySpan<char> foundSlice = default; 23ReadOnlySpan<char> pem = source; 26ReadOnlySpan<char> label = pem[fields.Label]; 68ReadOnlySpan<char> base64Contents = foundSlice[foundFields.Base64Data]; 99ReadOnlySpan<char> source, 100ReadOnlySpan<TPass> password, 105ReadOnlySpan<char> foundSlice = default; 107ReadOnlySpan<char> pem = source; 110ReadOnlySpan<char> label = pem[fields.Label]; 133ReadOnlySpan<char> base64Contents = foundSlice[foundFields.Base64Data];
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PemLabels.cs (2)
19internal static ReadOnlySpan<byte> X509CertificateUtf8 => "CERTIFICATE"u8; 20internal static ReadOnlySpan<byte> Pkcs7CertificateUtf8 => "PKCS7"u8;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (7)
40ReadOnlySpan<byte> passwordBytes, 55ReadOnlySpan<char>.Empty, 58byte[] encrypted = safeContents.Encrypt(ReadOnlySpan<char>.Empty, passwordBytes, pbeParameters); 84ReadOnlySpan<char> password, 100ReadOnlySpan<byte>.Empty); 102byte[] encrypted = safeContents.Encrypt(password, ReadOnlySpan<byte>.Empty, pbeParameters); 149ReadOnlySpan<char> password,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Info.cs (1)
37public bool VerifyMac(ReadOnlySpan<char> password)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (10)
139ReadOnlySpan<byte> passwordBytes, 167ReadOnlySpan<char> password, 199public void Decrypt(ReadOnlySpan<byte> passwordBytes) 201Decrypt(ReadOnlySpan<char>.Empty, passwordBytes); 210public void Decrypt(ReadOnlySpan<char> password) 212Decrypt(password, ReadOnlySpan<byte>.Empty); 215private void Decrypt(ReadOnlySpan<char> password, ReadOnlySpan<byte> passwordBytes) 415ReadOnlySpan<char> password, 416ReadOnlySpan<byte> passwordBytes,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (10)
101public byte[] Encrypt(ReadOnlySpan<char> password, PbeParameters pbeParameters) 108ReadOnlySpan<byte>.Empty); 117public byte[] Encrypt(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters) 123ReadOnlySpan<char>.Empty, 138ReadOnlySpan<char> password, 148ReadOnlySpan<byte>.Empty); 156ReadOnlySpan<byte> passwordBytes, 165ReadOnlySpan<char>.Empty, 174ReadOnlySpan<char> password, 205ReadOnlySpan<byte> passwordBytes,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9AttributeObject.cs (1)
48internal Pkcs9AttributeObject(Oid oid, ReadOnlySpan<byte> encodedData)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9ContentType.cs (1)
28internal Pkcs9ContentType(ReadOnlySpan<byte> rawData)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9DocumentDescription.cs (1)
39internal Pkcs9DocumentDescription(ReadOnlySpan<byte> encodedDocumentDescription)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9DocumentName.cs (1)
39internal Pkcs9DocumentName(ReadOnlySpan<byte> encodedDocumentName)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9LocalKeyId.cs (2)
31public Pkcs9LocalKeyId(ReadOnlySpan<byte> keyId) : base(Oids.LocalKeyIdOid.CopyOid(), EncodeFromKeyId(keyId)) 35private static byte[] EncodeFromKeyId(ReadOnlySpan<byte> keyId)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9MessageDigest.cs (1)
27internal Pkcs9MessageDigest(ReadOnlySpan<byte> rawData)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9SigningTime.cs (1)
40internal Pkcs9SigningTime(ReadOnlySpan<byte> encodedSigningTime)
src\runtime\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\runtime\src\libraries\Common\src\System\Security\Cryptography\PqcBlobHelpers.CompositeMLKem.cs (5)
45ReadOnlySpan<char> parameterSet, 46ReadOnlySpan<byte> data, 94internal static ReadOnlySpan<byte> DecodeCompositeMLKemBlob( 95ReadOnlySpan<byte> blobBytes, 96out ReadOnlySpan<char> parameterSet,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PqcBlobHelpers.cs (20)
79internal delegate TResult EncodeBlobFunc<TResult>(ReadOnlySpan<byte> blob); 82ReadOnlySpan<char> parameterSet, 83ReadOnlySpan<byte> data, 109ReadOnlySpan<char> parameterSet, 110ReadOnlySpan<byte> data, 132internal static ReadOnlySpan<byte> DecodeMLDsaBlob( 133ReadOnlySpan<byte> blob, 134out ReadOnlySpan<char> parameterSet, 137ReadOnlySpan<byte> data = DecodePQDsaBlob(blob, out KeyBlobMagicNumber magic, out parameterSet); 158internal static ReadOnlySpan<byte> DecodeCompositeMLDsaBlob( 159ReadOnlySpan<byte> blob, 160out ReadOnlySpan<char> parameterSet, 163ReadOnlySpan<byte> data = DecodePQDsaBlob(blob, out KeyBlobMagicNumber magic, out parameterSet); 183ReadOnlySpan<char> parameterSet, 184ReadOnlySpan<byte> data, 239private static ReadOnlySpan<byte> DecodePQDsaBlob( 240ReadOnlySpan<byte> blobBytes, 242out ReadOnlySpan<char> parameterSet) 297ReadOnlySpan<byte> blob); 302ReadOnlySpan<byte> key,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSACng.EncryptDecrypt.cs (6)
27public override bool TryEncrypt(ReadOnlySpan<byte> data, Span<byte> destination, RSAEncryptionPadding padding, out int bytesWritten) => 31public override bool TryDecrypt(ReadOnlySpan<byte> data, Span<byte> destination, RSAEncryptionPadding padding, out int bytesWritten) => 119private unsafe bool TryEncryptOrDecrypt(ReadOnlySpan<byte> data, Span<byte> destination, RSAEncryptionPadding padding, bool encrypt, out int bytesWritten) 198private unsafe byte[] EncryptOrDecrypt(SafeNCryptKeyHandle key, ReadOnlySpan<byte> input, AsymmetricPaddingMode paddingMode, void* paddingInfo, bool encrypt) 254private static unsafe bool TryEncryptOrDecrypt(SafeNCryptKeyHandle key, ReadOnlySpan<byte> input, Span<byte> output, AsymmetricPaddingMode paddingMode, void* paddingInfo, bool encrypt, out int bytesWritten) 282ReadOnlySpan<byte> input,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSACng.ImportExport.cs (12)
39public override void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead) 50ReadOnlySpan<byte> passwordBytes, 51ReadOnlySpan<byte> source, 66ReadOnlySpan<char> password, 67ReadOnlySpan<byte> source, 94ReadOnlySpan<byte> passwordBytes, 106ReadOnlySpan<char> password, 114ReadOnlySpan<byte>.Empty); 128ReadOnlySpan<byte> passwordBytes, 137ReadOnlySpan<char>.Empty, 149ReadOnlySpan<char> password, 159ReadOnlySpan<byte>.Empty);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSACng.SignVerify.cs (5)
84public override unsafe bool TrySignHash(ReadOnlySpan<byte> hash, Span<byte> destination, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding, out int bytesWritten) 129return VerifyHash((ReadOnlySpan<byte>)hash, (ReadOnlySpan<byte>)signature, hashAlgorithm, padding); 132public override unsafe bool VerifyHash(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.cs (12)
19ReadOnlySpan<byte> keyData, 32ReadOnlySpan<byte> keyData, 39internal static void ReadRsaPublicKey(ReadOnlySpan<byte> keyData, out int bytesRead) 58ReadOnlySpan<byte> source, 70internal static ReadOnlySpan<byte> ReadSubjectPublicKeyInfo(ReadOnlySpan<byte> source, out int bytesRead) 78internal static ReadOnlySpan<byte> ReadPkcs8(ReadOnlySpan<byte> source, out int bytesRead) 87internal static int CheckPkcs8(ReadOnlySpan<byte> source) 93internal static AsnWriter WriteSubjectPublicKeyInfo(ReadOnlySpan<byte> pkcs1PublicKey) 124ReadOnlySpan<byte> pkcs1PrivateKey, 156return WritePkcs8PrivateKey(ReadOnlySpan<byte>.Empty, pkcs1PrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.Encrypted.cs (4)
9ReadOnlySpan<byte> source, 10ReadOnlySpan<char> password, 24ReadOnlySpan<byte> source, 25ReadOnlySpan<byte> passwordBytes,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.Pkcs1.cs (2)
16ReadOnlySpan<byte> keyData, 82ReadOnlySpan<byte> keyData,
src\runtime\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 unsafe void EncodePss(HashAlgorithmName hashAlgorithmName, ReadOnlySpan<byte> mHash, Span<byte> destination, int keySize) 472internal static unsafe 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 unsafe void Mgf1(IncrementalHash hasher, ReadOnlySpan<byte> mgfSeed, Span<byte> mask) 635private static void Xor(Span<byte> a, ReadOnlySpan<byte> b)
src\runtime\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) 1229static void SubjectPublicKeyReader(ReadOnlySpan<byte> key, in ValueAlgorithmIdentifierAsn identifier, out SlhDsa slhDsa) 1242/// <inheritdoc cref="ImportSubjectPublicKeyInfo(ReadOnlySpan{byte})" /> 1283public static SlhDsa ImportPkcs8PrivateKey(ReadOnlySpan<byte> source) 1291(ReadOnlySpan<byte> key, in ValueAlgorithmIdentifierAsn algId, out SlhDsa ret) => 1309/// <inheritdoc cref="ImportPkcs8PrivateKey(ReadOnlySpan{byte})" />> 1362public static SlhDsa ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source) 1411public static SlhDsa ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source) 1423/// <inheritdoc cref="ImportEncryptedPkcs8PrivateKey(ReadOnlySpan{char}, ReadOnlySpan{byte})" /> 1471public static SlhDsa ImportFromPem(ReadOnlySpan<char> source) 1484/// <inheritdoc cref="ImportFromPem(ReadOnlySpan{char})" /> 1555public static SlhDsa ImportFromEncryptedPem(ReadOnlySpan<char> source, ReadOnlySpan<char> password) 1619public static SlhDsa ImportFromEncryptedPem(ReadOnlySpan<char> source, ReadOnlySpan<byte> passwordBytes) 1629/// <inheritdoc cref="ImportFromEncryptedPem(ReadOnlySpan{char}, ReadOnlySpan{char})" /> 1642/// <inheritdoc cref="ImportFromEncryptedPem(ReadOnlySpan{char}, ReadOnlySpan{byte})" /> 1680public static SlhDsa ImportSlhDsaPublicKey(SlhDsaAlgorithm algorithm, ReadOnlySpan<byte> source) 1694/// <inheritdoc cref="ImportSlhDsaPublicKey(SlhDsaAlgorithm, ReadOnlySpan{byte})" /> 1730public static SlhDsa ImportSlhDsaPrivateKey(SlhDsaAlgorithm algorithm, ReadOnlySpan<byte> source) 1744/// <inheritdoc cref="ImportSlhDsaPrivateKey(SlhDsaAlgorithm, ReadOnlySpan{byte})" /> 1783protected abstract void SignDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, Span<byte> destination); 1803protected abstract bool VerifyDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, ReadOnlySpan<byte> signature); 1824protected abstract void SignPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, Span<byte> destination); 1847protected abstract bool VerifyPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, ReadOnlySpan<byte> signature); 1894private AsnWriter ExportEncryptedPkcs8PrivateKeyCore(ReadOnlySpan<char> password, PbeParameters pbeParameters) 1922private AsnWriter ExportEncryptedPkcs8PrivateKeyCore(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters)
src\runtime\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\runtime\src\libraries\Common\src\System\Security\Cryptography\SlhDsaImplementation.cs (3)
15internal static partial SlhDsaImplementation ImportPublicKey(SlhDsaAlgorithm algorithm, ReadOnlySpan<byte> source); 16internal static partial SlhDsaImplementation ImportPkcs8PrivateKeyValue(SlhDsaAlgorithm algorithm, ReadOnlySpan<byte> source); 17internal static partial SlhDsaImplementation ImportPrivateKey(SlhDsaAlgorithm algorithm, ReadOnlySpan<byte> source);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SlhDsaImplementation.Windows.cs (13)
20protected override void SignDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, Span<byte> destination) => 23protected override bool VerifyDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, ReadOnlySpan<byte> signature) => 26protected override void SignPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, Span<byte> destination) => 29protected override bool VerifyPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, ReadOnlySpan<byte> signature) => 41internal static partial SlhDsaImplementation ImportPublicKey(SlhDsaAlgorithm algorithm, ReadOnlySpan<byte> source) => 44internal static partial SlhDsaImplementation ImportPkcs8PrivateKeyValue(SlhDsaAlgorithm algorithm, ReadOnlySpan<byte> source) => 47internal static partial SlhDsaImplementation ImportPrivateKey(SlhDsaAlgorithm algorithm, ReadOnlySpan<byte> source) =>
src\runtime\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\runtime\src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdfImplementationBase.cs (4)
8internal abstract void DeriveBytes(ReadOnlySpan<byte> label, ReadOnlySpan<byte> context, Span<byte> destination); 10internal abstract void DeriveBytes(ReadOnlySpan<char> label, ReadOnlySpan<char> context, Span<byte> destination);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdfImplementationCng.cs (10)
34internal override unsafe void DeriveBytes(ReadOnlySpan<byte> label, ReadOnlySpan<byte> context, Span<byte> destination) 88internal override unsafe void DeriveBytes(ReadOnlySpan<char> label, ReadOnlySpan<char> context, Span<byte> destination) 98ReadOnlySpan<byte> key, 100ReadOnlySpan<byte> label, 101ReadOnlySpan<byte> context, 113ReadOnlySpan<byte> key, 115ReadOnlySpan<char> label, 116ReadOnlySpan<char> context,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Utf8DataEncoding.cs (2)
15internal Utf8DataEncoding(ReadOnlySpan<char> data, Span<byte> stackBuffer) 26internal ReadOnlySpan<byte> Utf8Bytes => _buffer;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellman.cs (41)
182public void DeriveRawSecretAgreement(ReadOnlySpan<byte> otherPartyPublicKey, Span<byte> destination) 486ReadOnlySpan<byte> passwordBytes, 492PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes); 535ReadOnlySpan<char> password, 541PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty); 616public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters) 619PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes); 652public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters) 655PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty); 718public string ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters) 721PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, ReadOnlySpan<char>.Empty, passwordBytes); 755public string ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<char> password, PbeParameters pbeParameters) 758PasswordBasedEncryption.ValidatePbeParameters(pbeParameters, password, ReadOnlySpan<byte>.Empty); 826protected abstract void DeriveRawSecretAgreementCore(ReadOnlySpan<byte> otherPartyPublicKey, Span<byte> destination); 910public static X25519DiffieHellman ImportPrivateKey(ReadOnlySpan<byte> source) 966public static X25519DiffieHellman ImportPublicKey(ReadOnlySpan<byte> source) 1001public static X25519DiffieHellman ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source) 1017ReadOnlySpan<byte> key, 1035/// <inheritdoc cref="ImportSubjectPublicKeyInfo(ReadOnlySpan{byte})" /> 1075public static X25519DiffieHellman ImportPkcs8PrivateKey(ReadOnlySpan<byte> source) 1085/// <inheritdoc cref="ImportPkcs8PrivateKey(ReadOnlySpan{byte})" /> 1133public static X25519DiffieHellman ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source) 1178public static X25519DiffieHellman ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source) 1276public static X25519DiffieHellman ImportFromPem(ReadOnlySpan<char> source) 1289/// <inheritdoc cref="ImportFromPem(ReadOnlySpan{char})" /> 1337public static X25519DiffieHellman ImportFromEncryptedPem(ReadOnlySpan<char> source, ReadOnlySpan<char> password) 1378public static X25519DiffieHellman ImportFromEncryptedPem(ReadOnlySpan<char> source, ReadOnlySpan<byte> passwordBytes) 1386/// <inheritdoc cref="ImportFromEncryptedPem(ReadOnlySpan{char}, ReadOnlySpan{char})" /> 1397/// <inheritdoc cref="ImportFromEncryptedPem(ReadOnlySpan{char}, ReadOnlySpan{byte})" /> 1443ReadOnlySpan<byte> spkiPreamble = 1519ReadOnlySpan<byte> pkcs8Preamble = 1553ReadOnlySpan<TChar> password, 1584ReadOnlySpan<byte> privateKeyContents, 1594ReadOnlySpan<byte> privateKey = reader.ReadOctetString(); 1610private static void ThrowIfPublicKeyWrongSize(ReadOnlySpan<byte> publicKey, string paramName)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellmanCng.cs (1)
59protected override partial void DeriveRawSecretAgreementCore(ReadOnlySpan<byte> otherPartyPublicKey, Span<byte> destination);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellmanCng.Windows.cs (3)
52protected override partial void DeriveRawSecretAgreementCore(ReadOnlySpan<byte> otherPartyPublicKey, Span<byte> destination) 59private void DeriveRawSecretAgreementWithPublicKey(ReadOnlySpan<byte> otherPartyPublicKey, Span<byte> destination) 249static (ReadOnlySpan<byte> key, byte[] privateKey, in ValueAlgorithmIdentifierAsn algId, out object? ret) =>
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellmanImplementation.Windows.cs (6)
75protected override void DeriveRawSecretAgreementCore(ReadOnlySpan<byte> otherPartyPublicKey, Span<byte> destination) 84private void DeriveRawSecretAgreementWithKey(ReadOnlySpan<byte> otherPartyPublicKey, Span<byte> destination) 188internal static X25519DiffieHellmanImplementation ImportPrivateKeyImpl(ReadOnlySpan<byte> source) 195internal static X25519DiffieHellmanImplementation ImportPublicKeyImpl(ReadOnlySpan<byte> source) 208ReadOnlySpan<byte> source, 265private static SafeBCryptKeyHandle ImportKey(bool privateKey, ReadOnlySpan<byte> key, out byte preservation)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519WindowsHelpers.cs (8)
16private static ReadOnlySpan<byte> FieldPrime => 22internal static void ExportKey(ReadOnlySpan<byte> exported, bool privateKey, Span<byte> destination) 51ReadOnlySpan<byte> y = new(pExportedSpan + blobHeaderSize + ElementSize, ElementSize); 61ReadOnlySpan<byte> d = new(pExportedSpan + blobHeaderSize + ElementSize * 2, ElementSize); 66ReadOnlySpan<byte> x = new(pExportedSpan + blobHeaderSize, ElementSize); 73internal static CryptoPoolLease CreateCngBlob(ReadOnlySpan<byte> key, bool privateKey, out byte preservation) 152internal static bool ReducePublicKey(ReadOnlySpan<byte> publicKey, Span<byte> reduced) 183private static bool IsNonCanonicalPublicKey(ReadOnlySpan<byte> key)
src\runtime\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\runtime\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, 793static bool HasCapiValue(ReadOnlySpan<byte> encodedAttribute, out bool isRsa) 985ReadOnlySpan<char> passwordSpan, 986ReadOnlySpan<byte> encryptedContent) 1082internal void UnshroudKeys(ref ReadOnlySpan<char> password) 1195internal unsafe ArraySegment<byte> ToPfx(ReadOnlySpan<char> password)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
101public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 102public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 103public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 209public void Append(scoped ReadOnlySpan<char> value)
System\Security\Cryptography\Aes.cs (29)
81/// <inheritdoc cref="EncryptKeyWrap(ReadOnlySpan{byte})" /> 100public byte[] EncryptKeyWrap(ReadOnlySpan<byte> plaintext) 130public void EncryptKeyWrap(ReadOnlySpan<byte> plaintext, Span<byte> destination) 149/// <inheritdoc cref="DecryptKeyWrap(ReadOnlySpan{byte})" /> 172public byte[] DecryptKeyWrap(ReadOnlySpan<byte> ciphertext) 221public int DecryptKeyWrap(ReadOnlySpan<byte> ciphertext, Span<byte> destination) 254public bool TryDecryptKeyWrap(ReadOnlySpan<byte> ciphertext, Span<byte> destination, out int bytesWritten) 317protected virtual int DecryptKeyWrapCore(ReadOnlySpan<byte> source, Span<byte> destination) 355protected virtual void EncryptKeyWrapCore(ReadOnlySpan<byte> source, Span<byte> destination) 429public byte[] EncryptKeyWrapPadded(ReadOnlySpan<byte> plaintext) 457public void EncryptKeyWrapPadded(ReadOnlySpan<byte> plaintext, Span<byte> destination) 504/// <paramref name="ciphertext"/> has a <see cref="ReadOnlySpan{T}.Length"/> that does not correspond 507public byte[] DecryptKeyWrapPadded(ReadOnlySpan<byte> ciphertext) 527/// <paramref name="ciphertext"/> has a <see cref="ReadOnlySpan{T}.Length"/> that does not correspond 544public int DecryptKeyWrapPadded(ReadOnlySpan<byte> ciphertext, Span<byte> destination) 572/// <paramref name="ciphertext"/> has a <see cref="ReadOnlySpan{T}.Length"/> that does not correspond 582public bool TryDecryptKeyWrapPadded(ReadOnlySpan<byte> ciphertext, Span<byte> destination, out int bytesWritten) 683protected virtual unsafe int DecryptKeyWrapPaddedCore(ReadOnlySpan<byte> source, Span<byte> destination) 693ReadOnlySpan<byte> source, 696Func<TState, ReadOnlySpan<byte>, Span<byte>, int> decryptEcb) 752protected virtual unsafe void EncryptKeyWrapPaddedCore(ReadOnlySpan<byte> source, Span<byte> destination) 762ReadOnlySpan<byte> source, 765Func<TState, ReadOnlySpan<byte>, Span<byte>, int> encryptEcb) 814ReadOnlySpan<byte> source, 817Func<TState, ReadOnlySpan<byte>, Span<byte>, int> encryptEcb) 853ReadOnlySpan<byte> source, 856Func<TState, ReadOnlySpan<byte>, Span<byte>, int> decryptEcb) 888private static int GetKeyWrapCiphertextLength(ReadOnlySpan<byte> plaintext) 911private static int GetKeyWrapPlaintextLength(ReadOnlySpan<byte> ciphertext)
System\Security\Cryptography\AesCcm.cs (14)
25public AesCcm(ReadOnlySpan<byte> key) 52Encrypt((ReadOnlySpan<byte>)nonce, plaintext, ciphertext, tag, associatedData); 56ReadOnlySpan<byte> nonce, 57ReadOnlySpan<byte> plaintext, 60ReadOnlySpan<byte> associatedData = default) 73Decrypt((ReadOnlySpan<byte>)nonce, ciphertext, tag, plaintext, associatedData); 77ReadOnlySpan<byte> nonce, 78ReadOnlySpan<byte> ciphertext, 79ReadOnlySpan<byte> tag, 81ReadOnlySpan<byte> associatedData = default) 88ReadOnlySpan<byte> plaintext, 89ReadOnlySpan<byte> ciphertext, 90ReadOnlySpan<byte> nonce, 91ReadOnlySpan<byte> tag)
System\Security\Cryptography\AesCcm.Windows.cs (8)
17private void ImportKey(ReadOnlySpan<byte> key) 23ReadOnlySpan<byte> nonce, 24ReadOnlySpan<byte> plaintext, 27ReadOnlySpan<byte> associatedData = default) 33ReadOnlySpan<byte> nonce, 34ReadOnlySpan<byte> ciphertext, 35ReadOnlySpan<byte> tag, 37ReadOnlySpan<byte> associatedData = default)
System\Security\Cryptography\AesCng.Windows.cs (11)
152ReadOnlySpan<byte> ciphertext, 170ReadOnlySpan<byte> plaintext, 188ReadOnlySpan<byte> plaintext, 189ReadOnlySpan<byte> iv, 207ReadOnlySpan<byte> ciphertext, 208ReadOnlySpan<byte> iv, 226ReadOnlySpan<byte> ciphertext, 227ReadOnlySpan<byte> iv, 249ReadOnlySpan<byte> plaintext, 250ReadOnlySpan<byte> iv, 354ReadOnlySpan<byte> iv,
System\Security\Cryptography\AesCryptoServiceProvider.cs (1)
65protected override void SetKeyCore(ReadOnlySpan<byte> key) => _impl.SetKey(key);
System\Security\Cryptography\AesGcm.cs (1)
16public AesGcm(ReadOnlySpan<byte> key)
System\Security\Cryptography\AesImplementation.cs (14)
116protected override void SetKeyCore(ReadOnlySpan<byte> key) 125ReadOnlySpan<byte> ciphertext, 143ReadOnlySpan<byte> plaintext, 161ReadOnlySpan<byte> plaintext, 162ReadOnlySpan<byte> iv, 180ReadOnlySpan<byte> ciphertext, 181ReadOnlySpan<byte> iv, 199ReadOnlySpan<byte> ciphertext, 200ReadOnlySpan<byte> iv, 230ReadOnlySpan<byte> plaintext, 231ReadOnlySpan<byte> iv, 267private UniversalCryptoTransform CreateTransform(ReadOnlySpan<byte> rgbKey, byte[]? rgbIV, bool encrypting) 310ReadOnlySpan<byte> iv, 346private void SetKeyCoreUnchecked(ReadOnlySpan<byte> key)
System\Security\Cryptography\AesImplementation.Windows.cs (5)
15ReadOnlySpan<byte> key, 30ReadOnlySpan<byte> key, 31ReadOnlySpan<byte> iv, 49protected override void EncryptKeyWrapPaddedCore(ReadOnlySpan<byte> source, Span<byte> destination) 74protected override int DecryptKeyWrapPaddedCore(ReadOnlySpan<byte> source, Span<byte> destination)
System\Security\Cryptography\AesManaged.cs (1)
63protected override void SetKeyCore(ReadOnlySpan<byte> key) => _impl.SetKey(key);
System\Security\Cryptography\AsnEncodedData.cs (4)
30public AsnEncodedData(ReadOnlySpan<byte> rawData) 60public AsnEncodedData(Oid? oid, ReadOnlySpan<byte> rawData) 75public AsnEncodedData(string oid, ReadOnlySpan<byte> rawData) 143private void Reset(Oid? oid, ReadOnlySpan<byte> rawData)
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\AsymmetricAlgorithmHelpers.Ansi.cs (4)
15ReadOnlySpan<byte> x, 16ReadOnlySpan<byte> y, 17ReadOnlySpan<byte> d, 39ReadOnlySpan<byte> ansiKey,
System\Security\Cryptography\AsymmetricAlgorithmHelpers.Der.cs (3)
37ReadOnlySpan<byte> signature, 56ReadOnlySpan<byte> signature, 84ReadOnlySpan<byte> signature)
System\Security\Cryptography\Base64Transforms.cs (5)
48ReadOnlySpan<byte> input = new ReadOnlySpan<byte>(inputBuffer, inputOffset, inputCount); 69ReadOnlySpan<byte> input = new ReadOnlySpan<byte>(inputBuffer, inputOffset, inputCount); 151ReadOnlySpan<byte> inputBufferSpan = inputBuffer.AsSpan(inputOffset, inputCount); 196ReadOnlySpan<byte> inputBufferSpan = inputBuffer.AsSpan(inputOffset, inputCount); 237private Span<byte> AppendInputBuffers(ReadOnlySpan<byte> inputBuffer, Span<byte> transformBuffer)
System\Security\Cryptography\BasicSymmetricCipher.cs (2)
30public abstract int Transform(ReadOnlySpan<byte> input, Span<byte> output); 32public abstract int TransformFinal(ReadOnlySpan<byte> input, Span<byte> output);
System\Security\Cryptography\BasicSymmetricCipherBCrypt.cs (3)
15public BasicSymmetricCipherBCrypt(SafeAlgorithmHandle algorithm, CipherMode cipherMode, int blockSizeInBytes, int paddingSizeInBytes, ReadOnlySpan<byte> key, bool ownsParentHandle, byte[]? iv, bool encrypting) 38public override int Transform(ReadOnlySpan<byte> input, Span<byte> output) => 41public override int TransformFinal(ReadOnlySpan<byte> input, Span<byte> output)
System\Security\Cryptography\BasicSymmetricCipherCsp.cs (3)
64public override int Transform(ReadOnlySpan<byte> input, Span<byte> output) 69public override int TransformFinal(ReadOnlySpan<byte> input, Span<byte> output) 92private int Transform(ReadOnlySpan<byte> input, Span<byte> output, bool isFinal)
System\Security\Cryptography\BasicSymmetricCipherLiteBCrypt.cs (6)
23ReadOnlySpan<byte> key, 25ReadOnlySpan<byte> iv, 45public int Transform(ReadOnlySpan<byte> input, Span<byte> output) 83int BCryptTransform(ReadOnlySpan<byte> input, Span<byte> output) 91public void Reset(ReadOnlySpan<byte> iv) 99public int TransformFinal(ReadOnlySpan<byte> input, Span<byte> output)
System\Security\Cryptography\BasicSymmetricCipherLiteNCrypt.cs (5)
35ReadOnlySpan<byte> iv, 55public int Transform(ReadOnlySpan<byte> input, Span<byte> output) 93int NCryptTransform(ReadOnlySpan<byte> input, Span<byte> output) 117public unsafe void Reset(ReadOnlySpan<byte> iv) 142public int TransformFinal(ReadOnlySpan<byte> input, Span<byte> output)
System\Security\Cryptography\BasicSymmetricCipherNCrypt.cs (2)
24public sealed override int Transform(ReadOnlySpan<byte> input, Span<byte> output) => _cipher.Transform(input, output); 26public sealed override int TransformFinal(ReadOnlySpan<byte> input, Span<byte> output)
System\Security\Cryptography\CapiHelper.Windows.cs (4)
21private static ReadOnlySpan<byte> RgbPubKey => 904ReadOnlySpan<byte> input, 943ReadOnlySpan<byte> input, 1459ReadOnlySpan<byte> pbData,
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\ChaCha20Poly1305.Windows.cs (8)
17private void ImportKey(ReadOnlySpan<byte> key) 23ReadOnlySpan<byte> nonce, 24ReadOnlySpan<byte> plaintext, 27ReadOnlySpan<byte> associatedData = default) 33ReadOnlySpan<byte> nonce, 34ReadOnlySpan<byte> ciphertext, 35ReadOnlySpan<byte> tag, 37ReadOnlySpan<byte> associatedData = default)
System\Security\Cryptography\CngHelpers.cs (1)
226ReadOnlySpan<byte> rsaBlob,
System\Security\Cryptography\CngKey.EC.cs (2)
82internal static unsafe CngAlgorithm EcdsaCurveNameToAlgorithm(ReadOnlySpan<char> name) 108internal static unsafe CngAlgorithm EcdhCurveNameToAlgorithm(ReadOnlySpan<char> name)
System\Security\Cryptography\CngKey.Export.cs (2)
45ReadOnlySpan<char> password, 63ReadOnlySpan<char> password,
System\Security\Cryptography\CngKey.Import.cs (6)
20internal static CngKey Import(ReadOnlySpan<byte> keyBlob, CngKeyBlobFormat format) 43ReadOnlySpan<byte> keyBlob, 44ReadOnlySpan<char> password) 50ReadOnlySpan<byte> keyBlob, 51ReadOnlySpan<char> password, 115ReadOnlySpan<byte> keyBlob,
System\Security\Cryptography\CngPkcs8.cs (3)
23private static Pkcs8Response ImportPkcs8(ReadOnlySpan<byte> keyBlob) 35ReadOnlySpan<byte> keyBlob, 36ReadOnlySpan<char> password)
System\Security\Cryptography\CngProperty.cs (1)
37public CngProperty(string name, ReadOnlySpan<byte> value, CngPropertyOptions options)
System\Security\Cryptography\CngSymmetricAlgorithmCore.cs (5)
152public ILiteSymmetricCipher CreateLiteSymmetricCipher(ReadOnlySpan<byte> iv, bool encrypting, CipherMode mode, int feedbackSizeInBits) 163ReadOnlySpan<byte> key, 164ReadOnlySpan<byte> iv, 234ReadOnlySpan<byte> iv, 309private byte[] CopyAndValidateKey(ReadOnlySpan<byte> rgbKey)
System\Security\Cryptography\ConcurrentSafeKmac.cs (5)
18internal ConcurrentSafeKmac(string algorithmId, ReadOnlySpan<byte> key, ReadOnlySpan<byte> customizationString, bool xof) 28public void Append(ReadOnlySpan<byte> data) 68internal unsafe bool VerifyCurrentHash(ReadOnlySpan<byte> hash) 97internal unsafe bool VerifyHashAndReset(ReadOnlySpan<byte> hash)
System\Security\Cryptography\CryptographicOperations.cs (25)
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) 80public static bool FixedTimeEquals(ReadOnlySpan<byte> source, byte value) 154public static byte[] HashData(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> source) 187public static int HashData(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> source, Span<byte> destination) 223public static bool TryHashData(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 458public static byte[] HmacData(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> key, ReadOnlySpan<byte> source) 494ReadOnlySpan<byte> key, 495ReadOnlySpan<byte> source, 535ReadOnlySpan<byte> key, 536ReadOnlySpan<byte> source, 612public static byte[] HmacData(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> key, Stream source) 650public static int HmacData(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> key, Stream source, Span<byte> destination) 829ReadOnlySpan<byte> key, 830ReadOnlySpan<byte> source, 831ReadOnlySpan<byte> hash) 870/// <inheritdoc cref="VerifyHmac(HashAlgorithmName, ReadOnlySpan{byte}, ReadOnlySpan{byte}, ReadOnlySpan{byte})" /> 922public static unsafe bool VerifyHmac(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> key, Stream source, ReadOnlySpan<byte> hash) 962/// <inheritdoc cref="VerifyHmac(HashAlgorithmName, ReadOnlySpan{byte}, Stream, ReadOnlySpan{byte})" />
System\Security\Cryptography\CryptoStream.cs (1)
503public override void Write(ReadOnlySpan<byte> buffer)
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\DesImplementation.Windows.cs (2)
29ReadOnlySpan<byte> key, 30ReadOnlySpan<byte> iv,
System\Security\Cryptography\DSA.cs (42)
223ReadOnlySpan<byte> data, 432protected virtual unsafe 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\DSACng.ImportExport.cs (2)
73private byte[] ExportEncryptedPkcs8(ReadOnlySpan<char> pkcs8Password, int kdfCount) 79ReadOnlySpan<char> pkcs8Password,
System\Security\Cryptography\DSACryptoServiceProvider.Windows.cs (4)
365ReadOnlySpan<byte> passwordBytes, 366ReadOnlySpan<byte> source, 374ReadOnlySpan<char> password, 375ReadOnlySpan<byte> source,
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\EccKeyFormatHelper.cs (15)
26ReadOnlySpan<byte> source, 39ReadOnlySpan<byte> source, 40ReadOnlySpan<char> password, 54ReadOnlySpan<byte> source, 55ReadOnlySpan<byte> passwordBytes, 68internal static ECParameters FromECPrivateKey(ReadOnlySpan<byte> key, out int bytesRead) 91ReadOnlySpan<byte> keyData, 116ReadOnlySpan<byte> publicKeyBytes = key.PublicKey; 169ReadOnlySpan<byte> key, 178ReadOnlySpan<byte> publicKeyBytes = key; 229ReadOnlySpan<byte> algIdParameters = algId.Parameters; 303ReadOnlySpan<byte> primeValue = primeReader.ReadIntegerBytes(); 421ReadOnlySpan<byte> baseSpan = specifiedParameters.Base; 481ReadOnlySpan<byte> encodedAttributes = default) 498private static AsnWriter? WritePrivateKeyInfoAttributes(ReadOnlySpan<byte> encodedAttributes)
System\Security\Cryptography\ECDiffieHellmanCng.cs (2)
229private byte[] ExportEncryptedPkcs8(ReadOnlySpan<char> pkcs8Password, int kdfCount) 235ReadOnlySpan<char> pkcs8Password,
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 unsafe 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 unsafe 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\ECDsaCng.cs (2)
174private byte[] ExportEncryptedPkcs8(ReadOnlySpan<char> pkcs8Password, int kdfCount) 180ReadOnlySpan<char> pkcs8Password,
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\FixedMemoryKeyBox.cs (7)
12internal FixedMemoryKeyBox(ReadOnlySpan<byte> key) : base(IntPtr.Zero, ownsHandle: true) 20internal ReadOnlySpan<byte> DangerousKeySpan => new ReadOnlySpan<byte>((void*)handle, _length); 33Func<TState, ReadOnlySpan<byte>, TRet> func) 52ReadOnlySpan<byte> state1, 54Func<ReadOnlySpan<byte>, TState, ReadOnlySpan<byte>, TRet> func) 76Action<TState1, TState2, TState3, ReadOnlySpan<byte>> func)
System\Security\Cryptography\HashAlgorithm.cs (2)
53public bool TryComputeHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 251protected virtual void HashCore(ReadOnlySpan<byte> source)
System\Security\Cryptography\HashProvider.cs (1)
32public abstract void AppendHashData(ReadOnlySpan<byte> data);
System\Security\Cryptography\HashProviderCng.cs (2)
29internal HashProviderCng(string hashAlgId, ReadOnlySpan<byte> key, bool isHmac) 62public sealed override void AppendHashData(ReadOnlySpan<byte> source)
System\Security\Cryptography\HashProviderDispenser.Windows.cs (12)
25public static HashProvider CreateMacProvider(string hashAlgorithmId, ReadOnlySpan<byte> key) 99ReadOnlySpan<byte> key, 100ReadOnlySpan<byte> source, 102ReadOnlySpan<byte> customizationString, 114ReadOnlySpan<byte> key, 115ReadOnlySpan<byte> source, 146public static void HashDataXof(string hashAlgorithmId, ReadOnlySpan<byte> source, Span<byte> destination) 152public static int HashData(string hashAlgorithmId, ReadOnlySpan<byte> source, Span<byte> destination) 184ReadOnlySpan<byte> source, 185ReadOnlySpan<byte> key, 293ReadOnlySpan<byte> key, 294ReadOnlySpan<byte> source,
System\Security\Cryptography\HashStatic.cs (3)
31internal static byte[] HashData(ReadOnlySpan<byte> source) 41internal static int HashData(ReadOnlySpan<byte> source, Span<byte> destination) 49internal static bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)
System\Security\Cryptography\Helpers.cs (17)
93ReadOnlySpan<char> s = hexString; 165ReadOnlySpan<byte> input = encodedOctetString.Span; 170out ReadOnlySpan<byte> primitive, 276internal static unsafe void ValidateDer(ReadOnlySpan<byte> encodedValue) 329ReadOnlySpan<byte> content = reader.PeekContentBytes(); 367internal static unsafe ref readonly byte GetNonNullPinnableReference(ReadOnlySpan<byte> buffer) 380internal static ReadOnlySpan<byte> ArrayToSpanOrThrow( 505ReadOnlySpan<byte> encodedMessage, 514ReadOnlySpan<byte> hash, 515ReadOnlySpan<byte> context, 516ReadOnlySpan<char> hashAlgorithmOid, 528ReadOnlySpan<byte> hash, 529ReadOnlySpan<byte> context, 530ReadOnlySpan<char> hashAlgorithmOid, 542ReadOnlySpan<byte> hash, 543ReadOnlySpan<byte> context, 544ReadOnlySpan<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\HKDF.Windows.cs (11)
32ReadOnlySpan<byte> ikm, 33ReadOnlySpan<byte> salt, 43ReadOnlySpan<byte> prk, 45ReadOnlySpan<byte> info) 66ReadOnlySpan<byte> ikm, 68ReadOnlySpan<byte> salt, 69ReadOnlySpan<byte> info) 148ReadOnlySpan<byte> secret, 149ReadOnlySpan<byte> info, 150ReadOnlySpan<byte> salt, 171ReadOnlySpan<byte> infoBlob;
System\Security\Cryptography\HKDFManagedImplementation.cs (8)
12internal static unsafe void Extract(HashAlgorithmName hashAlgorithmName, ReadOnlySpan<byte> ikm, ReadOnlySpan<byte> salt, Span<byte> prk) 18internal static unsafe void Expand(HashAlgorithmName hashAlgorithmName, int hashLength, ReadOnlySpan<byte> prk, Span<byte> output, ReadOnlySpan<byte> info) 29scoped ReadOnlySpan<byte> infoBuffer; 85internal static unsafe void DeriveKey(HashAlgorithmName hashAlgorithmName, int hashLength, ReadOnlySpan<byte> ikm, Span<byte> output, ReadOnlySpan<byte> salt, ReadOnlySpan<byte> info)
System\Security\Cryptography\HMAC.cs (1)
65protected override void HashCore(ReadOnlySpan<byte> source) =>
System\Security\Cryptography\HMACCommon.cs (4)
21this(hashAlgorithmId, (ReadOnlySpan<byte>)key, blockSize) 28internal HMACCommon(string hashAlgorithmId, ReadOnlySpan<byte> key, int blockSize) 62private byte[]? ChangeKeyImpl(ReadOnlySpan<byte> key) 121public void AppendHashData(ReadOnlySpan<byte> source) =>
System\Security\Cryptography\HMACMD5.cs (19)
78protected override void HashCore(ReadOnlySpan<byte> source) => 111public static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source) 128public static int HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination) 147public static bool TryHashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 173public static int HashData(ReadOnlySpan<byte> key, Stream source, Span<byte> destination) 191public static byte[] HashData(ReadOnlySpan<byte> key, Stream source) 310public static bool Verify(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, ReadOnlySpan<byte> hash) 315/// <inheritdoc cref="Verify(ReadOnlySpan{byte}, ReadOnlySpan{byte}, ReadOnlySpan{byte})" /> 348public static bool Verify(ReadOnlySpan<byte> key, Stream source, ReadOnlySpan<byte> hash) 356/// <inheritdoc cref="Verify(ReadOnlySpan{byte}, Stream, ReadOnlySpan{byte})" />
System\Security\Cryptography\HMACSHA1.cs (19)
81protected override void HashCore(ReadOnlySpan<byte> source) => 112public static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source) 128public static int HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination) 146public static bool TryHashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 171public static int HashData(ReadOnlySpan<byte> key, Stream source, Span<byte> destination) 188public static byte[] HashData(ReadOnlySpan<byte> key, Stream source) 302public static bool Verify(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, ReadOnlySpan<byte> hash) 307/// <inheritdoc cref="Verify(ReadOnlySpan{byte}, ReadOnlySpan{byte}, ReadOnlySpan{byte})" /> 338public static bool Verify(ReadOnlySpan<byte> key, Stream source, ReadOnlySpan<byte> hash) 346/// <inheritdoc cref="Verify(ReadOnlySpan{byte}, Stream, ReadOnlySpan{byte})" />
System\Security\Cryptography\HMACSHA256.cs (19)
73protected override void HashCore(ReadOnlySpan<byte> source) => 104public static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source) 120public static int HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination) 138public static bool TryHashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 163public static int HashData(ReadOnlySpan<byte> key, Stream source, Span<byte> destination) 180public static byte[] HashData(ReadOnlySpan<byte> key, Stream source) 294public static bool Verify(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, ReadOnlySpan<byte> hash) 299/// <inheritdoc cref="Verify(ReadOnlySpan{byte}, ReadOnlySpan{byte}, ReadOnlySpan{byte})" /> 330public static bool Verify(ReadOnlySpan<byte> key, Stream source, ReadOnlySpan<byte> hash) 338/// <inheritdoc cref="Verify(ReadOnlySpan{byte}, Stream, ReadOnlySpan{byte})" />
System\Security\Cryptography\HMACSHA3_256.cs (19)
106protected override void HashCore(ReadOnlySpan<byte> source) => 140public static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source) 156public static int HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination) 174public static bool TryHashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 199public static int HashData(ReadOnlySpan<byte> key, Stream source, Span<byte> destination) 216public static byte[] HashData(ReadOnlySpan<byte> key, Stream source) 333public static bool Verify(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, ReadOnlySpan<byte> hash) 338/// <inheritdoc cref="Verify(ReadOnlySpan{byte}, ReadOnlySpan{byte}, ReadOnlySpan{byte})" /> 372public static bool Verify(ReadOnlySpan<byte> key, Stream source, ReadOnlySpan<byte> hash) 380/// <inheritdoc cref="Verify(ReadOnlySpan{byte}, Stream, ReadOnlySpan{byte})" />
System\Security\Cryptography\HMACSHA3_384.cs (19)
106protected override void HashCore(ReadOnlySpan<byte> source) => 140public static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source) 156public static int HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination) 174public static bool TryHashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 199public static int HashData(ReadOnlySpan<byte> key, Stream source, Span<byte> destination) 216public static byte[] HashData(ReadOnlySpan<byte> key, Stream source) 333public static bool Verify(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, ReadOnlySpan<byte> hash) 338/// <inheritdoc cref="Verify(ReadOnlySpan{byte}, ReadOnlySpan{byte}, ReadOnlySpan{byte})" /> 372public static bool Verify(ReadOnlySpan<byte> key, Stream source, ReadOnlySpan<byte> hash) 380/// <inheritdoc cref="Verify(ReadOnlySpan{byte}, Stream, ReadOnlySpan{byte})" />
System\Security\Cryptography\HMACSHA3_512.cs (19)
106protected override void HashCore(ReadOnlySpan<byte> source) => 140public static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source) 156public static int HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination) 174public static bool TryHashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 199public static int HashData(ReadOnlySpan<byte> key, Stream source, Span<byte> destination) 216public static byte[] HashData(ReadOnlySpan<byte> key, Stream source) 333public static bool Verify(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, ReadOnlySpan<byte> hash) 338/// <inheritdoc cref="Verify(ReadOnlySpan{byte}, ReadOnlySpan{byte}, ReadOnlySpan{byte})" /> 372public static bool Verify(ReadOnlySpan<byte> key, Stream source, ReadOnlySpan<byte> hash) 380/// <inheritdoc cref="Verify(ReadOnlySpan{byte}, Stream, ReadOnlySpan{byte})" />
System\Security\Cryptography\HMACSHA384.cs (19)
90protected override void HashCore(ReadOnlySpan<byte> source) => 121public static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source) 137public static int HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination) 155public static bool TryHashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 180public static int HashData(ReadOnlySpan<byte> key, Stream source, Span<byte> destination) 197public static byte[] HashData(ReadOnlySpan<byte> key, Stream source) 311public static bool Verify(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, ReadOnlySpan<byte> hash) 316/// <inheritdoc cref="Verify(ReadOnlySpan{byte}, ReadOnlySpan{byte}, ReadOnlySpan{byte})" /> 347public static bool Verify(ReadOnlySpan<byte> key, Stream source, ReadOnlySpan<byte> hash) 355/// <inheritdoc cref="Verify(ReadOnlySpan{byte}, Stream, ReadOnlySpan{byte})" />
System\Security\Cryptography\HMACSHA512.cs (19)
87protected override void HashCore(ReadOnlySpan<byte> source) => 118public static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source) 134public static int HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination) 152public static bool TryHashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 177public static int HashData(ReadOnlySpan<byte> key, Stream source, Span<byte> destination) 194public static byte[] HashData(ReadOnlySpan<byte> key, Stream source) 308public static bool Verify(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, ReadOnlySpan<byte> hash) 313/// <inheritdoc cref="Verify(ReadOnlySpan{byte}, ReadOnlySpan{byte}, ReadOnlySpan{byte})" /> 344public static bool Verify(ReadOnlySpan<byte> key, Stream source, ReadOnlySpan<byte> hash) 352/// <inheritdoc cref="Verify(ReadOnlySpan{byte}, Stream, ReadOnlySpan{byte})" />
System\Security\Cryptography\HMACStatic.cs (13)
24internal static unsafe bool Verify(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, ReadOnlySpan<byte> hash) 48internal static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source) 59internal static int HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination) 69internal static bool TryHashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 85internal static int HashData(ReadOnlySpan<byte> key, Stream source, Span<byte> destination) 99internal static byte[] HashData(ReadOnlySpan<byte> key, Stream source) 170internal static unsafe bool Verify(ReadOnlySpan<byte> key, Stream source, ReadOnlySpan<byte> hash)
System\Security\Cryptography\HpkeECDiffieHellmanKemAdapter.cs (14)
17private static ReadOnlySpan<byte> P256Order => 25private static ReadOnlySpan<byte> P384Order => 35private static ReadOnlySpan<byte> P521Order => 48private ReadOnlySpan<byte> Order => Suite.KemAlgorithm switch 67internal override void ImportDecapsulationKey(ReadOnlySpan<byte> decapsulationKey) 89internal override void ImportEncapsulationKey(ReadOnlySpan<byte> encapsulationKey) 95private ECDiffieHellman CreateFromEncapsulationKey(ReadOnlySpan<byte> encapsulationKey) 122internal override void DeriveKeyPair(ReadOnlySpan<byte> ikm) 126ReadOnlySpan<byte> order = Order; 136LabeledExtract(ReadOnlySpan<byte>.Empty, "dkp_prk"u8, ikm, prk); 187internal override void Decapsulate(ReadOnlySpan<byte> encapsulatedSecret, Span<byte> sharedSecret) 242AsymmetricAlgorithmHelpers.EncodeToUncompressedAnsiX963Key(x, y, ReadOnlySpan<byte>.Empty, destination); 248private static bool IsValidScalar(ReadOnlySpan<byte> scalar, ReadOnlySpan<byte> order)
System\Security\Cryptography\HpkeImplementation.Managed.cs (37)
25internal static HpkeImplementation DeriveKeyImpl(HpkeSuite suite, ReadOnlySpan<byte> ikm) 57internal static HpkeImplementation ImportDecapsulationKeyImpl(HpkeSuite suite, ReadOnlySpan<byte> source) 73internal static HpkeImplementation ImportEncapsulationKeyImpl(HpkeSuite suite, ReadOnlySpan<byte> source) 96ReadOnlySpan<byte> plaintext, 99ReadOnlySpan<byte> associatedData, 100ReadOnlySpan<byte> info) 147ReadOnlySpan<byte> encapsulatedSecret, 148ReadOnlySpan<byte> ciphertext, 150ReadOnlySpan<byte> associatedData, 151ReadOnlySpan<byte> info) 197protected override HpkeSender CreateSenderCore(Span<byte> encapsulatedSecret, ReadOnlySpan<byte> info) 204ReadOnlySpan<byte> info, 205ReadOnlySpan<byte> psk, 206ReadOnlySpan<byte> pskId) 214ReadOnlySpan<byte> info, 215ReadOnlySpan<byte> psk, 216ReadOnlySpan<byte> pskId) 263ReadOnlySpan<byte> encapsulatedSecret, 264ReadOnlySpan<byte> info) => 268ReadOnlySpan<byte> encapsulatedSecret, 269ReadOnlySpan<byte> info, 270ReadOnlySpan<byte> psk, 271ReadOnlySpan<byte> pskId) => 276ReadOnlySpan<byte> encapsulatedSecret, 277ReadOnlySpan<byte> info, 278ReadOnlySpan<byte> psk, 279ReadOnlySpan<byte> pskId) 349ReadOnlySpan<byte> baseNonce, 350ReadOnlySpan<byte> exporterSecret) : base(suite) 363ReadOnlySpan<byte> plaintext, 365ReadOnlySpan<byte> associatedData) 397protected override void ExportCore(ReadOnlySpan<byte> exporterContext, Span<byte> destination) 430ReadOnlySpan<byte> baseNonce, 431ReadOnlySpan<byte> exporterSecret) : base(suite) 444ReadOnlySpan<byte> ciphertext, 446ReadOnlySpan<byte> associatedData) 476protected override void ExportCore(ReadOnlySpan<byte> exporterContext, Span<byte> destination)
System\Security\Cryptography\HpkeManagedAeadAdapter.cs (8)
10internal static HpkeManagedAeadAdapter Create(HpkeSuite suite, ReadOnlySpan<byte> key) 29ReadOnlySpan<byte> plaintext, 30ReadOnlySpan<byte> nonce, 31ReadOnlySpan<byte> associatedData, 36ReadOnlySpan<byte> ciphertext, 37ReadOnlySpan<byte> nonce, 38ReadOnlySpan<byte> associatedData, 39ReadOnlySpan<byte> tag,
System\Security\Cryptography\HpkeManagedAesAeadAdapter.cs (8)
10internal HpkeManagedAesAeadAdapter(HpkeSuite suite, ReadOnlySpan<byte> key) 18ReadOnlySpan<byte> plaintext, 19ReadOnlySpan<byte> nonce, 20ReadOnlySpan<byte> associatedData, 30ReadOnlySpan<byte> ciphertext, 31ReadOnlySpan<byte> nonce, 32ReadOnlySpan<byte> associatedData, 33ReadOnlySpan<byte> tag,
System\Security\Cryptography\HpkeManagedChaCha20Poly1305AeadAdapter.cs (8)
11internal HpkeManagedChaCha20Poly1305AeadAdapter(ReadOnlySpan<byte> key) 17ReadOnlySpan<byte> plaintext, 18ReadOnlySpan<byte> nonce, 19ReadOnlySpan<byte> associatedData, 27ReadOnlySpan<byte> ciphertext, 28ReadOnlySpan<byte> nonce, 29ReadOnlySpan<byte> associatedData, 30ReadOnlySpan<byte> tag,
System\Security\Cryptography\HpkeManagedKdfAdapter.cs (40)
11protected static ReadOnlySpan<byte> VersionLabel => "HPKE-v1"u8; 12protected ReadOnlySpan<byte> SuiteId => Suite.SuiteId; 42ReadOnlySpan<byte> sharedSecret, 43ReadOnlySpan<byte> info, 44ReadOnlySpan<byte> psk, 45ReadOnlySpan<byte> pskId, 69ReadOnlySpan<byte> exporterSecret, 70ReadOnlySpan<byte> exporterContext, 85ReadOnlySpan<byte> sharedSecret, 86ReadOnlySpan<byte> info, 87ReadOnlySpan<byte> psk, 88ReadOnlySpan<byte> pskId, 94ReadOnlySpan<byte> exporterSecret, 95ReadOnlySpan<byte> exporterContext, 115ReadOnlySpan<byte> sharedSecret, 116ReadOnlySpan<byte> info, 117ReadOnlySpan<byte> psk, 118ReadOnlySpan<byte> pskId, 134LabeledExtract(ReadOnlySpan<byte>.Empty, "psk_id_hash"u8, pskId, context.Slice(1, hashLength)); 135LabeledExtract(ReadOnlySpan<byte>.Empty, "info_hash"u8, info, context.Slice(1 + hashLength)); 149ReadOnlySpan<byte> exporterSecret, 150ReadOnlySpan<byte> exporterContext, 155ReadOnlySpan<byte> salt, 156ReadOnlySpan<byte> label, 157ReadOnlySpan<byte> ikm, 160ReadOnlySpan<byte> suiteId = SuiteId; 180ReadOnlySpan<byte> prk, 181ReadOnlySpan<byte> label, 182ReadOnlySpan<byte> info, 215ReadOnlySpan<byte> sharedSecret, 216ReadOnlySpan<byte> info, 217ReadOnlySpan<byte> psk, 218ReadOnlySpan<byte> pskId, 259ReadOnlySpan<byte> exporterSecret, 260ReadOnlySpan<byte> exporterContext, 274private void AppendLabeledDerivePrefix(TShake shake, ReadOnlySpan<byte> label, int outputLength) 284private void AppendLengthPrefixed(TShake shake, ReadOnlySpan<byte> value) 293protected abstract void Append(TShake shake, ReadOnlySpan<byte> data); 305protected override void Append(Shake128 shake, ReadOnlySpan<byte> data) => 320protected override void Append(Shake256 shake, ReadOnlySpan<byte> data) =>
System\Security\Cryptography\HpkeManagedKemAdapter.cs (18)
15private static ReadOnlySpan<byte> VersionLabel => "HPKE-v1"u8; 19private static ReadOnlySpan<byte> EaePrkLabel => "eae_prk"u8; 20private static ReadOnlySpan<byte> SharedSecretLabel => "shared_secret"u8; 67ReadOnlySpan<byte> secretAgreement, 68ReadOnlySpan<byte> encapsulatedSecret, 94LabeledExtract(ReadOnlySpan<byte>.Empty, EaePrkLabel, secretAgreement, prk); 105ReadOnlySpan<byte> salt, 106ReadOnlySpan<byte> label, 107ReadOnlySpan<byte> ikm, 113ReadOnlySpan<byte> suiteId = Suite.KemMetadata.SuiteId; 133ReadOnlySpan<byte> prk, 134ReadOnlySpan<byte> label, 135ReadOnlySpan<byte> info, 142ReadOnlySpan<byte> suiteId = Suite.KemMetadata.SuiteId; 161internal abstract void DeriveKeyPair(ReadOnlySpan<byte> ikm); 163internal abstract void Decapsulate(ReadOnlySpan<byte> encapsulatedSecret, Span<byte> sharedSecret); 164internal abstract void ImportDecapsulationKey(ReadOnlySpan<byte> decapsulationKey); 165internal abstract void ImportEncapsulationKey(ReadOnlySpan<byte> encapsulationKey);
System\Security\Cryptography\HpkeX25519DiffieHellmanKemAdapter.cs (6)
16internal override void ImportDecapsulationKey(ReadOnlySpan<byte> decapsulationKey) 22internal override void ImportEncapsulationKey(ReadOnlySpan<byte> encapsulationKey) 28internal override void DeriveKeyPair(ReadOnlySpan<byte> ikm) 38LabeledExtract(ReadOnlySpan<byte>.Empty, "dkp_prk"u8, ikm, prk); 39LabeledExpand(prk, "sk"u8, ReadOnlySpan<byte>.Empty, privateKey); 74internal override void Decapsulate(ReadOnlySpan<byte> encapsulatedSecret, Span<byte> sharedSecret)
System\Security\Cryptography\ILiteSymmetricCipher.cs (3)
10int TransformFinal(ReadOnlySpan<byte> input, Span<byte> output); 11int Transform(ReadOnlySpan<byte> input, Span<byte> output); 12void Reset(ReadOnlySpan<byte> iv);
System\Security\Cryptography\IncrementalHash.cs (12)
100public void AppendData(ReadOnlySpan<byte> data) 136/// <see cref="AppendData(ReadOnlySpan{byte})" /> 186/// <see cref="AppendData(ReadOnlySpan{byte})" /> 208/// <see cref="AppendData(ReadOnlySpan{byte})" /> 234/// <see cref="AppendData(ReadOnlySpan{byte})" /> 307public bool VerifyCurrentHash(ReadOnlySpan<byte> hash) => 310/// <inheritdoc cref="VerifyCurrentHash(ReadOnlySpan{byte})" /> 338public bool VerifyHashAndReset(ReadOnlySpan<byte> hash) => 341/// <inheritdoc cref="VerifyHashAndReset(ReadOnlySpan{byte})" /> 419return CreateHMAC(hashAlgorithm, (ReadOnlySpan<byte>)key); 444public static IncrementalHash CreateHMAC(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> key) 472ReadOnlySpan<byte> hash,
System\Security\Cryptography\KeyBlobHelpers.cs (1)
15internal static byte[] ToUnsignedIntegerBytes(this ReadOnlySpan<byte> span, int length)
System\Security\Cryptography\Kmac128.cs (34)
60public Kmac128(ReadOnlySpan<byte> key, ReadOnlySpan<byte> customizationString = default) 94public void AppendData(ReadOnlySpan<byte> data) 210public bool VerifyCurrentHash(ReadOnlySpan<byte> hash) 220/// <inheritdoc cref="VerifyCurrentHash(ReadOnlySpan{byte})" /> 248public bool VerifyHashAndReset(ReadOnlySpan<byte> hash) 258/// <inheritdoc cref="VerifyHashAndReset(ReadOnlySpan{byte})" /> 330ReadOnlySpan<byte> key, 331ReadOnlySpan<byte> source, 333ReadOnlySpan<byte> customizationString = default) 356ReadOnlySpan<byte> key, 357ReadOnlySpan<byte> source, 359ReadOnlySpan<byte> customizationString = default) 425ReadOnlySpan<byte> key, 428ReadOnlySpan<byte> customizationString = default) 457ReadOnlySpan<byte> key, 460ReadOnlySpan<byte> customizationString = default) 626ReadOnlySpan<byte> key, 627ReadOnlySpan<byte> source, 628ReadOnlySpan<byte> hash, 629ReadOnlySpan<byte> customizationString = default) 634/// <inheritdoc cref="Verify(ReadOnlySpan{byte}, ReadOnlySpan{byte}, ReadOnlySpan{byte}, ReadOnlySpan{byte})" /> 670ReadOnlySpan<byte> key, 672ReadOnlySpan<byte> hash, 673ReadOnlySpan<byte> customizationString = default) 678/// <inheritdoc cref="Verify(ReadOnlySpan{byte}, Stream, ReadOnlySpan{byte}, ReadOnlySpan{byte})" /> 747ReadOnlySpan<byte> key, 748ReadOnlySpan<byte> source, 750ReadOnlySpan<byte> customizationString)
System\Security\Cryptography\Kmac256.cs (34)
60public Kmac256(ReadOnlySpan<byte> key, ReadOnlySpan<byte> customizationString = default) 94public void AppendData(ReadOnlySpan<byte> data) 210public bool VerifyCurrentHash(ReadOnlySpan<byte> hash) 220/// <inheritdoc cref="VerifyCurrentHash(ReadOnlySpan{byte})" /> 248public bool VerifyHashAndReset(ReadOnlySpan<byte> hash) 258/// <inheritdoc cref="VerifyHashAndReset(ReadOnlySpan{byte})" /> 330ReadOnlySpan<byte> key, 331ReadOnlySpan<byte> source, 333ReadOnlySpan<byte> customizationString = default) 356ReadOnlySpan<byte> key, 357ReadOnlySpan<byte> source, 359ReadOnlySpan<byte> customizationString = default) 425ReadOnlySpan<byte> key, 428ReadOnlySpan<byte> customizationString = default) 457ReadOnlySpan<byte> key, 460ReadOnlySpan<byte> customizationString = default) 626ReadOnlySpan<byte> key, 627ReadOnlySpan<byte> source, 628ReadOnlySpan<byte> hash, 629ReadOnlySpan<byte> customizationString = default) 634/// <inheritdoc cref="Verify(ReadOnlySpan{byte}, ReadOnlySpan{byte}, ReadOnlySpan{byte}, ReadOnlySpan{byte})" /> 670ReadOnlySpan<byte> key, 672ReadOnlySpan<byte> hash, 673ReadOnlySpan<byte> customizationString = default) 678/// <inheritdoc cref="Verify(ReadOnlySpan{byte}, Stream, ReadOnlySpan{byte}, ReadOnlySpan{byte})" /> 747ReadOnlySpan<byte> key, 748ReadOnlySpan<byte> source, 750ReadOnlySpan<byte> customizationString)
System\Security\Cryptography\KmacStatic.cs (13)
25ReadOnlySpan<byte> key, 26ReadOnlySpan<byte> source, 27ReadOnlySpan<byte> hash, 28ReadOnlySpan<byte> customizationString) 64ReadOnlySpan<byte> key, 66ReadOnlySpan<byte> hash, 67ReadOnlySpan<byte> customizationString) 161ReadOnlySpan<byte> key, 163ReadOnlySpan<byte> hash, 164ReadOnlySpan<byte> customizationString, 165Action<ReadOnlySpan<byte>, TSource, ReadOnlySpan<byte>, Span<byte>> callback) 191private static void ThrowIfEmptyHash(ReadOnlySpan<byte> hash)
System\Security\Cryptography\KmacXof128.cs (34)
60public KmacXof128(ReadOnlySpan<byte> key, ReadOnlySpan<byte> customizationString = default) 94public void AppendData(ReadOnlySpan<byte> data) 210public bool VerifyCurrentHash(ReadOnlySpan<byte> hash) 220/// <inheritdoc cref="VerifyCurrentHash(ReadOnlySpan{byte})" /> 248public bool VerifyHashAndReset(ReadOnlySpan<byte> hash) 258/// <inheritdoc cref="VerifyHashAndReset(ReadOnlySpan{byte})" /> 330ReadOnlySpan<byte> key, 331ReadOnlySpan<byte> source, 333ReadOnlySpan<byte> customizationString = default) 356ReadOnlySpan<byte> key, 357ReadOnlySpan<byte> source, 359ReadOnlySpan<byte> customizationString = default) 425ReadOnlySpan<byte> key, 428ReadOnlySpan<byte> customizationString = default) 457ReadOnlySpan<byte> key, 460ReadOnlySpan<byte> customizationString = default) 626ReadOnlySpan<byte> key, 627ReadOnlySpan<byte> source, 628ReadOnlySpan<byte> hash, 629ReadOnlySpan<byte> customizationString = default) 634/// <inheritdoc cref="Verify(ReadOnlySpan{byte}, ReadOnlySpan{byte}, ReadOnlySpan{byte}, ReadOnlySpan{byte})" /> 670ReadOnlySpan<byte> key, 672ReadOnlySpan<byte> hash, 673ReadOnlySpan<byte> customizationString = default) 678/// <inheritdoc cref="Verify(ReadOnlySpan{byte}, Stream, ReadOnlySpan{byte}, ReadOnlySpan{byte})" /> 747ReadOnlySpan<byte> key, 748ReadOnlySpan<byte> source, 750ReadOnlySpan<byte> customizationString)
System\Security\Cryptography\KmacXof256.cs (34)
60public KmacXof256(ReadOnlySpan<byte> key, ReadOnlySpan<byte> customizationString = default) 94public void AppendData(ReadOnlySpan<byte> data) 210public bool VerifyCurrentHash(ReadOnlySpan<byte> hash) 220/// <inheritdoc cref="VerifyCurrentHash(ReadOnlySpan{byte})" /> 248public bool VerifyHashAndReset(ReadOnlySpan<byte> hash) 258/// <inheritdoc cref="VerifyHashAndReset(ReadOnlySpan{byte})" /> 330ReadOnlySpan<byte> key, 331ReadOnlySpan<byte> source, 333ReadOnlySpan<byte> customizationString = default) 356ReadOnlySpan<byte> key, 357ReadOnlySpan<byte> source, 359ReadOnlySpan<byte> customizationString = default) 425ReadOnlySpan<byte> key, 428ReadOnlySpan<byte> customizationString = default) 457ReadOnlySpan<byte> key, 460ReadOnlySpan<byte> customizationString = default) 626ReadOnlySpan<byte> key, 627ReadOnlySpan<byte> source, 628ReadOnlySpan<byte> hash, 629ReadOnlySpan<byte> customizationString = default) 634/// <inheritdoc cref="Verify(ReadOnlySpan{byte}, ReadOnlySpan{byte}, ReadOnlySpan{byte}, ReadOnlySpan{byte})" /> 670ReadOnlySpan<byte> key, 672ReadOnlySpan<byte> hash, 673ReadOnlySpan<byte> customizationString = default) 678/// <inheritdoc cref="Verify(ReadOnlySpan{byte}, Stream, ReadOnlySpan{byte}, ReadOnlySpan{byte})" /> 747ReadOnlySpan<byte> key, 748ReadOnlySpan<byte> source, 750ReadOnlySpan<byte> customizationString)
System\Security\Cryptography\LiteHash.Windows.cs (12)
21private static LiteHmac CreateHmac(string hashAlgorithmId, ReadOnlySpan<byte> key) 31internal static LiteKmac CreateKmac(string algorithmId, ReadOnlySpan<byte> key, ReadOnlySpan<byte> customizationString, bool xof) 45internal LiteKmac(string algorithm, ReadOnlySpan<byte> key, ReadOnlySpan<byte> customizationString, bool xof) 121public void Append(ReadOnlySpan<byte> data) 196secret: ReadOnlySpan<byte>.Empty, 230public void Append(ReadOnlySpan<byte> data) 330secret: ReadOnlySpan<byte>.Empty, 343public void Append(ReadOnlySpan<byte> data) 385internal LiteHmac(string algorithm, ReadOnlySpan<byte> key) 416public void Append(ReadOnlySpan<byte> data)
System\Security\Cryptography\LiteHashProvider.cs (5)
59ReadOnlySpan<byte> key, 70ReadOnlySpan<byte> key, 82ReadOnlySpan<byte> key, 98ReadOnlySpan<byte> key, 188void Append(ReadOnlySpan<byte> data);
System\Security\Cryptography\LiteHashProvider.Xof.cs (8)
31ReadOnlySpan<byte> key, 32ReadOnlySpan<byte> customizationString, 44ReadOnlySpan<byte> key, 45ReadOnlySpan<byte> customizationString, 89ReadOnlySpan<byte> key, 93ReadOnlySpan<byte> customizationString, 107ReadOnlySpan<byte> key, 111ReadOnlySpan<byte> customizationString,
System\Security\Cryptography\MD5.cs (4)
71public static byte[] HashData(ReadOnlySpan<byte> source) => HashStatic<HashTrait>.HashData(source); 84public static int HashData(ReadOnlySpan<byte> source, Span<byte> destination) 102public static bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 212protected sealed override void HashCore(ReadOnlySpan<byte> source) =>
System\Security\Cryptography\MD5CryptoServiceProvider.cs (1)
44protected override void HashCore(ReadOnlySpan<byte> source)
System\Security\Cryptography\MLDsaOpenSsl.NotSupported.cs (13)
31protected override void SignDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, Span<byte> destination) 37protected override bool VerifyDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, ReadOnlySpan<byte> signature) 43protected override void SignPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, Span<byte> destination) 49protected override bool VerifyPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, ReadOnlySpan<byte> signature) 55protected override void SignMuCore(ReadOnlySpan<byte> externalMu, Span<byte> destination) 61protected override bool VerifyMuCore(ReadOnlySpan<byte> externalMu, ReadOnlySpan<byte> signature)
System\Security\Cryptography\MLKemOpenSsl.NotSupported.cs (1)
31protected override void DecapsulateCore(ReadOnlySpan<byte> ciphertext, Span<byte> sharedSecret)
System\Security\Cryptography\OidLookup.cs (1)
138static void AddEntry(string oid, string primaryFriendlyName, ReadOnlySpan<string> additionalFriendlyNames = default)
System\Security\Cryptography\Pbkdf2Implementation.Windows.cs (5)
21ReadOnlySpan<byte> password, 22ReadOnlySpan<byte> salt, 34ReadOnlySpan<byte> password, 35ReadOnlySpan<byte> salt, 46scoped ReadOnlySpan<byte> symmetricKeyMaterial;
System\Security\Cryptography\PemEncoding.cs (52)
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 unsafe bool TryFindCore<TChar, T>(ReadOnlySpan<TChar> pemData, out PemFields fields) 143ReadOnlySpan<TChar> hyphen = T.PostEBPrefix[0..1]; 170ReadOnlySpan<TChar> label = pemData[labelRange]; 214ReadOnlySpan<TChar> postLabel = pemData[postebLabelStartIndex..postebEndIndex]; 278private static int IndexOfByOffset<TChar>(this ReadOnlySpan<TChar> str, ReadOnlySpan<TChar> value, int startPosition) 286private static bool IsValidLabel<TChar>(ReadOnlySpan<TChar> data) 337ReadOnlySpan<TChar> str, 362private static bool IsWhiteSpaceCharacter<TChar>(TChar ch, ReadOnlySpan<TChar> whitespace) 493public static bool TryWrite(ReadOnlySpan<char> label, ReadOnlySpan<byte> data, Span<char> destination, out int charsWritten) 553ReadOnlySpan<byte> utf8Label, 554ReadOnlySpan<byte> data, 610public static byte[] WriteUtf8(ReadOnlySpan<byte> utf8Label, ReadOnlySpan<byte> data) 623private static int WriteCore<TChar, T>(ReadOnlySpan<TChar> label, ReadOnlySpan<byte> data, Span<TChar> destination) 627static int Write(ReadOnlySpan<TChar> str, Span<TChar> dest, int offset) 641ReadOnlySpan<byte> remainingData = data; 694public static char[] Write(ReadOnlySpan<char> label, ReadOnlySpan<byte> data) 737public static unsafe string WriteString(ReadOnlySpan<char> label, ReadOnlySpan<byte> data) 749ReadOnlySpan<char> label = *(ReadOnlySpan<char>*)state.LabelPointer; 750ReadOnlySpan<byte> data = *(ReadOnlySpan<byte>*)state.DataPointer; 764static abstract ReadOnlySpan<TChar> PreEBPrefix { get; } 765static abstract ReadOnlySpan<TChar> PostEBPrefix { get; } 766static abstract ReadOnlySpan<TChar> Ending { get; } 767static abstract ReadOnlySpan<TChar> Whitespace { get; } 768static abstract ReadOnlySpan<TChar> NewLine { get; } 769static abstract bool IsValidBase64(ReadOnlySpan<TChar> base64Text, out int decodedLength); 770static abstract int WriteBase64(ReadOnlySpan<byte> bytes, Span<TChar> destination, int offset); 775public static ReadOnlySpan<char> PreEBPrefix => "-----BEGIN "; 776public static ReadOnlySpan<char> PostEBPrefix => "-----END "; 777public static ReadOnlySpan<char> Ending => "-----"; 778public static ReadOnlySpan<char> Whitespace => " \t\n\r"; 779public static ReadOnlySpan<char> NewLine => "\n"; 781public static bool IsValidBase64(ReadOnlySpan<char> base64Text, out int decodedLength) 786public static int WriteBase64(ReadOnlySpan<byte> bytes, Span<char> destination, int offset) 802public static ReadOnlySpan<byte> PreEBPrefix => "-----BEGIN "u8; 803public static ReadOnlySpan<byte> PostEBPrefix => "-----END "u8; 804public static ReadOnlySpan<byte> Ending => "-----"u8; 805public static ReadOnlySpan<byte> Whitespace => " \t\n\r"u8; 806public static ReadOnlySpan<byte> NewLine => "\n"u8; 808public static bool IsValidBase64(ReadOnlySpan<byte> base64Text, out int decodedLength) 813public static int WriteBase64(ReadOnlySpan<byte> bytes, Span<byte> destination, int offset)
System\Security\Cryptography\PemEnumerator.cs (10)
8internal static PemEnumerator<char> Utf16(ReadOnlySpan<char> pemData) 13internal static PemEnumerator<byte> Utf8(ReadOnlySpan<byte> pemData) 21internal delegate bool TryFindFunc(ReadOnlySpan<TChar> pemData, out PemFields fields); 23private readonly ReadOnlySpan<TChar> _contents; 26internal PemEnumerator(ReadOnlySpan<TChar> contents, TryFindFunc findFunc) 36private ReadOnlySpan<TChar> _contents; 40internal Enumerator(ReadOnlySpan<TChar> contents, TryFindFunc tryFindFunc) 55internal readonly ref struct PemFieldItem(ReadOnlySpan<TChar> contents, PemFields pemFields) 57private readonly ReadOnlySpan<TChar> _contents = contents; 60public void Deconstruct(out ReadOnlySpan<TChar> contents, out PemFields pemFields)
System\Security\Cryptography\PemKeyHelpers.cs (17)
15ReadOnlySpan<TPassword> password, 22ReadOnlySpan<TPassword> password, 93public delegate void ImportKeyAction(ReadOnlySpan<byte> source, out int bytesRead); 94public delegate ImportKeyAction? FindImportActionFunc(ReadOnlySpan<char> label); 96ReadOnlySpan<TPass> password, 97ReadOnlySpan<byte> source, 101ReadOnlySpan<char> input, 102ReadOnlySpan<TPass> password, 107ReadOnlySpan<char> foundSlice = default; 109ReadOnlySpan<char> pem = input; 112ReadOnlySpan<char> label = pem[fields.Label]; 135ReadOnlySpan<char> base64Contents = foundSlice[foundFields.Base64Data]; 163public static void ImportPem(ReadOnlySpan<char> input, FindImportActionFunc callback) 167ReadOnlySpan<char> foundSlice = default; 170ReadOnlySpan<char> pem = input; 173ReadOnlySpan<char> label = pem[fields.Label]; 221ReadOnlySpan<char> base64Contents = foundSlice[foundFields.Base64Data];
System\Security\Cryptography\RandomNumberGenerator.cs (7)
179public static void GetItems<T>(ReadOnlySpan<T> choices, Span<T> destination) 202public static T[] GetItems<T>(ReadOnlySpan<T> choices, int length) 226/// <seealso cref="GetItems{T}(ReadOnlySpan{T}, Span{T})" /> 227/// <seealso cref="GetItems{T}(ReadOnlySpan{T}, int)" /> 229public static string GetString(ReadOnlySpan<char> choices, int length) 250/// The behavior of this is the same as using <seealso cref="GetItems{T}(ReadOnlySpan{T}, Span{T})" /> and 349private static unsafe void GetItemsCore<T>(ReadOnlySpan<T> choices, Span<T> destination)
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\RC2Implementation.Windows.cs (2)
31ReadOnlySpan<byte> key, 32ReadOnlySpan<byte> iv,
System\Security\Cryptography\Rfc2898DeriveBytes.cs (4)
111internal Rfc2898DeriveBytes(ReadOnlySpan<byte> password, ReadOnlySpan<byte> salt, int iterations, HashAlgorithmName hashAlgorithm) 189ReadOnlySpan<byte> bufferSpan = _buffer; 245private IncrementalHash OpenHmac(ReadOnlySpan<byte> password)
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 (46)
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) 877ReadOnlySpan<byte> pkcs1 = RSAKeyFormatHelper.ReadSubjectPublicKeyInfo( 885public virtual void ImportRSAPublicKey(ReadOnlySpan<byte> source, out int bytesRead) 909public virtual unsafe void ImportRSAPrivateKey(ReadOnlySpan<byte> source, out int bytesRead) 936public override unsafe void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead) 938ReadOnlySpan<byte> pkcs1 = RSAKeyFormatHelper.ReadPkcs8(source, out int localRead); 945ReadOnlySpan<byte> passwordBytes, 946ReadOnlySpan<byte> source, 976ReadOnlySpan<char> password, 977ReadOnlySpan<byte> source, 1043public override void ImportFromPem(ReadOnlySpan<char> input) 1120public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<char> password) 1192public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<byte> passwordBytes) 1362private delegate bool TryFunc<TState>(RSA rsa, ReadOnlySpan<byte> input, byte[] destination, TState state, out int bytesWritten); 1365ReadOnlySpan<byte> input,
System\Security\Cryptography\RSABCrypt.cs (13)
180ReadOnlySpan<byte> data, 214ReadOnlySpan<byte> data, 259ReadOnlySpan<byte> hash, 320ReadOnlySpan<byte> hash, 321ReadOnlySpan<byte> signature, 358ReadOnlySpan<byte> passwordBytes, 359ReadOnlySpan<byte> source, 367ReadOnlySpan<char> password, 368ReadOnlySpan<byte> source, 375public override void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead) 381public override void ImportRSAPrivateKey(ReadOnlySpan<byte> source, out int bytesRead) 387public override void ImportRSAPublicKey(ReadOnlySpan<byte> source, out int bytesRead) 393public override void ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source, out int bytesRead)
System\Security\Cryptography\RSACng.ImportExport.cs (3)
18private void ImportKeyBlob(ReadOnlySpan<byte> rsaBlob, bool includePrivate) 75private byte[] ExportEncryptedPkcs8(ReadOnlySpan<char> pkcs8Password, int kdfCount) 81ReadOnlySpan<char> pkcs8Password,
System\Security\Cryptography\RSACryptoServiceProvider.Windows.cs (4)
386ReadOnlySpan<byte> passwordBytes, 387ReadOnlySpan<byte> source, 395ReadOnlySpan<char> password, 396ReadOnlySpan<byte> source,
System\Security\Cryptography\SHA1.cs (4)
65public static byte[] HashData(ReadOnlySpan<byte> source) => HashStatic<HashTrait>.HashData(source); 77public static int HashData(ReadOnlySpan<byte> source, Span<byte> destination) 94public static bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 200protected sealed override void HashCore(ReadOnlySpan<byte> source) =>
System\Security\Cryptography\SHA1CryptoServiceProvider.cs (1)
47protected override void HashCore(ReadOnlySpan<byte> source)
System\Security\Cryptography\SHA1Managed.cs (1)
25protected sealed override void HashCore(ReadOnlySpan<byte> source) =>
System\Security\Cryptography\SHA256.cs (4)
64public static byte[] HashData(ReadOnlySpan<byte> source) => HashStatic<HashTrait>.HashData(source); 76public static int HashData(ReadOnlySpan<byte> source, Span<byte> destination) 94public static bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 200protected sealed override void HashCore(ReadOnlySpan<byte> source) =>
System\Security\Cryptography\SHA256CryptoServiceProvider.cs (1)
47protected override void HashCore(ReadOnlySpan<byte> source)
System\Security\Cryptography\SHA256Managed.cs (1)
25protected sealed override void HashCore(ReadOnlySpan<byte> source) =>
System\Security\Cryptography\SHA3_256.cs (4)
90public static byte[] HashData(ReadOnlySpan<byte> source) => HashStatic<HashTrait>.HashData(source); 105public static int HashData(ReadOnlySpan<byte> source, Span<byte> destination) 125public static bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 243protected sealed override void HashCore(ReadOnlySpan<byte> source) =>
System\Security\Cryptography\SHA3_384.cs (4)
90public static byte[] HashData(ReadOnlySpan<byte> source) => HashStatic<HashTrait>.HashData(source); 105public static int HashData(ReadOnlySpan<byte> source, Span<byte> destination) 126public static bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 244protected sealed override void HashCore(ReadOnlySpan<byte> source) =>
System\Security\Cryptography\SHA3_512.cs (4)
90public static byte[] HashData(ReadOnlySpan<byte> source) => HashStatic<HashTrait>.HashData(source); 105public static int HashData(ReadOnlySpan<byte> source, Span<byte> destination) 125public static bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 243protected sealed override void HashCore(ReadOnlySpan<byte> source) =>
System\Security\Cryptography\SHA384.cs (4)
64public static byte[] HashData(ReadOnlySpan<byte> source) => HashStatic<HashTrait>.HashData(source); 76public static int HashData(ReadOnlySpan<byte> source, Span<byte> destination) 93public static bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 199protected sealed override void HashCore(ReadOnlySpan<byte> source) =>
System\Security\Cryptography\SHA384CryptoServiceProvider.cs (1)
47protected override void HashCore(ReadOnlySpan<byte> source)
System\Security\Cryptography\SHA384Managed.cs (1)
25protected sealed override void HashCore(ReadOnlySpan<byte> source) =>
System\Security\Cryptography\SHA512.cs (4)
64public static byte[] HashData(ReadOnlySpan<byte> source) => HashStatic<HashTrait>.HashData(source); 76public static int HashData(ReadOnlySpan<byte> source, Span<byte> destination) 93public static bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 199protected sealed override void HashCore(ReadOnlySpan<byte> source) =>
System\Security\Cryptography\SHA512CryptoServiceProvider.cs (1)
47protected override void HashCore(ReadOnlySpan<byte> source)
System\Security\Cryptography\SHA512Managed.cs (1)
25protected sealed override void HashCore(ReadOnlySpan<byte> source) =>
System\Security\Cryptography\Shake128.cs (4)
73public void AppendData(ReadOnlySpan<byte> data) 306public static byte[] HashData(ReadOnlySpan<byte> source, int outputLength) 325public static void HashData(ReadOnlySpan<byte> source, Span<byte> destination) 470private static void HashDataCore(ReadOnlySpan<byte> source, Span<byte> destination)
System\Security\Cryptography\Shake256.cs (4)
73public void AppendData(ReadOnlySpan<byte> data) 306public static byte[] HashData(ReadOnlySpan<byte> source, int outputLength) 325public static void HashData(ReadOnlySpan<byte> source, Span<byte> destination) 470private static void HashDataCore(ReadOnlySpan<byte> source, Span<byte> destination)
System\Security\Cryptography\SlhDsaOpenSsl.NotSupported.cs (10)
27protected override void SignDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, Span<byte> destination) 33protected override bool VerifyDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> context, ReadOnlySpan<byte> signature) 39protected override void SignPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, Span<byte> destination) 45protected override bool VerifyPreHashCore(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> context, string hashAlgorithmOid, ReadOnlySpan<byte> signature)
System\Security\Cryptography\SP800108HmacCounterKdf.Windows.cs (7)
14ReadOnlySpan<byte> key, 33ReadOnlySpan<byte> key, 35ReadOnlySpan<byte> label, 36ReadOnlySpan<byte> context, 43ReadOnlySpan<byte> key, 45ReadOnlySpan<char> label, 46ReadOnlySpan<char> context,
System\Security\Cryptography\SP800108HmacCounterKdfImplementationCng.cs (2)
10internal unsafe SP800108HmacCounterKdfImplementationCng(ReadOnlySpan<byte> key, HashAlgorithmName hashAlgorithm) 14scoped ReadOnlySpan<byte> symmetricKeyMaterial;
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\SymmetricPadding.cs (2)
36public static int PadBlock(ReadOnlySpan<byte> block, Span<byte> destination, int paddingSizeInBytes, PaddingMode paddingMode) 150public static int GetPaddingLength(ReadOnlySpan<byte> block, PaddingMode paddingMode, int blockSize)
System\Security\Cryptography\TripleDESCng.Windows.cs (10)
102ReadOnlySpan<byte> ciphertext, 120ReadOnlySpan<byte> plaintext, 138ReadOnlySpan<byte> plaintext, 139ReadOnlySpan<byte> iv, 157ReadOnlySpan<byte> ciphertext, 158ReadOnlySpan<byte> iv, 176ReadOnlySpan<byte> ciphertext, 177ReadOnlySpan<byte> iv, 196ReadOnlySpan<byte> plaintext, 197ReadOnlySpan<byte> iv,
System\Security\Cryptography\TripleDESCryptoServiceProvider.Wrap.cs (1)
69protected override void SetKeyCore(ReadOnlySpan<byte> key) => _impl.SetKey(key);
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\TripleDesImplementation.Windows.cs (2)
29ReadOnlySpan<byte> key, 30ReadOnlySpan<byte> iv,
System\Security\Cryptography\UniversalCryptoDecryptor.cs (3)
26protected override int UncheckedTransformBlock(ReadOnlySpan<byte> inputBuffer, Span<byte> outputBuffer) 68protected override unsafe int UncheckedTransformFinalBlock(ReadOnlySpan<byte> inputBuffer, Span<byte> outputBuffer) 79ReadOnlySpan<byte> inputCiphertext;
System\Security\Cryptography\UniversalCryptoEncryptor.cs (2)
26protected override int UncheckedTransformBlock(ReadOnlySpan<byte> inputBuffer, Span<byte> outputBuffer) 31protected override int UncheckedTransformFinalBlock(ReadOnlySpan<byte> inputBuffer, Span<byte> outputBuffer)
System\Security\Cryptography\UniversalCryptoOneShot.cs (4)
16ReadOnlySpan<byte> input, 127ReadOnlySpan<byte> unpaddedBlocks = input[..^cipher.BlockSizeInBytes]; 128ReadOnlySpan<byte> paddedBlock = input[^cipher.BlockSizeInBytes..]; 206ReadOnlySpan<byte> input,
System\Security\Cryptography\UniversalCryptoTransform.cs (2)
117protected abstract int UncheckedTransformBlock(ReadOnlySpan<byte> inputBuffer, Span<byte> outputBuffer); 122protected abstract int UncheckedTransformFinalBlock(ReadOnlySpan<byte> inputBuffer, Span<byte> outputBuffer);
System\Security\Cryptography\X25519DiffieHellmanOpenSsl.NotSupported.cs (1)
28protected override void DeriveRawSecretAgreementCore(ReadOnlySpan<byte> otherPartyPublicKey, Span<byte> destination)
System\Security\Cryptography\X509Certificates\Asn1\BasicConstraintsAsn.xml.cs (1)
13internal static ReadOnlySpan<byte> DefaultCA => [0x01, 0x01, 0x00];
System\Security\Cryptography\X509Certificates\Asn1\CertificateAsn.xml.cs (2)
75ReadOnlySpan<byte> rebindSpan = rebind.Span; 77ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestAsn.xml.cs (2)
75ReadOnlySpan<byte> rebindSpan = rebind.Span; 77ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestInfoAsn.xml.cs (9)
102ReadOnlySpan<byte> rebindSpan = rebind.Span; 104ReadOnlySpan<byte> tmpSpan; 145internal ReadOnlySpan<byte> Subject; 147internal ReadOnlySpan<byte> Attributes; 191internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueCertificationRequestInfoAsn decoded) 196internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueCertificationRequestInfoAsn decoded) 265private readonly ReadOnlySpan<byte> _encoded; 268internal AttributesEnumerable(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet) 281internal Enumerator(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet)
System\Security\Cryptography\X509Certificates\Asn1\PolicyInformationAsn.xml.cs (2)
92ReadOnlySpan<byte> rebindSpan = rebind.Span; 94ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.xml.cs (3)
14internal static ReadOnlySpan<byte> DefaultVersion => [0x02, 0x01, 0x00]; 185ReadOnlySpan<byte> rebindSpan = rebind.Span; 187ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\X509Certificates\CertificateHelpers.Windows.cs (2)
104ReadOnlySpan<int> provTypes = 142ReadOnlySpan<int> provTypes =
System\Security\Cryptography\X509Certificates\CertificatePal.cs (1)
15ReadOnlySpan<byte> rawData,
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.cs (3)
340ReadOnlySpan<byte> encodedSubjectName = certContext->pCertInfo->Subject.DangerousAsSpan(); 356ReadOnlySpan<byte> encodedIssuerName = certContext->pCertInfo->Issuer.DangerousAsSpan(); 389ReadOnlySpan<byte> rawData = pCertExtension->Value.DangerousAsSpan();
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.Import.cs (3)
13internal static partial ICertificatePal FromBlob(ReadOnlySpan<byte> rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags) 20return FromBlobOrFile(ReadOnlySpan<byte>.Empty, fileName, password, keyStorageFlags); 23private static CertificatePal FromBlobOrFile(ReadOnlySpan<byte> rawData, string? fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (3)
824ReadOnlySpan<byte> serialNumber) 1011ReadOnlySpan<byte> serialNumber) 1107private static ArraySegment<byte> NormalizeSerialNumber(ReadOnlySpan<byte> serialNumber)
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (11)
35ReadOnlySpan<char> pkcs10Pem, 49foreach ((ReadOnlySpan<char> contents, PemFields fields) in PemEnumerator.Utf16(pkcs10Pem)) 101ReadOnlySpan<byte> pkcs10, 117ReadOnlySpan<byte> pkcs10, 152ReadOnlySpan<byte> encodedRequestInfo = pkcs10Asn.PeekEncodedValue(); 155ReadOnlySpan<byte> signature; 220scoped ReadOnlySpan<byte> firstAttrValue = default; 223foreach (ReadOnlySpan<byte> values in attr.GetAttrValues(AsnEncodingRules.DER)) 278foreach (ReadOnlySpan<byte> val in attr.GetAttrValues(AsnEncodingRules.DER)) 301ReadOnlySpan<byte> toBeSigned, 302ReadOnlySpan<byte> signature,
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.cs (2)
133ReadOnlySpan<byte> serialNumber, 246public bool RemoveEntry(ReadOnlySpan<byte> serialNumber)
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Load.cs (4)
84ReadOnlySpan<byte> currentCrl, 161if (!extension.TryReadPrimitiveOctetString(out ReadOnlySpan<byte> extnValue)) 266public static CertificateRevocationListBuilder LoadPem(ReadOnlySpan<char> currentCrl, out BigInteger currentCrlNumber) 268foreach ((ReadOnlySpan<char> contents, PemFields fields) in PemEnumerator.Utf16(currentCrl))
System\Security\Cryptography\X509Certificates\FindPal.Windows.cs (5)
98ReadOnlySpan<byte> actual = pCertContext.DangerousCertContext->pCertInfo->SerialNumber.DangerousAsSpan(); 136ReadOnlySpan<char> actual = MemoryMarshal.CreateReadOnlySpanFromNullTerminated((char*)pNameValue->Value.pbData); 174ReadOnlySpan<byte> extensionRawData = pV1Template->Value.DangerousAsSpan(); 195ReadOnlySpan<byte> extensionRawData = pV2Template->Value.DangerousAsSpan(); 292ReadOnlySpan<byte> extensionRawData = pCertExtension->Value.DangerousAsSpan();
System\Security\Cryptography\X509Certificates\IX509Pal.cs (1)
14X509ContentType GetCertContentType(ReadOnlySpan<byte> rawData);
System\Security\Cryptography\X509Certificates\PublicKey.cs (2)
215public static PublicKey CreateFromSubjectPublicKeyInfo(ReadOnlySpan<byte> source, out int bytesRead) 451ReadOnlySpan<byte> source,
System\Security\Cryptography\X509Certificates\RSAPkcs1X509SignatureGenerator.cs (1)
33ReadOnlySpan<byte> asnNull = [0x05, 0x00];
System\Security\Cryptography\X509Certificates\StorePal.cs (1)
14ReadOnlySpan<byte> rawData,
System\Security\Cryptography\X509Certificates\StorePal.Windows.Export.cs (1)
183ReadOnlySpan<char> passwordChars = password.DangerousGetSpan();
System\Security\Cryptography\X509Certificates\StorePal.Windows.Import.cs (2)
13internal static partial ILoaderPal FromBlob(ReadOnlySpan<byte> rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags) 23private static ILoaderPal FromBlobOrFile(ReadOnlySpan<byte> rawData, string? fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
System\Security\Cryptography\X509Certificates\WindowsHelpers.cs (1)
170this ReadOnlySpan<byte> encoded,
System\Security\Cryptography\X509Certificates\WindowsInterop.crypt32.cs (1)
91public static unsafe bool CryptDecodeObjectPointer(Interop.Crypt32.CertEncodingType dwCertEncodingType, CryptDecodeObjectStructType lpszStructType, ReadOnlySpan<byte> encoded, Interop.Crypt32.CryptDecodeObjectFlags dwFlags, void* pvStructInfo, ref int pcbStructInfo)
System\Security\Cryptography\X509Certificates\X500DistinguishedName.cs (3)
28public X500DistinguishedName(ReadOnlySpan<byte> encodedDistinguishedName) 130ReadOnlySpan<byte> rawDataSpan = rawData; 140ReadOnlySpan<byte> encodedValue = sequence.PeekEncodedValue();
System\Security\Cryptography\X509Certificates\X500DistinguishedNameBuilder.cs (2)
218ReadOnlySpan<char> twoLetterCodeSpan = twoLetterCode; 358ReadOnlySpan<char> value,
System\Security\Cryptography\X509Certificates\X500RelativeDistinguishedName.cs (2)
30ReadOnlySpan<byte> rawDataSpan = rawData.Span; 38ReadOnlySpan<byte> firstValue = typeAndValue.ReadEncodedValue();
System\Security\Cryptography\X509Certificates\X509AuthorityInformationAccessExtension.cs (1)
65public X509AuthorityInformationAccessExtension(ReadOnlySpan<byte> rawData, bool critical = false)
System\Security\Cryptography\X509Certificates\X509AuthorityKeyIdentifierExtension.cs (8)
71public X509AuthorityKeyIdentifierExtension(ReadOnlySpan<byte> rawData, bool critical = false) 239ReadOnlySpan<byte> subjectKeyIdentifier) 307ReadOnlySpan<byte> serialNumber) 404ReadOnlySpan<byte> keyIdentifier, 406ReadOnlySpan<byte> serialNumber) 477ReadOnlySpan<byte> skidBytes = skid.SubjectKeyIdentifierBytes.Span; 496ReadOnlySpan<byte> emptyExtension = [0x30, 0x00]; 500private void Decode(ReadOnlySpan<byte> rawData)
System\Security\Cryptography\X509Certificates\X509Certificate.cs (7)
66private protected X509Certificate(ReadOnlySpan<byte> data) 121private protected X509Certificate(ReadOnlySpan<byte> rawData, ReadOnlySpan<char> password, X509KeyStorageFlags keyStorageFlags) 182private protected X509Certificate(string fileName, ReadOnlySpan<char> password, X509KeyStorageFlags keyStorageFlags) 312ReadOnlySpan<byte> thisSerialNumber = GetRawSerialNumber(); 313ReadOnlySpan<byte> otherSerialNumber = other.GetRawSerialNumber(); 463internal static unsafe string GetCertHashString(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> rawData)
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (48)
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) 1347ReadOnlySpan<char> certContents = File.ReadAllText(certPemFilePath); 1348ReadOnlySpan<char> keyContents = keyPemFilePath is null ? certContents : File.ReadAllText(keyPemFilePath); 1409public static X509Certificate2 CreateFromEncryptedPemFile(string certPemFilePath, ReadOnlySpan<char> password, string? keyPemFilePath = default) 1413ReadOnlySpan<char> certContents = File.ReadAllText(certPemFilePath); 1414ReadOnlySpan<char> keyContents = keyPemFilePath is null ? certContents : File.ReadAllText(keyPemFilePath); 1459public static X509Certificate2 CreateFromPem(ReadOnlySpan<char> certPem, ReadOnlySpan<char> keyPem) 1541/// For PEM-encoded keys without a password, use <see cref="CreateFromPem(ReadOnlySpan{char}, ReadOnlySpan{char})" />. 1545public static X509Certificate2 CreateFromEncryptedPem(ReadOnlySpan<char> certPem, ReadOnlySpan<char> keyPem, ReadOnlySpan<char> password) 1620/// <see cref="CreateFromPem(ReadOnlySpan{char}, ReadOnlySpan{char})" />. 1627public static X509Certificate2 CreateFromPem(ReadOnlySpan<char> certPem) 1629foreach ((ReadOnlySpan<char> contents, PemFields fields) in PemEnumerator.Utf16(certPem)) 1631ReadOnlySpan<char> label = contents[fields.Label]; 1867ReadOnlySpan<char> match = hostname; 1880ReadOnlySpan<char> afterFirstDot = default; 1898ReadOnlySpan<char> embeddedSpan = embedded; 1975private static TAlg CreateAndImport<TAlg>(ReadOnlySpan<char> keyPem, Func<TAlg> factory) where TAlg : AsymmetricAlgorithm 1983ReadOnlySpan<char> keyPem, 1984ReadOnlySpan<char> password, 1993ReadOnlySpan<char> keyPem, 1994ReadOnlySpan<string> labels, 1995Func<ReadOnlySpan<char>, TAlg> factory, 1998foreach ((ReadOnlySpan<char> contents, PemFields fields) in PemEnumerator.Utf16(keyPem)) 2000ReadOnlySpan<char> label = contents[fields.Label]; 2015ReadOnlySpan<char> keyPem, 2016Func<ReadOnlySpan<char>, TAlg> factory, 2033ReadOnlySpan<char> keyPem, 2034ReadOnlySpan<char> password, 2035Func<ReadOnlySpan<char>, ReadOnlySpan<char>, TAlg> factory, 2038foreach ((ReadOnlySpan<char> contents, PemFields fields) in PemEnumerator.Utf16(keyPem)) 2040ReadOnlySpan<char> label = contents[fields.Label]; 2098ReadOnlySpan<char> keyPem, 2099ReadOnlySpan<char> password) 2103foreach ((ReadOnlySpan<char> contents, PemFields fields) in PemEnumerator.Utf16(keyPem)) 2105ReadOnlySpan<char> label = contents[fields.Label]; 2163private static X509Certificate2 ExtractKeyFromECPem(X509Certificate2 certificate, ReadOnlySpan<char> keyPem) 2167foreach ((ReadOnlySpan<char> contents, PemFields fields) in PemEnumerator.Utf16(keyPem)) 2169ReadOnlySpan<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 unsafe X509Certificate2Collection FindByThumbprintCore(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> thumbprintBytes)
System\Security\Cryptography\X509Certificates\X509CertificateLoader.netcore.cs (5)
18public static partial X509Certificate2 LoadCertificate(ReadOnlySpan<byte> data) 39private static partial ICertificatePal LoadCertificatePal(ReadOnlySpan<byte> data); 43ReadOnlySpan<byte> data, 44ReadOnlySpan<char> password, 68ReadOnlySpan<char> password,
System\Security\Cryptography\X509Certificates\X509CertificateLoader.Windows.cs (8)
13private static partial ICertificatePal LoadCertificatePal(ReadOnlySpan<byte> data) 45ReadOnlySpan<char> password, 60ReadOnlySpan<char> password, 74ReadOnlySpan<char> password, 145ReadOnlySpan<char> password, 223ReadOnlySpan<char> password, 234ReadOnlySpan<byte> data, 235ReadOnlySpan<char> password,
System\Security\Cryptography\X509Certificates\X509Extension.cs (3)
21: this(oid, (ReadOnlySpan<byte>)(rawData ?? throw new ArgumentNullException(nameof(rawData))), critical) 38public X509Extension(Oid oid, ReadOnlySpan<byte> rawData, bool critical) 63public X509Extension(string oid, ReadOnlySpan<byte> rawData, bool critical)
System\Security\Cryptography\X509Certificates\X509KeyUsageExtension.cs (1)
64internal static void DecodeX509KeyUsageExtension(ReadOnlySpan<byte> encoded, out X509KeyUsageFlags keyUsages)
System\Security\Cryptography\X509Certificates\X509Pal.Windows.GetCertContentType.cs (1)
15public X509ContentType GetCertContentType(ReadOnlySpan<byte> rawData)
System\Security\Cryptography\X509Certificates\X509Pal.Windows.PublicKey.cs (1)
168private static void ExportNamedCurveParameters(ref ECParameters ecParams, ReadOnlySpan<byte> ecBlob, bool includePrivateParameters)
System\Security\Cryptography\X509Certificates\X509SubjectAlternativeNameExtension.cs (3)
43public X509SubjectAlternativeNameExtension(ReadOnlySpan<byte> rawData, bool critical = false) 98ReadOnlySpan<byte> value = item.IPAddress.GetValueOrDefault().Span; 106private static List<GeneralNameAsn> Decode(ReadOnlySpan<byte> rawData)
System\Security\Cryptography\X509Certificates\X509SubjectKeyIdentifierExtension.cs (4)
28: this((ReadOnlySpan<byte>)(subjectKeyIdentifier ?? throw new ArgumentNullException(nameof(subjectKeyIdentifier))), critical) 32public X509SubjectKeyIdentifierExtension(ReadOnlySpan<byte> subjectKeyIdentifier, bool critical) 102ReadOnlySpan<byte> contents; 125private static byte[] EncodeExtension(ReadOnlySpan<byte> subjectKeyIdentifier)
System\Security\Cryptography\XmlKeyHelper.cs (1)
122internal static unsafe void WriteCryptoBinary(string name, ReadOnlySpan<byte> value, StringBuilder builder)
System.Security.Cryptography.Cose (108)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (3)
165/// To specify a CBOR-encoded value directly, see <see cref="CoseHeaderValue.FromEncodedValue(ReadOnlySpan{byte})"/> and <see cref="Add(CoseHeaderLabel, CoseHeaderValue)"/>. 177/// To specify a CBOR-encoded value directly, see <see cref="CoseHeaderValue.FromEncodedValue(ReadOnlySpan{byte})"/> and <see cref="Add(CoseHeaderLabel, CoseHeaderValue)"/>. 179public void Add(CoseHeaderLabel label, ReadOnlySpan<byte> value) => Add(label, CoseHeaderValue.FromBytes(value));
System\Security\Cryptography\Cose\CoseHeaderValue.cs (3)
37public static CoseHeaderValue FromEncodedValue(ReadOnlySpan<byte> encodedValue) 98/// <seealso cref="FromEncodedValue(ReadOnlySpan{byte})"/> 99public static CoseHeaderValue FromBytes(ReadOnlySpan<byte> value)
System\Security\Cryptography\Cose\CoseHelpers.cs (3)
202ReadOnlySpan<byte> encodedValue = buffer.Slice(0, bytesWritten); 216internal static void WriteContent(CborWriter writer, ReadOnlySpan<byte> content, bool isDetached) 228internal static void WriteSignature(Span<byte> buffer, ReadOnlySpan<byte> toBeSigned, CborWriter writer, CoseSigner signer)
System\Security\Cryptography\Cose\CoseKey.cs (5)
190internal int Sign(ReadOnlySpan<byte> toBeSigned, Span<byte> destination) 215private static int SignHashWithECDsa(ECDsa key, ReadOnlySpan<byte> hash, Span<byte> destination) 226private static int SignHashWithRSA(RSA key, ReadOnlySpan<byte> hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding, Span<byte> destination) 237internal bool Verify(ReadOnlySpan<byte> toBeSigned, ReadOnlySpan<byte> signature)
System\Security\Cryptography\Cose\CoseMessage.cs (12)
106public static CoseSign1Message DecodeSign1(ReadOnlySpan<byte> cborPayload) 191public static CoseMultiSignMessage DecodeMultiSign(ReadOnlySpan<byte> cborPayload) 433ReadOnlySpan<byte> bodyProtected, 434ReadOnlySpan<byte> signProtected, 435ReadOnlySpan<byte> associatedData, 436ReadOnlySpan<byte> contentBytes, 439int bytesWritten = CreateToBeSigned(buffer, context, bodyProtected, signProtected, associatedData, ReadOnlySpan<byte>.Empty); 485int bytesWritten = CreateToBeSigned(buffer, context, bodyProtected.Span, signProtected.Span, associatedData.Span, ReadOnlySpan<byte>.Empty); 508internal 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) 788AppendToBeSigned(buffer, toBeSignedBuilder, SigStructureContext.Signature1, _protectedHeaderAsBstr, ReadOnlySpan<byte>.Empty, associatedData, contentBytes, contentStream); 840/// <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})"/> 646private bool VerifyCore(CoseKey key, ReadOnlySpan<byte> contentBytes, Stream? contentStream, ReadOnlySpan<byte> associatedData)
System\Security\Cryptography\Cose\HashToBeSignedBuilder.cs (1)
21internal override void AppendToBeSigned(ReadOnlySpan<byte> data)
System\Security\Cryptography\Cose\PureDataToBeSignedBuilder.cs (1)
21internal override void AppendToBeSigned(ReadOnlySpan<byte> data)
System\Security\Cryptography\Cose\ToBeSignedBuilder.cs (2)
13internal delegate void ToBeSignedOperation(Span<byte> arg, ReadOnlySpan<byte> data); 27internal abstract void AppendToBeSigned(ReadOnlySpan<byte> data);
System.Security.Cryptography.Pkcs (414)
Internal\Cryptography\Pal\AnyOS\ManagedPal.Asn.cs (1)
14public override Oid GetEncodedMessageType(ReadOnlySpan<byte> encodedMessage)
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (1)
49if (reader.TryReadPrimitiveOctetString(out ReadOnlySpan<byte> contents))
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decode.cs (2)
20ReadOnlySpan<byte> encodedMessage, 97private static byte[] CopyContent(ReadOnlySpan<byte> encodedMessage)
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decrypt.cs (1)
155private static byte[] GetAsnSequenceWithContentNoValidation(ReadOnlySpan<byte> content)
Internal\Cryptography\Pal\AnyOS\ManagedPal.Encrypt.cs (2)
204ReadOnlySpan<byte> content = contentInfo.Content.AsSpan(contentOffset, contentLength); 214static byte[] EncryptOneShot(SymmetricAlgorithm alg, ReadOnlySpan<byte> plaintext)
Internal\Cryptography\Pal\AnyOS\ManagedPal.Kem.cs (4)
87State3<ReadOnlySpan<byte>, ReadOnlySpan<byte>, int> encodeState = new(cek, sharedSecret, 0); 233Action<TState, ReadOnlySpan<byte>, Span<byte>> decapsulator, 290State3<ManagedKemRecipientInfoPal, HashAlgorithmName, ReadOnlySpan<byte>> encodeState =
Internal\Cryptography\Pal\AnyOS\ManagedPal.KeyAgree.cs (2)
79ReadOnlySpan<byte> rawData = ReadOnlySpan<byte>.Empty;
Internal\Cryptography\Pal\AnyOS\ManagedPal.KeyTrans.cs (2)
67ReadOnlySpan<byte> encryptedKey, 165ReadOnlySpan<byte> encryptedKey,
Internal\Cryptography\Pal\Windows\DecryptorPalWindows.Decode.cs (1)
20ReadOnlySpan<byte> encodedMessage,
Internal\Cryptography\Pal\Windows\HelpersWindows.cs (1)
494ReadOnlySpan<byte> encodedAttribute = pCryptAttribute->rgValue[i].DangerousAsSpan();
Internal\Cryptography\Pal\Windows\PkcsPalWindows.cs (2)
24public sealed override DecryptorPal Decode(ReadOnlySpan<byte> encodedMessage, out int version, out ContentInfo contentInfo, out AlgorithmIdentifier contentEncryptionAlgorithm, out X509Certificate2Collection originatorCerts, out CryptographicAttributeObjectCollection unprotectedAttributes) 29public sealed override Oid GetEncodedMessageType(ReadOnlySpan<byte> encodedMessage)
Internal\Cryptography\PkcsHelpers.cs (3)
298public static string ToBigEndianHex(this ReadOnlySpan<byte> bytes) 323private static string ToUpperHexString(ReadOnlySpan<byte> ba) 437ReadOnlySpan<byte> pSpecifiedDefaultParameters = [0x04, 0x00];
Internal\Cryptography\PkcsPal.cs (2)
34public abstract DecryptorPal Decode(ReadOnlySpan<byte> encodedMessage, out int version, out ContentInfo contentInfo, out AlgorithmIdentifier contentEncryptionAlgorithm, out X509Certificate2Collection originatorCerts, out CryptographicAttributeObjectCollection unprotectedAttributes); 39public abstract Oid GetEncodedMessageType(ReadOnlySpan<byte> encodedMessage);
src\runtime\src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (7)
65public static void EnsureSingleBerValue(ReadOnlySpan<byte> source) 102public static string DecodeOid(ReadOnlySpan<byte> encodedOid) 131public static int FirstBerValueLength(ReadOnlySpan<byte> source) 175ReadOnlySpan<byte> input = encodedOctetString.Span; 180out ReadOnlySpan<byte> primitive, 340public static Pkcs9AttributeObject CreateBestPkcs9AttributeObjectAvailable(Oid oid, ReadOnlySpan<byte> encodedAttribute) 356static Pkcs9LocalKeyId CreatePkcs9LocalKeyId(ReadOnlySpan<byte> data)
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.DATA_BLOB.cs (1)
35internal unsafe ReadOnlySpan<byte> DangerousAsSpan() => new ReadOnlySpan<byte>((void*)pbData, (int)cbData);
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
78private static string GetAndTrimString(ReadOnlySpan<char> buffer)
src\runtime\src\libraries\Common\src\System\HexConverter.cs (9)
187public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper) 204public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper) 221public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 244public ReadOnlySpan<byte> Bytes { get; set; } 276public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 288public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 456private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 491private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 598public static ReadOnlySpan<byte> CharToHexLookup =>
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.manual.cs (3)
47ReadOnlySpan<byte> span = parameters.Value.Span; 78internal static ReadOnlySpan<byte> ExplicitDerNull => [0x05, 0x00]; 115ReadOnlySpan<byte> span = algorithm.Parameters;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs (5)
92ReadOnlySpan<byte> rebindSpan = rebind.Span; 94ReadOnlySpan<byte> tmpSpan; 114internal ReadOnlySpan<byte> Parameters 160internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueAlgorithmIdentifierAsn decoded) 165internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueAlgorithmIdentifierAsn decoded)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (10)
96ReadOnlySpan<byte> rebindSpan = rebind.Span; 98ReadOnlySpan<byte> tmpSpan; 127internal ReadOnlySpan<byte> AttrValues; 158internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueAttributeAsn decoded) 163internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueAttributeAsn decoded) 220private readonly ReadOnlySpan<byte> _encoded; 223internal AttrValuesEnumerable(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet) 234private ReadOnlySpan<byte> _current; 236internal Enumerator(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet) 248public ReadOnlySpan<byte> Current => _current;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs (6)
73ReadOnlySpan<byte> rebindSpan = rebind.Span; 75ReadOnlySpan<byte> tmpSpan; 97internal ReadOnlySpan<byte> Digest; 113internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueDigestInfoAsn decoded) 118internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueDigestInfoAsn decoded) 154ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (2)
160ReadOnlySpan<byte> rebindSpan = rebind.Span; 162ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\EncryptedPrivateKeyInfoAsn.xml.cs (6)
73ReadOnlySpan<byte> rebindSpan = rebind.Span; 75ReadOnlySpan<byte> tmpSpan; 97internal ReadOnlySpan<byte> EncryptedData; 113internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueEncryptedPrivateKeyInfoAsn decoded) 118internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueEncryptedPrivateKeyInfoAsn decoded) 154ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (2)
221ReadOnlySpan<byte> rebindSpan = rebind.Span; 223ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\OaepParamsAsn.xml.cs (3)
13internal static ReadOnlySpan<byte> DefaultHashFunc => [0x30, 0x09, 0x06, 0x05, 0x2B, 0x0E, 0x03, 0x02, 0x1A, 0x05, 0x00]; 15internal 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]; 17internal static ReadOnlySpan<byte> DefaultPSourceFunc => [0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x09, 0x04, 0x00];
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\OtherNameAsn.xml.cs (2)
90ReadOnlySpan<byte> rebindSpan = rebind.Span; 92ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PBEParameter.xml.cs (4)
14internal ReadOnlySpan<byte> Salt; 31internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePBEParameter decoded) 36internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePBEParameter decoded) 72ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PBES2Params.xml.cs (2)
31internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePBES2Params decoded) 36internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePBES2Params decoded)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2Params.xml.cs (3)
13internal static ReadOnlySpan<byte> DefaultPrf => [0x30, 0x0C, 0x06, 0x08, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x07, 0x05, 0x00]; 68internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePbkdf2Params decoded) 73internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePbkdf2Params decoded)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (3)
42internal ReadOnlySpan<byte> Specified 101internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePbkdf2SaltChoice decoded) 132ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs (2)
90ReadOnlySpan<byte> rebindSpan = rebind.Span; 92ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs (7)
13internal static ReadOnlySpan<byte> DefaultIterationCount => [0x02, 0x01, 0x01]; 110ReadOnlySpan<byte> rebindSpan = rebind.Span; 112ReadOnlySpan<byte> tmpSpan; 155internal ReadOnlySpan<byte> MacSalt; 185internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueMacData decoded) 190internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueMacData decoded) 227ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs (2)
16ReadOnlySpan<char> macPassword, 17ReadOnlySpan<byte> authSafeContents)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.xml.cs (2)
140internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePfxAsn decoded) 145internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePfxAsn decoded)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs (2)
106ReadOnlySpan<byte> rebindSpan = rebind.Span; 108ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SecretBagAsn.xml.cs (2)
90ReadOnlySpan<byte> rebindSpan = rebind.Span; 92ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\CertificateChoiceAsn.xml.cs (2)
208ReadOnlySpan<byte> rebindSpan = rebind.Span; 210ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs (5)
90ReadOnlySpan<byte> rebindSpan = rebind.Span; 92ReadOnlySpan<byte> tmpSpan; 110internal ReadOnlySpan<byte> Content; 143internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueContentInfoAsn decoded) 148internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueContentInfoAsn decoded)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncapsulatedContentInfoAsn.xml.cs (2)
95ReadOnlySpan<byte> rebindSpan = rebind.Span; 97ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs (2)
87ReadOnlySpan<byte> rebindSpan = rebind.Span; 89ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\IssuerAndSerialNumberAsn.xml.cs (2)
89ReadOnlySpan<byte> rebindSpan = rebind.Span; 91ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\OtherCertificateFormat.xml.cs (2)
87ReadOnlySpan<byte> rebindSpan = rebind.Span; 89ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignedDataAsn.xml.cs (2)
128ReadOnlySpan<byte> rebindSpan = rebind.Span; 130ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerIdentifierAsn.xml.cs (2)
111ReadOnlySpan<byte> rebindSpan = rebind.Span; 113ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerInfoAsn.xml.cs (2)
118ReadOnlySpan<byte> rebindSpan = rebind.Span; 120ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (10)
91ReadOnlySpan<byte> rebindSpan = rebind.Span; 93ReadOnlySpan<byte> tmpSpan; 143internal ReadOnlySpan<byte> PrivateKey; 145internal ReadOnlySpan<byte> Attributes 186internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePrivateKeyInfoAsn decoded) 191internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePrivateKeyInfoAsn decoded) 227ReadOnlySpan<byte> tmpSpan; 265private readonly ReadOnlySpan<byte> _encoded; 268internal AttributesEnumerable(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet) 281internal Enumerator(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs (6)
13internal static ReadOnlySpan<byte> DefaultHashAlgorithm => [0x30, 0x09, 0x06, 0x05, 0x2B, 0x0E, 0x03, 0x02, 0x1A, 0x05, 0x00]; 15internal 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]; 17internal static ReadOnlySpan<byte> DefaultSaltLength => [0x02, 0x01, 0x14]; 19internal static ReadOnlySpan<byte> DefaultTrailerField => [0x02, 0x01, 0x01]; 134internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePssParamsAsn decoded) 139internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValuePssParamsAsn decoded)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Rc2CbcParameters.manual.cs (1)
15internal static ReadOnlySpan<byte> Rc2EkbEncoding =>
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Rc2CbcParameters.xml.cs (6)
73ReadOnlySpan<byte> rebindSpan = rebind.Span; 75ReadOnlySpan<byte> tmpSpan; 102internal ReadOnlySpan<byte> Iv; 118internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueRc2CbcParameters decoded) 123internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueRc2CbcParameters decoded) 159ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\SubjectPublicKeyInfoAsn.xml.cs (6)
73ReadOnlySpan<byte> rebindSpan = rebind.Span; 75ReadOnlySpan<byte> tmpSpan; 97internal ReadOnlySpan<byte> SubjectPublicKey; 113internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueSubjectPublicKeyInfoAsn decoded) 118internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueSubjectPublicKeyInfoAsn decoded) 154ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml.cs (7)
13internal static ReadOnlySpan<byte> DefaultCritical => [0x01, 0x01, 0x00]; 112ReadOnlySpan<byte> rebindSpan = rebind.Span; 114ReadOnlySpan<byte> tmpSpan; 148internal ReadOnlySpan<byte> ExtnValue; 184internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueX509ExtensionAsn decoded) 189internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueX509ExtensionAsn decoded) 226ReadOnlySpan<byte> tmpSpan;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\AsnWriter\AsnWriterExtensions.cs (1)
12ReadOnlySpan<byte> value)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Helpers.cs (4)
81internal static bool ContainsNull<T>(this ReadOnlySpan<T> span) 105internal static bool TryCopyToDestination(this ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 117private static int? TryGetHashOidToByteLength(ReadOnlySpan<char> hashOid) 257internal static void ThrowIfAsnInvalidLength(ReadOnlySpan<byte> data)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.cs (11)
12internal delegate TResult ExportPkcs8PrivateKeyFunc<TResult>(ReadOnlySpan<byte> pkcs8); 15ReadOnlySpan<TChar> password, 21internal delegate void KeyReader<TRet>(ReadOnlySpan<byte> key, in ValueAlgorithmIdentifierAsn algId, out TRet ret); 23internal delegate void KeyReader<TRet, TState>(ReadOnlySpan<byte> key, TState state, in ValueAlgorithmIdentifierAsn algId, out TRet ret) 32ReadOnlySpan<byte> source, 60internal static ReadOnlySpan<byte> ReadSubjectPublicKeyInfo( 62ReadOnlySpan<byte> source, 93ReadOnlySpan<byte> source, 109ReadOnlySpan<byte> source, 139internal static ReadOnlySpan<byte> ReadPkcs8( 141ReadOnlySpan<byte> source,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (44)
15internal delegate TRet ReadOnlySpanFunc<TIn, TRet>(ReadOnlySpan<TIn> span); 19ReadOnlySpan<byte> source, 20ReadOnlySpan<char> password, 29ReadOnlySpan<byte>.Empty, 37ReadOnlySpan<byte> source, 38ReadOnlySpan<char> password, 51ReadOnlySpan<byte>.Empty, 60ReadOnlySpan<byte> source, 61ReadOnlySpan<byte> passwordBytes, 69ReadOnlySpan<char>.Empty, 78ReadOnlySpan<byte> source, 79ReadOnlySpan<byte> passwordBytes, 91ReadOnlySpan<char>.Empty, 101ReadOnlySpan<byte> source, 102ReadOnlySpan<char> password, 103ReadOnlySpan<byte> passwordBytes, 121ReadOnlySpan<byte> source, 122ReadOnlySpan<char> password, 123ReadOnlySpan<byte> passwordBytes, 190ReadOnlySpan<char> password, 196ReadOnlySpan<byte>.Empty, 202ReadOnlySpan<byte> passwordBytes, 207ReadOnlySpan<char>.Empty, 214ReadOnlySpan<char> password, 215ReadOnlySpan<byte> passwordBytes, 285ReadOnlySpan<char> inputPassword, 286ReadOnlySpan<byte> source, 291ReadOnlySpan<byte>.Empty, 297ReadOnlySpan<byte> inputPasswordBytes, 298ReadOnlySpan<byte> source, 302ReadOnlySpan<char>.Empty, 309ReadOnlySpan<char> password, 310ReadOnlySpan<byte> source, 334ReadOnlySpan<byte> passwordBytes, 335ReadOnlySpan<byte> source, 359ReadOnlySpan<char> inputPassword, 360ReadOnlySpan<byte> inputPasswordBytes, 361ReadOnlySpan<byte> source, 403ReadOnlySpan<char> inputPassword, 404ReadOnlySpan<byte> current, 405ReadOnlySpan<char> newPassword, 439ReadOnlySpan<char> inputPassword, 440ReadOnlySpan<byte> current, 441ReadOnlySpan<byte> newPasswordBytes,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Oids.Shared.cs (1)
97ReadOnlySpan<byte> contentBytes = valueAsnReader.PeekContentBytes();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (34)
19public OptionalReadOnlySpan(ReadOnlySpan<T> value, bool hasValue) 25public ReadOnlySpan<T> Value { get; } 38ReadOnlySpan<char> password, 39ReadOnlySpan<byte> passwordBytes) 81ReadOnlySpan<char> password, 82ReadOnlySpan<byte> passwordBytes, 83ReadOnlySpan<byte> encryptedData, 98ReadOnlySpan<char> password, 99ReadOnlySpan<byte> passwordBytes, 100ReadOnlySpan<byte> encryptedData, 200scoped ReadOnlySpan<byte> effectivePasswordBytes = default; 338ReadOnlySpan<char> password, 339ReadOnlySpan<byte> passwordBytes, 344ReadOnlySpan<byte> salt, 479ReadOnlySpan<char> password, 480ReadOnlySpan<byte> passwordBytes, 481ReadOnlySpan<byte> encryptedData, 485scoped ReadOnlySpan<byte> effectivePasswordBytes = default; 539ReadOnlySpan<byte> password, 540ReadOnlySpan<byte> encryptedData, 738ReadOnlySpan<byte> source = encryptionSchemeParameters.Value; 762ReadOnlySpan<byte> password, 810ReadOnlySpan<byte> saltSpan = pbkdf2Params.Salt.Specified; 846ReadOnlySpan<byte> password, 849ReadOnlySpan<byte> encryptedData, 898ReadOnlySpan<char> password, 901ReadOnlySpan<byte> encryptedData, 929ReadOnlySpan<byte> saltSpan = pbeParameters.Salt; 958ReadOnlySpan<byte> key, 959ReadOnlySpan<byte> iv, 960ReadOnlySpan<byte> encryptedData, 1020ReadOnlySpan<byte> password, 1021ReadOnlySpan<byte> salt, 1156ReadOnlySpan<byte> salt,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (7)
40ReadOnlySpan<byte> passwordBytes, 55ReadOnlySpan<char>.Empty, 58byte[] encrypted = safeContents.Encrypt(ReadOnlySpan<char>.Empty, passwordBytes, pbeParameters); 84ReadOnlySpan<char> password, 100ReadOnlySpan<byte>.Empty); 102byte[] encrypted = safeContents.Encrypt(password, ReadOnlySpan<byte>.Empty, pbeParameters); 149ReadOnlySpan<char> password,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Info.cs (1)
37public bool VerifyMac(ReadOnlySpan<char> password)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (10)
139ReadOnlySpan<byte> passwordBytes, 167ReadOnlySpan<char> password, 199public void Decrypt(ReadOnlySpan<byte> passwordBytes) 201Decrypt(ReadOnlySpan<char>.Empty, passwordBytes); 210public void Decrypt(ReadOnlySpan<char> password) 212Decrypt(password, ReadOnlySpan<byte>.Empty); 215private void Decrypt(ReadOnlySpan<char> password, ReadOnlySpan<byte> passwordBytes) 415ReadOnlySpan<char> password, 416ReadOnlySpan<byte> passwordBytes,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (10)
101public byte[] Encrypt(ReadOnlySpan<char> password, PbeParameters pbeParameters) 108ReadOnlySpan<byte>.Empty); 117public byte[] Encrypt(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters) 123ReadOnlySpan<char>.Empty, 138ReadOnlySpan<char> password, 148ReadOnlySpan<byte>.Empty); 156ReadOnlySpan<byte> passwordBytes, 165ReadOnlySpan<char>.Empty, 174ReadOnlySpan<char> password, 205ReadOnlySpan<byte> passwordBytes,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9AttributeObject.cs (1)
48internal Pkcs9AttributeObject(Oid oid, ReadOnlySpan<byte> encodedData)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9ContentType.cs (1)
28internal Pkcs9ContentType(ReadOnlySpan<byte> rawData)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9DocumentDescription.cs (1)
39internal Pkcs9DocumentDescription(ReadOnlySpan<byte> encodedDocumentDescription)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9DocumentName.cs (1)
39internal Pkcs9DocumentName(ReadOnlySpan<byte> encodedDocumentName)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9LocalKeyId.cs (2)
31public Pkcs9LocalKeyId(ReadOnlySpan<byte> keyId) : base(Oids.LocalKeyIdOid.CopyOid(), EncodeFromKeyId(keyId)) 35private static byte[] EncodeFromKeyId(ReadOnlySpan<byte> keyId)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9MessageDigest.cs (1)
27internal Pkcs9MessageDigest(ReadOnlySpan<byte> rawData)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9SigningTime.cs (1)
40internal Pkcs9SigningTime(ReadOnlySpan<byte> encodedSigningTime)
src\runtime\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\CadesIssuerSerial.xml.cs (2)
82ReadOnlySpan<byte> rebindSpan = rebind.Span; 84ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\Pkcs\Asn1\CmsOriForKemOtherInfoAsn.xml.cs (2)
83ReadOnlySpan<byte> rebindSpan = rebind.Span; 85ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\Pkcs\Asn1\EssCertId.xml.cs (2)
78ReadOnlySpan<byte> rebindSpan = rebind.Span; 80ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\Pkcs\Asn1\EssCertIdV2.xml.cs (3)
13internal static ReadOnlySpan<byte> DefaultHashAlgorithm => [0x30, 0x0B, 0x06, 0x09, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x01]; 110ReadOnlySpan<byte> rebindSpan = rebind.Span; 112ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\Pkcs\Asn1\KemRecipientInfoAsn.xml.cs (2)
95ReadOnlySpan<byte> rebindSpan = rebind.Span; 97ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientInfoAsn.xml.cs (2)
98ReadOnlySpan<byte> rebindSpan = rebind.Span; 100ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\Pkcs\Asn1\KeyTransRecipientInfoAsn.xml.cs (2)
77ReadOnlySpan<byte> rebindSpan = rebind.Span; 79ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\Pkcs\Asn1\MessageImprint.xml.cs (7)
73ReadOnlySpan<byte> rebindSpan = rebind.Span; 75ReadOnlySpan<byte> tmpSpan; 96internal ReadOnlySpan<byte> HashAlgorithm; 97internal ReadOnlySpan<byte> HashedMessage; 121internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueMessageImprint decoded) 126internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueMessageImprint decoded) 162ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\Pkcs\Asn1\OriginatorIdentifierOrKeyAsn.xml.cs (2)
122ReadOnlySpan<byte> rebindSpan = rebind.Span; 124ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\Pkcs\Asn1\OriginatorInfoAsn.xml.cs (2)
106ReadOnlySpan<byte> rebindSpan = rebind.Span; 108ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\Pkcs\Asn1\OriginatorPublicKeyAsn.xml.cs (2)
73ReadOnlySpan<byte> rebindSpan = rebind.Span; 75ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\Pkcs\Asn1\OtherKeyAttributeAsn.xml.cs (2)
92ReadOnlySpan<byte> rebindSpan = rebind.Span; 94ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\Pkcs\Asn1\OtherRecipientInfoAsn.xml.cs (2)
87ReadOnlySpan<byte> rebindSpan = rebind.Span; 89ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\Pkcs\Asn1\PkiStatusInfo.xml.cs (2)
101ReadOnlySpan<byte> rebindSpan = rebind.Span; 103ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\Pkcs\Asn1\PolicyQualifierInfo.xml.cs (2)
87ReadOnlySpan<byte> rebindSpan = rebind.Span; 89ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\Pkcs\Asn1\RecipientEncryptedKeyAsn.xml.cs (2)
73ReadOnlySpan<byte> rebindSpan = rebind.Span; 75ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\Pkcs\Asn1\RecipientIdentifierAsn.xml.cs (2)
111ReadOnlySpan<byte> rebindSpan = rebind.Span; 113ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\Pkcs\Asn1\RecipientKeyIdentifier.xml.cs (2)
85ReadOnlySpan<byte> rebindSpan = rebind.Span; 87ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TimeStampReq.xml.cs (3)
14internal static ReadOnlySpan<byte> DefaultCertReq => [0x01, 0x01, 0x00]; 142ReadOnlySpan<byte> rebindSpan = rebind.Span; 144ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TimeStampResp.xml.cs (2)
85ReadOnlySpan<byte> rebindSpan = rebind.Span; 87ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\Pkcs\Asn1\Rfc3161TstInfo.xml.cs (9)
14internal static ReadOnlySpan<byte> DefaultOrdering => [0x01, 0x01, 0x00]; 158ReadOnlySpan<byte> rebindSpan = rebind.Span; 160ReadOnlySpan<byte> tmpSpan; 243internal ReadOnlySpan<byte> SerialNumber; 248internal ReadOnlySpan<byte> Nonce 260internal ReadOnlySpan<byte> Tsa 272internal ReadOnlySpan<byte> Extensions 363internal static void Decode(ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueRfc3161TstInfo decoded) 368internal static void Decode(Asn1Tag expectedTag, ReadOnlySpan<byte> encoded, AsnEncodingRules ruleSet, out ValueRfc3161TstInfo decoded)
System\Security\Cryptography\Pkcs\CmsHash.cs (4)
21internal abstract void AppendData(ReadOnlySpan<byte> data); 42internal override void AppendData(ReadOnlySpan<byte> data) => _shake256.AppendData(data); 72internal override void AppendData(ReadOnlySpan<byte> data) => _shake128.AppendData(data); 100internal override void AppendData(ReadOnlySpan<byte> data) => _incrementalHash.AppendData(data);
System\Security\Cryptography\Pkcs\CmsRecipient.cs (3)
93ReadOnlySpan<byte> userKeyingMaterial) => 114ReadOnlySpan<byte> userKeyingMaterial) => 120ReadOnlySpan<byte> userKeyingMaterial)
System\Security\Cryptography\Pkcs\CmsSignature.cs (5)
40ReadOnlySpan<byte> valueHash, 52ReadOnlySpan<byte> dataHash, 121ReadOnlySpan<byte> dataHash, 194ReadOnlySpan<byte> val = sequence.ReadIntegerBytes(); 230private static byte[] DsaIeeeToDer(ReadOnlySpan<byte> ieeeSignature)
System\Security\Cryptography\Pkcs\CmsSignature.DSA.cs (3)
44ReadOnlySpan<byte> valueHash, 106ReadOnlySpan<byte> dataHash, 158var signature = new ReadOnlySpan<byte>(rented, 0, bytesWritten);
System\Security\Cryptography\Pkcs\CmsSignature.ECDsa.cs (3)
46ReadOnlySpan<byte> valueHash, 111ReadOnlySpan<byte> dataHash, 173var signedHash = new ReadOnlySpan<byte>(rented, 0, bytesWritten);
System\Security\Cryptography\Pkcs\CmsSignature.MLDsa.cs (2)
37ReadOnlySpan<byte> valueHash, 78ReadOnlySpan<byte> dataHash,
System\Security\Cryptography\Pkcs\CmsSignature.RSA.cs (5)
47ReadOnlySpan<byte> valueHash, 103ReadOnlySpan<byte> dataHash, 199ReadOnlySpan<byte> expectedParameters = [0x05, 0x00]; 211ReadOnlySpan<byte> dataHash, 334ReadOnlySpan<byte> dataHash,
System\Security\Cryptography\Pkcs\CmsSignature.SlhDsa.cs (2)
48ReadOnlySpan<byte> valueHash, 92ReadOnlySpan<byte> dataHash,
System\Security\Cryptography\Pkcs\CmsSigner.cs (1)
242private byte[] PrepareAttributesToSign(ReadOnlySpan<byte> contentHash, string? contentTypeOid, out AsnWriter newSignedAttrsWriter)
System\Security\Cryptography\Pkcs\ContentInfo.cs (1)
43public static Oid GetContentType(ReadOnlySpan<byte> encodedMessage)
System\Security\Cryptography\Pkcs\EnvelopedCms.cs (1)
144void Decode(ReadOnlySpan<byte> encodedMessage)
System\Security\Cryptography\Pkcs\Rfc3161TimestampRequest.cs (3)
189ReadOnlySpan<byte> data, 267ReadOnlySpan<byte> nonceSpan = nonceMemory.Span; 357ReadOnlySpan<byte> firstElement = reader.PeekEncodedValue();
System\Security\Cryptography\Pkcs\Rfc3161TimestampToken.cs (7)
75ReadOnlySpan<byte> data, 98ReadOnlySpan<byte> hash, 122ReadOnlySpan<byte> hash, 164internal bool VerifyHash(ReadOnlySpan<byte> hash, string? hashAlgorithmId) 171private bool VerifyData(ReadOnlySpan<byte> data) 453ReadOnlySpan<byte> issuerDirectoryName, 454ReadOnlySpan<byte> serialNumber)
System\Security\Cryptography\Pkcs\SignedCms.cs (2)
177void Decode(ReadOnlySpan<byte> encodedMessage) 220static byte[] CopyContent(ReadOnlySpan<byte> encodedMessage)
System\Security\Cryptography\Pkcs\SignerInfo.cs (4)
611ReadOnlySpan<byte> digest, 701private delegate bool VerifyCallback<TState>(TState state, ReadOnlySpan<byte> contentToVerify); 977private static int FindAttributeValueIndexByEncodedData(ReadOnlyMemory<byte>[] attributeValues, ReadOnlySpan<byte> asnEncodedData, out bool isOnlyValue) 983ReadOnlySpan<byte> data = attributeValues[i].Span;
System\Security\Cryptography\Pkcs\SubjectIdentifier.cs (2)
56ReadOnlySpan<byte> issuerNameSpan = issuerAndSerialNumber.Value.Issuer.Span; 57ReadOnlySpan<byte> serial = issuerAndSerialNumber.Value.SerialNumber.Span;
System.Security.Cryptography.ProtectedData (17)
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.DATA_BLOB.cs (1)
35internal unsafe ReadOnlySpan<byte> DangerousAsSpan() => new ReadOnlySpan<byte>((void*)pbData, (int)cbData);
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
78private static string GetAndTrimString(ReadOnlySpan<char> buffer)
System\Security\Cryptography\ProtectedData.cs (15)
54ReadOnlySpan<byte> userData, 56ReadOnlySpan<byte> optionalEntropy = default) 102ReadOnlySpan<byte> userData, 106ReadOnlySpan<byte> optionalEntropy = default) 142ReadOnlySpan<byte> userData, 145ReadOnlySpan<byte> optionalEntropy = default) 206ReadOnlySpan<byte> encryptedData, 208ReadOnlySpan<byte> optionalEntropy = default) 255ReadOnlySpan<byte> encryptedData, 259ReadOnlySpan<byte> optionalEntropy = default) 295ReadOnlySpan<byte> encryptedData, 298ReadOnlySpan<byte> optionalEntropy = default) 321ReadOnlySpan<byte> inputData, 322ReadOnlySpan<byte> optionalEntropy, 335ReadOnlySpan<byte> relevantData = inputData.IsEmpty ? s_nonEmpty : inputData;
System.Security.Cryptography.Xml (9)
src\runtime\src\libraries\Common\src\System\HexConverter.cs (9)
187public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper) 204public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper) 221public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 244public ReadOnlySpan<byte> Bytes { get; set; } 276public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 288public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 456private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 491private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 598public static ReadOnlySpan<byte> CharToHexLookup =>
System.Security.Principal.Windows (5)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LibraryImports.g.cs (2)
443global::System.ReadOnlySpan<global::Interop.Advapi32.MARSHALLED_UNICODE_STRING> __names_native__managedSpan = __names_native__marshaller.GetManagedValuesSource(); 480global::System.ReadOnlySpan<global::Interop.Advapi32.MARSHALLED_UNICODE_STRING.Marshaller.Native> __names_native__nativeSpan = __names_native__marshaller.GetUnmanagedValuesDestination();
System\Security\Principal\SID.cs (2)
317private void CreateFromParts(IdentifierAuthority identifierAuthority, ReadOnlySpan<int> subAuthorities) 624internal SecurityIdentifier(IdentifierAuthority identifierAuthority, ReadOnlySpan<int> subAuthorities)
System\Security\Principal\WindowsIdentity.cs (1)
141ReadOnlySpan<byte> sourceName = "CLR\0"u8;
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\Connection.cs (1)
201public override void Write(ReadOnlySpan<byte> buffer)
System.ServiceModel.Primitives (2)
System\ServiceModel\Security\WindowsSspiNegotiation.cs (2)
198ReadOnlySpan<byte> incomingSpan = incomingBlob != null ? incomingBlob : ReadOnlySpan<byte>.Empty;
System.ServiceProcess.ServiceController (4)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
101public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 102public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 103public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 209public void Append(scoped ReadOnlySpan<char> value)
System.Speech (3)
Internal\ObjectToken\RegistryDataKey.cs (1)
488ReadOnlySpan<RegistryKey> roots =
Internal\Synthesis\VoiceSynthesis.cs (1)
1469ReadOnlySpan<string> categoryIds = [SAPICategories.Voices, SAPICategories.Voices_OneCore];
src\runtime\src\libraries\Common\src\Interop\Windows\WinMm\Interop.waveOutGetDevCaps.cs (1)
75szPname = ((ReadOnlySpan<char>)szPname).ToString(),
System.Text.Encoding.CodePages (14)
System\Text\EncodingTable.cs (2)
58ReadOnlySpan<int> encodingNameIndices = EncodingNameIndices; 135private static string? GetNameFromCodePage(int codePage, string names, ReadOnlySpan<int> indices, ConcurrentDictionary<int, string> cache)
System\Text\EncodingTable.Data.cs (7)
391private static ReadOnlySpan<int> EncodingNameIndices => 764private static ReadOnlySpan<ushort> CodePagesByName => 1138private static ReadOnlySpan<ushort> MappedCodePages => 1280private static ReadOnlySpan<byte> MappedFlags => 1417private static ReadOnlySpan<ushort> MappedFamilyCodePage => 1696private static ReadOnlySpan<int> WebNameIndices => 1975private static ReadOnlySpan<int> EnglishNameIndices =>
System\Text\ISCIIEncoding.cs (3)
792private static ReadOnlySpan<int> UnicodeToIndicChar => 1937private static ReadOnlySpan<byte> SecondIndicByte => 1952private static ReadOnlySpan<int> IndicMappingIndex =>
System\Text\ISO2022Encoding.cs (2)
63private static ReadOnlySpan<int> TableBaseCodePages => 1855private static ReadOnlySpan<ushort> HalfToFullWidthKanaTable =>
System.Text.Encodings.Web (45)
src\runtime\src\libraries\Common\src\System\HexConverter.cs (9)
187public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper) 204public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper) 221public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 244public ReadOnlySpan<byte> Bytes { get; set; } 276public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 288public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 456private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 491private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 598public static ReadOnlySpan<byte> CharToHexLookup =>
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
101public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 102public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 103public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 209public void Append(scoped ReadOnlySpan<char> value)
System\IO\TextWriterExtensions.cs (1)
31ReadOnlySpan<char> sliced = value.AsSpan(offset, count);
System\Text\Encodings\Web\AllowedBmpCodePointsBitmap.cs (1)
88ReadOnlySpan<byte> definedCharsBitmapAsLittleEndian = UnicodeHelpers.GetDefinedBmpCodePointsBitmapLittleEndian();
System\Text\Encodings\Web\DefaultHtmlEncoder.cs (4)
35private protected override OperationStatus EncodeCore(ReadOnlySpan<char> source, Span<char> destination, out int charsConsumed, out int charsWritten, bool isFinalBlock) 38private protected override OperationStatus EncodeUtf8Core(ReadOnlySpan<byte> utf8Source, Span<byte> utf8Destination, out int bytesConsumed, out int bytesWritten, bool isFinalBlock) 41private protected override int FindFirstCharacterToEncode(ReadOnlySpan<char> text) 47public override int FindFirstCharacterToEncodeUtf8(ReadOnlySpan<byte> utf8Text)
System\Text\Encodings\Web\DefaultJavaScriptEncoder.cs (4)
47private protected override OperationStatus EncodeCore(ReadOnlySpan<char> source, Span<char> destination, out int charsConsumed, out int charsWritten, bool isFinalBlock) 50private protected override OperationStatus EncodeUtf8Core(ReadOnlySpan<byte> utf8Source, Span<byte> utf8Destination, out int bytesConsumed, out int bytesWritten, bool isFinalBlock) 53private protected override int FindFirstCharacterToEncode(ReadOnlySpan<char> text) 59public override int FindFirstCharacterToEncodeUtf8(ReadOnlySpan<byte> utf8Text)
System\Text\Encodings\Web\DefaultUrlEncoder.cs (4)
110private protected override OperationStatus EncodeCore(ReadOnlySpan<char> source, Span<char> destination, out int charsConsumed, out int charsWritten, bool isFinalBlock) 113private protected override OperationStatus EncodeUtf8Core(ReadOnlySpan<byte> utf8Source, Span<byte> utf8Destination, out int bytesConsumed, out int bytesWritten, bool isFinalBlock) 116private protected override int FindFirstCharacterToEncode(ReadOnlySpan<char> text) 122public override int FindFirstCharacterToEncodeUtf8(ReadOnlySpan<byte> utf8Text)
System\Text\Encodings\Web\OptimizedInboxTextEncoder.cs (5)
34ReadOnlySpan<char> extraCharactersToEscape = default) 133public OperationStatus Encode(ReadOnlySpan<char> source, Span<char> destination, out int charsConsumed, out int charsWritten, bool isFinalBlock) 252public OperationStatus EncodeUtf8(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesConsumed, out int bytesWritten, bool isFinalBlock) 359public int GetIndexOfFirstByteToEncode(ReadOnlySpan<byte> data) 395public int GetIndexOfFirstCharToEncode(ReadOnlySpan<char> data)
System\Text\Encodings\Web\TextEncoder.cs (11)
148private string EncodeToNewString(ReadOnlySpan<char> value, int indexOfFirstCharToEncode) 150ReadOnlySpan<char> remainingInput = value.Slice(indexOfFirstCharToEncode); 278ReadOnlySpan<byte> utf8Source, 292ReadOnlySpan<byte> sourceSearchSpace = utf8Source; 323ReadOnlySpan<byte> utf8Source, 408ReadOnlySpan<char> source, 422ReadOnlySpan<char> sourceSearchSpace = source; 452private protected virtual OperationStatus EncodeCore(ReadOnlySpan<char> source, Span<char> destination, out int charsConsumed, out int charsWritten, bool isFinalBlock) 512private void EncodeCore(TextWriter output, ReadOnlySpan<char> value) 539private protected virtual unsafe int FindFirstCharacterToEncode(ReadOnlySpan<char> text) 559public virtual int FindFirstCharacterToEncodeUtf8(ReadOnlySpan<byte> utf8Text)
System\Text\Unicode\UnicodeHelpers.cs (1)
24internal static ReadOnlySpan<byte> GetDefinedBmpCodePointsBitmapLittleEndian() => DefinedCharsBitmapSpan;
System\Text\Unicode\UnicodeHelpers.generated.cs (1)
12private static ReadOnlySpan<byte> DefinedCharsBitmapSpan => // 0x2000
System.Text.Json (795)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\RegexGenerator.g.cs (4)
68protected override void Scan(ReadOnlySpan<char> inputSpan) 80private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 102private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 108ReadOnlySpan<char> slice = inputSpan.Slice(pos);
parent\Common\JsonSeparatorNamingPolicy.cs (1)
39private static string ConvertNameCore(char? separator, WordCasing wordCasing, ReadOnlySpan<char> chars)
src\runtime\src\libraries\Common\src\System\HexConverter.cs (9)
187public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper) 204public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper) 221public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 244public ReadOnlySpan<byte> Bytes { get; set; } 276public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 288public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 456private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 491private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 598public static ReadOnlySpan<byte> CharToHexLookup =>
src\runtime\src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
82public ReadOnlySpan<byte> ActiveReadOnlySpan => new ReadOnlySpan<byte>(_bytes, _activeStart, _availableStart - _activeStart);
src\runtime\src\libraries\Common\src\System\Text\Json\PooledByteBufferWriter.cs (1)
30public ReadOnlySpan<byte> WrittenSpan => _buffer.ActiveSpan;
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
101public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 102public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 103public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 209public void Append(scoped ReadOnlySpan<char> value)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Marvin.cs (1)
23public static int ComputeHash32(ReadOnlySpan<byte> data, ulong seed) => ComputeHash32(ref MemoryMarshal.GetReference(data), (uint)data.Length, (uint)seed, (uint)(seed >> 32));
System\Runtime\InteropServices\JsonMarshal.cs (4)
14/// Gets a <see cref="ReadOnlySpan{T}"/> view over the raw JSON data of the given <see cref="JsonElement"/>. 25public static ReadOnlySpan<byte> GetRawUtf8Value(JsonElement element) 31/// Gets a <see cref="ReadOnlySpan{T}"/> view over the raw JSON data of the given <see cref="JsonProperty"/> name. 44public static ReadOnlySpan<byte> GetRawUtf8PropertyName(JsonProperty property)
System\Text\Json\Document\JsonDocument.cs (40)
297ReadOnlySpan<byte> data = _utf8Json.Span; 298ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength); 305internal unsafe 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\Document\JsonDocument.Parse.cs (8)
175internal static JsonDocument ParseValue(ReadOnlySpan<byte> utf8Json, JsonDocumentOptions options) 284ReadOnlySpan<char> jsonChars = json.Span; 308internal static JsonDocument ParseValue(ReadOnlySpan<char> json, JsonDocumentOptions options) 459ReadOnlySpan<byte> valueSpan = default; 581ReadOnlySpan<byte> readerSpan = reader.OriginalSpan; 723ReadOnlySpan<byte> utf8JsonSpan = utf8Json.Span; 763ReadOnlySpan<byte> utf8JsonSpan = utf8Json.Span; 802ReadOnlySpan<byte> utf8Bom = JsonConstants.Utf8Bom;
System\Text\Json\Document\JsonDocument.PropertyNameSet.cs (1)
89ReadOnlySpan<byte> previousPropertyName = utf8Json.Span.Slice(range.Start, range.Length);
System\Text\Json\Document\JsonDocument.TryGetProperty.cs (5)
11internal unsafe bool TryGetNamedPropertyValue(int index, ReadOnlySpan<char> propertyName, out JsonElement value) 111internal bool TryGetNamedPropertyValue(int index, ReadOnlySpan<byte> propertyName, out JsonElement value) 138ReadOnlySpan<byte> propertyName, 141ReadOnlySpan<byte> documentSpan = _utf8Json.Span; 166ReadOnlySpan<byte> currentPropertyName = documentSpan.Slice(row.Location, row.SizeOrLength);
System\Text\Json\Document\JsonElement.cs (10)
174public JsonElement GetProperty(ReadOnlySpan<char> propertyName) 214public JsonElement GetProperty(ReadOnlySpan<byte> utf8PropertyName) 288public bool TryGetProperty(ReadOnlySpan<char> propertyName, out JsonElement value) 324public bool TryGetProperty(ReadOnlySpan<byte> utf8PropertyName, out JsonElement value) 1180internal ReadOnlySpan<byte> GetPropertyNameRaw() 1227internal ReadOnlySpan<byte> ValueSpan 1467public bool ValueEquals(ReadOnlySpan<byte> utf8Text) 1497public bool ValueEquals(ReadOnlySpan<char> text) 1512internal bool TextEqualsHelper(ReadOnlySpan<byte> utf8Text, bool isPropertyName, bool shouldUnescape) 1519internal bool TextEqualsHelper(ReadOnlySpan<char> text, bool isPropertyName)
System\Text\Json\Document\JsonElement.Parse.cs (2)
84public static JsonElement Parse([StringSyntax(StringSyntaxAttribute.Json)] ReadOnlySpan<byte> utf8Json, JsonDocumentOptions options = default) 98public static JsonElement Parse([StringSyntax(StringSyntaxAttribute.Json)] ReadOnlySpan<char> json, JsonDocumentOptions options = default)
System\Text\Json\Document\JsonProperty.cs (4)
66public bool NameEquals(ReadOnlySpan<byte> utf8Text) 86public bool NameEquals(ReadOnlySpan<char> text) 91internal bool EscapedNameEquals(ReadOnlySpan<byte> utf8Text) 97internal ReadOnlySpan<byte> NameSpan => Value.GetPropertyNameRaw();
System\Text\Json\JsonConstants.cs (9)
38public static ReadOnlySpan<byte> Utf8Bom => [0xEF, 0xBB, 0xBF]; 39public static ReadOnlySpan<byte> TrueValue => "true"u8; 40public static ReadOnlySpan<byte> FalseValue => "false"u8; 41public static ReadOnlySpan<byte> NullValue => "null"u8; 43public static ReadOnlySpan<byte> NaNValue => "NaN"u8; 44public static ReadOnlySpan<byte> PositiveInfinityValue => "Infinity"u8; 45public static ReadOnlySpan<byte> NegativeInfinityValue => "-Infinity"u8; 50public static ReadOnlySpan<byte> Delimiters => ",}] \n\r\t/"u8; 53public static ReadOnlySpan<byte> EscapableChars => "\"nrt/ubf"u8;
System\Text\Json\JsonEncodedText.cs (5)
25public ReadOnlySpan<byte> EncodedUtf8Bytes => _utf8Value; 66public static JsonEncodedText Encode(ReadOnlySpan<char> value, JavaScriptEncoder? encoder = null) 76private static unsafe JsonEncodedText TranscodeAndEncode(ReadOnlySpan<char> value, JavaScriptEncoder? encoder) 113public static JsonEncodedText Encode(ReadOnlySpan<byte> utf8Value, JavaScriptEncoder? encoder = null) 124private static JsonEncodedText EncodeHelper(ReadOnlySpan<byte> utf8Value, JavaScriptEncoder? encoder)
System\Text\Json\JsonHelpers.cs (36)
22public static ReadOnlySpan<byte> GetUnescapedSpan(this scoped ref Utf8JsonReader reader) 25ReadOnlySpan<byte> span = reader.HasValueSequence ? reader.ValueSequence.ToArray() : reader.ValueSpan; 195ReadOnlySpan<byte> utf8Key, 199Debug.Assert(dictionary.Comparer is IAlternateEqualityComparer<ReadOnlySpan<char>, string>); 201Dictionary<string, TValue>.AlternateLookup<ReadOnlySpan<char>> spanLookup = 202dictionary.GetAlternateLookup<ReadOnlySpan<char>>(); 230ReadOnlySpan<byte> utf8Key, 235Dictionary<byte[], TValue>.AlternateLookup<ReadOnlySpan<byte>> spanLookup = 236dictionary.GetAlternateLookup<ReadOnlySpan<byte>>(); 247IAlternateEqualityComparer<ReadOnlySpan<byte>, byte[]>, 260byte[] IAlternateEqualityComparer<ReadOnlySpan<byte>, byte[]>.Create(ReadOnlySpan<byte> span) => 263bool IAlternateEqualityComparer<ReadOnlySpan<byte>, byte[]>.Equals( 264ReadOnlySpan<byte> span, 268int IAlternateEqualityComparer<ReadOnlySpan<byte>, byte[]>.GetHashCode(ReadOnlySpan<byte> span) => 272private static int ComputeHashCode(ReadOnlySpan<byte> value) => 323public static bool AreEqualJsonNumbers(ReadOnlySpan<byte> left, ReadOnlySpan<byte> right) 329out ReadOnlySpan<byte> leftIntegral, 330out ReadOnlySpan<byte> leftFractional, 335out ReadOnlySpan<byte> rightIntegral, 336out ReadOnlySpan<byte> rightFractional, 348ReadOnlySpan<byte> leftFirst; 349ReadOnlySpan<byte> leftMiddle; 350ReadOnlySpan<byte> leftLast; 352ReadOnlySpan<byte> rightFirst; 353ReadOnlySpan<byte> rightMiddle; 354ReadOnlySpan<byte> rightLast; 397ReadOnlySpan<byte> span, 399out ReadOnlySpan<byte> integral, 400out ReadOnlySpan<byte> fractional, 414ReadOnlySpan<byte> intg; 415ReadOnlySpan<byte> frac; 519static int IndexOfLastLeadingZero(ReadOnlySpan<byte> span) 525static 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) 557ReadOnlySpan<int> days = DateTime.IsLeapYear(parseData.Year) ? DaysToMonth366 : DaysToMonth365; 580private static ReadOnlySpan<int> DaysToMonth365 => [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365]; 581private static ReadOnlySpan<int> DaysToMonth366 => [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366];
System\Text\Json\JsonHelpers.Escaping.cs (4)
14public static byte[] GetEscapedPropertyNameSection(ReadOnlySpan<byte> utf8Value, JavaScriptEncoder? encoder) 29ReadOnlySpan<byte> utf8Value, 57ReadOnlySpan<byte> utf8Value, 84private static byte[] GetPropertyNameSection(ReadOnlySpan<byte> utf8Value)
System\Text\Json\Nodes\JsonArray.cs (3)
49public JsonArray(JsonNodeOptions options, params ReadOnlySpan<JsonNode?> items) : base(options) 67public JsonArray(params ReadOnlySpan<JsonNode?> items) : base() 161private void InitializeFromSpan(ReadOnlySpan<JsonNode?> items)
System\Text\Json\Nodes\JsonNode.Parse.cs (1)
94ReadOnlySpan<byte> utf8Json,
System\Text\Json\Reader\JsonReaderHelper.cs (13)
21public static bool ContainsSpecialCharacters(this ReadOnlySpan<char> text) => 30ReadOnlySpan<char> span = propertyName.AsSpan(); 66ReadOnlySpan<char> span = propertyName.AsSpan(); 96public static (int, int) CountNewLines(ReadOnlySpan<byte> data) 144public static bool TryGetValue(ReadOnlySpan<byte> segment, bool isEscaped, out DateTime value) 170public static unsafe bool TryGetEscapedDateTime(ReadOnlySpan<byte> source, out DateTime value) 192public static bool TryGetValue(ReadOnlySpan<byte> segment, bool isEscaped, out DateTimeOffset value) 218public static unsafe bool TryGetEscapedDateTimeOffset(ReadOnlySpan<byte> source, out DateTimeOffset value) 240public static bool TryGetValue(ReadOnlySpan<byte> segment, bool isEscaped, out Guid value) 267public static unsafe bool TryGetEscapedGuid(ReadOnlySpan<byte> source, out Guid value) 290public static bool TryGetFloatingPointConstant(ReadOnlySpan<byte> span, out Half value) 322public static bool TryGetFloatingPointConstant(ReadOnlySpan<byte> span, out float value) 353public static bool TryGetFloatingPointConstant(ReadOnlySpan<byte> span, out double value)
System\Text\Json\Reader\JsonReaderHelper.net8.cs (2)
22public static int IndexOfQuoteOrAnyControlOrBackSlash(this ReadOnlySpan<byte> span) => 34public static int IndexOfFirstNonWhiteSpace(this ReadOnlySpan<byte> span)
System\Text\Json\Reader\JsonReaderHelper.Unescaping.cs (20)
14public static unsafe bool TryGetUnescapedBase64Bytes(ReadOnlySpan<byte> utf8Source, [NotNullWhen(true)] out byte[]? bytes) 42public static unsafe string GetUnescapedString(ReadOnlySpan<byte> utf8Source) 69public static unsafe byte[] GetUnescaped(ReadOnlySpan<byte> utf8Source) 94public static unsafe bool UnescapeAndCompare(ReadOnlySpan<byte> utf8Source, ReadOnlySpan<byte> other) 121public static unsafe bool UnescapeAndCompare(ReadOnlySequence<byte> utf8Source, ReadOnlySpan<byte> other) 162public static unsafe bool UnescapeAndCompareBothInputs(ReadOnlySpan<byte> utf8Source1, ReadOnlySpan<byte> utf8Source2) 218public static unsafe bool TryDecodeBase64(ReadOnlySpan<byte> utf8Unescaped, [NotNullWhen(true)] out byte[]? bytes) 253public static string TranscodeHelper(ReadOnlySpan<byte> utf8Unescaped) 270public static int TranscodeHelper(ReadOnlySpan<byte> utf8Unescaped, Span<char> destination) 293public static void ValidateUtf8(ReadOnlySpan<byte> utf8Buffer) 317internal static int GetUtf8ByteCount(ReadOnlySpan<char> text) 334internal static int GetUtf8FromText(ReadOnlySpan<char> text, Span<byte> dest) 351internal static string GetTextFromUtf8(ReadOnlySpan<byte> utf8Text) 356internal static void Unescape(ReadOnlySpan<byte> source, Span<byte> destination, out int written) 367internal static void Unescape(ReadOnlySpan<byte> source, Span<byte> destination, int idx, out int written) 380internal static bool TryUnescape(ReadOnlySpan<byte> source, Span<byte> destination, out int written) 391private static bool TryUnescape(ReadOnlySpan<byte> source, Span<byte> destination, int idx, out int written) 506ReadOnlySpan<byte> remaining = source.Slice(idx);
System\Text\Json\Reader\Utf8JsonReader.cs (42)
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 unsafe 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; 1022ReadOnlySpan<byte> remaining = localBuffer.Slice(_consumed); 1167private bool ConsumeLiteral(ReadOnlySpan<byte> literal, JsonTokenType tokenType) 1169ReadOnlySpan<byte> span = _buffer.Slice(_consumed); 1185private bool CheckLiteral(ReadOnlySpan<byte> span, ReadOnlySpan<byte> literal) 1218private void ThrowInvalidLiteral(ReadOnlySpan<byte> span) 1319ReadOnlySpan<byte> localBuffer = _buffer.Slice(_consumed + 1); 1358private bool ConsumeStringAndValidate(ReadOnlySpan<byte> data, int idx) 1438private bool ValidateHexDigits(ReadOnlySpan<byte> data, int idx) 1458private bool TryGetNumber(ReadOnlySpan<byte> data, out int consumed) 1571private ConsumeNumberResult ConsumeNegativeSign(ref ReadOnlySpan<byte> data, scoped ref int i) 1598private ConsumeNumberResult ConsumeZero(ref ReadOnlySpan<byte> data, scoped ref int i) 1637private ConsumeNumberResult ConsumeIntegerDigits(ref ReadOnlySpan<byte> data, scoped ref int i) 1670private ConsumeNumberResult ConsumeDecimalDigits(ref ReadOnlySpan<byte> data, scoped ref int i) 1692private ConsumeNumberResult ConsumeSign(ref ReadOnlySpan<byte> data, scoped ref int i) 2350ReadOnlySpan<byte> localBuffer = _buffer.Slice(_consumed + 1); 2376private bool SkipSingleLineComment(ReadOnlySpan<byte> localBuffer, out int idx) 2435private int FindLineSeparator(ReadOnlySpan<byte> localBuffer) 2462private void ThrowOnDangerousLineSeparator(ReadOnlySpan<byte> localBuffer) 2480private bool SkipMultiLineComment(ReadOnlySpan<byte> localBuffer, out int idx) 2527ReadOnlySpan<byte> localBuffer = _buffer.Slice(_consumed + 1); 2553private bool ConsumeSingleLineComment(ReadOnlySpan<byte> localBuffer, int previousConsumed) 2571private bool ConsumeMultiLineComment(ReadOnlySpan<byte> localBuffer, int previousConsumed) 2613private ReadOnlySpan<byte> GetUnescapedSpan() 2615ReadOnlySpan<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 unsafe 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) 644private JsonException GetInvalidLiteralMultiSegment(ReadOnlySpan<byte> span) 744ReadOnlySpan<byte> localBuffer = _buffer.Slice(_consumed + 1); 804ReadOnlySpan<byte> localBuffer = _buffer; 946private bool ConsumeStringAndValidateMultiSegment(ReadOnlySpan<byte> data, int idx) 1109private bool TryGetNumberMultiSegment(ReadOnlySpan<byte> data, out int consumed) 1242private ConsumeNumberResult ConsumeNegativeSignMultiSegment(ref ReadOnlySpan<byte> data, scoped ref int i, scoped in PartialStateForRollback rollBackState) 1284private ConsumeNumberResult ConsumeZeroMultiSegment(ref ReadOnlySpan<byte> data, scoped ref int i, scoped in PartialStateForRollback rollBackState) 1340private ConsumeNumberResult ConsumeIntegerDigitsMultiSegment(ref ReadOnlySpan<byte> data, scoped ref int i) 1418private ConsumeNumberResult ConsumeDecimalDigitsMultiSegment(ref ReadOnlySpan<byte> data, scoped ref int i, scoped in PartialStateForRollback rollBackState) 1452private ConsumeNumberResult ConsumeSignMultiSegment(ref ReadOnlySpan<byte> data, scoped ref int i, scoped in PartialStateForRollback rollBackState) 2228ReadOnlySpan<byte> localBuffer = _buffer.Slice(_consumed); 2308private bool SkipSingleLineCommentMultiSegment(ReadOnlySpan<byte> localBuffer, out int tailBytesToSkip) 2400private int FindLineSeparatorMultiSegment(ReadOnlySpan<byte> localBuffer, scoped ref int dangerousLineSeparatorBytesConsumed) 2450private void ThrowOnDangerousLineSeparatorMultiSegment(ReadOnlySpan<byte> localBuffer, scoped ref int dangerousLineSeparatorBytesConsumed) 2499private bool SkipMultiLineCommentMultiSegment(ReadOnlySpan<byte> localBuffer) 2563localBuffer = ReadOnlySpan<byte>.Empty;
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (42)
39ReadOnlySpan<byte> span = HasValueSequence ? ValueSequence.ToArray() : ValueSpan; 104ReadOnlySpan<byte> valueSpan = ValueSpan; 148scoped ReadOnlySpan<byte> unescapedSource; 201scoped ReadOnlySpan<byte> source; 245ReadOnlySpan<byte> span = HasValueSequence ? ValueSequence.ToArray() : ValueSpan; 321ReadOnlySpan<byte> span = GetUnescapedSpan(); 356ReadOnlySpan<byte> span = GetUnescapedSpan(); 390ReadOnlySpan<byte> span = GetUnescapedSpan(); 424ReadOnlySpan<byte> span = GetUnescapedSpan(); 458ReadOnlySpan<byte> span = GetUnescapedSpan(); 493ReadOnlySpan<byte> span = GetUnescapedSpan(); 528ReadOnlySpan<byte> span = GetUnescapedSpan(); 563ReadOnlySpan<byte> span = GetUnescapedSpan(); 596ReadOnlySpan<byte> span = GetUnescapedSpan(); 618ReadOnlySpan<byte> span = GetUnescapedSpan(); 653ReadOnlySpan<byte> span = GetUnescapedSpan(); 675ReadOnlySpan<byte> span = GetUnescapedSpan(); 710ReadOnlySpan<byte> span = GetUnescapedSpan(); 834ReadOnlySpan<byte> span = HasValueSequence ? ValueSequence.ToArray() : ValueSpan; 862ReadOnlySpan<byte> span = HasValueSequence ? ValueSequence.ToArray() : ValueSpan; 867internal static bool TryGetByteCore(out byte value, ReadOnlySpan<byte> span) 898ReadOnlySpan<byte> span = HasValueSequence ? ValueSequence.ToArray() : ValueSpan; 903internal static bool TryGetSByteCore(out sbyte value, ReadOnlySpan<byte> span) 933ReadOnlySpan<byte> span = HasValueSequence ? ValueSequence.ToArray() : ValueSpan; 938internal static bool TryGetInt16Core(out short value, ReadOnlySpan<byte> span) 968ReadOnlySpan<byte> span = HasValueSequence ? ValueSequence.ToArray() : ValueSpan; 973internal static bool TryGetInt32Core(out int value, ReadOnlySpan<byte> span) 1003ReadOnlySpan<byte> span = HasValueSequence ? ValueSequence.ToArray() : ValueSpan; 1008internal static bool TryGetInt64Core(out long value, ReadOnlySpan<byte> span) 1039ReadOnlySpan<byte> span = HasValueSequence ? ValueSequence.ToArray() : ValueSpan; 1044internal static bool TryGetUInt16Core(out ushort value, ReadOnlySpan<byte> span) 1075ReadOnlySpan<byte> span = HasValueSequence ? ValueSequence.ToArray() : ValueSpan; 1080internal static bool TryGetUInt32Core(out uint value, ReadOnlySpan<byte> span) 1111ReadOnlySpan<byte> span = HasValueSequence ? ValueSequence.ToArray() : ValueSpan; 1116internal static bool TryGetUInt64Core(out ulong value, ReadOnlySpan<byte> span) 1146ReadOnlySpan<byte> span = HasValueSequence ? ValueSequence.ToArray() : ValueSpan; 1176ReadOnlySpan<byte> span = HasValueSequence ? ValueSequence.ToArray() : ValueSpan; 1206ReadOnlySpan<byte> span = HasValueSequence ? ValueSequence.ToArray() : ValueSpan; 1211internal static bool TryGetDecimalCore(out decimal value, ReadOnlySpan<byte> span) 1246scoped ReadOnlySpan<byte> span; 1291scoped ReadOnlySpan<byte> span; 1337scoped ReadOnlySpan<byte> span;
System\Text\Json\Schema\JsonSchema.cs (1)
291private static ReadOnlySpan<JsonSchemaType> s_schemaValues =>
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
583private static string FormatJsonPointer(ReadOnlySpan<string> path)
System\Text\Json\Schema\JsonSchemaExporterContext.cs (1)
45public ReadOnlySpan<string> Path => _path;
System\Text\Json\Serialization\Converters\Collection\JsonDictionaryConverter.cs (1)
253ReadOnlySpan<byte> propertyName = reader.GetUnescapedSpan();
System\Text\Json\Serialization\Converters\Collection\ReadOnlyMemoryConverter.cs (1)
52internal static bool OnWriteResume(Utf8JsonWriter writer, ReadOnlySpan<T> value, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\Converters\Object\ObjectDefaultConverter.cs (3)
181ReadOnlySpan<byte> unescapedPropertyName = JsonSerializer.GetPropertyName(ref state, ref reader, options, out bool isAlreadyReadMetadataProperty); 298ReadOnlySpan<byte> unescapedPropertyName = JsonSerializer.GetPropertyName(ref state, ref reader, options, out bool isAlreadyReadMetadataProperty); 392ReadOnlySpan<JsonPropertyInfo> propertyCache = jsonTypeInfo.PropertyCache;
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (4)
56ReadOnlySpan<byte> originalSpan = reader.OriginalSpan; 318ReadOnlySpan<byte> unescapedPropertyName = JsonSerializer.GetPropertyName(ref state, ref reader, options, out bool isAlreadyReadMetadataProperty); 428ReadOnlySpan<byte> unescapedPropertyName = JsonSerializer.GetPropertyName(ref state, ref reader, options, out bool isAlreadyReadMetadataProperty); 614scoped ReadOnlySpan<byte> unescapedPropertyName,
System\Text\Json\Serialization\Converters\Value\BooleanConverter.cs (1)
26ReadOnlySpan<byte> propertyName = reader.GetUnescapedSpan();
System\Text\Json\Serialization\Converters\Value\DateOnlyConverter.cs (1)
38scoped ReadOnlySpan<byte> source;
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (9)
251ReadOnlySpan<char> source = charBuffer.Trim(); 252ConcurrentDictionary<string, ulong>.AlternateLookup<ReadOnlySpan<char>> lookup = _nameCacheForReading.GetAlternateLookup<ReadOnlySpan<char>>(); 299ReadOnlySpan<char> source, 306Dictionary<string, EnumFieldInfo>.AlternateLookup<ReadOnlySpan<char>> lookup = _enumFieldInfoIndex.GetAlternateLookup<ReadOnlySpan<char>>(); 307ReadOnlySpan<char> rest = source; 316ReadOnlySpan<char> next; 657public EnumFieldInfo? GetMatchingField(ReadOnlySpan<char> input)
System\Text\Json\Serialization\Converters\Value\HalfConverter.cs (1)
217private static bool TryParse(ReadOnlySpan<byte> buffer, out Half result)
System\Text\Json\Serialization\Converters\Value\Ieee754FloatingPointConverter.cs (6)
74byte[]? rented = Format(value, stackBuffer, out ReadOnlySpan<byte> formatted); 116byte[]? rented = Format(value, stackBuffer, out ReadOnlySpan<byte> formatted); 169byte[]? rented = Format(value, stackBuffer, out ReadOnlySpan<byte> formatted); 234private static bool TryGetFloatingPointConstant(ReadOnlySpan<byte> span, out T value) 258private static bool TryParse(ReadOnlySpan<byte> buffer, out T result) => 263private static byte[]? Format(T value, Span<byte> initialBuffer, out ReadOnlySpan<byte> formatted)
System\Text\Json\Serialization\Converters\Value\TimeOnlyConverter.cs (1)
42scoped ReadOnlySpan<byte> source;
System\Text\Json\Serialization\Converters\Value\TimeSpanConverter.cs (1)
42scoped ReadOnlySpan<byte> source;
System\Text\Json\Serialization\Converters\Value\VersionConverter.cs (1)
46ReadOnlySpan<byte> utf8Source = utf8Buffer.Slice(0, bytesWritten);
System\Text\Json\Serialization\JsonSerializer.Read.Document.cs (5)
36ReadOnlySpan<byte> utf8Json = document.GetRootRawValue().Span; 65ReadOnlySpan<byte> utf8Json = document.GetRootRawValue().Span; 92ReadOnlySpan<byte> utf8Json = document.GetRootRawValue().Span; 115ReadOnlySpan<byte> utf8Json = document.GetRootRawValue().Span; 162ReadOnlySpan<byte> utf8Json = document.GetRootRawValue().Span;
System\Text\Json\Serialization\JsonSerializer.Read.Element.cs (5)
31ReadOnlySpan<byte> utf8Json = element.GetRawValue().Span; 59ReadOnlySpan<byte> utf8Json = element.GetRawValue().Span; 85ReadOnlySpan<byte> utf8Json = element.GetRawValue().Span; 103ReadOnlySpan<byte> utf8Json = element.GetRawValue().Span; 145ReadOnlySpan<byte> utf8Json = element.GetRawValue().Span;
System\Text\Json\Serialization\JsonSerializer.Read.HandleMetadata.cs (3)
128ReadOnlySpan<byte> propertyName = reader.GetUnescapedSpan(); 353internal static bool IsMetadataPropertyName(ReadOnlySpan<byte> propertyName, PolymorphicTypeResolver? resolver) 358internal static MetadataPropertyName GetMetadataPropertyName(ReadOnlySpan<byte> propertyName, PolymorphicTypeResolver? resolver)
System\Text\Json\Serialization\JsonSerializer.Read.HandlePropertyName.cs (3)
21ReadOnlySpan<byte> unescapedPropertyName, 78internal static ReadOnlySpan<byte> GetPropertyName( 84ReadOnlySpan<byte> propertyName = reader.GetUnescapedSpan();
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\Serialization\JsonSerializer.Read.String.cs (7)
81public static TValue? Deserialize<TValue>([StringSyntax(StringSyntaxAttribute.Json)] ReadOnlySpan<char> json, JsonSerializerOptions? options = null) 154public static object? Deserialize([StringSyntax(StringSyntaxAttribute.Json)] ReadOnlySpan<char> json, Type returnType, JsonSerializerOptions? options = null) 227public static TValue? Deserialize<TValue>([StringSyntax(StringSyntaxAttribute.Json)] ReadOnlySpan<char> json, JsonTypeInfo<TValue> jsonTypeInfo) 284public static object? Deserialize([StringSyntax(StringSyntaxAttribute.Json)] ReadOnlySpan<char> json, JsonTypeInfo jsonTypeInfo) 372public static object? Deserialize([StringSyntax(StringSyntaxAttribute.Json)] ReadOnlySpan<char> json, Type returnType, JsonSerializerContext context) 381private static unsafe TValue? ReadFromSpan<TValue>(ReadOnlySpan<char> json, JsonTypeInfo<TValue> jsonTypeInfo) 412private static unsafe object? ReadFromSpanAsObject(ReadOnlySpan<char> json, JsonTypeInfo jsonTypeInfo)
System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs (2)
325ReadOnlySpan<byte> valueSpan = default; 419ReadOnlySpan<byte> readerSpan = reader.OriginalSpan;
System\Text\Json\Serialization\JsonUnionTypeStructuralClassifier.cs (4)
206ReadOnlySpan<JsonValueType> supportedValueTypes = 458scoped ReadOnlySpan<PocoObjectCaseState> pocoCaseStates, 497scoped ReadOnlySpan<byte> propertyName; 537scoped ReadOnlySpan<byte> propertyName,
System\Text\Json\Serialization\Metadata\JsonTypeInfo.Cache.cs (4)
17internal ReadOnlySpan<JsonParameterInfo> ParameterCache 38internal ReadOnlySpan<JsonPropertyInfo> PropertyCache 71internal JsonPropertyInfo? GetProperty(ReadOnlySpan<byte> propertyName, ref ReadStackFrame frame, out byte[] utf8PropertyName) 81ReadOnlySpan<PropertyRef> utf8PropertyCacheSpan = utf8PropertyCache;
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
1206ReadOnlySpan<JsonValueType> allValueTypes =
System\Text\Json\Serialization\Metadata\JsonTypeInfoResolver.cs (2)
30return Combine((ReadOnlySpan<IJsonTypeInfoResolver?>)resolvers); 47public static IJsonTypeInfoResolver Combine(params ReadOnlySpan<IJsonTypeInfoResolver?> resolvers)
System\Text\Json\Serialization\Metadata\PropertyRef.cs (2)
42public bool Equals(ReadOnlySpan<byte> propertyName, ulong key) 55public static ulong GetKey(ReadOnlySpan<byte> name)
System\Text\Json\Serialization\PipeReadBufferState.cs (1)
115ReadOnlySpan<byte> span = mem.Span;
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\ThrowHelper.Node.cs (1)
56public static void ThrowInvalidOperationException_NodeWrongType(params ReadOnlySpan<string> supportedTypeNames)
System\Text\Json\ThrowHelper.Serialization.cs (8)
367public static void ThrowJsonException_DuplicatePropertyNotAllowed(ReadOnlySpan<byte> nameBytes) 373private static unsafe string Truncate(ReadOnlySpan<char> str) 461ReadOnlySpan<byte> propertyName, 744public static void ThrowJsonException_MetadataReferenceObjectCannotContainOtherProperties(ReadOnlySpan<byte> propertyName, scoped ref ReadStack state) 751public static void ThrowJsonException_MetadataUnexpectedProperty(ReadOnlySpan<byte> propertyName, scoped ref ReadStack state) 770public static void ThrowJsonException_MetadataIdCannotBeCombinedWithRef(ReadOnlySpan<byte> propertyName, scoped ref ReadStack state) 777public static void ThrowJsonException_MetadataStandaloneValuesProperty(scoped ref ReadStack state, ReadOnlySpan<byte> propertyName) 790public static void ThrowJsonException_DuplicateMetadataProperty(ReadOnlySpan<byte> utf8PropertyName)
System\Text\Json\Writer\JsonWriterHelper.cs (19)
63public static void ValidateProperty(ReadOnlySpan<byte> propertyName) 70public static void ValidateValue(ReadOnlySpan<byte> value) 95public static void ValidateProperty(ReadOnlySpan<char> propertyName) 102public static void ValidateValue(ReadOnlySpan<char> value) 109public static void ValidatePropertyAndValue(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> value) 116public static void ValidatePropertyAndValue(ReadOnlySpan<byte> propertyName, ReadOnlySpan<char> value) 123public static void ValidatePropertyAndValue(ReadOnlySpan<byte> propertyName, ReadOnlySpan<byte> value) 130public static void ValidatePropertyAndValue(ReadOnlySpan<char> propertyName, ReadOnlySpan<char> value) 137public static void ValidatePropertyNameLength(ReadOnlySpan<char> propertyName) 144public static void ValidatePropertyNameLength(ReadOnlySpan<byte> propertyName) 150internal static void ValidateNumber(ReadOnlySpan<byte> utf8FormattedNumber) 259public static bool IsValidUtf8String(ReadOnlySpan<byte> bytes) 276internal static OperationStatus ToUtf8(ReadOnlySpan<char> source, Span<byte> destination, out int written) 301internal delegate T WriteCallback<T>(ReadOnlySpan<byte> serializedValue); 303internal static unsafe T WriteString<T>(ReadOnlySpan<byte> utf8Value, WriteCallback<T> writeCallback)
System\Text\Json\Writer\JsonWriterHelper.Escaping.cs (9)
25private static ReadOnlySpan<byte> AllowList => // byte.MaxValue + 1 80public static int NeedsEscaping(ReadOnlySpan<byte> value, JavaScriptEncoder? encoder) 92public static int NeedsEscaping(ReadOnlySpan<char> value, JavaScriptEncoder? encoder) 126private static void EscapeString(ReadOnlySpan<byte> value, Span<byte> destination, JavaScriptEncoder encoder, ref int consumed, ref int written, bool isFinalBlock) 146public static void EscapeString(ReadOnlySpan<byte> value, Span<byte> destination, int indexOfFirstByteToEscape, JavaScriptEncoder? encoder, out int written) 149public static void EscapeString(ReadOnlySpan<byte> value, Span<byte> destination, int indexOfFirstByteToEscape, JavaScriptEncoder? encoder, out int consumed, out int written, bool isFinalBlock = true) 250private static void EscapeString(ReadOnlySpan<char> value, Span<char> destination, JavaScriptEncoder encoder, ref int consumed, ref int written, bool isFinalBlock) 270public static void EscapeString(ReadOnlySpan<char> value, Span<char> destination, int indexOfFirstByteToEscape, JavaScriptEncoder? encoder, out int written) 273public 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.cs (17)
121private ReadOnlySpan<byte> PartialUtf8StringData 127ReadOnlySpan<byte> partialStringDataBytes = PartialStringDataRaw; 150private ReadOnlySpan<char> PartialUtf16StringData 156ReadOnlySpan<byte> partialStringDataBytes = PartialStringDataRaw; 178private ReadOnlySpan<byte> PartialBase64StringData 184ReadOnlySpan<byte> partialStringDataBytes = PartialStringDataRaw; 766private void WriteStartHelper(ReadOnlySpan<byte> utf8PropertyName, byte token) 792public void WriteStartArray(ReadOnlySpan<byte> utf8PropertyName) 817public void WriteStartObject(ReadOnlySpan<byte> utf8PropertyName) 828private void WriteStartEscape(ReadOnlySpan<byte> utf8PropertyName, byte token) 844private void WriteStartByOptions(ReadOnlySpan<byte> utf8PropertyName, byte token) 858private unsafe void WriteStartEscapeProperty(ReadOnlySpan<byte> utf8PropertyName, byte token, int firstEscapeIndexProp) 941public void WriteStartArray(ReadOnlySpan<char> propertyName) 966public void WriteStartObject(ReadOnlySpan<char> propertyName) 977private void WriteStartEscape(ReadOnlySpan<char> propertyName, byte token) 993private void WriteStartByOptions(ReadOnlySpan<char> propertyName, byte token) 1007private unsafe void WriteStartEscapeProperty(ReadOnlySpan<char> propertyName, byte token, int firstEscapeIndexProp)
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 unsafe void WriteBase64EscapeProperty(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> bytes, int firstEscapeIndexProp) 157private unsafe 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 unsafe void WriteStringEscapeProperty(ReadOnlySpan<char> propertyName, DateTime value, int firstEscapeIndexProp) 164private unsafe 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 unsafe void WriteStringEscapeProperty(ReadOnlySpan<char> propertyName, DateTimeOffset value, int firstEscapeIndexProp) 163private unsafe 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 unsafe void WriteNumberEscapeProperty(ReadOnlySpan<char> propertyName, decimal value, int firstEscapeIndexProp) 163private unsafe 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 unsafe void WriteNumberEscapeProperty(ReadOnlySpan<char> propertyName, double value, int firstEscapeIndexProp) 167private unsafe 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 unsafe void WriteNumberEscapeProperty(ReadOnlySpan<char> propertyName, float value, int firstEscapeIndexProp) 167private unsafe 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 unsafe void WriteNumberEscapeProperty(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> value, int firstEscapeIndexProp) 137private unsafe 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 unsafe void WriteStringEscapeProperty(ReadOnlySpan<char> propertyName, Guid value, int firstEscapeIndexProp) 163private unsafe 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.Helpers.cs (7)
15private void ValidatePropertyNameAndDepth(ReadOnlySpan<char> propertyName) 22private void ValidatePropertyNameAndDepth(ReadOnlySpan<byte> utf8PropertyName) 75private void WritePropertyNameMinimized(ReadOnlySpan<byte> escapedPropertyName, byte token) 103private void WritePropertyNameIndented(ReadOnlySpan<byte> escapedPropertyName, byte token) 147private void WritePropertyNameMinimized(ReadOnlySpan<char> escapedPropertyName, byte token) 175private void WritePropertyNameIndented(ReadOnlySpan<char> escapedPropertyName, byte token) 220private void TranscodeAndWrite(ReadOnlySpan<char> escapedPropertyName, Span<byte> output)
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 unsafe void WriteLiteralEscapeProperty(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> value, int firstEscapeIndexProp) 282private unsafe 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 unsafe void WriteNumberEscapeProperty(ReadOnlySpan<char> propertyName, long value, int firstEscapeIndexProp) 236private unsafe 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 unsafe 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 unsafe 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 unsafe void WriteStringEscapeValueOnly(ReadOnlySpan<byte> escapedPropertyName, ReadOnlySpan<byte> utf8Value, int firstEscapeIndex) 917private unsafe void WriteStringEscapeValueOnly(ReadOnlySpan<byte> escapedPropertyName, ReadOnlySpan<char> value, int firstEscapeIndex) 940private unsafe void WriteStringEscapePropertyOnly(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> escapedValue, int firstEscapeIndex) 963private unsafe 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 unsafe void WriteStringEscapePropertyOrValue(scoped ReadOnlySpan<char> propertyName, scoped ReadOnlySpan<char> value, int firstEscapeIndexProp, int firstEscapeIndexVal) 1122private unsafe void WriteStringEscapePropertyOrValue(scoped ReadOnlySpan<byte> utf8PropertyName, scoped ReadOnlySpan<byte> utf8Value, int firstEscapeIndexProp, int firstEscapeIndexVal) 1182private unsafe void WriteStringEscapePropertyOrValue(scoped ReadOnlySpan<char> propertyName, scoped ReadOnlySpan<byte> utf8Value, int firstEscapeIndexProp, int firstEscapeIndexVal) 1242private unsafe 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 unsafe void WriteNumberEscapeProperty(ReadOnlySpan<char> propertyName, ulong value, int firstEscapeIndexProp) 245private unsafe 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.Bytes.cs (4)
24public void WriteBase64StringValue(ReadOnlySpan<byte> bytes) 32private void WriteBase64ByOptions(ReadOnlySpan<byte> bytes) 50private void WriteBase64Minimized(ReadOnlySpan<byte> bytes) 88private void WriteBase64Indented(ReadOnlySpan<byte> bytes)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Comment.cs (9)
12private static ReadOnlySpan<byte> SingleLineCommentDelimiterUtf8 => "*/"u8; 43public void WriteCommentValue(ReadOnlySpan<char> value) 59private void WriteCommentByOptions(ReadOnlySpan<char> value) 78private void WriteCommentMinimized(ReadOnlySpan<char> value) 109private void WriteCommentIndented(ReadOnlySpan<char> value) 160public void WriteCommentValue(ReadOnlySpan<byte> utf8Value) 181private void WriteCommentByOptions(ReadOnlySpan<byte> utf8Value) 193private void WriteCommentMinimized(ReadOnlySpan<byte> utf8Value) 216private void WriteCommentIndented(ReadOnlySpan<byte> utf8Value)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.FormattedNumber.cs (3)
24internal void WriteNumberValue(ReadOnlySpan<byte> utf8FormattedNumber) 47private void WriteNumberValueMinimized(ReadOnlySpan<byte> utf8Value) 67private void WriteNumberValueIndented(ReadOnlySpan<byte> utf8Value)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Helpers.cs (1)
128private void Base64EncodeAndWrite(ReadOnlySpan<byte> bytes, Span<byte> output)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Literal.cs (3)
47private void WriteLiteralByOptions(ReadOnlySpan<byte> utf8Value) 64private void WriteLiteralMinimized(ReadOnlySpan<byte> utf8Value) 86private void WriteLiteralIndented(ReadOnlySpan<byte> utf8Value)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Raw.cs (4)
67public void WriteRawValue([StringSyntax(StringSyntaxAttribute.Json)] ReadOnlySpan<char> json, bool skipInputValidation = false) 98public void WriteRawValue(ReadOnlySpan<byte> utf8Json, bool skipInputValidation = false) 193private unsafe void TranscodeAndWriteRawValue(ReadOnlySpan<char> json, bool skipInputValidation) 228private void WriteRawValueCore(ReadOnlySpan<byte> utf8Json, bool skipInputValidation)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.String.cs (14)
20ReadOnlySpan<byte> utf8Value = value.EncodedUtf8Bytes; 72public void WriteStringValue(ReadOnlySpan<char> value) 82private void WriteStringEscape(ReadOnlySpan<char> value) 99private void WriteStringByOptions(ReadOnlySpan<char> value, int maxRequiredBytes) 117private void WriteStringMinimized(ReadOnlySpan<char> escapedValue, int maxRequiredBytes) 143private void WriteStringIndented(ReadOnlySpan<char> escapedValue, int maxRequiredBytes) 181private unsafe void WriteStringEscapeValue(ReadOnlySpan<char> value, int firstEscapeIndexVal) 221public void WriteStringValue(ReadOnlySpan<byte> utf8Value) 231private void WriteStringEscape(ReadOnlySpan<byte> utf8Value) 247private void WriteStringByOptions(ReadOnlySpan<byte> utf8Value) 265private void WriteStringMinimized(ReadOnlySpan<byte> escapedValue) 292private void WriteStringIndented(ReadOnlySpan<byte> escapedValue) 332private unsafe void WriteStringEscapeValue(ReadOnlySpan<byte> utf8Value, int firstEscapeIndexVal) 359internal void WriteNumberValueAsStringUnescaped(ReadOnlySpan<byte> utf8Value)
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 unsafe 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 unsafe 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)
parent\Common\JsonSeparatorNamingPolicy.cs (1)
39private static string ConvertNameCore(char? separator, WordCasing wordCasing, ReadOnlySpan<char> chars)
src\runtime\src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
160public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span)
src\runtime\src\libraries\Common\src\SourceGenerators\ImmutableEquatableArray.cs (1)
28=> other != null && ((ReadOnlySpan<T>)_values).SequenceEqual(other._values);
src\runtime\src\libraries\Common\src\SourceGenerators\SourceWriter.cs (7)
50ReadOnlySpan<char> remainingText = text.AsSpan(); 53ReadOnlySpan<char> nextLine = GetNextLine(ref remainingText, out isFinalLine); 79private static ReadOnlySpan<char> GetNextLine(ref ReadOnlySpan<char> remainingText, out bool isFinalLine) 87ReadOnlySpan<char> next; 88ReadOnlySpan<char> rest; 113private static unsafe void AppendSpan(StringBuilder builder, ReadOnlySpan<char> span)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (4)
65public void Append(scoped ReadOnlySpan<T> source) 81private void AppendMultiChar(scoped ReadOnlySpan<T> source) 92public void Insert(int index, scoped ReadOnlySpan<T> source) 144public ReadOnlySpan<T> AsSpan()
System.Text.RegularExpressions (236)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (4)
65public void Append(scoped ReadOnlySpan<T> source) 81private void AppendMultiChar(scoped ReadOnlySpan<T> source) 92public void Insert(int index, scoped ReadOnlySpan<T> source) 144public ReadOnlySpan<T> AsSpan()
src\runtime\src\libraries\Common\src\System\HexConverter.cs (9)
187public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper) 204public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper) 221public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 244public ReadOnlySpan<byte> Bytes { get; set; } 276public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 288public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 456private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 491private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 598public static ReadOnlySpan<byte> CharToHexLookup =>
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
101public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 102public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 103public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 209public void Append(scoped ReadOnlySpan<char> value)
System\Text\RegularExpressions\Capture.cs (1)
59public ReadOnlySpan<char> ValueSpan => Text is string text ? text.AsSpan(Index, Length) : [];
System\Text\RegularExpressions\CompiledRegexRunner.cs (2)
26internal delegate void ScanDelegate(RegexRunner runner, ReadOnlySpan<char> text); 28protected internal override void Scan(ReadOnlySpan<char> text)
System\Text\RegularExpressions\Regex.Count.cs (5)
37public int Count(ReadOnlySpan<char> input) => 46public int Count(ReadOnlySpan<char> input, int startat) 98public static int Count(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.Regex)] string pattern) => 110public static int Count(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.Regex, nameof(options))] string pattern, RegexOptions options) => 123public static int Count(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.Regex, nameof(options))] string pattern, RegexOptions options, TimeSpan matchTimeout) =>
System\Text\RegularExpressions\Regex.cs (6)
579ReadOnlySpan<char> span = input.AsSpan(beginning, length); 611internal (bool Success, int Index, int Length, int TextPosition) RunSingleMatch(RegexRunnerMode mode, int prevlen, ReadOnlySpan<char> input, int startat) 672RunAllMatchesWithCallback(input, (ReadOnlySpan<char>)input, startat, ref state, callback, mode, reuseMatchObject); 674internal void RunAllMatchesWithCallback<TState>(ReadOnlySpan<char> input, int startat, ref TState state, MatchCallback<TState> callback, RegexRunnerMode mode, bool reuseMatchObject) => 677private void RunAllMatchesWithCallback<TState>(string? inputString, ReadOnlySpan<char> inputSpan, int startat, ref TState state, MatchCallback<TState> callback, RegexRunnerMode mode, bool reuseMatchObject) 757private 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) => 103/// The enumerator has no public constructor. The <see cref="Regex.EnumerateMatches(ReadOnlySpan{char})"/> 118private readonly ReadOnlySpan<char> _input; 129internal 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) 182private readonly ReadOnlySpan<char> _input; 197internal ValueSplitEnumerator(Regex regex, ReadOnlySpan<char> input, int count, int startAt, bool rtl)
System\Text\RegularExpressions\Regex.Match.cs (5)
50public static bool IsMatch(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.Regex)] string pattern) => 105public static bool IsMatch(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.Regex, nameof(options))] string pattern, RegexOptions options) => 176public static bool IsMatch(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.Regex, nameof(options))] string pattern, RegexOptions options, TimeSpan matchTimeout) => 262public bool IsMatch(ReadOnlySpan<char> input) => 275public bool IsMatch(ReadOnlySpan<char> input, int startat) =>
System\Text\RegularExpressions\Regex.Replace.cs (1)
688ReadOnlySpan<char> segment = span[i].Span;
System\Text\RegularExpressions\RegexCaseEquivalences.cs (3)
22/// This method, in contrast to <see cref="TryFindCaseEquivalencesForChar(char, out ReadOnlySpan{char})"/> does take in 31public static bool TryFindCaseEquivalencesForCharWithIBehavior(char c, CultureInfo culture, scoped ref RegexCaseBehavior mappingBehavior, out ReadOnlySpan<char> equivalences) 130private static bool TryFindCaseEquivalencesForChar(char c, out ReadOnlySpan<char> equivalences)
System\Text\RegularExpressions\RegexCaseEquivalences.Data.cs (3)
12private static ReadOnlySpan<char> EquivalenceCasingValues => // 2360 164private static ReadOnlySpan<ushort> EquivalenceFirstLevelLookup => // 64 172private static ReadOnlySpan<ushort> EquivalenceCasingMap => // 10240
System\Text\RegularExpressions\RegexCharClass.cs (13)
280private void AddRanges(ReadOnlySpan<char> set) 359if (RegexCaseEquivalences.TryFindCaseEquivalencesForCharWithIBehavior(range.First, culture, ref _caseBehavior, out ReadOnlySpan<char> equivalences)) 383if (RegexCaseEquivalences.TryFindCaseEquivalencesForCharWithIBehavior((char)i, culture, ref _caseBehavior, out ReadOnlySpan<char> equivalences)) 1013public static bool ParticipatesInCaseConversion(ReadOnlySpan<char> s) 1163private static ReadOnlySpan<byte> WordCharAsciiLookup => 1187ReadOnlySpan<byte> ascii = WordCharAsciiLookup; 1206ReadOnlySpan<byte> ascii = WordCharAsciiLookup; 1364private static bool CharInCategory(char ch, ReadOnlySpan<char> categorySetSegment) 1420private static bool CharInCategoryGroup(UnicodeCategory chcategory, ReadOnlySpan<char> category, ref int i) 1499public static List<(char First, char Last)>? ComputeRanges(ReadOnlySpan<char> set) 1535internal static string CharsToStringClass(ReadOnlySpan<char> chars) 1583ReadOnlySpan<char> tmpChars = chars; // avoid address exposing the span and impacting the other code in the method that uses it 1830private static ReadOnlySpan<char> RangesFromProperty(string capname, bool invert, string pattern, int currentPos)
System\Text\RegularExpressions\RegexCompiler.cs (51)
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)])!; 101private static MethodInfo SpanSequenceEqualSpanMethod => field ??= typeof(MemoryExtensions).GetMethod("SequenceEqual", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 345private LocalBuilder DeclareReadOnlySpanChar() => _ilg!.DeclareLocal(typeof(ReadOnlySpan<char>)); 6478private void EmitIndexOfAnyWithSearchValuesOrLiteral(ReadOnlySpan<char> chars, bool last = false, bool except = false)
System\Text\RegularExpressions\RegexFindOptimizations.cs (7)
400public bool TryFindNextStartingPositionRightToLeft(ReadOnlySpan<char> textSpan, ref int pos, int start) 495ReadOnlySpan<char> span = textSpan.Slice(0, pos); 522public bool TryFindNextStartingPositionLeftToRight(ReadOnlySpan<char> textSpan, ref int pos, int start) 651ReadOnlySpan<char> span = textSpan.Slice(pos); 752ReadOnlySpan<char> textSpanAtOffset = textSpan.Slice(offset); 828ReadOnlySpan<char> slice = textSpan.Slice(startingPos); 893ReadOnlySpan<float> frequency = RegexPrefixAnalyzer.Frequency;
System\Text\RegularExpressions\RegexInterpreter.cs (6)
204private char Forwardcharnext(ReadOnlySpan<char> inputSpan) 210private bool MatchString(string str, ReadOnlySpan<char> inputSpan) 252private bool MatchRef(int index, int length, ReadOnlySpan<char> inputSpan, bool caseInsensitive) 301if (!RegexCaseEquivalences.TryFindCaseEquivalencesForCharWithIBehavior(backreferenceChar, _culture, ref _caseBehavior, out ReadOnlySpan<char> equivalences) || 324protected internal override void Scan(ReadOnlySpan<char> text) 369private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan)
System\Text\RegularExpressions\RegexLWCGCompiler.cs (2)
29private static readonly Type[] s_paramTypes = [typeof(RegexRunner), typeof(ReadOnlySpan<char>)]; 63DynamicMethod scanMethod = DefineDynamicMethod($"Regex{regexNum}_Scan{description}", null, typeof(CompiledRegexRunner), [typeof(RegexRunner), typeof(ReadOnlySpan<char>)]);
System\Text\RegularExpressions\RegexNode.cs (4)
117if (!RegexCaseEquivalences.TryFindCaseEquivalencesForCharWithIBehavior(ch, culture, ref caseBehavior, out ReadOnlySpan<char> equivalences)) 1413scoped ReadOnlySpan<char> startingSpan = startingNode.Str.AsSpan(); 1491static void ProcessOneOrMulti(RegexNode node, ReadOnlySpan<char> startingSpan) 2309private static bool? ContainsKind(RegexNode node, ReadOnlySpan<RegexNodeKind> kinds)
System\Text\RegularExpressions\RegexParser.cs (2)
159private static unsafe string EscapeImpl(ReadOnlySpan<char> input, int indexOfMetachar) 2123private static ReadOnlySpan<byte> Category =>
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
1510internal static ReadOnlySpan<float> Frequency =>
System\Text\RegularExpressions\RegexReplacement.cs (3)
271ReadOnlySpan<int> tmpSpan = span; // avoid address exposing the span and impacting the other code in the method that uses it 274ReadOnlySpan<int> span = *(ReadOnlySpan<int>*)state.Item1;
System\Text\RegularExpressions\RegexRunner.cs (7)
119/// <see cref="ReadOnlySpan{T}"/>-based <see cref="Regex"/> methods are not supported from <see cref="Regex"/>-derived types 122protected internal virtual void Scan(ReadOnlySpan<char> text) 278internal void InitializeForScan(Regex regex, ReadOnlySpan<char> text, int textstart, RegexRunnerMode mode) 417internal static bool IsBoundary(ReadOnlySpan<char> inputSpan, int index) 427internal static bool IsPreWordCharBoundary(ReadOnlySpan<char> inputSpan, int index) 436internal static bool IsPostWordCharBoundary(ReadOnlySpan<char> inputSpan, int index) => 449internal static bool IsECMABoundary(ReadOnlySpan<char> inputSpan, int index)
System\Text\RegularExpressions\Symbolic\BDD.cs (2)
339public static BDD Deserialize(ReadOnlySpan<byte> bytes) 389static long Get(int bytesPerLong, ReadOnlySpan<byte> bytes, int i)
System\Text\RegularExpressions\Symbolic\BitVector.cs (1)
121public static BitVector Or(ReadOnlySpan<BitVector> bitVectors)
System\Text\RegularExpressions\Symbolic\BitVectorSolver.cs (1)
41public BitVector Or(ReadOnlySpan<BitVector> sets) => BitVector.Or(sets);
System\Text\RegularExpressions\Symbolic\CharSetSolver.cs (2)
151public BDD Or(ReadOnlySpan<BDD> sets) 170public BDD And(ReadOnlySpan<BDD> sets)
System\Text\RegularExpressions\Symbolic\ISolver.cs (1)
31TSet Or(ReadOnlySpan<TSet> sets);
System\Text\RegularExpressions\Symbolic\MintermClassifier.cs (1)
80static T[] CreateLookup<T>(BDD[] minterms, ReadOnlySpan<object> charRangesPerMinterm, int _maxChar) where T : IBinaryInteger<T>
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Automata.cs (1)
92/// The transition function for <see cref="FindSubcaptures(ReadOnlySpan{char}, int, int, PerThreadData)"/>,
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) 490ReadOnlySpan<char> input, int pos, long timeoutOccursAt, RegexRunnerMode mode, PerThreadData perThreadData) 559private int FindEndPositionFallback<TInitialStateHandler, TNullabilityHandler>(ReadOnlySpan<char> input, int pos, long timeoutOccursAt, RegexRunnerMode mode, PerThreadData perThreadData) 630ReadOnlySpan<char> input, int lengthMinus1, RegexRunnerMode mode, 736private bool FindEndPositionDeltasDFA<TInitialStateHandler, TNullabilityHandler>(ReadOnlySpan<char> input, int length, RegexRunnerMode mode, 803ReadOnlySpan<char> input, int length, RegexRunnerMode mode, 861private int FindStartPosition<TInputReader, TNullabilityHandler>(CurrentState startState, int initialLastStart, ReadOnlySpan<char> input, int i, int matchStartBoundary, PerThreadData perThreadData) 904ReadOnlySpan<char> input, ref int i, int startThreshold, ref CurrentState stateRef, ref int lastStart) 953private bool FindStartPositionDeltasNFA<TInputReader, TNullabilityHandler>(ReadOnlySpan<char> input, ref int i, int startThreshold, ref CurrentState state, ref int lastStart) 1006private Registers FindSubcaptures<TInputReader>(ReadOnlySpan<char> input, int i, int iEnd, PerThreadData perThreadData) 1472public static abstract int GetPositionId(SymbolicRegexMatcher<TSet> matcher, ReadOnlySpan<char> input, int pos); 1482public static int GetPositionId(SymbolicRegexMatcher<TSet> matcher, ReadOnlySpan<char> input, int pos) 1501public static int GetPositionId(SymbolicRegexMatcher<TSet> matcher, ReadOnlySpan<char> input, int pos) => 1521SymbolicRegexMatcher<TSet> matcher, ReadOnlySpan<char> input, ref int currentStateId, ref int pos, byte[]? lookup); 1532SymbolicRegexMatcher<TSet> matcher, ReadOnlySpan<char> input, ref int currentStateId, ref int pos, byte[]? lookup) => 1546SymbolicRegexMatcher<TSet> matcher, ReadOnlySpan<char> input, ref int currentStateId, ref int pos, byte[]? lookup) 1577SymbolicRegexMatcher<TSet> matcher, ReadOnlySpan<char> input, ref int currentStateId, ref int pos, byte[]? lookup) 1608SymbolicRegexMatcher<TSet> matcher, ReadOnlySpan<char> input, ref int currentStateId, ref int pos, byte[]? lookup)
System\Text\RegularExpressions\Symbolic\SymbolicRegexRunnerFactory.cs (1)
73protected internal override void Scan(ReadOnlySpan<char> text)
System\Text\RegularExpressions\Symbolic\UInt64Solver.cs (1)
39public ulong Or(ReadOnlySpan<ulong> sets)
System\Text\RegularExpressions\Symbolic\UnicodeCategoryRanges.cs (32)
14public static ReadOnlySpan<byte> SerializedWhitespaceBDD => [0x2, 0x4, 0x0, 0x6, 0x0, 0x0, 0x4, 0x10, 0x0, 0x1, 0x8, 0x31, 0x0, 0x1, 0x4, 0x21, 0x4, 0x1, 0xC, 0x11, 0xC, 0x2, 0x10, 0x52, 0x0, 0x52, 0x18, 0x2, 0x1C, 0x82, 0x0, 0x62, 0x24, 0x3, 0x28, 0xB3, 0x0, 0xC3, 0x0, 0xD3, 0x4, 0x3, 0x38, 0xF3, 0x0, 0x4, 0x40, 0x14, 0x1, 0x4, 0x48, 0x4, 0x4C, 0x4, 0x50, 0x4, 0x54, 0x5, 0x58, 0x5, 0x5C, 0x85, 0x65, 0x65, 0x69, 0x65, 0x6D, 0x6, 0x70, 0xD6, 0x79, 0x6, 0x7C, 0x6, 0x80, 0x7, 0x84, 0x7, 0x88, 0x17, 0x2, 0x37, 0x92, 0x8, 0x94, 0x8, 0x98, 0x8, 0x9C, 0x8, 0xA0, 0x9, 0xA4, 0x9, 0xA8, 0xB9, 0x2, 0x9, 0xB0, 0xA, 0xB4, 0xA, 0xB8, 0xFA, 0x2, 0xA, 0xC0, 0xB, 0xC4, 0xB, 0xC8, 0xB, 0xCC, 0xB, 0xD0, 0x5C, 0xDB, 0x7C, 0xE3, 0x9D, 0xEB, 0xE, 0xEC, 0xF, 0xF0]; 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, 0x20, 0x0, 0x1, 0x60, 0x0, 0x21, 0x0, 0x0, 0x11, 0x40, 0x0, 0x31, 0x0, 0x0, 0x21, 0x60, 0x0, 0x1, 0x40, 0x0, 0x11, 0x0, 0x0, 0x31, 0x40, 0x0, 0x31, 0x20, 0x0, 0x2, 0x80, 0x0, 0x12, 0xA0, 0x0, 0x62, 0x0, 0x0, 0x72, 0x0, 0x0, 0x2, 0x0, 0x1, 0x62, 0x40, 0x0, 0x22, 0x60, 0x0, 0x12, 0x40, 0x0, 0x22, 0x20, 0x0, 0x42, 0x20, 0x1, 0x82, 0x40, 0x0, 0x72, 0x40, 0x1, 0xB2, 0x60, 0x0, 0x22, 0x0, 0x1, 0x2, 0x40, 0x0, 0xC2, 0x40, 0x0, 0xD2, 0x0, 0x0, 0x72, 0x40, 0x0, 0x52, 0x60, 0x0, 0xE2, 0x20, 0x1, 0x2, 0x40, 0x1, 0x2, 0x20, 0x0, 0x62, 0x20, 0x1, 0x22, 0x0, 0x0, 0x62, 0xA0, 0x0, 0x72, 0x80, 0x0, 0x62, 0x40, 0x1, 0xA2, 0x0, 0x1, 0xC2, 0x20, 0x0, 0x62, 0x20, 0x0, 0x82, 0x0, 0x0, 0x52, 0x80, 0x0, 0x2, 0xE0, 0x0, 0xF2, 0x20, 0x0, 0x42, 0x20, 0x0, 0x72, 0x60, 0x0, 0x32, 0xE0, 0x1, 0x2, 0x80, 0x1, 0x52, 0x60, 0x1, 0xE2, 0x0, 0x0, 0xC2, 0xA0, 0x1, 0xA2, 0x0, 0x0, 0x12, 0xE0, 0x1, 0x92, 0x80, 0x0, 0x42, 0x60, 0x0, 0xB2, 0xA0, 0x1, 0x92, 0xE0, 0x0, 0x82, 0x60, 0x0, 0x32, 0x0, 0x1, 0x32, 0xA0, 0x0, 0x92, 0x40, 0x0, 0xF2, 0x80, 0x1, 0x92, 0xE0, 0x1, 0xD2, 0xA0, 0x0, 0x92, 0x60, 0x1, 0x72, 0xE0, 0x1, 0x3, 0x21, 0x0, 0x13, 0x20, 0x2, 0x23, 0x1, 0x0, 0x3, 0x60, 0x2, 0x3, 0x80, 0x2, 0x53, 0x41, 0x0, 0x63, 0xE1, 0x2, 0x23, 0x0, 0x3, 0x93, 0x41, 0x0, 0x23, 0x40, 0x3, 0xB3, 0x41, 0x0, 0xC3, 0x1, 0x0, 0x23, 0xA0, 0x3, 0xE3, 0x41, 0x0, 0xF3, 0x41, 0x0, 0xB3, 0xC1, 0x3, 0x3, 0x22, 0x4, 0x23, 0x62, 0x4, 0x3, 0x80, 0x4, 0x3, 0xA2, 0x4, 0x63, 0xE2, 0x4, 0x83, 0x22, 0x5, 0xA3, 0x62, 0x5, 0xC3, 0x2, 0x0, 0x53, 0x2, 0x0, 0x13, 0x0, 0x0, 0x33, 0x0, 0x0, 0xD3, 0x2, 0x0, 0xE3, 0xE2, 0x3, 0xF3, 0x22, 0x0, 0x3, 0x3, 0x0, 0x3, 0xA0, 0x5, 0x33, 0x21, 0x6, 0x3, 0x40, 0x6, 0x33, 0x83, 0x6, 0xD3, 0xA1, 0x6, 0x63, 0xE3, 0x6, 0x23, 0x0, 0x7, 0x93, 0x3, 0x0, 0x53, 0x42, 0x7, 0xB3, 0xC3, 0x5, 0x93, 0x43, 0x3, 0x23, 0x80, 0x7, 0xD3, 0xC3, 0x3, 0x23, 0xC0, 0x7, 0xF3, 0x63, 0x0, 0x3, 0xE4, 0x6, 0xC3, 0x20, 0x8, 0xE3, 0x43, 0x8, 0x33, 0x84, 0x8, 0x53, 0xC4, 0x8, 0x73, 0x44, 0x0, 0xD3, 0x61, 0x0, 0x33, 0x40, 0x0, 0x84, 0x24, 0x9, 0x4, 0x40, 0x9, 0xB4, 0x84, 0x9, 0xD4, 0xC4, 0x9, 0xF4, 0x4, 0xA, 0x14, 0x45, 0xA, 0x34, 0x45, 0x0, 0x54, 0x45, 0x0, 0x4, 0xC0, 0xA, 0xC4, 0xE4, 0xA, 0x84, 0x25, 0xB, 0x4, 0x20, 0x0, 0x4, 0x40, 0xB, 0x4, 0x60, 0x9, 0xB4, 0x85, 0xB, 0xD4, 0xC5, 0xB, 0x4, 0xE6, 0xB, 0x4, 0x6, 0x0, 0x4, 0x20, 0xC, 0x24, 0x66, 0xC, 0x34, 0x26, 0xC, 0x44, 0x46, 0x0, 0x54, 0x26, 0x0, 0x14, 0xC0, 0xC, 0x74, 0x26, 0x0, 0x4, 0x0, 0xD, 0x94, 0x26, 0x0, 0x94, 0x44, 0x0, 0x24, 0x40, 0xD, 0x24, 0x60, 0xD, 0xC4, 0x46, 0x0, 0xD4, 0xC6, 0xD, 0x4, 0xE0, 0xD, 0x94, 0x4, 0xE, 0x14, 0x7, 0x0, 0x4, 0x40, 0xE, 0x34, 0x47, 0x0, 0x44, 0x47, 0x0, 0x54, 0xC7, 0xE, 0x74, 0x7, 0xF, 0x94, 0x47, 0xF, 0xB4, 0x47, 0x0, 0x24, 0x80, 0xF, 0xD4, 0x47, 0x0, 0x24, 0x23, 0x0, 0xE5, 0x7, 0x0, 0xF5, 0x7, 0x0, 0x5, 0x28, 0x10, 0x25, 0x68, 0x10, 0x45, 0x48, 0x0, 0x45, 0x5, 0x0, 0x5, 0xA0, 0x10, 0x65, 0x48, 0x0, 0x75, 0x48, 0x0, 0x85, 0x8, 0x0, 0x95, 0x28, 0x0, 0x5, 0x40, 0x11, 0x5, 0x60, 0x11, 0xC5, 0xA8, 0x11, 0xE5, 0x8, 0xC, 0xF5, 0x8, 0x0, 0x5, 0x29, 0x12, 0x15, 0x46, 0x12, 0x25, 0x60, 0x12, 0x45, 0xA9, 0x12, 0x65, 0x29, 0x0, 0x15, 0x0, 0x0, 0x5, 0xE0, 0x12, 0x5, 0x0, 0x13, 0x95, 0x49, 0x0, 0x25, 0x40, 0x13, 0x25, 0x60, 0x13, 0x25, 0x0, 0x0, 0xC5, 0xA9, 0x13, 0xE5, 0xE9, 0x13, 0x5, 0xA, 0x0, 0x5, 0x20, 0x14, 0x25, 0x4A, 0x0, 0x35, 0x8A, 0x14, 0x55, 0xCA, 0x14, 0x75, 0xA, 0x15, 0x95, 0x4A, 0x0, 0x5, 0x40, 0x15, 0x5, 0xC0, 0xF, 0x6, 0x60, 0x15, 0xC6, 0xA, 0x0, 0xD6, 0xCA, 0x15, 0xF6, 0xA, 0x16, 0x6, 0x20, 0x16, 0x26, 0xB, 0x0, 0x36, 0x4B, 0x0, 0x46, 0xAB, 0x16, 0x6, 0xC0, 0x16, 0x76, 0xB, 0x17, 0x96, 0x4B, 0x17, 0xB6, 0x8B, 0x17, 0x26, 0xA0, 0x17, 0x6, 0xC0, 0x17, 0xF6, 0xB, 0x18, 0x16, 0xC, 0x18, 0x26, 0x6C, 0x18, 0x46, 0xAC, 0x18, 0x66, 0xAC, 0x16, 0x76, 0xC, 0x19, 0x96, 0xC, 0x0, 0xA6, 0x6C, 0x19, 0xC6, 0xAC, 0x19, 0xE6, 0xEC, 0x19, 0x6, 0xD, 0x0, 0x16, 0xD, 0x0, 0x7, 0x40, 0x1A, 0x7, 0x60, 0x1A, 0x47, 0xAD, 0x1A, 0x67, 0xED, 0x1A, 0x87, 0x2D, 0x1B, 0xA7, 0x6D, 0x1B, 0xC7, 0xAD, 0x1B, 0xE7, 0x4D, 0x0, 0xF7, 0xD, 0x0, 0x7, 0xE, 0x0, 0x17, 0xE, 0x0, 0x7, 0x40, 0x1C, 0x37, 0x8E, 0x1C, 0x57, 0xCE, 0x1C, 0x7, 0xE0, 0x1C, 0x87, 0x2E, 0x1D, 0xA7, 0x6E, 0x1D, 0xC8, 0xE, 0x0, 0xD8, 0xE, 0x0, 0xE8, 0xEE, 0x1D, 0x8, 0x0, 0x1E, 0x18, 0xF, 0x0, 0x28, 0x6F, 0x1E, 0x8, 0x80, 0x1E, 0x58, 0xF, 0x0, 0x8, 0xC0, 0x1E, 0x78, 0xF, 0x1F, 0x98, 0x4F, 0x1F, 0xB8, 0x8F, 0x1F, 0xD9, 0xF, 0x0, 0xE9, 0xF, 0x0, 0xF9, 0xF, 0x0, 0x9, 0x0, 0x20, 0x9, 0x20, 0x20, 0x29, 0x70, 0x20, 0x49, 0xB0, 0x20, 0x9, 0xC0, 0x20, 0x79, 0x10, 0x21, 0x9A, 0x10, 0x0, 0xA, 0x40, 0x21, 0xBA, 0x10, 0x0, 0xCA, 0x10, 0x0, 0xA, 0xA0, 0x21, 0xEA, 0x10, 0x0, 0xA, 0xE0, 0x21, 0xA, 0x31, 0x22, 0x2B, 0x11, 0x0, 0x3B, 0x91, 0x22, 0x5B, 0xD1, 0x22, 0x7B, 0x11, 0x23, 0xB, 0x20, 0x23, 0xAC, 0x11, 0x0, 0xC, 0x60, 0x23, 0xC, 0x80, 0x23, 0xDC, 0xD1, 0x23, 0xFD, 0x11, 0x0, 0xD, 0x12, 0x0, 0x1D, 0x52, 0x24, 0x3E, 0x92, 0x24, 0xE, 0xA0, 0x24, 0x6F, 0xF2, 0x24]; 57private static ReadOnlySpan<byte> SerializedCategory1_LowercaseLetter => [0x3, 0x4, 0x0, 0x0, 0x9, 0x0, 0x0, 0x0, 0x20, 0x0, 0x10, 0x0, 0x0, 0x21, 0x20, 0x0, 0x11, 0x60, 0x0, 0x31, 0x0, 0x0, 0x1, 0x40, 0x0, 0x21, 0x0, 0x0, 0x1, 0x60, 0x0, 0x31, 0x20, 0x0, 0x31, 0x40, 0x0, 0x11, 0x40, 0x0, 0x21, 0x60, 0x0, 0x1, 0x20, 0x0, 0x11, 0x0, 0x0, 0x2, 0x80, 0x0, 0x12, 0xA0, 0x0, 0x12, 0xC0, 0x0, 0x42, 0x20, 0x0, 0x2, 0xE0, 0x0, 0x2, 0x0, 0x1, 0x82, 0x0, 0x0, 0x2, 0x60, 0x0, 0x32, 0x40, 0x0, 0x32, 0x0, 0x0, 0x62, 0x20, 0x1, 0xA2, 0x60, 0x0, 0x22, 0x0, 0x0, 0xB2, 0x40, 0x0, 0x32, 0x40, 0x1, 0x32, 0xC0, 0x0, 0x92, 0x60, 0x0, 0x92, 0x0, 0x0, 0xA2, 0x20, 0x0, 0x2, 0xC0, 0x0, 0x72, 0x60, 0x0, 0x2, 0x20, 0x0, 0xC2, 0x60, 0x0, 0x72, 0x40, 0x0, 0xD2, 0x20, 0x1, 0x72, 0x0, 0x0, 0x82, 0xC0, 0x1, 0xF2, 0x0, 0x0, 0xE2, 0x20, 0x1, 0x62, 0x0, 0x0, 0xF2, 0x0, 0x1, 0xC2, 0xE0, 0x1, 0xF2, 0x20, 0x0, 0xC2, 0x20, 0x0, 0xE2, 0x20, 0x0, 0x52, 0x60, 0x0, 0x2, 0x40, 0x0, 0x52, 0x80, 0x0, 0xC2, 0x40, 0x0, 0x22, 0x0, 0x1, 0x2, 0x20, 0x1, 0x72, 0x60, 0x1, 0x92, 0x20, 0x0, 0x52, 0xC0, 0x1, 0x12, 0x0, 0x0, 0xE2, 0xC0, 0x0, 0x62, 0x60, 0x0, 0x62, 0x40, 0x0, 0xB2, 0xC0, 0x1, 0x12, 0x60, 0x0, 0x92, 0x60, 0x1, 0xA2, 0x40, 0x0, 0x22, 0x20, 0x1, 0x52, 0xA0, 0x1, 0x22, 0xE0, 0x0, 0x92, 0x80, 0x1, 0x82, 0xA0, 0x0, 0x92, 0x0, 0x1, 0xE2, 0xE0, 0x0, 0xC2, 0x0, 0x1, 0x3, 0x21, 0x0, 0x13, 0x20, 0x2, 0x3, 0x40, 0x2, 0x3, 0x60, 0x2, 0x43, 0x21, 0x0, 0x53, 0xC1, 0x2, 0x73, 0x61, 0x0, 0x83, 0xE1, 0x2, 0x33, 0x20, 0x3, 0xA3, 0x61, 0x0, 0x33, 0x60, 0x3, 0xC3, 0x61, 0x0, 0xD3, 0x21, 0x2, 0x33, 0xC0, 0x3, 0x33, 0xE0, 0x3, 0x3, 0x62, 0x0, 0x13, 0x42, 0x4, 0x3, 0x60, 0x4, 0xC3, 0x81, 0x4, 0x53, 0xC2, 0x4, 0x73, 0x2, 0x5, 0x3, 0x20, 0x5, 0xA3, 0x62, 0x5, 0xC3, 0x22, 0x5, 0xD3, 0x2, 0x0, 0xE3, 0x2, 0x0, 0x3, 0xE0, 0x5, 0x3, 0x20, 0x0, 0x3, 0x0, 0x6, 0x63, 0x21, 0x6, 0x23, 0x23, 0x0, 0x3, 0x40, 0x6, 0x23, 0x62, 0x6, 0x13, 0x21, 0x0, 0x23, 0x1, 0x0, 0x53, 0x22, 0x0, 0x43, 0x23, 0x0, 0x23, 0x3, 0x0, 0x53, 0x23, 0x0, 0x63, 0xE3, 0x6, 0xF3, 0x1, 0x7, 0x93, 0x43, 0x7, 0x33, 0x60, 0x7, 0x33, 0x21, 0x0, 0xC3, 0x3, 0x0, 0x3, 0x80, 0x2, 0xD3, 0xC3, 0x7, 0x13, 0x0, 0x6, 0x33, 0xE0, 0x7, 0x3, 0x24, 0x8, 0x33, 0x40, 0x8, 0x33, 0x44, 0x0, 0x43, 0xC4, 0x2, 0x53, 0xC4, 0x8, 0x73, 0x4, 0x4, 0x83, 0x24, 0x9, 0xA3, 0x44, 0x8, 0xB3, 0x64, 0x0, 0xE3, 0x41, 0x0, 0x23, 0x60, 0x0, 0x13, 0x60, 0x2, 0x3, 0x20, 0x4, 0xC4, 0xA4, 0x9, 0xE4, 0xE4, 0x9, 0x14, 0x0, 0xA, 0xC4, 0x24, 0x0, 0x14, 0x0, 0x0, 0x14, 0x5, 0x0, 0x24, 0x65, 0xA, 0x44, 0xA5, 0xA, 0x64, 0xE5, 0xA, 0x84, 0x65, 0x0, 0x94, 0x45, 0xB, 0x24, 0x65, 0x0, 0x4, 0x60, 0xB, 0x4, 0x80, 0xB, 0xD4, 0xC5, 0xB, 0xF4, 0x5, 0xC, 0x4, 0x20, 0xC, 0x4, 0x40, 0xC, 0x34, 0x86, 0xC, 0xD4, 0xA5, 0xC, 0x64, 0xE6, 0xC, 0x84, 0xC6, 0xC, 0x94, 0xE6, 0xC, 0xA4, 0xE6, 0xC, 0x74, 0x66, 0xD, 0xB4, 0xE6, 0xC, 0xC4, 0x66, 0x0, 0xD4, 0xC6, 0xD, 0x4, 0xE0, 0xD, 0x4, 0x0, 0xE, 0x14, 0x7, 0x0, 0x24, 0x27, 0x0, 0x4, 0x0, 0xA, 0x4, 0x60, 0x0, 0x34, 0x60, 0xE, 0x34, 0x80, 0xE, 0x54, 0x67, 0x0, 0x64, 0xE7, 0xE, 0x14, 0x0, 0xF, 0x94, 0x7, 0x0, 0xA4, 0x7, 0x0, 0x4, 0x20, 0x0, 0xB4, 0x27, 0x0, 0x14, 0x80, 0xF, 0xD4, 0x67, 0x0, 0xE4, 0x67, 0x0, 0xF4, 0x7, 0x10, 0x14, 0x48, 0x10, 0x34, 0x88, 0x10, 0x54, 0x68, 0x0, 0x34, 0xC0, 0x10, 0x74, 0x68, 0x0, 0x84, 0x28, 0x0, 0x44, 0x6, 0x0, 0x94, 0x8, 0x0, 0x5, 0x40, 0x11, 0x5, 0x60, 0x11, 0xC5, 0xA8, 0x11, 0xE5, 0x8, 0x0, 0xF5, 0x8, 0x12, 0x15, 0x49, 0x12, 0x35, 0x69, 0x0, 0x45, 0x9, 0x0, 0x5, 0xA0, 0x12, 0x65, 0x69, 0x0, 0x75, 0x29, 0x0, 0x85, 0x69, 0x0, 0x95, 0x29, 0x0, 0x5, 0x40, 0x13, 0x5, 0x60, 0x13, 0xC5, 0xA9, 0x13, 0xE5, 0xE9, 0x13, 0x5, 0xEA, 0xC, 0x15, 0x4A, 0x14, 0x75, 0x66, 0x14, 0x35, 0x80, 0x14, 0x5, 0xA0, 0x11, 0x55, 0xA, 0x0, 0x65, 0x2A, 0x0, 0x5, 0xE0, 0x14, 0x85, 0xA, 0x0, 0x95, 0xCA, 0x11, 0x5, 0x40, 0x15, 0x15, 0x0, 0x0, 0xB5, 0x6A, 0x0, 0x35, 0x80, 0x15, 0x35, 0xA0, 0x15, 0x35, 0x20, 0x0, 0xE5, 0xEA, 0x15, 0x5, 0x2B, 0x16, 0x25, 0xB, 0x0, 0x35, 0x8B, 0x16, 0x15, 0xA0, 0x16, 0x65, 0x6B, 0x0, 0x75, 0xB, 0x17, 0x95, 0x4B, 0x17, 0xB5, 0x8B, 0x17, 0xD5, 0x6B, 0x0, 0xE5, 0xEB, 0x17, 0x5, 0xC, 0x0, 0xA5, 0x8, 0x0, 0x16, 0xC, 0x0, 0x6, 0x40, 0x18, 0x6, 0x20, 0x0, 0x36, 0x8C, 0x18, 0x56, 0xCC, 0x18, 0x76, 0xC, 0x19, 0x6, 0x20, 0x19, 0xA6, 0xC, 0x0, 0x6, 0x60, 0x19, 0xC6, 0x6C, 0x0, 0xD6, 0x8C, 0x18, 0x6, 0xC0, 0x19, 0xF6, 0xC, 0x1A, 0x16, 0x4D, 0x1A, 0x36, 0x8D, 0x1A, 0x36, 0xA0, 0x1A, 0x6, 0xC0, 0x1A, 0x76, 0xD, 0x1B, 0x6, 0x20, 0x1B, 0xA6, 0xD, 0x0, 0xB6, 0xD, 0x0, 0x6, 0x80, 0x1B, 0xD6, 0xCD, 0x1B, 0xF6, 0xD, 0x1C, 0x16, 0x8E, 0x18, 0x26, 0x6E, 0x1C, 0x46, 0xE, 0x0, 0x6, 0xA0, 0x1C, 0x66, 0xEE, 0x1C, 0x86, 0x2E, 0x1D, 0xA6, 0x6E, 0x1D, 0xC6, 0xAE, 0x1D, 0xE6, 0xE, 0x0, 0x7, 0xE0, 0x1D, 0x7, 0x0, 0x1E, 0x17, 0x4F, 0x1E, 0x37, 0x8F, 0x1E, 0x57, 0xCF, 0x1E, 0x7, 0xE0, 0x1E, 0x87, 0x2F, 0x1F, 0xA7, 0x6F, 0x1F, 0xC7, 0xAF, 0x1F, 0xE7, 0x6F, 0x0, 0xF7, 0xF, 0x20, 0x17, 0x10, 0x0, 0x27, 0x10, 0x0, 0x37, 0x10, 0x0, 0x47, 0xB0, 0x20, 0x67, 0xF0, 0x20, 0x87, 0x30, 0x21, 0xA7, 0x70, 0x21, 0xC7, 0xB0, 0x21, 0xE7, 0xF0, 0x21, 0x8, 0x11, 0x0, 0x18, 0x11, 0x0, 0x28, 0x11, 0x0, 0x38, 0x91, 0x22, 0x58, 0xD1, 0x22, 0x78, 0x11, 0x0, 0x88, 0x31, 0x23, 0xA8, 0x71, 0x23, 0xC8, 0x11, 0x0, 0x8, 0xA0, 0x23, 0xE8, 0xF1, 0x23, 0x8, 0x32, 0x24, 0x28, 0x72, 0x24, 0x49, 0x12, 0x0, 0x59, 0x12, 0x0, 0x69, 0x12, 0x0, 0x79, 0x12, 0x0, 0x9, 0x0, 0x25, 0x9, 0x20, 0x25, 0xA9, 0x72, 0x25, 0xC9, 0xB2, 0x25, 0x9, 0xC0, 0x25, 0xF9, 0x12, 0x26, 0x1A, 0x53, 0x26, 0xA, 0x60, 0x26, 0x4A, 0x13, 0x0, 0x5A, 0x13, 0x0, 0xA, 0xC0, 0x26, 0x7A, 0x13, 0x0, 0xA, 0x0, 0x27, 0x9A, 0x53, 0x27, 0xBB, 0x13, 0x0, 0xCB, 0xB3, 0x27, 0xEB, 0xF3, 0x27, 0xB, 0x34, 0x28, 0xB, 0x40, 0x28, 0x3C, 0x14, 0x0, 0xC, 0x80, 0x28, 0xC, 0xA0, 0x28, 0x6C, 0xF4, 0x28, 0x8D, 0x14, 0x0, 0x9D, 0x14, 0x0, 0xAD, 0x74, 0x29, 0xCE, 0xB4, 0x29, 0xE, 0xC0, 0x29, 0xFF, 0x14, 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, 0x11, 0x60, 0x0, 0x21, 0x20, 0x0, 0x21, 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, 0x40, 0x1, 0x92, 0x0, 0x0, 0x52, 0x0, 0x0, 0x92, 0x20, 0x0, 0xB2, 0x0, 0x0, 0xC2, 0x0, 0x0, 0x2, 0xE0, 0x0, 0x92, 0x40, 0x1, 0x12, 0xE0, 0x0, 0x2, 0x60, 0x1, 0x2, 0x0, 0x1, 0x22, 0x0, 0x0, 0x52, 0x20, 0x0, 0x42, 0x20, 0x1, 0xD3, 0x0, 0x0, 0x3, 0xC0, 0x1, 0xF3, 0x0, 0x0, 0x3, 0x1, 0x0, 0x3, 0x20, 0x2, 0x23, 0x1, 0x0, 0x3, 0x60, 0x2, 0x43, 0x1, 0x0, 0x53, 0xC1, 0x2, 0xE3, 0x0, 0x0, 0x13, 0x80, 0x2, 0x73, 0x1, 0x0, 0x83, 0x1, 0x0, 0x93, 0x1, 0x0, 0x3, 0x40, 0x2, 0xA3, 0x1, 0x0, 0xB3, 0x1, 0x0, 0xC3, 0xA1, 0x3, 0x43, 0xE1, 0x1, 0xE3, 0x1, 0x0, 0xF3, 0x21, 0x0, 0x3, 0x80, 0x2, 0x3, 0x80, 0x3, 0x3, 0xE0, 0x1, 0xE3, 0x0, 0x3, 0x3, 0x2, 0x0, 0x3, 0xE2, 0x2, 0x3, 0x60, 0x3, 0x13, 0x1, 0x0, 0x53, 0x1, 0x0, 0x3, 0x2, 0x3, 0x13, 0x42, 0x4, 0x3, 0xA0, 0x2, 0x13, 0x60, 0x4, 0x44, 0x2, 0x0, 0x54, 0x2, 0x0, 0x4, 0xC0, 0x4, 0x74, 0x2, 0x0, 0x84, 0x2, 0x0, 0x94, 0x2, 0x0, 0x4, 0x40, 0x5, 0x4, 0x60, 0x5, 0xC4, 0x2, 0x0, 0x4, 0xA0, 0x5, 0xE4, 0x2, 0x0, 0xF4, 0x2, 0x0, 0xB4, 0x2, 0x0, 0x4, 0x0, 0x6, 0x14, 0x3, 0x0, 0x24, 0x3, 0x0, 0x34, 0x3, 0x0, 0x44, 0x3, 0x0, 0x54, 0x3, 0x0, 0x4, 0x40, 0x6, 0x14, 0x60, 0x5, 0x64, 0x3, 0x0, 0x74, 0x3, 0x0, 0xD4, 0x2, 0x7, 0x14, 0xE0, 0x4, 0x4, 0x20, 0x7, 0x4, 0x40, 0x7, 0x94, 0x3, 0x0, 0x4, 0x3, 0x0, 0xB4, 0x3, 0x0, 0x4, 0x80, 0x7, 0xD4, 0x3, 0x0, 0xE4, 0x3, 0x0, 0x4, 0xE0, 0x7, 0x4, 0xA0, 0x4, 0x4, 0x0, 0x8, 0x14, 0x4, 0x0, 0x24, 0x4, 0x0, 0x4, 0x60, 0x8, 0x44, 0xA4, 0x8, 0x14, 0x0, 0x0, 0x5, 0xC0, 0x8, 0x75, 0x4, 0x0, 0x85, 0x24, 0x9, 0xA5, 0x64, 0x9, 0xC5, 0xA4, 0x9, 0xE5, 0x4, 0x0, 0x5, 0xE0, 0x9, 0x5, 0x0, 0xA, 0x5, 0x20, 0xA, 0x25, 0x5, 0x0, 0x5, 0x60, 0xA, 0x45, 0x5, 0x0, 0x5, 0xA0, 0xA, 0x65, 0x5, 0x0, 0x5, 0xE0, 0xA, 0x85, 0x25, 0xB, 0xD5, 0x4, 0x0, 0x15, 0x5, 0x0, 0x5, 0x40, 0xB, 0xB5, 0x5, 0x0, 0x15, 0x80, 0xB, 0xD5, 0x25, 0x0, 0xE5, 0x5, 0x0, 0xF5, 0x5, 0x0, 0x5, 0x0, 0xC, 0x5, 0x20, 0xC, 0x25, 0x6, 0x0, 0x5, 0x80, 0x9, 0x35, 0x6, 0x0, 0x5, 0x0, 0x9, 0x45, 0xA6, 0xC, 0x65, 0x6, 0x0, 0x75, 0x6, 0x0, 0x5, 0x0, 0xD, 0x5, 0x20, 0xD, 0x5, 0x40, 0xD, 0xB5, 0x6, 0x0, 0xC5, 0xA6, 0xD, 0xE5, 0x6, 0x0, 0x6, 0xE0, 0xD, 0x6, 0x7, 0x0, 0x16, 0x7, 0x0, 0x26, 0x7, 0x0, 0x36, 0x7, 0x0, 0x46, 0xA7, 0xE, 0x6, 0xC7, 0xE, 0x6, 0xE0, 0xE, 0x86, 0x27, 0xF, 0xA6, 0x7, 0x0, 0x6, 0x60, 0xF, 0xC6, 0xA7, 0xF, 0x6, 0xC0, 0xF, 0x6, 0xE0, 0xF, 0xF6, 0x7, 0x0, 0x6, 0x8, 0x0, 0x6, 0x20, 0x10, 0x26, 0x8, 0x0, 0x6, 0x60, 0x10, 0x46, 0xA8, 0x10, 0x6, 0xC0, 0x10, 0x76, 0x8, 0x0, 0x86, 0x8, 0x0, 0x96, 0x8, 0x0, 0xA6, 0x8, 0x0, 0xB6, 0x8, 0x0, 0xC6, 0x8, 0x0, 0x6, 0xA0, 0x11, 0xE6, 0x8, 0x0, 0xF6, 0x8, 0x0, 0x6, 0x9, 0x0, 0x6, 0x20, 0x12, 0x26, 0x9, 0x0, 0x36, 0x9, 0x0, 0x46, 0xA9, 0x12, 0x67, 0xE9, 0x12, 0x7, 0x0, 0x13, 0x97, 0xE9, 0x12, 0xA7, 0x9, 0x0, 0xB7, 0x89, 0x13, 0xD7, 0xC9, 0x13, 0xF7, 0x9, 0x0, 0x7, 0x0, 0x14, 0x17, 0x4A, 0x14, 0x7, 0x60, 0x14, 0x7, 0x80, 0x14, 0x7, 0xA0, 0x14, 0x67, 0xEA, 0x14, 0x87, 0x2A, 0x15, 0x7, 0xE0, 0x13, 0xA7, 0xA, 0x0, 0x7, 0x60, 0x15, 0xC7, 0xA, 0x0, 0xD7, 0xA, 0x0, 0x7, 0xE0, 0x15, 0x7, 0x2B, 0x16, 0x27, 0xB, 0x0, 0x37, 0x8B, 0x16, 0x57, 0xCB, 0x16, 0x7, 0xE0, 0x16, 0x87, 0xB, 0x0, 0x98, 0xB, 0x0, 0xA8, 0x6B, 0x17, 0xC8, 0xB, 0x0, 0xD8, 0xCB, 0x17, 0x8, 0xE0, 0x17, 0x8, 0x0, 0x18, 0x8, 0x20, 0x18, 0x8, 0x40, 0x18, 0x38, 0x8C, 0x18, 0x8, 0xA0, 0x18, 0x68, 0xEC, 0x18, 0x8, 0x0, 0x19, 0x8, 0x20, 0x19, 0xA8, 0xC, 0x0, 0x8, 0x60, 0x19, 0x8, 0xC0, 0x15, 0xC8, 0xAC, 0x19, 0xE8, 0xEC, 0x19, 0x8, 0xD, 0x0, 0x18, 0x4D, 0x1A, 0x39, 0xD, 0x0, 0x49, 0xAD, 0x1A, 0x69, 0xED, 0x1A, 0x9, 0x0, 0x1B, 0x9, 0x20, 0x1B, 0xA9, 0x6D, 0x1B, 0x9, 0x80, 0x1B, 0x9, 0xA0, 0x1B, 0xE9, 0xED, 0x1B, 0x9, 0xE, 0x0, 0x9, 0x20, 0x1C, 0x29, 0xE, 0x0, 0x9, 0x60, 0x1C, 0x49, 0xAE, 0x1C, 0x69, 0xE, 0x0, 0x7A, 0xE, 0x0, 0xA, 0x0, 0x1D, 0x9A, 0x4E, 0x1D, 0xA, 0x60, 0x1D, 0xCA, 0xE, 0x0, 0xA, 0xA0, 0x1D, 0xEA, 0xEE, 0x1D, 0xA, 0x2F, 0x1E, 0x2A, 0x6F, 0x1E, 0x4A, 0xAF, 0x1E, 0x6B, 0xF, 0x0, 0x7B, 0xF, 0x1F, 0xB, 0x20, 0x1F, 0xAB, 0x6F, 0x1F, 0xCB, 0xAF, 0x1F, 0xEB, 0xEF, 0x1F, 0xC, 0x10, 0x0, 0xC, 0x20, 0x20, 0x2C, 0x70, 0x20, 0x4C, 0xB0, 0x20, 0x6D, 0x10, 0x0, 0x7D, 0x10, 0x0, 0x8D, 0x30, 0x21, 0xAE, 0x70, 0x21, 0xE, 0x80, 0x21, 0xDF, 0xD0, 0x21]; 66private static ReadOnlySpan<byte> SerializedCategory4_OtherLetter => [0x3, 0x4, 0x0, 0x0, 0xA, 0x0, 0x0, 0x0, 0x40, 0x0, 0x10, 0x0, 0x0, 0x1, 0x80, 0x0, 0x11, 0x0, 0x0, 0x21, 0x40, 0x0, 0x1, 0x40, 0x0, 0x11, 0xC0, 0x0, 0x11, 0x80, 0x0, 0x31, 0x0, 0x0, 0x31, 0x40, 0x0, 0x21, 0x0, 0x0, 0x21, 0xC0, 0x0, 0x1, 0xC0, 0x0, 0x31, 0x80, 0x0, 0x42, 0x40, 0x1, 0x12, 0x40, 0x1, 0x62, 0x40, 0x0, 0x72, 0x40, 0x0, 0x12, 0x0, 0x2, 0x52, 0x0, 0x0, 0x42, 0x40, 0x0, 0x92, 0x40, 0x0, 0x2, 0x40, 0x0, 0x12, 0x80, 0x2, 0x2, 0xC0, 0x1, 0x92, 0xC0, 0x2, 0x22, 0x40, 0x0, 0x12, 0x40, 0x2, 0x32, 0x0, 0x0, 0x2, 0x80, 0x1, 0x62, 0x0, 0x2, 0x2, 0x0, 0x3, 0x42, 0x80, 0x2, 0x2, 0x80, 0x0, 0x72, 0x0, 0x2, 0xD2, 0x80, 0x3, 0x52, 0x0, 0x3, 0x12, 0x80, 0x1, 0x2, 0x0, 0x1, 0x62, 0x40, 0x1, 0xF2, 0x40, 0x0, 0x12, 0x0, 0x0, 0xD2, 0x80, 0x2, 0xA2, 0x0, 0x0, 0xC2, 0x0, 0x0, 0x2, 0x40, 0x1, 0x82, 0x0, 0x0, 0xA2, 0x80, 0x1, 0x42, 0x0, 0x0, 0xD2, 0x40, 0x0, 0x92, 0x0, 0x2, 0x72, 0x40, 0x2, 0x82, 0x0, 0x1, 0x72, 0x40, 0x1, 0xE2, 0x0, 0x0, 0x2, 0x40, 0x2, 0x32, 0x40, 0x0, 0x92, 0x40, 0x3, 0xE2, 0x40, 0x0, 0x12, 0xC0, 0x2, 0x62, 0x0, 0x0, 0xE2, 0x80, 0x1, 0x2, 0x40, 0x3, 0xE2, 0xC0, 0x1, 0x82, 0x40, 0x0, 0x72, 0x80, 0x1, 0x52, 0x80, 0x1, 0x82, 0x80, 0x2, 0x2, 0x80, 0x3, 0xB2, 0x0, 0x0, 0x82, 0x40, 0x2, 0x12, 0xC0, 0x3, 0xB2, 0x40, 0x0, 0x22, 0x0, 0x2, 0xD2, 0x40, 0x2, 0x52, 0x80, 0x0, 0xF2, 0x40, 0x1, 0x72, 0x0, 0x0, 0x2, 0x80, 0x2, 0x3, 0x41, 0x4, 0x23, 0x41, 0x0, 0x33, 0x41, 0x0, 0x13, 0x0, 0x5, 0x13, 0x40, 0x5, 0x63, 0x41, 0x0, 0x13, 0xC0, 0x5, 0x83, 0x41, 0x0, 0x3, 0x40, 0x0, 0x13, 0x40, 0x4, 0x13, 0x40, 0x6, 0x3, 0x80, 0x6, 0x13, 0xC0, 0x6, 0xC3, 0x81, 0x4, 0xD3, 0x41, 0x0, 0xE3, 0x1, 0x0, 0xA3, 0x41, 0x0, 0x93, 0x81, 0x4, 0x3, 0x0, 0x6, 0x3, 0xC0, 0x7, 0x3, 0x0, 0x8, 0x3, 0x40, 0x8, 0xF3, 0x41, 0x0, 0x23, 0x2, 0x0, 0x3, 0xC0, 0x8, 0x43, 0x42, 0x9, 0x63, 0x2, 0x8, 0x83, 0xC1, 0x9, 0x83, 0x42, 0x0, 0x93, 0x2, 0x0, 0x13, 0x80, 0xA, 0x13, 0xC0, 0xA, 0x3, 0x80, 0x4, 0x3, 0xC0, 0x4, 0x13, 0x1, 0x0, 0xC3, 0x42, 0x4, 0x73, 0xC2, 0x2, 0x93, 0x41, 0xB, 0xD3, 0x2, 0x0, 0xE3, 0x2, 0x0, 0xF3, 0x2, 0x0, 0x13, 0x0, 0xC, 0x13, 0x43, 0x0, 0xD3, 0x82, 0x4, 0x23, 0x3, 0x0, 0x3, 0x80, 0xB, 0x83, 0x2, 0xC, 0x13, 0xC2, 0xC, 0x43, 0x3, 0x0, 0x3, 0x3, 0x0, 0x53, 0x1, 0xA, 0x63, 0x1, 0xC, 0x3, 0x80, 0x5, 0x33, 0x42, 0x0, 0x13, 0xC0, 0x9, 0x3, 0x0, 0xA, 0x73, 0x41, 0x0, 0xD3, 0x82, 0x6, 0x83, 0x2, 0x5, 0xA3, 0x42, 0x0, 0x13, 0x40, 0xD, 0x13, 0x80, 0x4, 0x23, 0x41, 0xD, 0x53, 0x43, 0x0, 0x53, 0x83, 0x4, 0xE3, 0x82, 0x6, 0x13, 0x80, 0xD, 0x53, 0x41, 0x9, 0x73, 0xC3, 0x4, 0x63, 0x1, 0x0, 0x43, 0x41, 0x0, 0xB3, 0x2, 0x0, 0x83, 0x43, 0xE, 0x13, 0x80, 0xE, 0x73, 0xC2, 0xE, 0x3, 0x40, 0xE, 0xC3, 0x43, 0xF, 0x13, 0x81, 0x4, 0xD3, 0x82, 0xF, 0xF3, 0x43, 0x0, 0x13, 0x40, 0x7, 0x73, 0xC1, 0xA, 0x3, 0x0, 0x10, 0xE3, 0x3, 0x0, 0x13, 0x84, 0x10, 0x73, 0x81, 0xD, 0x33, 0x4, 0x0, 0x13, 0x44, 0x0, 0x73, 0x1, 0xC, 0x43, 0x84, 0x8, 0xB3, 0x43, 0xD, 0x43, 0x44, 0x11, 0x3, 0x80, 0x11, 0x73, 0x4, 0x0, 0x13, 0x4, 0x12, 0x13, 0x40, 0x12, 0xA3, 0x2, 0xC, 0x63, 0x4, 0x0, 0x13, 0x40, 0xF, 0xA3, 0x4, 0xC, 0x3, 0x0, 0x4, 0xB3, 0x4, 0x0, 0xA3, 0x1, 0x13, 0x13, 0x3, 0xC, 0x23, 0x83, 0x6, 0x13, 0x44, 0x13, 0xA3, 0x82, 0xD, 0x13, 0x0, 0xA, 0xE3, 0x4, 0x0, 0x53, 0x1, 0x0, 0x3, 0x0, 0xF, 0xF3, 0x1, 0x5, 0x3, 0xC0, 0x13, 0x3, 0x5, 0x0, 0x13, 0x2, 0x0, 0x14, 0x45, 0x4, 0x24, 0x45, 0x0, 0x34, 0x45, 0x0, 0x44, 0x45, 0x15, 0x64, 0x45, 0x0, 0x74, 0x5, 0x0, 0x84, 0x5, 0x0, 0x4, 0x40, 0x16, 0xA4, 0x45, 0x0, 0x14, 0x0, 0x0, 0xB4, 0x5, 0x0, 0xC4, 0x45, 0x0, 0x14, 0x40, 0x17, 0xE4, 0xC5, 0x17, 0x4, 0x6, 0x0, 0x14, 0x46, 0x0, 0x14, 0xC0, 0x14, 0x84, 0x45, 0x0, 0x14, 0x80, 0x18, 0x14, 0xC0, 0x18, 0x4, 0x0, 0x19, 0x4, 0x80, 0x4, 0x54, 0x6, 0x8, 0x64, 0xC6, 0x19, 0x84, 0x46, 0x1A, 0xA4, 0x46, 0x0, 0xB4, 0x46, 0x0, 0x4, 0x0, 0x1B, 0x4, 0x40, 0x1B, 0xE4, 0xC6, 0x1B, 0x44, 0x46, 0x0, 0x14, 0x0, 0x1C, 0x4, 0x40, 0x1C, 0x14, 0x80, 0x1C, 0x14, 0xC0, 0x1C, 0x44, 0x7, 0x0, 0x34, 0x46, 0x0, 0x14, 0x80, 0x16, 0x14, 0x40, 0x1D, 0x64, 0x7, 0x0, 0x4, 0xC0, 0x1D, 0x4, 0x80, 0x1C, 0x4, 0x0, 0x1E, 0x4, 0x40, 0x1E, 0x14, 0x0, 0x16, 0x94, 0x45, 0x0, 0x4, 0x80, 0x15, 0x74, 0x45, 0x0, 0x4, 0x80, 0x14, 0x44, 0x45, 0x0, 0x14, 0x80, 0x1E, 0xB4, 0x47, 0x0, 0x14, 0x0, 0x15, 0xC4, 0x47, 0x0, 0xD4, 0x7, 0x0, 0x4, 0x80, 0x1F, 0x14, 0x47, 0x0, 0xF4, 0x7, 0x0, 0x4, 0x48, 0x20, 0x34, 0x87, 0x20, 0x4, 0xC0, 0x18, 0x34, 0xC7, 0x20, 0x14, 0xC0, 0x16, 0x4, 0x0, 0x21, 0x54, 0x48, 0x0, 0x4, 0x40, 0x18, 0x54, 0xC8, 0x14, 0x24, 0x47, 0x0, 0x14, 0x80, 0x21, 0x14, 0xC0, 0x1B, 0xD4, 0x46, 0x0, 0x14, 0xC0, 0x21, 0x84, 0x48, 0x22, 0xA4, 0x48, 0x0, 0xB4, 0xC8, 0x19, 0x74, 0x6, 0x15, 0x14, 0x0, 0x23, 0x4, 0x40, 0x0, 0x74, 0x46, 0x0, 0xD4, 0x48, 0x0, 0xE4, 0x48, 0x23, 0xF4, 0x48, 0x0, 0x14, 0x0, 0x24, 0x14, 0x9, 0x24, 0x4, 0x80, 0x24, 0x34, 0x9, 0x25, 0x54, 0x9, 0x0, 0x74, 0xC7, 0x19, 0x4, 0x80, 0x25, 0x14, 0xC0, 0x25, 0x4, 0x0, 0x22, 0x84, 0x49, 0x21, 0x94, 0x89, 0x26, 0x14, 0xC0, 0x26, 0xC4, 0x49, 0x0, 0xD4, 0x49, 0x0, 0xE4, 0x89, 0x1E, 0x34, 0x7, 0x17, 0xF4, 0x9, 0x1E, 0x4, 0x4A, 0x0, 0x14, 0x8A, 0x28, 0x34, 0xA, 0x17, 0x44, 0xA, 0x0, 0x54, 0xCA, 0x17, 0x14, 0x8A, 0x29, 0x4, 0x0, 0x17, 0x74, 0xA, 0x0, 0x84, 0xCA, 0x17, 0x14, 0x4A, 0x2A, 0x84, 0x8, 0x0, 0x14, 0x86, 0x2A, 0xB4, 0xA, 0x2B, 0xD4, 0xA, 0x17, 0xE4, 0xA, 0x0, 0xF4, 0xCA, 0x17, 0x4, 0x4B, 0x2C, 0x24, 0xB, 0x17, 0x34, 0xB, 0x2D, 0x54, 0xB, 0x0, 0x64, 0xB, 0x0, 0x74, 0xCB, 0x17, 0x4, 0xB, 0x2E, 0x94, 0xB, 0x17, 0xE4, 0xA, 0x1E, 0xA4, 0xCB, 0x17, 0x4, 0xCB, 0x2E, 0xA4, 0x5, 0x17, 0xC4, 0xB, 0x0, 0x84, 0x4A, 0x0, 0x4, 0xC0, 0x25, 0x14, 0xC0, 0x19, 0x4, 0xC0, 0x19, 0xD4, 0x8A, 0x1C, 0x14, 0x80, 0x20, 0x14, 0xA, 0x0, 0xD4, 0x8B, 0x2F, 0xF4, 0x4B, 0x0, 0x44, 0x85, 0x2F, 0x4, 0x0, 0x30, 0x44, 0xC6, 0x1E, 0x14, 0xC, 0x0, 0x24, 0xC, 0x0, 0x5, 0x0, 0x31, 0x55, 0x8C, 0x31, 0x75, 0xC, 0x0, 0x85, 0x4C, 0x0, 0x95, 0xC, 0x0, 0xA5, 0xCC, 0x32, 0x15, 0x0, 0x33, 0x15, 0x40, 0x33, 0x65, 0x4C, 0x0, 0x15, 0x80, 0x33, 0xF5, 0x4C, 0x0, 0x15, 0x0, 0x34, 0x15, 0x8D, 0x34, 0x5, 0xC0, 0x34, 0x45, 0x4D, 0x0, 0x55, 0x8D, 0x35, 0x75, 0x4D, 0x0, 0x85, 0x4D, 0x0, 0x95, 0x8D, 0x36, 0xB5, 0xD, 0x37, 0xD5, 0x4D, 0x0, 0xE5, 0xCD, 0x37, 0x5, 0x4E, 0x0, 0x15, 0xE, 0x0, 0x25, 0xCE, 0x38, 0x85, 0xC, 0x39, 0x55, 0x8E, 0x39, 0x75, 0xE, 0x0, 0x85, 0x4E, 0x3A, 0x85, 0x4E, 0x0, 0x85, 0x8D, 0x3A, 0xB5, 0xE, 0x0, 0x5, 0x0, 0x3B, 0xD5, 0x4E, 0x0, 0x15, 0x0, 0x0, 0xE5, 0xE, 0x0, 0xF5, 0xE, 0x3C, 0x15, 0x4F, 0x33, 0x5, 0x80, 0x3C, 0x15, 0xC0, 0x3C, 0xD5, 0xC, 0x0, 0x15, 0x0, 0x3D, 0x55, 0x8F, 0x3D, 0x75, 0x4F, 0x0, 0x85, 0x4F, 0x3E, 0x15, 0x0, 0x3E, 0xA5, 0xCF, 0x3E, 0x5, 0x80, 0x4, 0x25, 0x1, 0x3F, 0xB5, 0x4C, 0x0, 0xD5, 0xF, 0x0, 0xE5, 0xF, 0x0, 0x15, 0xCF, 0x3F, 0x5, 0x50, 0x0, 0x15, 0x90, 0x40, 0x5, 0xC0, 0x40, 0x85, 0x8E, 0x3D, 0x5, 0x0, 0x41, 0x15, 0x0, 0x3F, 0x5, 0x40, 0x41, 0x5, 0x4F, 0x0, 0x65, 0x50, 0x33, 0x5, 0x40, 0x31, 0x75, 0x50, 0x0, 0x85, 0x50, 0x42, 0xA5, 0xD0, 0x42, 0x5, 0x80, 0x3E, 0xC5, 0xD0, 0x33, 0xF5, 0x4C, 0x43, 0xE5, 0x50, 0x0, 0x15, 0xC0, 0x43, 0x5, 0x51, 0x0, 0x5, 0x40, 0x44, 0x5, 0x80, 0x44, 0x15, 0xC0, 0x44, 0x15, 0x0, 0x45, 0x55, 0x91, 0x45, 0x15, 0xC0, 0x45, 0x5, 0x0, 0x46, 0x95, 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, 0x97, 0x5D, 0x76, 0x17, 0x5E, 0x16, 0x40, 0x5E, 0x6, 0x40, 0x0, 0xA6, 0xD7, 0x5E, 0x16, 0x0, 0x5F, 0xD6, 0x97, 0x5F, 0xF6, 0x17, 0x60, 0x16, 0x98, 0x60, 0x36, 0x98, 0x5E, 0x6, 0x0, 0x61, 0x56, 0x18, 0x0, 0x66, 0xD8, 0x61, 0x36, 0x17, 0x62, 0x96, 0x98, 0x62, 0xB6, 0x18, 0x63, 0xD6, 0x98, 0x63, 0xF6, 0x18, 0x64, 0x16, 0x99, 0x64, 0x36, 0x19, 0x5D, 0x46, 0xD9, 0x5B, 0x56, 0x99, 0x65, 0x76, 0x19, 0x66, 0x96, 0x59, 0x0, 0x16, 0xC0, 0x5F, 0x6, 0x80, 0x66, 0xB6, 0x19, 0x67, 0xD6, 0x99, 0x67, 0xF6, 0x59, 0x0, 0x6, 0x0, 0x68, 0x16, 0x9A, 0x68, 0x6, 0xC0, 0x68, 0x46, 0x5A, 0x69, 0x66, 0xDA, 0x69, 0x86, 0x5A, 0x6A, 0xA6, 0xDA, 0x6A, 0xC6, 0x5A, 0x6B, 0xE6, 0xDA, 0x6B, 0x6, 0x5B, 0x6C, 0x26, 0xDB, 0x6C, 0x46, 0x5B, 0x6D, 0x66, 0xDB, 0x6D, 0x86, 0x5B, 0x6E, 0xA6, 0xDB, 0x6E, 0xC6, 0x5B, 0x6F, 0xE6, 0xDB, 0x6F, 0x6, 0x5C, 0x70, 0x26, 0xDC, 0x70, 0x46, 0x5C, 0x71, 0x66, 0x5C, 0x0, 0x76, 0x1C, 0x5D, 0x86, 0x1C, 0x0, 0x6, 0x40, 0x72, 0xA6, 0xDC, 0x72, 0x6, 0x0, 0x73, 0xD7, 0x9C, 0x73, 0xF7, 0x1C, 0x74, 0x17, 0x9D, 0x74, 0x37, 0x1D, 0x75, 0x57, 0x9D, 0x75, 0x77, 0x5D, 0x0, 0x87, 0x5D, 0x76, 0xA7, 0xDD, 0x76, 0xC7, 0x5D, 0x77, 0xE7, 0xDD, 0x77, 0x7, 0x1E, 0x0, 0x17, 0x9E, 0x78, 0x37, 0x5E, 0x0, 0x17, 0x0, 0x79, 0x57, 0x5E, 0x0, 0x67, 0xDE, 0x79, 0x87, 0x5E, 0x7A, 0xA7, 0xDE, 0x7A, 0x7, 0x0, 0x7B, 0xD7, 0x9E, 0x7B, 0xF7, 0x1E, 0x7C, 0x7, 0x40, 0x7C, 0x27, 0xDF, 0x7C, 0x47, 0x5F, 0x7D, 0x67, 0xDF, 0x7D, 0x87, 0x5F, 0x7E, 0x17, 0x80, 0x7E, 0xB7, 0x1F, 0x7F, 0xD7, 0x9F, 0x7F, 0xF7, 0x1F, 0x80, 0x17, 0xA0, 0x80, 0x37, 0x20, 0x81, 0x57, 0xA0, 0x81, 0x77, 0x20, 0x82, 0x97, 0xA0, 0x82, 0xB7, 0x20, 0x83, 0xD7, 0xA0, 0x83, 0xF7, 0x20, 0x84, 0x17, 0xA1, 0x84, 0x37, 0x21, 0x85, 0x57, 0x21, 0x0, 0x67, 0x21, 0x0, 0x77, 0x21, 0x0, 0x87, 0x21, 0x0, 0x98, 0xA1, 0x86, 0xB8, 0x61, 0x0, 0xC8, 0x61, 0x87, 0x18, 0x0, 0x0, 0xE8, 0x61, 0x0, 0xF8, 0x21, 0x88, 0x18, 0xA2, 0x88, 0x38, 0x22, 0x89, 0x18, 0x40, 0x89, 0x18, 0x80, 0x89, 0x78, 0x62, 0x0, 0x88, 0x62, 0x8A, 0xA8, 0x22, 0x0, 0xB8, 0x22, 0x0, 0x8, 0x0, 0x8B, 0xD8, 0xA2, 0x8B, 0xF8, 0x22, 0x8C, 0x18, 0xA3, 0x8C, 0x18, 0xC0, 0x8C, 0x48, 0x63, 0x8D, 0x18, 0x80, 0x8D, 0x78, 0x23, 0x8E, 0x98, 0xA3, 0x8E, 0xB8, 0x23, 0x8F, 0xD8, 0xA3, 0x8F, 0xF8, 0x23, 0x90, 0x18, 0x24, 0x0, 0x8, 0x80, 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, 0x11, 0x0, 0x0, 0x31, 0x80, 0x0, 0x11, 0x80, 0x0, 0x31, 0x0, 0x0, 0x21, 0xC0, 0x0, 0x21, 0x40, 0x0, 0x11, 0xC0, 0x0, 0x31, 0x40, 0x0, 0x42, 0x0, 0x0, 0x52, 0x80, 0x1, 0x52, 0x0, 0x0, 0x72, 0x0, 0x0, 0x2, 0x40, 0x1, 0x82, 0x80, 0x1, 0x92, 0x80, 0x2, 0x62, 0x0, 0x0, 0x2, 0xC0, 0x2, 0xD2, 0x80, 0x3, 0x82, 0xC0, 0x2, 0x2, 0x40, 0x3, 0x2, 0xC0, 0x1, 0xB2, 0x0, 0x0, 0x72, 0x40, 0x0, 0x82, 0x0, 0x0, 0xC2, 0x0, 0x0, 0x12, 0x0, 0x0, 0x2, 0x0, 0x3, 0x72, 0x0, 0x2, 0x2, 0x80, 0x1, 0xE2, 0x40, 0x1, 0x62, 0x40, 0x0, 0x12, 0x80, 0x2, 0x12, 0x40, 0x3, 0x82, 0x40, 0x0, 0x32, 0xC0, 0x1, 0x72, 0xC0, 0x3, 0x2, 0x40, 0x0, 0x12, 0xC0, 0x2, 0x2, 0x0, 0x1, 0x62, 0x40, 0x3, 0xA2, 0x0, 0x0, 0xF2, 0x40, 0x0, 0x92, 0x40, 0x0, 0xE2, 0x80, 0x0, 0xD2, 0x40, 0x0, 0x2, 0x40, 0x2, 0x2, 0x80, 0x3, 0xB2, 0x40, 0x3, 0xF2, 0xC0, 0x2, 0x12, 0x80, 0x3, 0xF2, 0x0, 0x0, 0x2, 0x0, 0x2, 0x62, 0x0, 0x2, 0xE2, 0x0, 0x0, 0xC2, 0x0, 0x1, 0x62, 0x80, 0x3, 0x82, 0xC0, 0x1, 0xA2, 0x40, 0x0, 0x32, 0x0, 0x0, 0x12, 0x40, 0x1, 0x22, 0x0, 0x2, 0x62, 0xC0, 0x2, 0x92, 0x0, 0x0, 0x72, 0x80, 0x2, 0xD2, 0xC0, 0x2, 0x12, 0x0, 0x2, 0xF2, 0x80, 0x3, 0x52, 0xC0, 0x1, 0x72, 0x40, 0x2, 0xB2, 0x0, 0x3, 0x62, 0x0, 0x1, 0x12, 0xC0, 0x3, 0x72, 0x80, 0x3, 0xE2, 0x40, 0x0, 0xF2, 0x0, 0x3, 0x3, 0x1, 0x0, 0x13, 0x81, 0x4, 0x3, 0x0, 0x4, 0x33, 0x1, 0x0, 0x3, 0x0, 0x5, 0x53, 0x81, 0x5, 0x73, 0x1, 0x0, 0x73, 0x1, 0x6, 0x3, 0x0, 0x3, 0x93, 0x1, 0x0, 0x3, 0x80, 0x4, 0x73, 0x80, 0x6, 0x3, 0xC0, 0x6, 0x3, 0x0, 0x7, 0x13, 0x40, 0x7, 0xE3, 0xC1, 0x7, 0xD3, 0x1, 0x7, 0x3, 0xC0, 0x4, 0x73, 0x1, 0x8, 0x83, 0x1, 0x1, 0xF3, 0x1, 0x0, 0xE3, 0x41, 0x8, 0xD3, 0x1, 0x0, 0x23, 0x2, 0x0, 0x33, 0x2, 0x0, 0x3, 0x0, 0x9, 0x13, 0x40, 0x9, 0x63, 0x42, 0x0, 0xC3, 0xC1, 0x5, 0x13, 0xC1, 0x9, 0x13, 0x0, 0xA, 0x3, 0x40, 0xA, 0x13, 0x2, 0x0, 0xA3, 0x2, 0x4, 0xB3, 0xC2, 0x8, 0x3, 0x0, 0xB, 0xD3, 0x2, 0x0, 0x3, 0x80, 0xB, 0xF3, 0x2, 0xC, 0x13, 0x43, 0x0, 0x23, 0x43, 0xB, 0x63, 0xC2, 0xC, 0x43, 0x3, 0x4, 0x53, 0x43, 0x7, 0x63, 0x83, 0xB, 0x43, 0xC2, 0xD, 0x43, 0x1, 0x0, 0x3, 0x0, 0x8, 0x83, 0x3, 0x0, 0x23, 0x1, 0xB, 0x93, 0x3, 0x4, 0xE3, 0x81, 0xE, 0x3, 0xC0, 0xE, 0x3, 0x0, 0xF, 0xD3, 0x3, 0x0, 0x23, 0x1, 0x0, 0x23, 0x81, 0xF, 0x3, 0xC0, 0xF, 0x3, 0x4, 0x0, 0xC3, 0xC0, 0x9, 0x93, 0x43, 0x0, 0xD3, 0x43, 0x10, 0x43, 0x43, 0xE, 0x43, 0x81, 0x10, 0xC3, 0x1, 0x0, 0x43, 0x3, 0x0, 0x63, 0xC2, 0x10, 0x43, 0x43, 0x7, 0xB3, 0xC1, 0x10, 0x3, 0x0, 0x11, 0xE3, 0x2, 0x0, 0x23, 0xC1, 0xF, 0x53, 0x4, 0x0, 0x33, 0x1, 0x4, 0x63, 0x4, 0x0, 0x73, 0x44, 0x5, 0x3, 0x3, 0x0, 0x3, 0x80, 0x1, 0x23, 0x1, 0x9, 0x3, 0x0, 0x12, 0x93, 0x4, 0x0, 0x13, 0x81, 0x12, 0x3, 0x80, 0x8, 0x3, 0xC0, 0x12, 0xC3, 0x44, 0x13, 0x3, 0x40, 0xE, 0x13, 0x41, 0xE, 0xE3, 0x4, 0x0, 0x13, 0xC0, 0x13, 0x63, 0x3, 0x0, 0x3, 0x45, 0x14, 0xF3, 0xC4, 0x7, 0x13, 0xC0, 0x7, 0xB3, 0x41, 0x0, 0x73, 0x84, 0xC, 0x23, 0xC3, 0x7, 0xC3, 0x81, 0x14, 0x13, 0x40, 0xE, 0x3, 0x40, 0xB, 0x4, 0x40, 0x0, 0x34, 0x5, 0x0, 0x4, 0x0, 0x15, 0x54, 0x85, 0x15, 0x4, 0xC0, 0x15, 0x84, 0x5, 0x0, 0x94, 0x5, 0x0, 0x4, 0x80, 0x16, 0xB4, 0x5, 0x17, 0x4, 0x40, 0x17, 0xE4, 0x5, 0x0, 0x4, 0xC0, 0x17, 0x4, 0x46, 0x18, 0x4, 0x80, 0x18, 0x34, 0x46, 0x0, 0x4, 0x0, 0x19, 0x4, 0x40, 0x19, 0x4, 0x80, 0x19, 0x4, 0x6, 0x0, 0x74, 0x6, 0x0, 0x84, 0x46, 0x1A, 0xA4, 0x6, 0x0, 0x4, 0xC0, 0x1A, 0x94, 0x6, 0x0, 0x4, 0x46, 0x1A, 0xC4, 0x46, 0x1B, 0xE4, 0x6, 0x0, 0xF4, 0x6, 0x1C, 0x14, 0x7, 0x0, 0x24, 0xC7, 0x1C, 0x4, 0x6, 0x1D, 0x4, 0x40, 0x1D, 0x4, 0x0, 0x18, 0x64, 0xC7, 0x1D, 0x4, 0x0, 0x1E, 0x94, 0x7, 0x0, 0x4, 0x80, 0x1D, 0xC4, 0x46, 0x0, 0xA4, 0x7, 0x0, 0xB4, 0x7, 0x1F, 0xD4, 0x7, 0x0, 0xE4, 0x7, 0x0, 0xF4, 0x7, 0x20, 0x4, 0x40, 0x20, 0x4, 0x80, 0x20, 0x4, 0xC0, 0x20, 0x44, 0x48, 0x21, 0x64, 0x8, 0x0, 0x74, 0x8, 0x0, 0x84, 0x8, 0x0, 0x94, 0x8, 0x0, 0xA4, 0xC8, 0x22, 0xC4, 0x8, 0x1B, 0xD4, 0x8, 0x0, 0xE4, 0x48, 0x22, 0x4, 0x40, 0x15, 0xE4, 0x46, 0x0, 0xF4, 0x8, 0x24, 0x14, 0x9, 0x0, 0x24, 0x9, 0x0, 0x34, 0x9, 0x0, 0x4, 0x0, 0x25, 0x54, 0x9, 0x0, 0x4, 0x80, 0x25, 0x74, 0x9, 0x0, 0x84, 0x49, 0x26, 0x4, 0xC0, 0x21, 0x4, 0x80, 0x26, 0xB4, 0x9, 0x0, 0x4, 0x0, 0x27, 0xD4, 0x9, 0x0, 0x24, 0x88, 0x27, 0xF4, 0x9, 0x0, 0x4, 0x0, 0x28, 0x4, 0x40, 0x28, 0x24, 0x8A, 0x26, 0x34, 0xCA, 0x21, 0x4, 0x0, 0x29, 0x4, 0x40, 0x29, 0x64, 0xA, 0x0, 0x74, 0xC5, 0x29, 0x34, 0xC5, 0x21, 0x84, 0x4A, 0x2A, 0xA4, 0xA, 0x0, 0x14, 0xC0, 0x2A, 0x14, 0xC0, 0x28, 0x14, 0x6, 0x0, 0xC4, 0xA, 0x0, 0x4, 0x40, 0x2B, 0xE4, 0xA, 0x0, 0x44, 0xC8, 0x1D, 0xC4, 0xC6, 0x2B, 0x4, 0x0, 0x2C, 0x14, 0x0, 0x0, 0x74, 0x5, 0x0, 0x4, 0x40, 0x2C, 0x24, 0xB, 0x0, 0xC4, 0x6, 0x0, 0x14, 0xC0, 0x1D, 0x4, 0xB, 0x0, 0x4, 0xC0, 0x2C, 0xA4, 0x47, 0x0, 0x44, 0xB, 0x0, 0x4, 0x40, 0x2D, 0x5, 0xC0, 0x2D, 0x85, 0xB, 0x0, 0x95, 0x8B, 0x2E, 0xB5, 0xB, 0x0, 0xC5, 0x4B, 0x2F, 0xE5, 0xB, 0x0, 0xF5, 0xB, 0x0, 0x5, 0x4C, 0x30, 0x5, 0x80, 0x30, 0x35, 0xC, 0x0, 0x45, 0x4C, 0x31, 0x65, 0xCC, 0x31, 0x85, 0xC, 0x0, 0x5, 0x40, 0x32, 0xA5, 0xC, 0x0, 0x5, 0xC0, 0x32, 0xC5, 0xC, 0x0, 0x15, 0x0, 0x0, 0xD5, 0xC, 0x0, 0xE5, 0xC, 0x0, 0xF5, 0xC, 0x34, 0x15, 0x8D, 0x34, 0x35, 0xD, 0x0, 0x45, 0xD, 0x0, 0x55, 0x8D, 0x35, 0x75, 0xD, 0x36, 0x95, 0x8D, 0x36, 0xB5, 0x4D, 0x0, 0xC5, 0xD, 0x0, 0xD5, 0x8D, 0x37, 0x5, 0xC0, 0x37, 0x5, 0xE, 0x0, 0x15, 0x8E, 0x38, 0x5, 0xC0, 0x38, 0x5, 0x0, 0x39, 0x55, 0xE, 0x0, 0x65, 0xCE, 0x39, 0x5, 0x0, 0x3A, 0x5, 0x40, 0x3A, 0xA5, 0xCE, 0x3A, 0xC5, 0xE, 0x0, 0x5, 0x40, 0x3B, 0xE5, 0xCE, 0x3B, 0x5, 0xF, 0x0, 0x15, 0x8F, 0x3C, 0x5, 0xC0, 0x3C, 0x45, 0xF, 0x0, 0x5, 0x40, 0x3D, 0x65, 0xF, 0x0, 0x5, 0xC0, 0x3D, 0x5, 0x80, 0x2E, 0x85, 0x4F, 0x3E, 0xA5, 0x8F, 0x35, 0x85, 0xCF, 0x3E, 0xC5, 0x8F, 0x2E, 0x85, 0x4F, 0x3F, 0xE5, 0xCF, 0x3F, 0x5, 0x0, 0x40, 0x5, 0x0, 0x36, 0x85, 0x4F, 0x40, 0x25, 0xD0, 0x40, 0xC5, 0xB, 0x41, 0x55, 0x90, 0x41, 0x75, 0x50, 0x3E, 0xC5, 0x8B, 0x2E, 0x85, 0xF, 0x42, 0x95, 0x50, 0x30, 0xA5, 0xD0, 0x42, 0x5, 0x0, 0x43, 0x5, 0x40, 0x43, 0xE5, 0xD0, 0x43, 0x5, 0x11, 0x0, 0x15, 0x11, 0x0, 0x5, 0x80, 0x44, 0x35, 0x11, 0x45, 0x55, 0x91, 0x45, 0x75, 0x11, 0x46, 0x5, 0x40, 0x46, 0x5, 0x80, 0x46, 0xB5, 0x11, 0x47, 0x5, 0x40, 0x47, 0x65, 0x4B, 0x0, 0x6, 0x80, 0x2D, 0x6, 0x80, 0x47, 0xF6, 0x11, 0x0, 0x6, 0x52, 0x48, 0x26, 0xD2, 0x48, 0x46, 0x52, 0x49, 0x66, 0xD2, 0x49, 0x86, 0x12, 0x0, 0x6, 0x40, 0x4A, 0xA6, 0xD2, 0x4A, 0xC6, 0x12, 0x0, 0x6, 0x40, 0x4B, 0x6, 0x80, 0x4B, 0xF6, 0x12, 0x0, 0x6, 0x13, 0x0, 0x16, 0x13, 0x0, 0x26, 0x13, 0x0, 0x16, 0x0, 0x0, 0x36, 0x13, 0x0, 0x6, 0x0, 0x4D, 0x56, 0x93, 0x4D, 0x76, 0x13, 0x4E, 0x96, 0x93, 0x4E, 0xB6, 0x13, 0x4F, 0x6, 0x40, 0x4F, 0x6, 0x80, 0x4F, 0x6, 0xC0, 0x4F, 0x6, 0x54, 0x50, 0x66, 0x8E, 0x50, 0x36, 0x14, 0x0, 0x6, 0x0, 0x51, 0x56, 0x94, 0x51, 0x76, 0x14, 0x52, 0x96, 0x94, 0x52, 0xB6, 0x14, 0x53, 0xD6, 0x94, 0x53, 0xF6, 0x14, 0x54, 0x16, 0x95, 0x54, 0x36, 0x15, 0x55, 0x56, 0x95, 0x55, 0x76, 0x15, 0x56, 0x96, 0x15, 0x55, 0xA6, 0xD5, 0x56, 0xC6, 0xD5, 0x56, 0xD6, 0x95, 0x57, 0xF6, 0x15, 0x58, 0x16, 0x96, 0x58, 0x36, 0x16, 0x59, 0x56, 0x96, 0x59, 0x76, 0x16, 0x5A, 0x96, 0x16, 0x0, 0xA6, 0xD6, 0x5A, 0xC6, 0x56, 0x5B, 0x6, 0x80, 0x5B, 0xF6, 0x56, 0x0, 0x7, 0x0, 0x5C, 0x7, 0x40, 0x5C, 0x27, 0x17, 0x0, 0x37, 0x17, 0x5D, 0x57, 0x97, 0x5D, 0x77, 0x17, 0x5E, 0x97, 0x97, 0x5E, 0xB7, 0x17, 0x5F, 0xD7, 0x97, 0x5F, 0xF7, 0x17, 0x0, 0x7, 0x18, 0x0, 0x17, 0x18, 0x0, 0x27, 0xD8, 0x60, 0x47, 0x58, 0x61, 0x67, 0xD8, 0x61, 0x7, 0x0, 0x62, 0x97, 0x98, 0x62, 0xB7, 0x18, 0x63, 0x7, 0x40, 0x63, 0xE7, 0xD8, 0x63, 0x7, 0x59, 0x64, 0x27, 0xD9, 0x64, 0x47, 0x59, 0x65, 0x67, 0xD9, 0x65, 0x87, 0x59, 0x66, 0xA7, 0xD9, 0x66, 0xC7, 0x59, 0x67, 0xE7, 0xD9, 0x67, 0x7, 0x5A, 0x68, 0x27, 0xDA, 0x68, 0x47, 0x1A, 0x0, 0x57, 0x1A, 0x0, 0x7, 0x80, 0x69, 0x8, 0xC0, 0x69, 0x88, 0x1A, 0x0, 0x98, 0x9A, 0x6A, 0xB8, 0x1A, 0x6B, 0x8, 0x40, 0x6B, 0x8, 0x80, 0x6B, 0xF8, 0x1A, 0x6C, 0x8, 0x40, 0x6C, 0x28, 0xDB, 0x6C, 0x48, 0x5B, 0x6D, 0x68, 0xDB, 0x6D, 0x88, 0x1B, 0x0, 0x98, 0x1B, 0x0, 0x8, 0x80, 0x6E, 0xB8, 0x1B, 0x6F, 0xD8, 0x9B, 0x6F, 0xF8, 0x1B, 0x70, 0x18, 0x9C, 0x70, 0x38, 0x1C, 0x71, 0x58, 0x9C, 0x71, 0x78, 0x1C, 0x0, 0x89, 0x1C, 0x0, 0x99, 0x1C, 0x0, 0xA9, 0xDC, 0x72, 0xC9, 0x1C, 0x0, 0x9, 0x40, 0x73, 0x9, 0x80, 0x73, 0x9, 0xC0, 0x73, 0x9, 0x0, 0x74, 0x19, 0x9D, 0x74, 0x39, 0x1D, 0x0, 0x49, 0x5D, 0x75, 0x69, 0xDD, 0x75, 0x89, 0x5D, 0x76, 0xA9, 0xDD, 0x76, 0xC9, 0x1D, 0x0, 0xDA, 0x9D, 0x77, 0xA, 0xC0, 0x77, 0xA, 0x1E, 0x0, 0xA, 0x40, 0x78, 0x2A, 0x1E, 0x0, 0xA, 0xC0, 0x78, 0x4A, 0x5E, 0x79, 0x6A, 0xDE, 0x79, 0x8A, 0x5E, 0x7A, 0xAA, 0xDE, 0x7A, 0xCB, 0x1E, 0x0, 0xDB, 0x9E, 0x7B, 0xB, 0xC0, 0x7B, 0xB, 0x5F, 0x7C, 0x2B, 0xDF, 0x7C, 0x4B, 0x5F, 0x7D, 0x6C, 0x1F, 0x0, 0xC, 0xC0, 0x7D, 0x8C, 0x5F, 0x7E, 0xAC, 0xDF, 0x7E, 0xCD, 0x1F, 0x0, 0xDD, 0x1F, 0x0, 0xED, 0xDF, 0x7F, 0xE, 0x60, 0x80, 0xE, 0x80, 0x80, 0x3F, 0x20, 0x81]; 72private static ReadOnlySpan<byte> SerializedCategory6_SpacingCombiningMark => [0x3, 0x4, 0x0, 0x0, 0x9, 0x0, 0x0, 0x0, 0x20, 0x0, 0x10, 0x0, 0x0, 0x1, 0x40, 0x0, 0x21, 0x60, 0x0, 0x11, 0x40, 0x0, 0x31, 0x0, 0x0, 0x1, 0x60, 0x0, 0x11, 0x0, 0x0, 0x31, 0x40, 0x0, 0x1, 0x20, 0x0, 0x21, 0x0, 0x0, 0x31, 0x20, 0x0, 0x11, 0x60, 0x0, 0x21, 0x20, 0x0, 0x42, 0xA0, 0x0, 0x62, 0xE0, 0x0, 0x82, 0x0, 0x0, 0x92, 0xE0, 0x0, 0x82, 0xE0, 0x0, 0x42, 0x40, 0x1, 0x72, 0x0, 0x0, 0x2, 0x80, 0x0, 0xB2, 0x0, 0x0, 0x2, 0xE0, 0x0, 0x2, 0x20, 0x1, 0x2, 0x20, 0x0, 0x12, 0x0, 0x0, 0x2, 0x60, 0x1, 0xA2, 0xE0, 0x0, 0x92, 0x0, 0x0, 0x2, 0x0, 0x1, 0x22, 0x20, 0x1, 0x2, 0x80, 0x1, 0x92, 0x0, 0x1, 0x42, 0xA0, 0x1, 0xE2, 0xE0, 0x0, 0x42, 0x0, 0x0, 0x2, 0xE0, 0x1, 0xE2, 0x0, 0x0, 0x42, 0x60, 0x0, 0x32, 0x0, 0x0, 0x2, 0xA0, 0x0, 0x12, 0xA0, 0x1, 0x2, 0xC0, 0x1, 0xF2, 0xE0, 0x0, 0xD2, 0x20, 0x0, 0xC2, 0x0, 0x0, 0x42, 0x20, 0x1, 0xA2, 0x20, 0x0, 0xB2, 0x20, 0x0, 0xA2, 0x20, 0x1, 0x42, 0xE0, 0x0, 0x42, 0xC0, 0x0, 0x92, 0x80, 0x0, 0x52, 0x0, 0x0, 0x2, 0xC0, 0x0, 0x42, 0xC0, 0x1, 0x92, 0xA0, 0x0, 0x72, 0x80, 0x0, 0x62, 0xC0, 0x1, 0x3, 0x21, 0x2, 0x3, 0x40, 0x2, 0x33, 0x1, 0x0, 0x43, 0x1, 0x0, 0x23, 0x1, 0x0, 0x3, 0xA0, 0x2, 0x63, 0x1, 0x0, 0x3, 0xE0, 0x2, 0x93, 0x0, 0x3, 0x3, 0x20, 0x3, 0x3, 0x40, 0x3, 0x3, 0x60, 0x3, 0x13, 0x80, 0x3, 0x3, 0xA0, 0x3, 0x3, 0xC0, 0x3, 0xF3, 0x1, 0x0, 0x3, 0xC0, 0x2, 0x3, 0x0, 0x4, 0x3, 0x0, 0x3, 0xB3, 0x81, 0x3, 0x13, 0xC2, 0x2, 0x23, 0x62, 0x4, 0x3, 0x40, 0x4, 0x3, 0x80, 0x4, 0x53, 0x42, 0x2, 0x3, 0xC0, 0x4, 0x3, 0xE0, 0x4, 0x83, 0x22, 0x5, 0x3, 0x40, 0x5, 0xB3, 0x2, 0x0, 0x73, 0x81, 0x5, 0xD3, 0xC2, 0x5, 0x73, 0xE1, 0x5, 0xF3, 0x1, 0x6, 0x13, 0x3, 0x0, 0x23, 0xC3, 0x3, 0x33, 0x83, 0x6, 0x3, 0xE0, 0x3, 0x53, 0x1, 0x4, 0x53, 0x3, 0x0, 0x13, 0xA0, 0x3, 0x63, 0xE3, 0x6, 0x3, 0x0, 0x7, 0x93, 0x43, 0x6, 0x3, 0x3, 0x0, 0x3, 0x40, 0x7, 0x3, 0xA0, 0x5, 0x63, 0x63, 0x7, 0x53, 0x81, 0x7, 0x93, 0xE2, 0x2, 0xD3, 0xE3, 0x2, 0x4, 0xC0, 0x7, 0xF4, 0x3, 0x8, 0x14, 0x4, 0x0, 0x4, 0x40, 0x8, 0x34, 0x84, 0x8, 0x4, 0xA0, 0x8, 0x64, 0x4, 0x0, 0x4, 0xE0, 0x8, 0x84, 0x4, 0x0, 0x4, 0x20, 0x9, 0xA4, 0x4, 0x0, 0x4, 0x60, 0x9, 0x4, 0x80, 0x9, 0x4, 0xA0, 0x9, 0xE4, 0xE4, 0x9, 0x4, 0x25, 0xA, 0x84, 0x44, 0xA, 0x4, 0x60, 0xA, 0x4, 0x80, 0xA, 0x4, 0xA0, 0xA, 0x64, 0x5, 0x0, 0x4, 0xE0, 0xA, 0x84, 0x25, 0xB, 0xA4, 0x5, 0x0, 0xB4, 0x5, 0x0, 0xC4, 0xA5, 0xB, 0x4, 0xC0, 0xB, 0xF4, 0x5, 0x0, 0x74, 0x5, 0x0, 0xF4, 0x3, 0x0, 0x4, 0x26, 0xC, 0x4, 0x40, 0xC, 0x34, 0x6, 0x0, 0x44, 0xA6, 0xC, 0x44, 0x4, 0x0, 0xD4, 0x4, 0x0, 0x64, 0x86, 0x8, 0x4, 0x0, 0x9, 0xE4, 0xE4, 0xC, 0x74, 0x4, 0x0, 0x84, 0x26, 0xD, 0xA4, 0x6, 0x0, 0x4, 0x60, 0xD, 0x4, 0x80, 0xD, 0xE4, 0xA4, 0xD, 0xE4, 0xC4, 0xD, 0x4, 0xE0, 0xD, 0x4, 0x0, 0xE, 0x4, 0x4, 0x0, 0x15, 0x7, 0x0, 0x25, 0x7, 0x0, 0x35, 0x87, 0xE, 0x55, 0x7, 0x0, 0x5, 0xC0, 0xE, 0x75, 0x7, 0xF, 0x5, 0x20, 0xF, 0x5, 0x40, 0xF, 0xB5, 0x87, 0xF, 0xD5, 0x7, 0x0, 0xE5, 0x7, 0x0, 0xF5, 0x7, 0x0, 0x5, 0x8, 0x0, 0x15, 0x8, 0x0, 0x25, 0x68, 0x10, 0x5, 0x80, 0x10, 0x55, 0xC8, 0x10, 0x75, 0x8, 0x11, 0x5, 0x20, 0x11, 0xA5, 0x8, 0x0, 0x5, 0x60, 0x11, 0xC5, 0x8, 0x0, 0xD5, 0xC8, 0x11, 0x5, 0xE0, 0x11, 0x5, 0x29, 0x12, 0x25, 0x9, 0x0, 0x35, 0x9, 0x0, 0x45, 0x9, 0x0, 0x95, 0xA7, 0x12, 0x5, 0xC0, 0x12, 0x5, 0xE0, 0x12, 0x45, 0xC9, 0x12, 0x85, 0x29, 0x13, 0xA5, 0xC9, 0x12, 0x5, 0x60, 0x13, 0x5, 0x80, 0x13, 0x5, 0xA0, 0x13, 0x5, 0xC0, 0x13, 0x5, 0xE0, 0x13, 0x45, 0x9, 0xF, 0x5, 0x0, 0x14, 0x15, 0xA, 0xF, 0x26, 0xA, 0x0, 0x36, 0xA, 0x0, 0x46, 0xAA, 0x14, 0x66, 0xEA, 0x14, 0x86, 0xA, 0x0, 0x96, 0x4A, 0x15, 0x6, 0x60, 0x15, 0x6, 0x80, 0x15, 0xD6, 0xA, 0x0, 0x6, 0xC0, 0x15, 0xF6, 0xA, 0x16, 0x16, 0x4B, 0x16, 0x36, 0x8B, 0x16, 0x6, 0xA0, 0x16, 0x66, 0xEB, 0x16, 0x6, 0x0, 0x17, 0x6, 0x20, 0x17, 0xA6, 0x6B, 0x17, 0xC6, 0xAB, 0x17, 0xE6, 0xEB, 0x17, 0x6, 0x2C, 0x18, 0x26, 0x6C, 0x18, 0x46, 0xAC, 0x18, 0x66, 0xAC, 0x17, 0x76, 0x6C, 0x18, 0x86, 0x2C, 0x19, 0x66, 0x2A, 0x19, 0x76, 0x2C, 0x18, 0xA6, 0x6C, 0x19, 0xC7, 0xC, 0x0, 0xD7, 0xCC, 0x19, 0xF7, 0xC, 0x1A, 0x17, 0x4D, 0x1A, 0x7, 0x60, 0x1A, 0x47, 0xAD, 0x1A, 0x67, 0xED, 0x1A, 0x7, 0x0, 0x1B, 0x7, 0x20, 0x1B, 0xA7, 0x6D, 0x1B, 0xC7, 0xAD, 0x1B, 0x7, 0xC0, 0x1B, 0xF7, 0xD, 0x1C, 0x17, 0x4E, 0x1C, 0x37, 0x8E, 0x1C, 0x57, 0xCE, 0x1C, 0x77, 0xE, 0x1D, 0x98, 0x4E, 0x1D, 0xB8, 0x8E, 0x1D, 0x8, 0xA0, 0x1D, 0x8, 0xC0, 0x1D, 0xF8, 0xE, 0x1E, 0x18, 0xF, 0x0, 0x28, 0xF, 0x0, 0x8, 0x60, 0x1E, 0x48, 0xF, 0x0, 0x58, 0xCF, 0x1E, 0x78, 0xF, 0x1F, 0x98, 0xF, 0x0, 0xA9, 0x6F, 0x1F, 0x9, 0x80, 0x1F, 0x9, 0xA0, 0x1F, 0xE9, 0xEF, 0x1F, 0x9, 0x10, 0x0, 0x9, 0x20, 0x20, 0x29, 0x70, 0x20, 0x49, 0xB0, 0x20, 0xA, 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, 0x1, 0x8, 0x0, 0x11, 0x0, 0x0, 0x2, 0x10, 0x0, 0x32, 0x0, 0x0, 0x43, 0x8, 0x0, 0x13, 0x28, 0x0, 0x64, 0x0, 0x0, 0x4, 0x30, 0x0, 0x4, 0x38, 0x0, 0x5, 0x40, 0x0, 0x85, 0x0, 0x0, 0x5, 0x48, 0x0, 0x95, 0x0, 0x0, 0x5, 0x30, 0x0, 0x5, 0x50, 0x0, 0xA5, 0x0, 0x0, 0x6, 0x58, 0x0, 0xC6, 0x0, 0x0, 0xB6, 0x0, 0x0, 0x86, 0x0, 0x0, 0x6, 0x68, 0x0, 0x6, 0x70, 0x0, 0xF6, 0x0, 0x0, 0x6, 0x60, 0x0, 0x6, 0x78, 0x0, 0x6, 0x1, 0x0, 0xE6, 0x0, 0x0, 0xD6, 0x0, 0x0, 0x16, 0x1, 0x0, 0x7, 0x90, 0x0, 0x37, 0x1, 0x0, 0x7, 0xA0, 0x0, 0x57, 0xB1, 0x0, 0x47, 0x1, 0x0, 0x7, 0xB8, 0x0, 0x7, 0xC0, 0x0, 0x97, 0xA1, 0x0, 0xA7, 0x1, 0x0, 0x47, 0xD9, 0x0, 0xC7, 0x1, 0x0, 0x27, 0xE9, 0x0, 0xD7, 0x1, 0x0, 0x37, 0xE1, 0x0, 0x7, 0xC8, 0x0, 0xF8, 0x1, 0x0, 0x8, 0xA, 0x1, 0x28, 0x1A, 0x1, 0x8, 0x20, 0x1, 0x8, 0x28, 0x1, 0x68, 0x3A, 0x1, 0x88, 0xFA, 0x0, 0x98, 0x2, 0x0, 0x8, 0x50, 0x1, 0x48, 0xA2, 0x0, 0xE8, 0x1, 0x0, 0xB8, 0x62, 0x1, 0x8, 0x68, 0x1, 0xE9, 0x2, 0x0, 0xF9, 0x82, 0x1, 0x19, 0x3, 0x0, 0x9, 0x90, 0x1, 0x39, 0xA3, 0x1, 0x59, 0x3, 0x0, 0x9, 0xB0, 0x1, 0x79, 0xF3, 0x0, 0xE9, 0xC1, 0x1, 0x99, 0x3, 0x0, 0x9, 0xD0, 0x1, 0xBA, 0x3, 0x0, 0xA, 0xE0, 0x1, 0xDA, 0x3, 0x0, 0xEA, 0xFB, 0x1, 0xA, 0xC, 0x2, 0x2A, 0x1C, 0x2, 0x4A, 0x2C, 0x2, 0x6B, 0x4, 0x0, 0x7B, 0x44, 0x2, 0x9B, 0x54, 0x2, 0xBB, 0x64, 0x2, 0xDC, 0x4, 0x0, 0xC, 0x70, 0x2, 0xFC, 0x84, 0x2, 0x1D, 0x5, 0x0, 0x2D, 0x5, 0x0, 0xD, 0x98, 0x2, 0x4E, 0xAD, 0x2, 0xE, 0xB0, 0x2, 0x7F, 0xC5, 0x2]; 81private static ReadOnlySpan<byte> SerializedCategory9_LetterNumber => [0x3, 0x4, 0x0, 0x0, 0x7, 0x0, 0x0, 0x0, 0x8, 0x0, 0x10, 0x0, 0x0, 0x11, 0x0, 0x0, 0x21, 0x8, 0x0, 0x1, 0x8, 0x0, 0x11, 0x18, 0x0, 0x31, 0x0, 0x0, 0x1, 0x10, 0x0, 0x42, 0x0, 0x0, 0x2, 0x28, 0x0, 0x2, 0x30, 0x0, 0x12, 0x38, 0x0, 0x82, 0x0, 0x0, 0x2, 0x48, 0x0, 0x72, 0x28, 0x0, 0x13, 0x50, 0x0, 0xB3, 0x0, 0x0, 0xC3, 0x68, 0x0, 0x3, 0x70, 0x0, 0xF3, 0x80, 0x0, 0x3, 0x78, 0x0, 0xA3, 0x0, 0x0, 0x4, 0x88, 0x0, 0x24, 0x99, 0x0, 0x4, 0xA0, 0x0, 0x4, 0xA8, 0x0, 0x64, 0xB9, 0x0, 0x85, 0x1, 0x0, 0x95, 0xD1, 0x0, 0x5, 0xD8, 0x0, 0x15, 0x0, 0x0, 0xC5, 0x1, 0x0, 0xD6, 0x1, 0x0, 0x6, 0xF0, 0x0, 0x6, 0xF8, 0x0, 0x6, 0x2, 0x0, 0x16, 0x2, 0x0, 0x27, 0x2, 0x0, 0x7, 0x18, 0x1, 0x47, 0x2A, 0x1, 0x67, 0x2, 0x0, 0x8, 0x38, 0x1, 0x8, 0x40, 0x1, 0x98, 0x2, 0x0, 0x8, 0x50, 0x1, 0xB9, 0x2, 0x0, 0x9, 0x60, 0x1, 0x9, 0x68, 0x1, 0xE9, 0x2, 0x0, 0xFA, 0x2, 0x0, 0xA, 0x80, 0x1, 0xA, 0x88, 0x1, 0x2A, 0x3, 0x0, 0xB, 0x98, 0x1, 0xB, 0xA0, 0x1, 0xB, 0xA8, 0x1, 0xB, 0xB0, 0x1, 0xC, 0xB8, 0x1, 0x8C, 0xCB, 0x1, 0xAC, 0x3, 0x0, 0xBD, 0x3, 0x0, 0xCD, 0xEB, 0x1, 0xE, 0xF0, 0x1, 0xE, 0xF8, 0x1, 0xF, 0xC, 0x2]; 84private static ReadOnlySpan<byte> SerializedCategory10_OtherNumber => [0x3, 0x4, 0x0, 0x0, 0x8, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0, 0x10, 0x0, 0x1, 0x10, 0x0, 0x11, 0x20, 0x0, 0x11, 0x0, 0x0, 0x1, 0x20, 0x0, 0x1, 0x30, 0x0, 0x31, 0x0, 0x0, 0x31, 0x10, 0x0, 0x42, 0x10, 0x0, 0x12, 0x50, 0x0, 0x2, 0x40, 0x0, 0x42, 0x60, 0x0, 0x72, 0x0, 0x0, 0x2, 0x10, 0x0, 0x62, 0x0, 0x0, 0x12, 0x60, 0x0, 0x2, 0x70, 0x0, 0x12, 0x80, 0x0, 0x2, 0x90, 0x0, 0x82, 0x10, 0x0, 0x2, 0x80, 0x0, 0xA2, 0x10, 0x0, 0x2, 0xA0, 0x0, 0x12, 0x0, 0x0, 0xA2, 0x70, 0x0, 0x2, 0x60, 0x0, 0x3, 0xB0, 0x0, 0x13, 0xC0, 0x0, 0xD3, 0x10, 0x0, 0x13, 0x0, 0x0, 0x3, 0xE0, 0x0, 0xF3, 0x0, 0x0, 0x3, 0x0, 0x1, 0x13, 0x10, 0x1, 0x23, 0x1, 0x0, 0x3, 0x11, 0x0, 0x33, 0x1, 0x0, 0xD3, 0x40, 0x1, 0x53, 0x1, 0x0, 0x63, 0x11, 0x0, 0xC3, 0x0, 0x0, 0x73, 0x11, 0x0, 0x83, 0x1, 0x0, 0x3, 0x90, 0x1, 0x3, 0x20, 0x1, 0xD3, 0xA0, 0x1, 0xB3, 0xC1, 0x1, 0xD4, 0x1, 0x0, 0xE4, 0x1, 0x0, 0x4, 0xF0, 0x1, 0xE4, 0x1, 0x2, 0x14, 0x2, 0x0, 0x24, 0x2, 0x0, 0x34, 0x12, 0x0, 0x44, 0x2, 0x0, 0x14, 0x50, 0x2, 0x64, 0x12, 0x0, 0x4, 0x70, 0x2, 0x14, 0x0, 0x0, 0x84, 0x2, 0x0, 0x94, 0x2, 0x0, 0xF4, 0x1, 0x0, 0xA4, 0xB2, 0x2, 0x34, 0x52, 0x2, 0xC4, 0x2, 0x0, 0xD4, 0x2, 0x0, 0xE4, 0x2, 0x0, 0xF4, 0x2, 0x0, 0x4, 0x3, 0x0, 0x14, 0x3, 0x0, 0x25, 0x3, 0x0, 0x35, 0x43, 0x3, 0x5, 0x50, 0x3, 0x45, 0x3, 0x0, 0x5, 0x60, 0x3, 0x75, 0x3, 0x0, 0x5, 0x80, 0x3, 0x95, 0x3, 0x0, 0xA5, 0x3, 0x0, 0x5, 0xB0, 0x3, 0x15, 0x0, 0x0, 0x5, 0xC0, 0x3, 0x5, 0xD0, 0x3, 0x5, 0x40, 0x3, 0xE5, 0x3, 0x0, 0x5, 0xF0, 0x3, 0x5, 0x4, 0x0, 0x15, 0x4, 0x0, 0x25, 0x4, 0x0, 0x35, 0x44, 0x4, 0x45, 0x4, 0x0, 0x55, 0x4, 0x0, 0x65, 0x4, 0x0, 0x75, 0x4, 0x0, 0x85, 0x4, 0x0, 0x6, 0x90, 0x4, 0x6, 0xA0, 0x4, 0xB6, 0xC4, 0x4, 0x6, 0xD0, 0x4, 0xE6, 0x4, 0x0, 0x6, 0xF0, 0x4, 0x6, 0x5, 0x0, 0x16, 0x25, 0x5, 0x36, 0x5, 0x0, 0x6, 0x40, 0x5, 0x56, 0x5, 0x0, 0x6, 0x60, 0x5, 0x76, 0x5, 0x0, 0x86, 0x5, 0x0, 0x96, 0x5, 0x0, 0xA6, 0x5, 0x0, 0x6, 0xB0, 0x5, 0xC6, 0x5, 0x0, 0xD6, 0x5, 0x0, 0xE6, 0x5, 0x0, 0xF6, 0x5, 0x0, 0x6, 0x6, 0x0, 0x6, 0x10, 0x6, 0x7, 0x20, 0x6, 0x37, 0x46, 0x6, 0x57, 0x6, 0x0, 0x67, 0x6, 0x0, 0x77, 0x86, 0x6, 0x97, 0xA6, 0x6, 0xB7, 0xC6, 0x6, 0xD7, 0xE6, 0x6, 0xF7, 0x6, 0x0, 0x7, 0x7, 0x0, 0x7, 0x10, 0x7, 0x7, 0x20, 0x7, 0x7, 0x30, 0x7, 0x7, 0x40, 0x7, 0x57, 0x67, 0x7, 0x77, 0x7, 0x0, 0x87, 0x7, 0x0, 0x8, 0x90, 0x7, 0x8, 0xA0, 0x7, 0xB8, 0x7, 0x0, 0x8, 0xC0, 0x7, 0xD8, 0x7, 0x0, 0x8, 0xE0, 0x7, 0xF8, 0x7, 0x8, 0x18, 0x8, 0x0, 0x28, 0x8, 0x0, 0x38, 0x8, 0x0, 0x48, 0x8, 0x0, 0x58, 0x68, 0x8, 0x78, 0x8, 0x0, 0x88, 0x8, 0x0, 0x8, 0x90, 0x8, 0x9, 0xA0, 0x8, 0xB9, 0xC8, 0x8, 0x9, 0xD0, 0x8, 0xE9, 0xF8, 0x8, 0x9, 0x0, 0x9, 0x9, 0x10, 0x9, 0x29, 0x9, 0x0, 0x39, 0x9, 0x0, 0x49, 0x59, 0x9, 0x69, 0x79, 0x9, 0x9, 0x80, 0x9, 0xA, 0x90, 0x9, 0xA, 0xA0, 0x9, 0xBA, 0x9, 0x0, 0xCA, 0xD9, 0x9, 0xA, 0xE0, 0x9, 0xFA, 0x9, 0xA, 0x1A, 0x2A, 0xA, 0xA, 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, 0x2, 0x10, 0x52, 0x0, 0x2, 0x18, 0x3, 0x1C, 0x83, 0x0, 0x93, 0x4, 0x4, 0x28, 0xB4, 0x0, 0x4, 0x2C, 0x4, 0x30, 0x5, 0x34, 0x5, 0x38, 0xF5, 0x40, 0xD5, 0x0, 0x6, 0x44, 0x26, 0x4D, 0x6, 0x50, 0x7, 0x54, 0x7, 0x58, 0x57, 0x1, 0x8, 0x60, 0x8, 0x64, 0x8, 0x68, 0x8, 0x5C, 0x9, 0x6C, 0x9, 0x70, 0xD9, 0x1, 0x9, 0x78, 0xA, 0x7C, 0xA, 0x80, 0x1A, 0x2, 0xA, 0x88, 0xB, 0x8C, 0xB, 0x90, 0xB, 0x94, 0xB, 0x98, 0x7C, 0xA2, 0x9C, 0xAA, 0xBD, 0xB2, 0xE, 0xB4, 0xF, 0xB8]; 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, 0x0, 0x63, 0x1, 0x0, 0x3, 0xB8, 0x0, 0x84, 0x1, 0x0, 0x94, 0x1, 0x0, 0x4, 0xD0, 0x0, 0x4, 0xD8, 0x0, 0x4, 0xE0, 0x0, 0x4, 0xE8, 0x0, 0x4, 0xF0, 0x0, 0xF4, 0x1, 0x0, 0x4, 0xC8, 0x0, 0x4, 0x2, 0x0, 0x14, 0x12, 0x1, 0x4, 0x0, 0x1, 0x35, 0x2, 0x0, 0x45, 0x2, 0x0, 0x55, 0x2, 0x0, 0x65, 0x3A, 0x1, 0x5, 0x40, 0x1, 0x95, 0x2, 0x0, 0x5, 0x50, 0x1, 0x5, 0x58, 0x1, 0x5, 0x60, 0x1, 0x5, 0x68, 0x1, 0xE5, 0x2, 0x0, 0xF6, 0x2, 0x0, 0x6, 0x3, 0x0, 0x16, 0x93, 0x1, 0x6, 0x98, 0x1, 0x46, 0xAB, 0x1, 0x6, 0xB0, 0x1, 0x76, 0x3, 0x0, 0x6, 0xC0, 0x1, 0x6, 0xC8, 0x1, 0xA7, 0x3, 0x0, 0xB7, 0x3, 0x0, 0x7, 0xE0, 0x1, 0x7, 0xE8, 0x1, 0xE7, 0x3, 0x0, 0x7, 0xF8, 0x1, 0x7, 0xC, 0x2, 0x27, 0x4, 0x0, 0x38, 0x24, 0x2, 0x8, 0x28, 0x2, 0x8, 0x30, 0x2, 0x8, 0x38, 0x2, 0x88, 0x4C, 0x2, 0x8, 0x50, 0x2, 0xB9, 0x4, 0x0, 0x9, 0x60, 0x2, 0x9, 0x68, 0x2, 0x9, 0x70, 0x2, 0xF9, 0x4, 0x0, 0x9, 0x80, 0x2, 0x1A, 0x5, 0x0, 0xA, 0x90, 0x2, 0xA, 0x98, 0x2, 0xA, 0xA0, 0x2, 0x5A, 0xB5, 0x2, 0x7B, 0x5, 0x0, 0xB, 0xC0, 0x2, 0x9B, 0x5, 0x0, 0xAB, 0xDD, 0x2, 0xCC, 0x5, 0x0, 0xC, 0xE8, 0x2, 0xEC, 0xFD, 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, 0x42, 0x0, 0x52, 0x0, 0x62, 0x10, 0x62, 0x0, 0x2, 0x18, 0x73, 0x0, 0x83, 0x0, 0x3, 0x24, 0x3, 0x28, 0x3, 0x2C, 0xC4, 0x0, 0x4, 0x34, 0xE4, 0x0, 0xF4, 0x40, 0x15, 0x1, 0x5, 0x48, 0x35, 0x1, 0x5, 0x50, 0x5, 0x44, 0x6, 0x54, 0x66, 0x5D, 0x86, 0x55, 0x96, 0x1, 0x7, 0x68, 0x7, 0x6C, 0x7, 0x70, 0x7, 0x74, 0xE8, 0x7D, 0x8, 0x80, 0x8, 0x84, 0x29, 0x2, 0x9, 0x8C, 0x9, 0x90, 0x5A, 0x2, 0xA, 0x98, 0xA, 0x9C, 0x8B, 0x2, 0xB, 0xA4, 0xB, 0xA8, 0xBC, 0x2, 0xC, 0xB0, 0xC, 0xB4, 0xED, 0x2, 0xFD, 0xC2, 0x1E, 0x3, 0xE, 0xC8, 0x3F, 0xD3]; 111private static ReadOnlySpan<byte> SerializedCategory19_DashPunctuation => [0x3, 0x4, 0x0, 0x0, 0x7, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0, 0x8, 0x0, 0x1, 0x10, 0x0, 0x21, 0x0, 0x0, 0x1, 0x18, 0x0, 0x31, 0x10, 0x0, 0x11, 0x0, 0x0, 0x31, 0x0, 0x0, 0x1, 0x8, 0x0, 0x42, 0x0, 0x0, 0x2, 0x28, 0x0, 0x2, 0x30, 0x0, 0x2, 0x38, 0x0, 0x62, 0x0, 0x0, 0x2, 0x40, 0x0, 0x2, 0x48, 0x0, 0x52, 0x0, 0x0, 0xA2, 0x8, 0x0, 0x92, 0x0, 0x0, 0xB3, 0x0, 0x0, 0x3, 0x60, 0x0, 0xD3, 0x0, 0x0, 0x3, 0x70, 0x0, 0x3, 0x68, 0x0, 0xF3, 0x0, 0x0, 0x3, 0x1, 0x0, 0x13, 0x91, 0x0, 0x3, 0x98, 0x0, 0x3, 0xA0, 0x0, 0x43, 0x1, 0x0, 0x13, 0x1, 0x0, 0x4, 0xA8, 0x0, 0x4, 0xB0, 0x0, 0x74, 0x1, 0x0, 0x84, 0x1, 0x0, 0x4, 0xC8, 0x0, 0x94, 0x1, 0x0, 0xA4, 0x1, 0x0, 0x54, 0xC9, 0x0, 0xB4, 0x1, 0x0, 0xC4, 0x1, 0x0, 0xD4, 0x1, 0x0, 0x4, 0xF0, 0x0, 0xF4, 0x1, 0x0, 0x4, 0x0, 0x1, 0x5, 0x8, 0x1, 0x25, 0x1A, 0x1, 0x45, 0x2, 0x0, 0x55, 0x2, 0x0, 0x65, 0x3A, 0x1, 0x5, 0x40, 0x1, 0x95, 0x52, 0x1, 0x5, 0x58, 0x1, 0x5, 0x60, 0x1, 0x5, 0x28, 0x1, 0xD5, 0x72, 0x1, 0x15, 0x2, 0x0, 0x6, 0x78, 0x1, 0x6, 0x8B, 0x1, 0x6, 0x90, 0x1, 0x6, 0x98, 0x1, 0x46, 0xAB, 0x1, 0x6, 0xB0, 0x1, 0x6, 0xB8, 0x1, 0x6, 0xC0, 0x1, 0x6, 0xC8, 0x1, 0x6, 0xD0, 0x1, 0x7, 0xD8, 0x1, 0x7, 0xE0, 0x1, 0xD7, 0xF3, 0x1, 0x7, 0xF8, 0x1, 0x7, 0x0, 0x2, 0x7, 0x8, 0x2, 0x7, 0x10, 0x2, 0x37, 0x4, 0x0, 0x7, 0x20, 0x2, 0x58, 0x34, 0x2, 0x8, 0x38, 0x2, 0x8, 0x40, 0x2, 0x8, 0x48, 0x2, 0x8, 0x50, 0x2, 0x8, 0x58, 0x2, 0xC8, 0x4, 0x0, 0x8, 0x68, 0x2, 0xE9, 0x4, 0x0, 0x9, 0x78, 0x2, 0x9, 0x5, 0x0, 0x9, 0x88, 0x2, 0x9, 0x90, 0x2, 0x9, 0x98, 0x2, 0x9, 0xA0, 0x2, 0x9, 0xA8, 0x2, 0x6A, 0x5, 0x0, 0xA, 0xB8, 0x2, 0x8A, 0x5, 0x0, 0xA, 0xC8, 0x2, 0xA, 0xD0, 0x2, 0xBA, 0x5, 0x0, 0xCA, 0xED, 0x2, 0xEB, 0x5, 0x0, 0xB, 0xF8, 0x2, 0xB, 0xE, 0x3, 0x2B, 0x1E, 0x3, 0xB, 0x20, 0x3, 0x5C, 0x6, 0x0, 0x6C, 0x3E, 0x3, 0x8C, 0x4E, 0x3, 0xAD, 0x6, 0x0, 0xBD, 0x66, 0x3, 0xDE, 0x6, 0x0, 0xE, 0x70, 0x3, 0xFF, 0x86, 0x3]; 114private static ReadOnlySpan<byte> SerializedCategory20_OpenPunctuation => [0x3, 0x4, 0x0, 0x0, 0x8, 0x0, 0x0, 0x0, 0x10, 0x0, 0x10, 0x0, 0x0, 0x21, 0x0, 0x0, 0x31, 0x0, 0x0, 0x1, 0x20, 0x0, 0x1, 0x30, 0x0, 0x2, 0x40, 0x0, 0x2, 0x50, 0x0, 0x2, 0x60, 0x0, 0x72, 0x30, 0x0, 0x52, 0x30, 0x0, 0x32, 0x0, 0x0, 0x52, 0x0, 0x0, 0x72, 0x20, 0x0, 0x22, 0x60, 0x0, 0x2, 0x30, 0x0, 0x22, 0x40, 0x0, 0x62, 0x0, 0x0, 0x2, 0x20, 0x0, 0x32, 0x50, 0x0, 0x42, 0x0, 0x0, 0x72, 0x0, 0x0, 0x62, 0x20, 0x0, 0x2, 0x70, 0x0, 0x62, 0x40, 0x0, 0x3, 0x80, 0x0, 0x53, 0x0, 0x0, 0x93, 0x0, 0x0, 0xA3, 0x0, 0x0, 0xB3, 0x0, 0x0, 0x3, 0xC0, 0x0, 0x33, 0xD0, 0x0, 0x3, 0xE0, 0x0, 0xE3, 0x0, 0x0, 0xF3, 0x0, 0x1, 0x23, 0x0, 0x0, 0x13, 0xD1, 0x0, 0xA3, 0x20, 0x1, 0x33, 0x1, 0x0, 0x43, 0x1, 0x0, 0x3, 0x30, 0x0, 0x33, 0x50, 0x1, 0x23, 0x60, 0x1, 0x3, 0x70, 0x1, 0x3, 0x80, 0x1, 0x93, 0x1, 0x0, 0x73, 0x1, 0x0, 0x43, 0x0, 0x0, 0xA3, 0x1, 0x0, 0x4, 0xB0, 0x1, 0xC4, 0x1, 0x0, 0xD4, 0x1, 0x0, 0x4, 0xE0, 0x1, 0xF4, 0x1, 0x2, 0x14, 0x2, 0x0, 0x24, 0x2, 0x0, 0x34, 0x2, 0x0, 0x44, 0x52, 0x2, 0x64, 0xB2, 0x1, 0x4, 0x70, 0x2, 0x84, 0x2, 0x0, 0x94, 0x2, 0x0, 0xA4, 0xB2, 0x2, 0x4, 0xC0, 0x2, 0x4, 0xD0, 0x2, 0xE4, 0x52, 0x2, 0x4, 0xF0, 0x2, 0x4, 0x90, 0x2, 0x4, 0x0, 0x3, 0x4, 0x3, 0x0, 0x14, 0x3, 0x0, 0x24, 0x3, 0x0, 0x35, 0x43, 0x3, 0x55, 0x63, 0x3, 0x5, 0x70, 0x3, 0x85, 0x93, 0x3, 0xA5, 0x3, 0x0, 0x5, 0xB0, 0x3, 0x35, 0xC3, 0x3, 0xD5, 0x3, 0x0, 0xE5, 0xF3, 0x3, 0x5, 0x0, 0x4, 0x15, 0x24, 0x4, 0x35, 0x4, 0x0, 0x45, 0x54, 0x4, 0x5, 0x60, 0x4, 0x75, 0x24, 0x4, 0x5, 0x80, 0x4, 0x5, 0x50, 0x3, 0x95, 0x4, 0x0, 0x65, 0x3, 0x0, 0xA6, 0xB4, 0x4, 0xC6, 0xD4, 0x4, 0x6, 0xE0, 0x4, 0x6, 0xF0, 0x4, 0x6, 0x15, 0x5, 0x26, 0x35, 0x5, 0x46, 0x5, 0x0, 0x56, 0x5, 0x0, 0x6, 0x60, 0x5, 0x6, 0x70, 0x5, 0x86, 0x95, 0x5, 0x6, 0xA0, 0x5, 0x6, 0xB0, 0x5, 0x56, 0xC3, 0x5, 0x7, 0xD0, 0x5, 0x7, 0xE0, 0x5, 0x7, 0xF0, 0x5, 0x7, 0x0, 0x6, 0x7, 0x10, 0x6, 0x27, 0x6, 0x0, 0x37, 0x46, 0x6, 0x7, 0x50, 0x6, 0x67, 0x76, 0x6, 0x87, 0x6, 0x0, 0x7, 0x90, 0x6, 0x7, 0xA0, 0x6, 0xB8, 0xC6, 0x6, 0xD8, 0x6, 0x0, 0x8, 0xE0, 0x6, 0x8, 0xF0, 0x6, 0x8, 0x7, 0x0, 0x18, 0x7, 0x0, 0x28, 0x7, 0x0, 0x8, 0x30, 0x7, 0x8, 0x40, 0x7, 0x58, 0x7, 0x0, 0x8, 0x60, 0x7, 0x79, 0x87, 0x7, 0x9, 0x90, 0x7, 0xA9, 0x7, 0x0, 0x9, 0xB0, 0x7, 0xC9, 0x7, 0x0, 0xD9, 0xE7, 0x7, 0xF9, 0x7, 0x0, 0x9, 0x8, 0x0, 0x9, 0x10, 0x8, 0x2A, 0x8, 0x0, 0xA, 0x30, 0x8, 0x4A, 0x58, 0x8, 0x6A, 0x78, 0x8, 0x8A, 0x8, 0x0, 0x9A, 0x8, 0x0, 0xA, 0xA0, 0x8, 0xBB, 0x8, 0x0, 0xB, 0xC0, 0x8, 0xDB, 0xE8, 0x8, 0xB, 0xF0, 0x8, 0xB, 0x19, 0x9, 0x2C, 0x9, 0x0, 0x3C, 0x49, 0x9, 0x5C, 0x69, 0x9, 0x7D, 0x9, 0x0, 0x8D, 0x99, 0x9, 0xAE, 0x9, 0x0, 0xE, 0xB0, 0x9, 0xCF, 0xD9, 0x9]; 117private static ReadOnlySpan<byte> SerializedCategory21_ClosePunctuation => [0x3, 0x4, 0x0, 0x0, 0x8, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0, 0x10, 0x0, 0x21, 0x30, 0x0, 0x1, 0x20, 0x0, 0x31, 0x0, 0x0, 0x1, 0x30, 0x0, 0x11, 0x0, 0x0, 0x21, 0x0, 0x0, 0x2, 0x40, 0x0, 0x52, 0x0, 0x0, 0x2, 0x50, 0x0, 0x32, 0x60, 0x0, 0x2, 0x70, 0x0, 0x72, 0x30, 0x0, 0x62, 0x0, 0x0, 0x82, 0x20, 0x0, 0x22, 0x50, 0x0, 0x2, 0x90, 0x0, 0x22, 0x90, 0x0, 0x2, 0x20, 0x0, 0x32, 0x0, 0x0, 0x92, 0x0, 0x0, 0x52, 0x20, 0x0, 0x2, 0x60, 0x0, 0x72, 0x0, 0x0, 0x52, 0x90, 0x0, 0x3, 0xA0, 0x0, 0xB3, 0x0, 0x0, 0xC3, 0x0, 0x0, 0xD3, 0x0, 0x0, 0xE3, 0xF0, 0x0, 0x33, 0x0, 0x1, 0xE3, 0x0, 0x0, 0x3, 0x1, 0x0, 0x13, 0x21, 0x1, 0x23, 0x0, 0x0, 0x3, 0x30, 0x1, 0xF3, 0x0, 0x1, 0xC3, 0x40, 0x1, 0x53, 0x1, 0x0, 0xE3, 0x30, 0x0, 0x33, 0x60, 0x1, 0x23, 0x70, 0x1, 0x3, 0x0, 0x1, 0x3, 0x80, 0x1, 0x93, 0x1, 0x0, 0xA3, 0x1, 0x0, 0xB3, 0x1, 0x0, 0x4, 0xC0, 0x1, 0xD4, 0x1, 0x0, 0x4, 0xE0, 0x1, 0xF4, 0x1, 0x2, 0x14, 0x2, 0x0, 0x24, 0x2, 0x0, 0x34, 0x2, 0x0, 0x44, 0x52, 0x2, 0x4, 0x60, 0x2, 0x74, 0x2, 0x0, 0x4, 0x80, 0x2, 0x94, 0x2, 0x0, 0xA4, 0xB2, 0x2, 0x4, 0xC0, 0x2, 0x4, 0xD0, 0x2, 0xE4, 0x52, 0x2, 0x4, 0xF0, 0x2, 0x4, 0x90, 0x2, 0x4, 0x30, 0x2, 0x4, 0x3, 0x0, 0x14, 0x3, 0x0, 0x25, 0x33, 0x3, 0x35, 0x43, 0x3, 0x5, 0x50, 0x3, 0x65, 0x73, 0x3, 0x85, 0x3, 0x0, 0x5, 0x90, 0x3, 0xA5, 0xB3, 0x3, 0xC5, 0x3, 0x0, 0x35, 0xD3, 0x3, 0x5, 0xE0, 0x3, 0xF5, 0x3, 0x4, 0x15, 0x4, 0x0, 0x25, 0x34, 0x4, 0x5, 0x40, 0x4, 0x85, 0x3, 0x4, 0x5, 0x50, 0x4, 0x65, 0x4, 0x0, 0x45, 0x3, 0x0, 0x76, 0x84, 0x4, 0x96, 0xA4, 0x4, 0x6, 0xB0, 0x4, 0x6, 0xC0, 0x4, 0xD6, 0xE4, 0x4, 0xF6, 0x4, 0x5, 0x16, 0x5, 0x0, 0x26, 0x5, 0x0, 0x6, 0x30, 0x5, 0x6, 0x40, 0x5, 0x56, 0x5, 0x0, 0x6, 0x60, 0x5, 0x6, 0x70, 0x5, 0x36, 0x83, 0x5, 0x7, 0x90, 0x5, 0x7, 0xA0, 0x5, 0x7, 0xB0, 0x5, 0x7, 0xC0, 0x5, 0x7, 0xD0, 0x5, 0xE7, 0x5, 0x0, 0xF7, 0x5, 0x6, 0x7, 0x10, 0x6, 0x27, 0x36, 0x6, 0x47, 0x6, 0x0, 0x7, 0x50, 0x6, 0x7, 0x60, 0x6, 0x78, 0x86, 0x6, 0x98, 0x6, 0x0, 0x8, 0xA0, 0x6, 0x8, 0xB0, 0x6, 0xC8, 0x6, 0x0, 0xD8, 0x6, 0x0, 0xE8, 0x6, 0x0, 0x8, 0xF0, 0x6, 0x8, 0x0, 0x7, 0x18, 0x7, 0x0, 0x8, 0x20, 0x7, 0x39, 0x47, 0x7, 0x9, 0x50, 0x7, 0x69, 0x7, 0x0, 0x9, 0x70, 0x7, 0x89, 0x7, 0x0, 0x99, 0xA7, 0x7, 0xB9, 0x7, 0x0, 0xC9, 0x7, 0x0, 0x9, 0xD0, 0x7, 0xEA, 0x7, 0x0, 0xA, 0xF0, 0x7, 0xA, 0x18, 0x8, 0x2A, 0x38, 0x8, 0x4A, 0x8, 0x0, 0x5A, 0x8, 0x0, 0xA, 0x60, 0x8, 0x7B, 0x8, 0x0, 0xB, 0x80, 0x8, 0x9B, 0xA8, 0x8, 0xB, 0xB0, 0x8, 0xCB, 0xD8, 0x8, 0xEC, 0x8, 0x0, 0xFC, 0x8, 0x9, 0x1C, 0x29, 0x9, 0x3D, 0x9, 0x0, 0x4D, 0x59, 0x9, 0x6E, 0x9, 0x0, 0xE, 0x70, 0x9, 0x8F, 0x99, 0x9]; 120private static ReadOnlySpan<byte> SerializedCategory22_InitialQuotePunctuation => [0x2, 0x4, 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, 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, 0x0, 0x2, 0x0, 0x1, 0x42, 0x0, 0x1, 0xB2, 0xE0, 0x0, 0x42, 0xA0, 0x1, 0x62, 0xE0, 0x0, 0xA2, 0xE0, 0x1, 0x72, 0xA0, 0x0, 0x3, 0x0, 0x2, 0x13, 0x1, 0x0, 0x3, 0x40, 0x2, 0x33, 0x1, 0x0, 0x43, 0x61, 0x1, 0x53, 0xC1, 0x2, 0x73, 0x1, 0x3, 0x93, 0x41, 0x3, 0xB3, 0x81, 0x3, 0xD3, 0x1, 0x0, 0x3, 0xC0, 0x2, 0xE3, 0x1, 0x0, 0xF3, 0x1, 0x0, 0x3, 0x22, 0x4, 0x73, 0x1, 0x0, 0x23, 0x2, 0x0, 0x3, 0xE0, 0x3, 0x3, 0x60, 0x4, 0x43, 0xA2, 0x3, 0x53, 0x2, 0x0, 0x63, 0x2, 0x0, 0x3, 0xE0, 0x4, 0x3, 0x0, 0x5, 0x13, 0x20, 0x5, 0xA3, 0x22, 0x0, 0xB3, 0x2, 0x0, 0xC3, 0x82, 0x3, 0xD3, 0xC2, 0x5, 0xF3, 0x2, 0x0, 0xC3, 0x1, 0x6, 0x13, 0x20, 0x6, 0x23, 0x23, 0x0, 0x3, 0x20, 0x0, 0x3, 0xC0, 0x3, 0x3, 0xA0, 0x3, 0x33, 0x3, 0x0, 0x33, 0x2, 0x0, 0x3, 0x82, 0x3, 0x3, 0x80, 0x6, 0x53, 0xC3, 0x6, 0x53, 0xE3, 0x6, 0x3, 0x40, 0x3, 0x83, 0x3, 0x0, 0x43, 0x2, 0x0, 0x23, 0x21, 0x0, 0x93, 0x43, 0x7, 0x3, 0xC0, 0x4, 0x3, 0x40, 0x4, 0x13, 0xE0, 0x3, 0xB3, 0x3, 0x0, 0x3, 0x20, 0x2, 0x3, 0xE0, 0x2, 0x3, 0x80, 0x4, 0xC3, 0x21, 0x0, 0x63, 0xE1, 0x2, 0x3, 0x22, 0x0, 0xC3, 0x3, 0x0, 0xD3, 0x3, 0x0, 0xE3, 0x3, 0x0, 0x3, 0xE0, 0x7, 0x3, 0x0, 0x8, 0xB3, 0x1, 0x0, 0x73, 0xC1, 0x3, 0x3, 0x20, 0x8, 0x4, 0x40, 0x8, 0x34, 0x84, 0x8, 0x54, 0xC4, 0x8, 0x4, 0xE0, 0x8, 0x84, 0x24, 0x9, 0x44, 0x4, 0x0, 0xA4, 0x4, 0x0, 0x4, 0x60, 0x9, 0xC4, 0x4, 0x0, 0xD4, 0x4, 0x0, 0xE4, 0x4, 0x0, 0xD4, 0xE4, 0x9, 0x4, 0x5, 0x0, 0x4, 0xA0, 0x9, 0x14, 0x5, 0x0, 0x24, 0x5, 0x0, 0x34, 0x5, 0x0, 0x44, 0x5, 0x0, 0x4, 0xA0, 0xA, 0xB4, 0x4, 0x0, 0x64, 0x5, 0x0, 0x4, 0xE0, 0xA, 0x4, 0x80, 0x9, 0x84, 0x25, 0xB, 0xA4, 0x65, 0xB, 0xC4, 0xA5, 0xB, 0xE4, 0x5, 0x0, 0xF4, 0x5, 0xC, 0x14, 0x46, 0xC, 0x34, 0x6, 0x0, 0x44, 0x46, 0xC, 0x54, 0x6, 0x0, 0x54, 0x85, 0x8, 0x64, 0xA6, 0x9, 0x4, 0xE0, 0xC, 0x4, 0x0, 0xD, 0x4, 0x20, 0xD, 0xA4, 0x6, 0x0, 0xB4, 0x6, 0x0, 0x4, 0x80, 0xD, 0x4, 0xA0, 0xD, 0x4, 0xC0, 0xD, 0x4, 0xC0, 0xC, 0xF4, 0x6, 0x0, 0x4, 0x0, 0xE, 0x14, 0x47, 0xE, 0x34, 0x7, 0xA, 0x44, 0x7, 0x0, 0x4, 0x80, 0xE, 0x54, 0x7, 0x0, 0x64, 0x7, 0x0, 0x44, 0x4, 0xD, 0xD4, 0x6, 0x0, 0x74, 0x7, 0x0, 0x84, 0x7, 0x0, 0x4, 0x20, 0xF, 0x4, 0x40, 0xF, 0xB4, 0x87, 0xF, 0xD4, 0x7, 0x0, 0x4, 0xC0, 0xF, 0x4, 0xE0, 0xF, 0x64, 0x6, 0x0, 0x4, 0xA0, 0xE, 0x4, 0x28, 0x10, 0x25, 0x8, 0x0, 0x35, 0x88, 0x10, 0x55, 0xC8, 0x10, 0x75, 0x8, 0x11, 0x95, 0x8, 0x0, 0xA5, 0x68, 0x11, 0x5, 0x80, 0x11, 0x5, 0xA0, 0x11, 0x5, 0xC0, 0x11, 0xF5, 0x8, 0x0, 0x5, 0xE9, 0x11, 0x15, 0x9, 0x0, 0x25, 0x9, 0x0, 0x35, 0x9, 0x0, 0x5, 0x80, 0x12, 0xB5, 0x8, 0x0, 0x55, 0x9, 0x0, 0x65, 0xE9, 0x12, 0x85, 0x29, 0x13, 0xA5, 0x69, 0x13, 0x75, 0x8, 0x0, 0xC5, 0x9, 0x0, 0x5, 0xA0, 0x13, 0xE5, 0xE9, 0x13, 0x5, 0x0, 0x14, 0x15, 0xA, 0x0, 0xC5, 0x8, 0x0, 0x25, 0x6A, 0x14, 0x45, 0xA, 0x0, 0x5, 0x60, 0x11, 0x5, 0xA0, 0x14, 0x5, 0xC0, 0x14, 0x5, 0xE0, 0x14, 0x85, 0xA, 0x0, 0x95, 0xA, 0x0, 0xA5, 0xA, 0x0, 0xB5, 0xA, 0x0, 0x5, 0x80, 0x15, 0x5, 0xA0, 0x15, 0x5, 0xC0, 0x15, 0x5, 0xE0, 0x15, 0x5, 0x0, 0x16, 0x15, 0xB, 0x0, 0x5, 0x40, 0x16, 0x35, 0xB, 0x0, 0x45, 0xB, 0x0, 0x65, 0x9, 0x0, 0x55, 0xB, 0x0, 0x5, 0xC0, 0x16, 0x75, 0xB, 0x0, 0x85, 0xB, 0x0, 0x5, 0x20, 0x17, 0x5, 0x20, 0x16, 0xA5, 0xB, 0x0, 0x5, 0x60, 0x17, 0xC5, 0xAB, 0x17, 0x5, 0xC0, 0x17, 0x5, 0xE0, 0x17, 0x5, 0x0, 0x18, 0x65, 0xB, 0x0, 0x15, 0xC, 0x0, 0x5, 0x60, 0x10, 0x45, 0x8, 0x0, 0x26, 0x6C, 0x18, 0x46, 0xAC, 0x18, 0x66, 0xC, 0x0, 0x76, 0xC, 0x0, 0x86, 0xC, 0x0, 0x96, 0xC, 0x0, 0xA6, 0x6C, 0x19, 0xC6, 0xC, 0x0, 0xD6, 0xC, 0x0, 0xE6, 0xC, 0x0, 0xF6, 0xC, 0x1A, 0x16, 0xD, 0x0, 0x26, 0xD, 0x0, 0x6, 0x60, 0x1A, 0x46, 0xAD, 0x1A, 0x66, 0xD, 0x0, 0x76, 0xD, 0x0, 0x86, 0x2D, 0x1B, 0xA6, 0xD, 0x0, 0x16, 0x6D, 0x1B, 0xC6, 0xD, 0x0, 0xD6, 0xD, 0x0, 0x6, 0xC0, 0x1B, 0x6, 0xE0, 0x1B, 0x6, 0xE, 0x0, 0x6, 0x20, 0x1C, 0x26, 0xE, 0x0, 0x6, 0x60, 0x1C, 0x46, 0xE, 0x0, 0x56, 0xE, 0x0, 0x66, 0xE, 0x0, 0x76, 0xE, 0x0, 0x86, 0x2E, 0x1D, 0x6, 0x40, 0x1D, 0xB6, 0xE, 0x0, 0xC6, 0xE, 0x0, 0x6, 0xA0, 0x1D, 0xE6, 0xE, 0x0, 0xF6, 0xE, 0x0, 0x6, 0xF, 0x0, 0x16, 0xF, 0x0, 0x26, 0x6F, 0x1E, 0x46, 0xF, 0x0, 0x6, 0xA0, 0x1E, 0x66, 0xF, 0x0, 0x76, 0xF, 0x1F, 0x96, 0x4F, 0x1F, 0xB6, 0xF, 0x0, 0x6, 0x80, 0x1F, 0xD6, 0xF, 0x0, 0x6, 0xC0, 0x1F, 0xF6, 0xF, 0x20, 0x7, 0x20, 0x20, 0x7, 0x40, 0x20, 0x37, 0x10, 0x0, 0x47, 0xB0, 0x20, 0x67, 0xF0, 0x20, 0x87, 0x30, 0x21, 0xA7, 0x70, 0x21, 0xC7, 0x10, 0x0, 0xD7, 0xD0, 0x21, 0x7, 0xE0, 0x21, 0x7, 0x0, 0x22, 0x17, 0x11, 0x0, 0x7, 0x40, 0x22, 0x37, 0x91, 0x22, 0x57, 0xD1, 0x22, 0x77, 0x11, 0x23, 0x7, 0x20, 0x23, 0x7, 0x40, 0x23, 0xB7, 0x91, 0x23, 0xD7, 0xD1, 0x23, 0x7, 0xE0, 0x23, 0xD7, 0x10, 0x24, 0x17, 0x52, 0x24, 0x7, 0x60, 0x24, 0x47, 0x12, 0x0, 0x57, 0xD2, 0x24, 0x7, 0xF1, 0x24, 0x87, 0x32, 0x25, 0x7, 0x40, 0x25, 0xB7, 0x92, 0x25, 0xD7, 0xD2, 0x25, 0xF7, 0x12, 0x26, 0x17, 0x53, 0x26, 0x37, 0x93, 0x26, 0x58, 0xD3, 0x26, 0x78, 0x13, 0x27, 0x98, 0x53, 0x27, 0x8, 0x60, 0x27, 0x8, 0x80, 0x27, 0x8, 0xA0, 0x27, 0x8, 0xC0, 0x27, 0xF8, 0x13, 0x28, 0x8, 0x20, 0x28, 0x8, 0x40, 0x28, 0x38, 0x94, 0x28, 0x58, 0xD4, 0x28, 0x78, 0x14, 0x29, 0x98, 0x14, 0x0, 0x8, 0x40, 0x29, 0xB8, 0x94, 0x29, 0xD8, 0xD4, 0x29, 0x8, 0xE0, 0x29, 0x8, 0x35, 0x2A, 0x28, 0x75, 0x2A, 0x48, 0x15, 0x0, 0x58, 0x15, 0x0, 0x8, 0xC0, 0x2A, 0x79, 0x15, 0x0, 0x89, 0x35, 0x2B, 0xA9, 0x75, 0x2B, 0x9, 0x80, 0x2B, 0xD9, 0xD5, 0x2B, 0x9, 0xE0, 0x2B, 0x9, 0x0, 0x2C, 0x19, 0x56, 0x2C, 0x39, 0x16, 0x0, 0x49, 0xB6, 0x2C, 0x69, 0xF6, 0x2C, 0x89, 0x36, 0x2D, 0xA9, 0x76, 0x2D, 0xC9, 0xB6, 0x2D, 0xEA, 0x16, 0x0, 0xA, 0xE0, 0x2D, 0xA, 0x17, 0x0, 0xA, 0x20, 0x2E, 0x2A, 0x17, 0x0, 0xA, 0x60, 0x2E, 0x4A, 0xB7, 0x2E, 0x6A, 0xF7, 0x2E, 0x8A, 0x37, 0x2F, 0xAA, 0x77, 0x2F, 0xCB, 0x17, 0x0, 0xDB, 0xD7, 0x2F, 0xB, 0xE0, 0x2F, 0xB, 0x38, 0x30, 0x2B, 0x78, 0x30, 0x4B, 0xB8, 0x30, 0x6C, 0x18, 0x0, 0xC, 0xE0, 0x30, 0x8C, 0x38, 0x31, 0xAC, 0x78, 0x31, 0xCD, 0x18, 0x0, 0xDD, 0x18, 0x0, 0xED, 0xF8, 0x31, 0xE, 0x39, 0x32, 0xE, 0x40, 0x32, 0x3F, 0x99, 0x32]; 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, 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, 0x2, 0x40, 0x0, 0x42, 0xB0, 0x0, 0xD3, 0xE0, 0x0, 0xF3, 0x0, 0x0, 0x3, 0x1, 0x0, 0x13, 0x1, 0x0, 0x3, 0x20, 0x1, 0x33, 0x1, 0x0, 0x43, 0x51, 0x1, 0x63, 0x11, 0x0, 0x73, 0x11, 0x0, 0x83, 0x1, 0x0, 0x3, 0x90, 0x1, 0x3, 0xA0, 0x1, 0x13, 0x50, 0x1, 0xB3, 0x1, 0x0, 0x13, 0x0, 0x0, 0x3, 0x30, 0x1, 0x3, 0xB0, 0x1, 0x3, 0xC0, 0x1, 0x73, 0x1, 0x0, 0x3, 0xD0, 0x1, 0xE3, 0x1, 0x0, 0xF3, 0x1, 0x0, 0x13, 0x70, 0x1, 0x3, 0x0, 0x2, 0x13, 0x2, 0x0, 0x23, 0x32, 0x2, 0x43, 0x42, 0x1, 0x13, 0x41, 0x1, 0x53, 0x2, 0x0, 0x63, 0x2, 0x0, 0x3, 0xE0, 0x0, 0x3, 0xF0, 0x1, 0x53, 0x12, 0x2, 0x3, 0x20, 0x2, 0x4, 0x70, 0x2, 0x84, 0x2, 0x0, 0x94, 0xA2, 0x2, 0x4, 0xB0, 0x2, 0x4, 0xC0, 0x2, 0x4, 0xD0, 0x2, 0x14, 0x0, 0x0, 0xE4, 0x12, 0x0, 0xF4, 0x12, 0x0, 0x4, 0x13, 0x3, 0x14, 0x20, 0x3, 0x14, 0x30, 0x3, 0x4, 0x40, 0x3, 0x54, 0x3, 0x0, 0x4, 0x60, 0x3, 0x74, 0x3, 0x0, 0x4, 0x80, 0x3, 0x94, 0x3, 0x0, 0xA4, 0x13, 0x0, 0xB4, 0x3, 0x0, 0xC4, 0x3, 0x0, 0xD4, 0x3, 0x0, 0xE4, 0xF3, 0x3, 0x4, 0x0, 0x4, 0x14, 0x4, 0x0, 0x4, 0x20, 0x4, 0x34, 0x4, 0x0, 0x4, 0x40, 0x4, 0x44, 0x4, 0x0, 0x54, 0x64, 0x4, 0x4, 0x70, 0x4, 0x84, 0x4, 0x0, 0x64, 0xC3, 0x3, 0x95, 0x4, 0x0, 0x5, 0xA0, 0x4, 0x5, 0xB0, 0x4, 0xC5, 0x4, 0x0, 0xD5, 0x4, 0x0, 0x5, 0xE0, 0x4, 0xF5, 0x4, 0x0, 0x5, 0x15, 0x5, 0x15, 0x20, 0x5, 0x35, 0x45, 0x5, 0x55, 0x5, 0x0, 0x65, 0x75, 0x5, 0x85, 0x5, 0x0, 0x95, 0xA5, 0x5, 0xB5, 0xC5, 0x5, 0xD5, 0x5, 0x0, 0x95, 0x5, 0x0, 0xE5, 0xF5, 0x5, 0x5, 0x16, 0x6, 0x5, 0x20, 0x6, 0x5, 0x30, 0x6, 0x5, 0x40, 0x6, 0x55, 0x66, 0x6, 0x5, 0x70, 0x6, 0x85, 0x6, 0x0, 0x95, 0x6, 0x0, 0xA5, 0x4, 0x0, 0xB5, 0x4, 0x0, 0xA6, 0x6, 0x0, 0xB6, 0xC6, 0x6, 0xD6, 0x6, 0x0, 0x6, 0xE0, 0x6, 0xF6, 0x6, 0x7, 0x16, 0x27, 0x7, 0x36, 0x7, 0x0, 0x46, 0x7, 0x0, 0x56, 0x67, 0x7, 0x76, 0x87, 0x7, 0x96, 0xA7, 0x7, 0xB6, 0xC7, 0x7, 0xD6, 0xE7, 0x7, 0x6, 0xF0, 0x7, 0x6, 0x8, 0x0, 0x6, 0x10, 0x8, 0x26, 0x8, 0x0, 0x86, 0x35, 0x8, 0x46, 0x58, 0x8, 0x67, 0x78, 0x8, 0x7, 0x80, 0x8, 0x7, 0x90, 0x8, 0x7, 0xA0, 0x8, 0xB7, 0x18, 0x0, 0xC7, 0x8, 0x0, 0x7, 0xD0, 0x8, 0xE7, 0x8, 0x0, 0xF7, 0x8, 0x9, 0x17, 0x29, 0x9, 0x37, 0x49, 0x9, 0x7, 0x50, 0x9, 0x67, 0x9, 0x0, 0x77, 0x89, 0x9, 0x98, 0xA9, 0x9, 0xB8, 0x9, 0x0, 0xC8, 0x19, 0x0, 0xD8, 0x9, 0x0, 0xE8, 0xF9, 0x9, 0x8, 0xA, 0x0, 0x18, 0x1A, 0x0, 0x28, 0x3A, 0xA, 0x8, 0x40, 0xA, 0x58, 0xA, 0x0, 0x8, 0x60, 0xA, 0x79, 0xA, 0x0, 0x89, 0xA, 0x0, 0x99, 0xAA, 0xA, 0xB9, 0xCA, 0xA, 0xD9, 0xEA, 0xA, 0xF9, 0xA, 0x0, 0x9, 0x1B, 0xB, 0x2A, 0x3B, 0xB, 0xA, 0x40, 0xB, 0x5A, 0x6B, 0xB, 0x7A, 0x8B, 0xB, 0x9B, 0xB, 0x0, 0xAB, 0xBB, 0xB, 0xB, 0xC0, 0xB, 0xDC, 0xB, 0x0, 0xC, 0xE0, 0xB, 0xC, 0xF0, 0xB, 0xD, 0xC, 0x0, 0x1D, 0x2C, 0xC, 0x3E, 0xC, 0x0, 0xE, 0x40, 0xC, 0x5F, 0x6C, 0xC]; 132private static ReadOnlySpan<byte> SerializedCategory26_CurrencySymbol => [0x3, 0x4, 0x0, 0x0, 0x8, 0x0, 0x0, 0x0, 0x10, 0x0, 0x10, 0x0, 0x0, 0x21, 0x30, 0x0, 0x1, 0x10, 0x0, 0x1, 0x20, 0x0, 0x1, 0x30, 0x0, 0x31, 0x0, 0x0, 0x11, 0x0, 0x0, 0x42, 0x50, 0x0, 0x62, 0x0, 0x0, 0x2, 0x70, 0x0, 0x2, 0x60, 0x0, 0x62, 0x10, 0x0, 0x2, 0x80, 0x0, 0x82, 0x0, 0x0, 0x2, 0x90, 0x0, 0x92, 0x0, 0x0, 0x52, 0x90, 0x0, 0x3, 0xA0, 0x0, 0x3, 0xB0, 0x0, 0xC3, 0x0, 0x0, 0xB3, 0x0, 0x0, 0xD3, 0x0, 0x0, 0x3, 0xE0, 0x0, 0xF3, 0x0, 0x0, 0x3, 0x1, 0x0, 0x3, 0xC0, 0x0, 0xF3, 0x10, 0x1, 0x23, 0x1, 0x0, 0x3, 0x30, 0x1, 0x4, 0x40, 0x1, 0x4, 0x50, 0x1, 0x4, 0x60, 0x1, 0x74, 0x1, 0x0, 0x84, 0x1, 0x0, 0x4, 0x90, 0x1, 0xA4, 0x1, 0x0, 0xB4, 0x1, 0x0, 0x64, 0x1, 0x0, 0xC4, 0x1, 0x0, 0xD4, 0x1, 0x0, 0xE4, 0x1, 0x0, 0x4, 0xA0, 0x1, 0x4, 0xB0, 0x1, 0x4, 0xF0, 0x1, 0x5, 0x2, 0x0, 0x5, 0x10, 0x2, 0x25, 0x2, 0x0, 0x35, 0x2, 0x0, 0x45, 0x2, 0x0, 0x5, 0x50, 0x2, 0x15, 0x0, 0x0, 0x5, 0x60, 0x2, 0x75, 0x2, 0x0, 0x85, 0x2, 0x0, 0x95, 0x2, 0x0, 0xA5, 0x2, 0x0, 0xB5, 0x2, 0x0, 0x5, 0xC0, 0x2, 0x5, 0xD0, 0x2, 0xE5, 0x2, 0x0, 0x15, 0x2, 0x0, 0xF6, 0x2, 0x0, 0x6, 0x0, 0x3, 0x16, 0x3, 0x0, 0x26, 0x3, 0x0, 0x6, 0x30, 0x3, 0x46, 0x53, 0x3, 0x66, 0x3, 0x0, 0x6, 0x70, 0x3, 0x86, 0x3, 0x0, 0x96, 0x3, 0x0, 0xA6, 0x3, 0x0, 0xB6, 0x3, 0x0, 0x6, 0xC0, 0x3, 0x6, 0xD0, 0x3, 0x6, 0xE0, 0x3, 0x6, 0xF0, 0x3, 0x7, 0x14, 0x4, 0x7, 0x20, 0x4, 0x37, 0x4, 0x0, 0x7, 0x40, 0x4, 0x57, 0x4, 0x0, 0x67, 0x4, 0x0, 0x7, 0x70, 0x4, 0x87, 0x4, 0x0, 0x97, 0x4, 0x0, 0xA7, 0x4, 0x0, 0xB7, 0x4, 0x0, 0x7, 0xC0, 0x4, 0xD7, 0x4, 0x0, 0xE7, 0xF4, 0x4, 0x8, 0x15, 0x5, 0x28, 0x5, 0x0, 0x8, 0x30, 0x5, 0x8, 0x40, 0x5, 0x58, 0x5, 0x0, 0x8, 0x60, 0x5, 0x78, 0x85, 0x5, 0x98, 0x5, 0x0, 0xA8, 0xB5, 0x5, 0xC8, 0x5, 0x0, 0x8, 0xD0, 0x5, 0xE9, 0xF5, 0x5, 0x9, 0x0, 0x6, 0x9, 0x10, 0x6, 0x29, 0x6, 0x0, 0x39, 0x6, 0x0, 0x49, 0x56, 0x6, 0x69, 0x76, 0x6, 0x9, 0x80, 0x6, 0x9A, 0x6, 0x0, 0xA, 0xA0, 0x6, 0xA, 0xB0, 0x6, 0xCA, 0x6, 0x0, 0xDA, 0xE6, 0x6, 0xFA, 0x6, 0x7, 0x1B, 0x7, 0x0, 0x2B, 0x7, 0x0, 0xB, 0x30, 0x7, 0xB, 0x40, 0x7, 0x5B, 0x67, 0x7, 0x7C, 0x7, 0x0, 0xC, 0x80, 0x7, 0xC, 0x90, 0x7, 0xAC, 0xB7, 0x7, 0xCD, 0x7, 0x0, 0xDD, 0x7, 0x0, 0xED, 0xF7, 0x7, 0xE, 0x18, 0x8, 0xE, 0x20, 0x8, 0x3F, 0x48, 0x8]; 135private static ReadOnlySpan<byte> SerializedCategory27_ModifierSymbol => [0x3, 0x4, 0x0, 0x0, 0x8, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0, 0x10, 0x0, 0x21, 0x0, 0x0, 0x1, 0x30, 0x0, 0x31, 0x0, 0x0, 0x31, 0x10, 0x0, 0x11, 0x0, 0x0, 0x31, 0x20, 0x0, 0x1, 0x10, 0x0, 0x11, 0x20, 0x0, 0x1, 0x20, 0x0, 0x2, 0x40, 0x0, 0x2, 0x50, 0x0, 0x62, 0x0, 0x0, 0x2, 0x70, 0x0, 0x12, 0x80, 0x0, 0x2, 0x80, 0x0, 0x2, 0x90, 0x0, 0x2, 0xA0, 0x0, 0x72, 0x10, 0x0, 0x52, 0x40, 0x0, 0x92, 0x0, 0x0, 0xB2, 0x0, 0x0, 0x22, 0x0, 0x0, 0xA2, 0x0, 0x0, 0xC2, 0x0, 0x0, 0x22, 0x10, 0x0, 0xA2, 0x80, 0x0, 0x52, 0x0, 0x0, 0x42, 0x50, 0x0, 0x3, 0xD0, 0x0, 0x3, 0xE0, 0x0, 0xF3, 0x0, 0x0, 0x3, 0x0, 0x1, 0x13, 0x10, 0x1, 0x23, 0x1, 0x0, 0xD3, 0x0, 0x0, 0x33, 0x1, 0x0, 0x3, 0x40, 0x1, 0x3, 0x50, 0x1, 0x63, 0x1, 0x0, 0x73, 0x1, 0x0, 0x83, 0x1, 0x0, 0x83, 0x41, 0x1, 0x93, 0x1, 0x0, 0xE3, 0x0, 0x0, 0x3, 0xA0, 0x1, 0x3, 0xB0, 0x1, 0xC3, 0x81, 0x1, 0x3, 0xD0, 0x1, 0xE3, 0xE0, 0x1, 0xF3, 0x1, 0x0, 0x4, 0x0, 0x2, 0x4, 0x10, 0x2, 0x24, 0x2, 0x0, 0x4, 0x30, 0x2, 0x44, 0x2, 0x0, 0x4, 0x50, 0x2, 0x64, 0x2, 0x0, 0x4, 0x70, 0x2, 0x4, 0x80, 0x2, 0x94, 0x12, 0x0, 0xA4, 0x2, 0x0, 0xB4, 0xC2, 0x2, 0xC4, 0xD2, 0x2, 0xE4, 0x2, 0x0, 0x4, 0xF0, 0x2, 0x4, 0x0, 0x3, 0x14, 0x3, 0x0, 0x14, 0x20, 0x3, 0x44, 0x32, 0x3, 0x44, 0x53, 0x3, 0x65, 0x3, 0x0, 0x5, 0x70, 0x3, 0x85, 0x3, 0x0, 0x5, 0x90, 0x3, 0xA5, 0x3, 0x0, 0xB5, 0xC3, 0x3, 0x5, 0xD0, 0x3, 0xE5, 0xF3, 0x3, 0x5, 0x0, 0x4, 0x15, 0x24, 0x4, 0x35, 0x4, 0x0, 0x5, 0x40, 0x4, 0x5, 0x50, 0x4, 0x65, 0x4, 0x0, 0x75, 0x84, 0x4, 0x95, 0x4, 0x0, 0x75, 0x83, 0x3, 0xA6, 0x4, 0x0, 0xB6, 0xC4, 0x4, 0xD6, 0xE4, 0x4, 0xF6, 0x4, 0x0, 0x6, 0x0, 0x5, 0x6, 0x10, 0x5, 0x6, 0x20, 0x5, 0x36, 0x45, 0x5, 0x6, 0x50, 0x5, 0x6, 0x60, 0x5, 0x76, 0x5, 0x0, 0x86, 0x5, 0x0, 0x6, 0x90, 0x5, 0xA6, 0x5, 0x0, 0xB7, 0xC5, 0x5, 0xD7, 0x5, 0x0, 0x7, 0xE0, 0x5, 0xF7, 0x5, 0x6, 0x17, 0x6, 0x0, 0x27, 0x6, 0x0, 0x37, 0x6, 0x0, 0x47, 0x56, 0x6, 0x67, 0x6, 0x0, 0x77, 0x86, 0x6, 0x98, 0x6, 0x0, 0xA8, 0x6, 0x0, 0xB8, 0x6, 0x0, 0xC8, 0x6, 0x0, 0x8, 0xD0, 0x6, 0xE8, 0x6, 0x0, 0x8, 0xF0, 0x6, 0x8, 0x17, 0x7, 0x8, 0x20, 0x7, 0x39, 0x7, 0x0, 0x49, 0x7, 0x0, 0x59, 0x7, 0x0, 0x69, 0x7, 0x0, 0x9, 0x70, 0x7, 0x89, 0x7, 0x0, 0x9, 0x90, 0x7, 0xA9, 0xB7, 0x7, 0xCA, 0xD7, 0x7, 0xA, 0xE0, 0x7, 0xFA, 0x7, 0x0, 0xA, 0x0, 0x8, 0x1A, 0x8, 0x0, 0xA, 0x20, 0x8, 0xA, 0x30, 0x8, 0x4B, 0x8, 0x0, 0x5B, 0x68, 0x8, 0xB, 0x70, 0x8, 0x8B, 0x8, 0x0, 0x9B, 0xA8, 0x8, 0xBC, 0x8, 0x0, 0xC, 0xC0, 0x8, 0xDC, 0x8, 0x0, 0xEC, 0xF8, 0x8, 0xD, 0x9, 0x0, 0x1D, 0x9, 0x0, 0x2D, 0x39, 0x9, 0x4E, 0x59, 0x9, 0xE, 0x60, 0x9, 0x7F, 0x89, 0x9]; 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, 0x21, 0x20, 0x0, 0x31, 0x0, 0x0, 0x1, 0x60, 0x0, 0x11, 0x0, 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, 0x2, 0x80, 0x0, 0x2, 0x0, 0x1, 0x12, 0x20, 0x1, 0x92, 0x0, 0x0, 0x2, 0x40, 0x1, 0xB2, 0x0, 0x0, 0x2, 0x20, 0x0, 0x82, 0x20, 0x0, 0x2, 0xC0, 0x0, 0x12, 0x60, 0x1, 0x42, 0x20, 0x0, 0xB2, 0x80, 0x0, 0x2, 0x60, 0x1, 0x12, 0x80, 0x1, 0xB2, 0x20, 0x0, 0x52, 0x0, 0x0, 0x12, 0x0, 0x0, 0x12, 0xA0, 0x1, 0x72, 0x20, 0x0, 0x12, 0xC0, 0x1, 0x72, 0x80, 0x1, 0xC2, 0x20, 0x0, 0xC2, 0xA0, 0x0, 0x12, 0x80, 0x0, 0xC2, 0xE0, 0x1, 0xF2, 0x40, 0x1, 0x32, 0x20, 0x0, 0xD2, 0x0, 0x0, 0x82, 0x80, 0x1, 0x62, 0x20, 0x0, 0x12, 0xE0, 0x0, 0xA2, 0x0, 0x0, 0xD2, 0x20, 0x0, 0x22, 0x0, 0x0, 0x72, 0x20, 0x1, 0x2, 0xE0, 0x0, 0x2, 0x40, 0x0, 0x2, 0xE0, 0x1, 0xF2, 0x0, 0x0, 0x3, 0x1, 0x0, 0x13, 0x41, 0x2, 0x33, 0x1, 0x0, 0x13, 0x0, 0x0, 0x3, 0x80, 0x2, 0x3, 0xA0, 0x2, 0x13, 0xC0, 0x2, 0x43, 0xE1, 0x2, 0x83, 0x21, 0x3, 0xA3, 0x1, 0x0, 0x3, 0x60, 0x3, 0x3, 0x80, 0x3, 0xD3, 0x1, 0x0, 0x3, 0x20, 0x0, 0xB3, 0x21, 0x0, 0x73, 0xC1, 0x3, 0x13, 0xE0, 0x3, 0x3, 0x0, 0x4, 0x3, 0x40, 0x2, 0x3, 0xC0, 0x3, 0x3, 0x40, 0x3, 0x13, 0x22, 0x0, 0x53, 0x61, 0x2, 0x13, 0x40, 0x4, 0x33, 0x61, 0x4, 0x13, 0x80, 0x4, 0x13, 0xA0, 0x4, 0x13, 0x60, 0x3, 0x43, 0x21, 0x0, 0x43, 0x2, 0x0, 0x53, 0x21, 0x0, 0x13, 0xA0, 0x3, 0xA3, 0x21, 0x0, 0x63, 0x22, 0x0, 0x73, 0xA2, 0x3, 0x43, 0x22, 0x0, 0x13, 0x0, 0x5, 0xE3, 0x21, 0x0, 0x93, 0x42, 0x5, 0xB3, 0x62, 0x2, 0x3, 0x2, 0x0, 0xC3, 0x2, 0x0, 0xD3, 0xC2, 0x5, 0x93, 0xE1, 0x5, 0x43, 0x1, 0x6, 0x13, 0x83, 0x4, 0x53, 0x41, 0x6, 0x93, 0x1, 0x0, 0x33, 0x3, 0x0, 0xC3, 0x61, 0x2, 0x43, 0x23, 0x5, 0xC3, 0xA1, 0x6, 0xD3, 0xC1, 0x6, 0x3, 0xE0, 0x6, 0x83, 0x1, 0x0, 0x73, 0x1, 0x0, 0x83, 0xC3, 0x2, 0x93, 0x3, 0x0, 0x3, 0x40, 0x7, 0x33, 0x2, 0x0, 0xA3, 0x3, 0x0, 0x3, 0x20, 0x7, 0xD3, 0x42, 0x7, 0xB4, 0x83, 0x7, 0xD4, 0x3, 0x0, 0x4, 0xC0, 0x7, 0xF4, 0x3, 0x0, 0x4, 0x20, 0x0, 0x4, 0x24, 0x8, 0x24, 0x4, 0x0, 0x34, 0x84, 0x8, 0x4, 0xA0, 0x8, 0x14, 0x0, 0x0, 0x64, 0x24, 0x0, 0x14, 0xE0, 0x8, 0x64, 0x4, 0x9, 0x94, 0x24, 0x0, 0x4, 0x40, 0x9, 0xB4, 0x4, 0x0, 0x94, 0xC1, 0x8, 0xC4, 0xA4, 0x9, 0xE4, 0x24, 0x0, 0xF4, 0x24, 0x0, 0x4, 0x25, 0x0, 0x4, 0x20, 0xA, 0x24, 0x25, 0x0, 0x14, 0x60, 0xA, 0x44, 0x5, 0x0, 0x4, 0x0, 0x9, 0x14, 0x20, 0x9, 0x84, 0x24, 0x0, 0x14, 0xA0, 0xA, 0x64, 0x25, 0x0, 0x4, 0xE0, 0xA, 0x84, 0x5, 0x0, 0x4, 0x20, 0xB, 0x14, 0x40, 0xB, 0xB4, 0x25, 0x0, 0x94, 0x25, 0x0, 0xC4, 0x25, 0x0, 0x14, 0xA0, 0xB, 0x14, 0xC0, 0xB, 0xF4, 0x5, 0xC, 0x14, 0x20, 0xC, 0x24, 0x66, 0xC, 0x4, 0x80, 0xC, 0x34, 0xA6, 0xC, 0x64, 0xE6, 0xC, 0x84, 0x26, 0xD, 0xA4, 0x6, 0x0, 0x4, 0xC0, 0x8, 0x4, 0x60, 0xD, 0x74, 0x5, 0x0, 0xC4, 0xA6, 0xD, 0xE4, 0x6, 0x0, 0xF4, 0x6, 0xE, 0x14, 0x7, 0x0, 0x4, 0x40, 0xE, 0x24, 0x7, 0x0, 0x34, 0x7, 0x0, 0x64, 0x4, 0x0, 0x44, 0x7, 0x0, 0x54, 0x7, 0x0, 0x64, 0x27, 0xE, 0x74, 0x7, 0x0, 0x4, 0x40, 0xD, 0x4, 0xC0, 0xE, 0x4, 0x0, 0xF, 0x64, 0x24, 0xF, 0xA5, 0x7, 0x0, 0xB5, 0x87, 0xF, 0x5, 0xA0, 0xF, 0x5, 0xC0, 0xF, 0x5, 0xE0, 0xF, 0x5, 0x8, 0x0, 0x15, 0x8, 0x0, 0x5, 0x40, 0x10, 0x15, 0x60, 0x10, 0x45, 0xA8, 0x10, 0x15, 0xC0, 0x10, 0x55, 0xE8, 0x10, 0x85, 0x28, 0x0, 0x5, 0x20, 0x11, 0xA5, 0x68, 0x11, 0x35, 0x88, 0x11, 0xD5, 0x28, 0x0, 0x15, 0xC0, 0x11, 0xF5, 0x8, 0x0, 0x5, 0x29, 0x12, 0xE5, 0x27, 0x0, 0x15, 0x40, 0x12, 0x35, 0x29, 0x0, 0x45, 0x29, 0x0, 0x55, 0xC9, 0x12, 0x75, 0x29, 0x0, 0x85, 0x29, 0x0, 0x15, 0x20, 0x13, 0x5, 0x40, 0x13, 0xB5, 0x89, 0x13, 0x25, 0xA9, 0x13, 0xE5, 0x29, 0x0, 0xF5, 0x9, 0x14, 0xD5, 0x28, 0x14, 0x25, 0x6A, 0x14, 0x5, 0x80, 0x14, 0x55, 0xCA, 0x14, 0x75, 0xA, 0x0, 0x15, 0x0, 0x15, 0x5, 0x20, 0x15, 0xA5, 0xA, 0x0, 0x5, 0x60, 0x15, 0x5, 0x0, 0x15, 0x5, 0x80, 0x15, 0x85, 0xA, 0x0, 0xD5, 0xCA, 0x15, 0xF5, 0xA, 0x16, 0x15, 0xB, 0x0, 0x25, 0xB, 0x0, 0x35, 0xB, 0x0, 0x45, 0xB, 0x0, 0x55, 0xB, 0x0, 0x65, 0xEB, 0x16, 0x5, 0x0, 0x17, 0x5, 0x20, 0x17, 0x5, 0x40, 0x17, 0xB5, 0xB, 0x0, 0xC6, 0xB, 0x0, 0xD6, 0xCB, 0x17, 0xF6, 0xB, 0x0, 0x6, 0xC, 0x0, 0x16, 0xC, 0x0, 0x6, 0x40, 0x18, 0x36, 0x8C, 0x18, 0x16, 0x0, 0x0, 0x16, 0xA0, 0x18, 0x66, 0xEC, 0x18, 0x86, 0x2C, 0x19, 0x6, 0x40, 0x19, 0xB6, 0x2C, 0x0, 0xC6, 0xAC, 0x19, 0xE6, 0xB, 0x0, 0xE6, 0xC, 0x0, 0xF6, 0xC, 0x1A, 0x6, 0x20, 0x1A, 0x26, 0x2D, 0x0, 0x36, 0x2D, 0x0, 0x46, 0xAD, 0x1A, 0x66, 0xED, 0x1A, 0x86, 0xCD, 0x1A, 0x96, 0x4D, 0x1B, 0xB6, 0x8D, 0x1B, 0xD6, 0xCD, 0x1B, 0xF6, 0xD, 0x1C, 0x16, 0xE, 0x0, 0x26, 0xE, 0x0, 0x36, 0xE, 0x0, 0x46, 0xE, 0x0, 0x6, 0xA0, 0x1C, 0x6, 0xC0, 0x1C, 0x76, 0xE, 0x1D, 0x6, 0x20, 0x1D, 0xA6, 0xE, 0x0, 0xB6, 0xE, 0x0, 0xC6, 0xE, 0x0, 0xD6, 0xE, 0x0, 0xE6, 0xE, 0x0, 0xF6, 0xE, 0x0, 0x6, 0xF, 0x0, 0x6, 0x20, 0x1E, 0x6, 0x40, 0x1E, 0x6, 0x60, 0x1E, 0x6, 0x80, 0x1E, 0x57, 0xF, 0x0, 0x67, 0xEF, 0x1E, 0x87, 0xF, 0x0, 0x7, 0x20, 0x1F, 0x7, 0x40, 0x1F, 0xB7, 0xF, 0x0, 0xC7, 0xF, 0x0, 0xD7, 0xCF, 0x1F, 0xF7, 0xF, 0x0, 0x7, 0x0, 0x20, 0x17, 0x30, 0x0, 0x27, 0x70, 0x20, 0x47, 0x10, 0x0, 0x17, 0xA0, 0x20, 0x67, 0xF0, 0x20, 0x17, 0x0, 0x21, 0x97, 0x30, 0x0, 0xA7, 0x70, 0x21, 0xC7, 0xB0, 0x21, 0xE7, 0xF0, 0x21, 0x7, 0x0, 0x22, 0x17, 0x51, 0x22, 0x7, 0x60, 0x22, 0x47, 0x11, 0x0, 0x57, 0x11, 0x0, 0x67, 0xF1, 0x22, 0x7, 0x0, 0x23, 0x7, 0x20, 0x23, 0xA7, 0x71, 0x23, 0xC7, 0x11, 0x0, 0xD7, 0x11, 0x0, 0xE7, 0xF1, 0x23, 0x7, 0x12, 0x0, 0x17, 0x12, 0x0, 0x27, 0x12, 0x0, 0x38, 0x12, 0x0, 0x48, 0x12, 0x0, 0x58, 0x12, 0x0, 0x8, 0xC0, 0x24, 0x8, 0xE0, 0x24, 0x8, 0x0, 0x25, 0x98, 0x12, 0x0, 0x18, 0x40, 0x25, 0xB8, 0x92, 0x25, 0xD8, 0xD2, 0x25, 0x8, 0xE0, 0x25, 0x8, 0x13, 0x0, 0x8, 0x20, 0x0, 0x18, 0x53, 0x26, 0x38, 0x93, 0x26, 0x58, 0x13, 0x0, 0x68, 0x13, 0x0, 0x78, 0x13, 0x0, 0x88, 0x13, 0x0, 0x8, 0x20, 0x27, 0xA8, 0x13, 0x0, 0x8, 0x60, 0x27, 0xC8, 0x13, 0x0, 0xD8, 0xD3, 0x27, 0xF8, 0x13, 0x0, 0x8, 0x14, 0x0, 0x18, 0x54, 0x28, 0x38, 0x94, 0x28, 0x8, 0xA0, 0x28, 0x69, 0xF4, 0x28, 0x89, 0x14, 0x0, 0x99, 0x54, 0x29, 0x9, 0x60, 0x29, 0x9, 0x80, 0x29, 0xD9, 0xD4, 0x29, 0xF9, 0x14, 0x2A, 0x19, 0x55, 0x2A, 0x39, 0x95, 0x2A, 0x59, 0xD5, 0x2A, 0x79, 0x15, 0x2B, 0x99, 0x15, 0x0, 0xA9, 0x75, 0x2B, 0xC9, 0xB5, 0x2B, 0xE9, 0xF5, 0x2B, 0x9, 0x36, 0x2C, 0x9, 0x40, 0x2C, 0x3A, 0x96, 0x2C, 0xA, 0xA0, 0x2C, 0x6A, 0x16, 0x0, 0x7A, 0x16, 0x0, 0xA, 0x0, 0x2D, 0x9A, 0x56, 0x2D, 0xBA, 0x96, 0x2D, 0xA, 0xA0, 0x2D, 0xEA, 0xF6, 0x2D, 0xA, 0x37, 0x2E, 0x2A, 0x77, 0x2E, 0x4B, 0x17, 0x0, 0x5B, 0xD7, 0x2E, 0x7B, 0x17, 0x0, 0xB, 0x0, 0x2F, 0x9B, 0x57, 0x2F, 0xBB, 0x97, 0x2F, 0xDB, 0xD7, 0x2F, 0xFC, 0x17, 0x0, 0xC, 0x0, 0x30, 0xC, 0x20, 0x30, 0x2C, 0x78, 0x30, 0x4C, 0xB8, 0x30, 0x6D, 0x18, 0x0, 0x7D, 0x18, 0x0, 0xD, 0x0, 0x31, 0x9D, 0x58, 0x31, 0xBE, 0x98, 0x31, 0xDE, 0xD8, 0x31, 0xFF, 0x18, 0x32]; 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, 0x0, 0x0, 0x21, 0x40, 0x0, 0x31, 0x40, 0x0, 0x11, 0x80, 0x0, 0x31, 0x80, 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, 0xA2, 0xC0, 0x2, 0x32, 0x0, 0x0, 0x52, 0x40, 0x0, 0x2, 0x0, 0x3, 0x42, 0x0, 0x0, 0x62, 0x40, 0x1, 0x12, 0x80, 0x1, 0x2, 0x0, 0x1, 0x82, 0x0, 0x1, 0xB2, 0x0, 0x0, 0x72, 0x0, 0x0, 0xC2, 0x40, 0x0, 0x82, 0x40, 0x0, 0x12, 0x40, 0x3, 0x2, 0xC0, 0x2, 0x12, 0xC0, 0x1, 0xE2, 0x40, 0x0, 0x82, 0x0, 0x0, 0xA2, 0x0, 0x2, 0x52, 0x0, 0x0, 0x52, 0x80, 0x1, 0x52, 0x0, 0x1, 0x2, 0x40, 0x0, 0x82, 0x80, 0x1, 0x2, 0xC0, 0x1, 0x12, 0x80, 0x2, 0x42, 0x80, 0x2, 0x22, 0x0, 0x0, 0xA2, 0xC0, 0x3, 0xC2, 0x80, 0x1, 0xC2, 0x40, 0x3, 0xE2, 0x0, 0x0, 0x2, 0x80, 0x2, 0x12, 0x40, 0x1, 0x62, 0x40, 0x0, 0xF2, 0x40, 0x0, 0x42, 0x80, 0x1, 0xC2, 0xC0, 0x1, 0x72, 0x0, 0x3, 0x52, 0x0, 0x2, 0xB2, 0x40, 0x0, 0x42, 0x40, 0x2, 0x52, 0x80, 0x2, 0x2, 0x40, 0x2, 0x42, 0xC0, 0x2, 0x32, 0x40, 0x1, 0x12, 0x80, 0x3, 0xA2, 0x0, 0x1, 0xF2, 0x80, 0x2, 0x62, 0x40, 0x2, 0x82, 0xC0, 0x0, 0xC2, 0x0, 0x1, 0xD2, 0x0, 0x0, 0xA2, 0x80, 0x1, 0x3, 0x41, 0x0, 0x23, 0xC1, 0x4, 0x13, 0x1, 0x0, 0x3, 0x0, 0x5, 0x53, 0x1, 0x0, 0x3, 0x80, 0x5, 0x73, 0x41, 0x4, 0x3, 0x0, 0x6, 0x93, 0x1, 0x0, 0x3, 0x80, 0x6, 0xB3, 0x41, 0x4, 0xC3, 0x41, 0x7, 0x13, 0x40, 0x4, 0xE3, 0x1, 0x0, 0x73, 0x1, 0x0, 0xD3, 0x41, 0x4, 0x13, 0xC0, 0x5, 0x13, 0xC0, 0x7, 0xD3, 0x41, 0x0, 0x13, 0x0, 0x8, 0x13, 0x2, 0x0, 0x23, 0x2, 0x0, 0x33, 0x2, 0x0, 0x43, 0x2, 0x0, 0x53, 0xC2, 0x5, 0x63, 0x82, 0x7, 0x13, 0x0, 0x0, 0x13, 0xC0, 0x9, 0x53, 0x82, 0x7, 0x3, 0x0, 0x7, 0x43, 0x41, 0x4, 0x13, 0x80, 0x7, 0x83, 0x2, 0x0, 0x53, 0x42, 0xA, 0x53, 0x2, 0x0, 0xA3, 0xC2, 0x8, 0x43, 0xC1, 0x5, 0x3, 0xC0, 0xA, 0x3, 0x2, 0x0, 0x13, 0x40, 0xA, 0x13, 0x0, 0x9, 0x3, 0x40, 0x8, 0x13, 0x1, 0xB, 0xD3, 0xC2, 0xA, 0x23, 0x0, 0x0, 0xE3, 0x2, 0x0, 0xF3, 0x2, 0x0, 0xD3, 0x1, 0x0, 0x3, 0xC3, 0x5, 0x63, 0x1, 0x0, 0xB3, 0x2, 0x0, 0x13, 0x3, 0x0, 0x3, 0x80, 0xC, 0x93, 0x2, 0x0, 0x13, 0xC0, 0xC, 0x3, 0x0, 0xD, 0x3, 0x40, 0x4, 0x13, 0x1, 0xD, 0x43, 0x3, 0x0, 0x43, 0x43, 0x4, 0x43, 0x1, 0x0, 0x13, 0xC1, 0x6, 0x3, 0x40, 0xD, 0x83, 0x81, 0xD, 0x73, 0x3, 0x0, 0x13, 0x80, 0x4, 0x3, 0x80, 0x9, 0x3, 0xC0, 0x6, 0x83, 0x43, 0x4, 0x93, 0x3, 0xA, 0x33, 0x41, 0x4, 0x3, 0x40, 0x1, 0x3, 0x0, 0xC, 0xA3, 0x83, 0x5, 0x3, 0x80, 0xE, 0x13, 0xC0, 0xE, 0xC3, 0x43, 0xF, 0x43, 0x83, 0x5, 0x13, 0x42, 0xB, 0xA3, 0x3, 0x0, 0x3, 0x40, 0x9, 0xE3, 0x43, 0xF, 0x13, 0xC0, 0xF, 0x43, 0x43, 0xC, 0x13, 0x3, 0x10, 0x63, 0x3, 0xD, 0x13, 0x43, 0x10, 0x23, 0x44, 0x7, 0x33, 0x44, 0x5, 0x13, 0x2, 0x11, 0x3, 0x40, 0x11, 0x53, 0x41, 0x1, 0x43, 0x41, 0x6, 0x63, 0xC4, 0x8, 0x3, 0x0, 0xA, 0x33, 0x42, 0x1, 0x73, 0x4, 0x12, 0x33, 0xC4, 0xD, 0x93, 0x84, 0x12, 0x73, 0x43, 0x1, 0x23, 0x44, 0x9, 0xB3, 0x44, 0x5, 0x13, 0x2, 0x13, 0x53, 0x41, 0xB, 0x3, 0x40, 0x13, 0xE3, 0x4, 0x0, 0x13, 0x40, 0x6, 0xF3, 0x4, 0xC, 0x33, 0x1, 0x0, 0x4, 0x45, 0x4, 0x14, 0xC5, 0x4, 0x24, 0x5, 0x0, 0x4, 0xC0, 0x14, 0x44, 0x5, 0x0, 0x54, 0x85, 0x15, 0x74, 0x5, 0x0, 0x84, 0x5, 0x0, 0x4, 0x40, 0x0, 0x14, 0x0, 0x0, 0x4, 0x40, 0x16, 0xA4, 0x5, 0x0, 0xB4, 0x5, 0x17, 0x4, 0x40, 0x17, 0xE4, 0x5, 0x0, 0x4, 0xC0, 0x17, 0x4, 0x0, 0x18, 0x84, 0x45, 0x17, 0x4, 0x40, 0x4, 0x14, 0xC6, 0x7, 0xC4, 0x5, 0x0, 0x24, 0xC6, 0x18, 0x44, 0x46, 0x17, 0x54, 0x86, 0x19, 0x74, 0x6, 0x0, 0x84, 0x6, 0x0, 0x84, 0x45, 0x1A, 0xA4, 0x6, 0x0, 0x84, 0xC5, 0x19, 0x34, 0xC5, 0x1A, 0xD4, 0x5, 0x0, 0x14, 0x80, 0x17, 0x4, 0x0, 0x17, 0x4, 0xC0, 0x19, 0x4, 0x0, 0x1B, 0x4, 0x80, 0x14, 0x34, 0x5, 0x0, 0x4, 0x40, 0x1B, 0xE4, 0x6, 0x0, 0xF4, 0x6, 0x0, 0x4, 0x6, 0x0, 0x4, 0x7, 0x0, 0x14, 0x0, 0x18, 0x14, 0x87, 0x1C, 0x4, 0xC0, 0x1C, 0x44, 0x7, 0x0, 0x54, 0x7, 0x0, 0x14, 0x80, 0x1D, 0x14, 0x0, 0x16, 0x4, 0x80, 0x17, 0x74, 0x7, 0x0, 0x4, 0x0, 0x1E, 0x94, 0x47, 0x15, 0xA4, 0x7, 0x0, 0xB4, 0x47, 0x15, 0x54, 0x5, 0x0, 0xC4, 0x87, 0x7, 0xE4, 0x1, 0x0, 0x64, 0x7, 0x0, 0x4, 0x80, 0x1A, 0xD4, 0x7, 0x0, 0x4, 0x80, 0x1D, 0x4, 0x80, 0x1F, 0xF4, 0x7, 0x0, 0x4, 0x8, 0x0, 0x4, 0x40, 0x20, 0x24, 0x8, 0x0, 0x34, 0x8, 0x16, 0x84, 0x47, 0x17, 0x4, 0x0, 0x21, 0x54, 0x8, 0x0, 0x64, 0x48, 0x20, 0xC4, 0x6, 0x0, 0x74, 0x8, 0x0, 0x84, 0xC8, 0x21, 0x94, 0x8, 0x0, 0x4, 0x80, 0x22, 0xB4, 0x88, 0x22, 0x64, 0x47, 0x20, 0x14, 0x8, 0x0, 0xC4, 0x8, 0x0, 0x34, 0xC5, 0x19, 0x4, 0x0, 0x23, 0x44, 0x46, 0x23, 0xD4, 0x85, 0x23, 0x4, 0xC0, 0x23, 0x4, 0x9, 0x0, 0x14, 0x89, 0x24, 0x34, 0x9, 0x25, 0x54, 0x9, 0x0, 0x64, 0xC9, 0x25, 0x4, 0x40, 0x1D, 0x84, 0x49, 0x26, 0xA4, 0x49, 0x20, 0xB4, 0x49, 0x1D, 0xC4, 0x49, 0x27, 0xE4, 0xC9, 0x27, 0x4, 0x4A, 0x1D, 0x14, 0x4A, 0x27, 0x44, 0xC6, 0x27, 0x64, 0x87, 0x24, 0x24, 0xCA, 0x28, 0x54, 0x6, 0x29, 0x54, 0x8A, 0x29, 0xA4, 0x46, 0x1D, 0x74, 0xA, 0x2A, 0x94, 0xCA, 0x27, 0xA4, 0xCA, 0x2A, 0xC4, 0x4A, 0x1D, 0x74, 0x47, 0x2B, 0xE4, 0xCA, 0x2B, 0xC4, 0x85, 0x24, 0x4, 0x4B, 0x2C, 0x24, 0xCB, 0x27, 0xA4, 0xCA, 0x2C, 0x24, 0x45, 0x1D, 0x44, 0x4B, 0x2D, 0x64, 0xCB, 0x27, 0xA4, 0xCA, 0x2D, 0x84, 0xB, 0x0, 0x94, 0xB, 0x0, 0x24, 0x45, 0x17, 0xA4, 0xB, 0x0, 0x4, 0x40, 0x1F, 0x4, 0x80, 0x19, 0x84, 0x7, 0x24, 0x4, 0x0, 0x16, 0x84, 0x8, 0x0, 0x4, 0x80, 0x2B, 0x4, 0xC0, 0x2E, 0xC4, 0xB, 0x0, 0xD5, 0x8B, 0x2F, 0xF5, 0xB, 0x0, 0x5, 0x0, 0x30, 0x15, 0xC, 0x0, 0x25, 0xCC, 0x30, 0x5, 0x0, 0x31, 0x55, 0x8C, 0x31, 0x5, 0xC0, 0x31, 0x85, 0x4C, 0x32, 0x15, 0x0, 0x31, 0xA5, 0xC, 0x0, 0xB5, 0xC, 0x33, 0xD5, 0xC, 0x0, 0xE5, 0xC, 0x0, 0xF5, 0xC, 0x34, 0x15, 0x8D, 0x34, 0x5, 0xC0, 0x34, 0x15, 0xD, 0x0, 0xF5, 0xB, 0x35, 0x55, 0x8D, 0x35, 0x5, 0xC0, 0x35, 0x85, 0xD, 0x0, 0x95, 0xD, 0x0, 0xA5, 0xCD, 0x36, 0xC5, 0xD, 0x0, 0x5, 0x40, 0x37, 0x5, 0x80, 0x37, 0x5, 0xC0, 0x2F, 0xF5, 0xD, 0x0, 0x5, 0x0, 0x38, 0x15, 0x8E, 0x38, 0x5, 0xC0, 0x38, 0x55, 0xC, 0x39, 0x55, 0xE, 0x0, 0x5, 0x80, 0x39, 0x75, 0xCE, 0x36, 0x5, 0x40, 0x4, 0x15, 0x41, 0x34, 0x85, 0xE, 0x0, 0x95, 0xE, 0x0, 0xA5, 0xE, 0x0, 0xB5, 0xE, 0x0, 0x5, 0x0, 0x3B, 0xD5, 0xE, 0x0, 0x5, 0x80, 0x3B, 0xF5, 0xE, 0x3C, 0x15, 0xF, 0x0, 0x25, 0xCF, 0x3C, 0x45, 0xF, 0x0, 0xB5, 0x4D, 0x3D, 0x5, 0x80, 0x3D, 0x75, 0xF, 0x3E, 0x95, 0x8F, 0x3E, 0x5, 0xC0, 0x3E, 0xC5, 0xF, 0x0, 0xD5, 0xF, 0x0, 0x5, 0x80, 0x3F, 0xF5, 0xE, 0x0, 0xA5, 0xC, 0x16, 0x15, 0xCC, 0x2F, 0x5, 0xC0, 0x3F, 0x5, 0x0, 0x40, 0xE5, 0xE, 0x0, 0x15, 0x90, 0x40, 0xE5, 0xC5, 0x2F, 0x45, 0xE, 0x0, 0xA5, 0xF, 0x0, 0x35, 0x10, 0x0, 0x85, 0xC5, 0x36, 0x45, 0x50, 0x39, 0x15, 0x4D, 0x41, 0x5, 0x40, 0x35, 0x65, 0xF, 0x0, 0x55, 0x4D, 0x3E, 0x5, 0x80, 0x41, 0x5, 0xC0, 0x41, 0x85, 0x50, 0x42, 0x5, 0x80, 0x42, 0x5, 0x40, 0x3A, 0x15, 0xC0, 0x42, 0xC5, 0x50, 0x43, 0xE5, 0xD0, 0x43, 0x15, 0x0, 0x44, 0x15, 0x91, 0x44, 0x15, 0xC0, 0x32, 0x35, 0x11, 0x30, 0x45, 0x51, 0x45, 0x65, 0xD1, 0x45, 0x85, 0x51, 0x46, 0x5, 0x80, 0x46, 0xB5, 0x11, 0x47, 0xD5, 0x91, 0x46, 0xE5, 0xD1, 0x47, 0x5, 0x92, 0x46, 0x15, 0x92, 0x48, 0x35, 0x12, 0x49, 0x55, 0x92, 0x49, 0x75, 0x12, 0x4A, 0x95, 0x92, 0x4A, 0x75, 0xD2, 0x4A, 0xC5, 0x52, 0x4B, 0xE5, 0xD2, 0x4B, 0x5, 0x53, 0x4C, 0x25, 0xD3, 0x4C, 0x5, 0x0, 0x4D, 0xA5, 0x4F, 0x4D, 0x65, 0x13, 0x0, 0x95, 0xF, 0x0, 0x75, 0x13, 0x0, 0x5, 0x0, 0x4E, 0x5, 0x40, 0x4E, 0xA5, 0xD3, 0x4E, 0x5, 0x40, 0x38, 0x5, 0x0, 0x4F, 0x15, 0xE, 0x0, 0xD5, 0x93, 0x4F, 0xF5, 0x13, 0x0, 0x6, 0x54, 0x50, 0x6, 0x80, 0x50, 0x36, 0x14, 0x0, 0x46, 0x54, 0x51, 0x66, 0x14, 0x0, 0x76, 0x14, 0x52, 0x96, 0x14, 0x0, 0xA6, 0x14, 0x0, 0xB6, 0x14, 0x53, 0xD6, 0x14, 0x0, 0xA6, 0x94, 0x53, 0xF6, 0x14, 0x0, 0x6, 0x55, 0x54, 0x26, 0x15, 0x0, 0x36, 0x15, 0x0, 0x46, 0x15, 0x0, 0x56, 0x95, 0x55, 0x76, 0x15, 0x0, 0x56, 0x15, 0x0, 0x6, 0x0, 0x56, 0x96, 0x95, 0x56, 0x6, 0xC0, 0x56, 0xC6, 0x55, 0x57, 0x6, 0x80, 0x57, 0x6, 0xC0, 0x57, 0x26, 0x14, 0x0, 0x6, 0x16, 0x0, 0x16, 0x96, 0x58, 0x36, 0x16, 0x0, 0x46, 0x56, 0x59, 0x66, 0xD6, 0x59, 0x86, 0x16, 0x0, 0x96, 0x16, 0x0, 0xA6, 0xD6, 0x5A, 0x6, 0x0, 0x5B, 0xD6, 0x16, 0x0, 0xE6, 0x16, 0x0, 0xF6, 0x16, 0x5C, 0x16, 0x97, 0x5C, 0x36, 0x17, 0x5D, 0x56, 0x97, 0x5D, 0x76, 0x17, 0x0, 0x86, 0x17, 0x0, 0x96, 0x97, 0x5E, 0xB6, 0x17, 0x5F, 0xD6, 0x97, 0x5F, 0xF6, 0x17, 0x60, 0x16, 0x98, 0x60, 0x36, 0x58, 0x51, 0x46, 0x18, 0x0, 0x56, 0x98, 0x61, 0x36, 0xD8, 0x61, 0x86, 0x58, 0x51, 0x96, 0x98, 0x62, 0xB6, 0x18, 0x63, 0xD6, 0x18, 0x0, 0xE6, 0x18, 0x0, 0xF6, 0x18, 0x64, 0x16, 0x19, 0x0, 0x26, 0xD9, 0x64, 0x46, 0x59, 0x65, 0x66, 0xD9, 0x65, 0x86, 0x59, 0x66, 0xA6, 0xD9, 0x66, 0xC6, 0x59, 0x67, 0xE6, 0xD9, 0x67, 0x6, 0x5A, 0x68, 0x26, 0xDA, 0x68, 0x46, 0x5A, 0x69, 0x66, 0xDA, 0x69, 0x6, 0x0, 0x6A, 0x96, 0x9A, 0x6A, 0xB6, 0x1A, 0x6B, 0xD6, 0x9A, 0x6B, 0xF6, 0x1A, 0x6C, 0x16, 0x9B, 0x6C, 0x6, 0xC0, 0x6C, 0x46, 0x1B, 0x0, 0x57, 0x9B, 0x6D, 0x77, 0x1B, 0x6E, 0x97, 0x1B, 0x0, 0x7, 0x80, 0x6E, 0xB7, 0x1B, 0x6F, 0xD7, 0x1B, 0x0, 0xE7, 0xDB, 0x6F, 0x7, 0x5C, 0x70, 0x27, 0xDC, 0x70, 0x47, 0x5C, 0x71, 0x67, 0x1C, 0x0, 0x77, 0x1C, 0x72, 0x97, 0x1C, 0x0, 0x7, 0x80, 0x72, 0xB7, 0x1C, 0x73, 0xD7, 0x9C, 0x73, 0xF7, 0x1C, 0x0, 0x7, 0x5D, 0x74, 0x27, 0xDD, 0x74, 0x47, 0x1D, 0x0, 0x7, 0x40, 0x75, 0x7, 0x80, 0x75, 0x77, 0x1D, 0x0, 0x87, 0x5D, 0x76, 0xA7, 0xDD, 0x76, 0xC7, 0x5D, 0x77, 0xE7, 0xDD, 0x77, 0x7, 0x5E, 0x78, 0x27, 0xDE, 0x78, 0x47, 0x5E, 0x79, 0x67, 0xDE, 0x79, 0x87, 0x1E, 0x0, 0x97, 0x9E, 0x7A, 0xB7, 0x1E, 0x7B, 0xD7, 0x1E, 0x0, 0xE7, 0xDE, 0x7B, 0x7, 0x5F, 0x7C, 0x27, 0xDF, 0x7C, 0x47, 0x5F, 0x7D, 0x67, 0xDF, 0x7D, 0x87, 0x5F, 0x7E, 0xA7, 0x1F, 0x0, 0xB7, 0x1F, 0x7F, 0xD7, 0x9F, 0x7F, 0xF7, 0x1F, 0x80, 0x17, 0xA0, 0x80, 0x38, 0x20, 0x81, 0x58, 0x20, 0x0, 0x68, 0xE0, 0x81, 0x88, 0x20, 0x0, 0x98, 0xA0, 0x82, 0xB8, 0x20, 0x83, 0xD8, 0xA0, 0x83, 0x8, 0xC0, 0x83, 0x8, 0x0, 0x84, 0x18, 0xA1, 0x84, 0x38, 0x21, 0x85, 0x58, 0xA1, 0x85, 0x78, 0x21, 0x0, 0x8, 0x0, 0x86, 0x98, 0xA1, 0x86, 0xB8, 0x21, 0x0, 0x8, 0x0, 0x87, 0xD8, 0xA1, 0x87, 0xF8, 0x21, 0x88, 0x18, 0xA2, 0x88, 0x38, 0x22, 0x89, 0x8, 0x40, 0x89, 0x68, 0xE2, 0x89, 0x88, 0x62, 0x8A, 0xA8, 0xE2, 0x8A, 0xC8, 0x62, 0x8B, 0xE8, 0x22, 0x0, 0xF8, 0x22, 0x0, 0x8, 0x23, 0x0, 0x19, 0xA3, 0x8C, 0x39, 0x23, 0x0, 0x49, 0x23, 0x0, 0x59, 0xA3, 0x8D, 0x79, 0x23, 0x8E, 0x99, 0xA3, 0x8E, 0xB9, 0x23, 0x8F, 0xD9, 0x23, 0x0, 0x9, 0x80, 0x8F, 0x9, 0xC0, 0x8F, 0x9, 0x64, 0x90, 0x29, 0xE4, 0x90, 0x49, 0x24, 0x0, 0x59, 0xA4, 0x91, 0x79, 0x24, 0x92, 0x99, 0xA4, 0x92, 0xB9, 0x24, 0x93, 0xD9, 0x24, 0x0, 0xEA, 0xE4, 0x93, 0xA, 0x25, 0x0, 0xA, 0x40, 0x94, 0x2A, 0x25, 0x0, 0xA, 0xC0, 0x94, 0x4A, 0x65, 0x95, 0x6A, 0xE5, 0x95, 0x8A, 0x65, 0x96, 0xAA, 0xE5, 0x96, 0xCA, 0x65, 0x97, 0xEA, 0xE5, 0x97, 0xB, 0x26, 0x0, 0xB, 0x40, 0x98, 0x2B, 0xE6, 0x98, 0xB, 0x0, 0x99, 0x5B, 0xA6, 0x99, 0x7B, 0x26, 0x9A, 0x9B, 0xA6, 0x9A, 0xBC, 0x26, 0x0, 0xCC, 0x26, 0x0, 0xC, 0x40, 0x9B, 0xEC, 0xE6, 0x9B, 0xC, 0x67, 0x9C, 0x2D, 0xE7, 0x9C, 0x4D, 0x27, 0x0, 0x5D, 0xA7, 0x9D, 0x7E, 0x27, 0x9E, 0xE, 0x40, 0x9E, 0xAF, 0xE7, 0x9E];
System\Text\RegularExpressions\ValueMatch.cs (1)
11/// calling <see cref="Regex.EnumerateMatches(ReadOnlySpan{char})"/>.
System.Text.RegularExpressions.Generator (82)
parent\src\System\Text\RegularExpressions\RegexCaseEquivalences.cs (2)
31public static bool TryFindCaseEquivalencesForCharWithIBehavior(char c, CultureInfo culture, scoped ref RegexCaseBehavior mappingBehavior, out ReadOnlySpan<char> equivalences) 130private static bool TryFindCaseEquivalencesForChar(char c, out ReadOnlySpan<char> equivalences)
parent\src\System\Text\RegularExpressions\RegexCaseEquivalences.Data.cs (3)
12private static ReadOnlySpan<char> EquivalenceCasingValues => // 2360 164private static ReadOnlySpan<ushort> EquivalenceFirstLevelLookup => // 64 172private static ReadOnlySpan<ushort> EquivalenceCasingMap => // 10240
parent\src\System\Text\RegularExpressions\RegexCharClass.cs (16)
280private void AddRanges(ReadOnlySpan<char> set) 359if (RegexCaseEquivalences.TryFindCaseEquivalencesForCharWithIBehavior(range.First, culture, ref _caseBehavior, out ReadOnlySpan<char> equivalences)) 383if (RegexCaseEquivalences.TryFindCaseEquivalencesForCharWithIBehavior((char)i, culture, ref _caseBehavior, out ReadOnlySpan<char> equivalences)) 1013public static bool ParticipatesInCaseConversion(ReadOnlySpan<char> s) 1163private static ReadOnlySpan<byte> WordCharAsciiLookup => 1187ReadOnlySpan<byte> ascii = WordCharAsciiLookup; 1206ReadOnlySpan<byte> ascii = WordCharAsciiLookup; 1364private static bool CharInCategory(char ch, ReadOnlySpan<char> categorySetSegment) 1420private static bool CharInCategoryGroup(UnicodeCategory chcategory, ReadOnlySpan<char> category, ref int i) 1499public static List<(char First, char Last)>? ComputeRanges(ReadOnlySpan<char> set) 1535internal static string CharsToStringClass(ReadOnlySpan<char> chars) 1583ReadOnlySpan<char> tmpChars = chars; // avoid address exposing the span and impacting the other code in the method that uses it 1612ReadOnlySpan<char> chars = *(ReadOnlySpan<char>*)charsPtr; 1830private static ReadOnlySpan<char> RangesFromProperty(string capname, bool invert, string pattern, int currentPos) 1969ReadOnlySpan<char> group = set.AsSpan(index, lastindex - index + 1);
parent\src\System\Text\RegularExpressions\RegexFindOptimizations.cs (1)
893ReadOnlySpan<float> frequency = RegexPrefixAnalyzer.Frequency;
parent\src\System\Text\RegularExpressions\RegexNode.cs (4)
117if (!RegexCaseEquivalences.TryFindCaseEquivalencesForCharWithIBehavior(ch, culture, ref caseBehavior, out ReadOnlySpan<char> equivalences)) 1413scoped ReadOnlySpan<char> startingSpan = startingNode.Str.AsSpan(); 1491static void ProcessOneOrMulti(RegexNode node, ReadOnlySpan<char> startingSpan) 2309private static bool? ContainsKind(RegexNode node, ReadOnlySpan<RegexNodeKind> kinds)
parent\src\System\Text\RegularExpressions\RegexParser.cs (2)
159private static unsafe string EscapeImpl(ReadOnlySpan<char> input, int indexOfMetachar) 2123private static ReadOnlySpan<byte> Category =>
parent\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
1510internal static ReadOnlySpan<float> Frequency =>
RegexGenerator.Emitter.cs (3)
520private static string EmitSearchValuesOrLiteral(ReadOnlySpan<char> chars, Dictionary<string, string[]> requiredHelpers) 534private static string EmitSearchValues(ReadOnlySpan<char> charsSpan, Dictionary<string, string[]> requiredHelpers, string? fieldName = null) 5704ReadOnlySpan<string?> categoryDescriptions =
src\runtime\src\libraries\Common\src\Polyfills\EncodingPolyfills.cs (7)
13public static unsafe int GetByteCount(this Encoding encoding, ReadOnlySpan<char> chars) 21public static unsafe int GetCharCount(this Encoding encoding, ReadOnlySpan<byte> bytes) 34public static unsafe int GetBytes(this Encoding encoding, ReadOnlySpan<char> chars, Span<byte> bytes) 43public static unsafe int GetChars(this Encoding encoding, ReadOnlySpan<byte> bytes, Span<char> chars) 52public static unsafe string GetString(this Encoding encoding, ReadOnlySpan<byte> bytes) 60public static bool TryGetChars(this Encoding encoding, ReadOnlySpan<byte> bytes, Span<char> chars, out int charsWritten) 76private static unsafe ref readonly T GetNonNullPinnableReference<T>(ReadOnlySpan<T> buffer)
src\runtime\src\libraries\Common\src\Polyfills\MemoryExtensionsPolyfills.cs (9)
11public static bool Contains<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T> => 14public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>? 27public static bool ContainsAny(this ReadOnlySpan<char> span, ReadOnlySpan<char> values) => 30public static int IndexOfAnyExcept(this ReadOnlySpan<byte> span, byte value) 43public static int LastIndexOfAnyExcept(this ReadOnlySpan<byte> span, byte value) 56public static int Count<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T> 70public static int CommonPrefixLength<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other) where T : IEquatable<T>
src\runtime\src\libraries\Common\src\Polyfills\StringPolyfills.cs (2)
11public static string Concat(ReadOnlySpan<char> str0, ReadOnlySpan<char> str1) =>
src\runtime\src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
160public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span)
src\runtime\src\libraries\Common\src\System\Buffers\SearchValuesPolyfills.cs (10)
15public abstract int IndexOfAny(ReadOnlySpan<char> span); 17public abstract int IndexOfAnyExcept(ReadOnlySpan<char> span); 25public static SearchValues<char> Create(ReadOnlySpan<char> values) => 28public static int IndexOfAny(this ReadOnlySpan<char> span, SearchValues<char> values) => 31public static int IndexOfAnyExcept(this ReadOnlySpan<char> span, SearchValues<char> values) => 34public static bool ContainsAny(this ReadOnlySpan<char> span, SearchValues<char> values) => 37public static bool ContainsAnyExcept(this ReadOnlySpan<char> span, SearchValues<char> values) => 45public CharSearchValuesPolyfill(ReadOnlySpan<char> values) 98public override int IndexOfAny(ReadOnlySpan<char> span) 111public override int IndexOfAnyExcept(ReadOnlySpan<char> span)
src\runtime\src\libraries\Common\src\System\Collections\Generic\ValueListBuilder.cs (4)
65public void Append(scoped ReadOnlySpan<T> source) 81private void AppendMultiChar(scoped ReadOnlySpan<T> source) 92public void Insert(int index, scoped ReadOnlySpan<T> source) 144public ReadOnlySpan<T> AsSpan()
src\runtime\src\libraries\Common\src\System\HexConverter.cs (9)
187public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper) 204public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper) 221public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 244public ReadOnlySpan<byte> Bytes { get; set; } 276public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 288public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 456private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 491private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 598public static ReadOnlySpan<byte> CharToHexLookup =>
src\runtime\src\libraries\Common\src\System\Text\AsciiPolyfills.cs (1)
16public static unsafe bool IsValid(ReadOnlySpan<char> value)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
101public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 102public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 103public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 209public void Append(scoped ReadOnlySpan<char> value)
Stubs.cs (3)
17public static unsafe StringBuilder Append(this StringBuilder stringBuilder, ReadOnlySpan<char> span) 46public static int CommonPrefixLength(this ReadOnlySpan<char> span, ReadOnlySpan<char> other)
System.Threading.AccessControl (1)
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
78private static string GetAndTrimString(ReadOnlySpan<char> buffer)
System.Web.HttpUtility (31)
src\runtime\src\libraries\Common\src\System\HexConverter.cs (9)
187public static void EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> utf8Destination, Casing casing = Casing.Upper) 204public static void EncodeToUtf16(ReadOnlySpan<byte> source, Span<char> destination, Casing casing = Casing.Upper) 221public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 244public ReadOnlySpan<byte> Bytes { get; set; } 276public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 288public static bool TryDecodeFromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 456private static bool TryDecodeFromUtf8_Scalar(ReadOnlySpan<byte> utf8Source, Span<byte> destination, out int bytesProcessed) 491private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> source, Span<byte> destination, out int charsProcessed) 598public static ReadOnlySpan<byte> CharToHexLookup =>
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
101public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 102public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 103public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 209public void Append(scoped ReadOnlySpan<char> value)
System\Web\HttpUtility.cs (1)
220private static string UrlDecode(ReadOnlySpan<char> str, Encoding e) => HttpEncoder.UrlDecode(str, e);
System\Web\Util\HttpEncoder.cs (12)
75ReadOnlySpan<char> remaining = s.AsSpan(index); 140static string EncodeCore(ReadOnlySpan<char> value, int i, bool addDoubleQuotes) 148ReadOnlySpan<char> chars = value; 208internal static byte[] UrlDecode(ReadOnlySpan<byte> bytes) 317internal static string UrlDecode(ReadOnlySpan<char> value, Encoding encoding) 401private static byte[] UrlEncode(ReadOnlySpan<byte> bytes) 412private static byte[] UrlEncode(ReadOnlySpan<byte> bytes, int cUnsafe) 439private static bool NeedsEncoding(ReadOnlySpan<byte> bytes, out int cUnsafe) 530ReadOnlySpan<char> schemeAndAuthority; 532ReadOnlySpan<char> queryAndFragment; 566ReadOnlySpan<char> toEncode = indexOfQuery >= 0 592indexOfQuery >= 0 ? value.AsSpan(indexOfQuery) : ReadOnlySpan<char>.Empty);
System\Web\Util\UriUtil.cs (5)
13internal static bool TrySplitUriForPathEncode(string input, out ReadOnlySpan<char> schemeAndAuthority, [NotNullWhen(true)] out string? path, out ReadOnlySpan<char> queryAndFragment) 27queryAndFragment = ReadOnlySpan<char>.Empty; 54schemeAndAuthority = ReadOnlySpan<char>.Empty; 56queryAndFragment = ReadOnlySpan<char>.Empty;
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonControlLengthConverter.cs (1)
236ReadOnlySpan<char> valueString = goodString.AsSpan(0, strLen - strLenUnit);
System.Windows.Extensions (1)
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.DATA_BLOB.cs (1)
35internal unsafe ReadOnlySpan<byte> DangerousAsSpan() => new ReadOnlySpan<byte>((void*)pbData, (int)cbData);
System.Windows.Forms (76)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\RegexGenerator.g.cs (4)
64protected override void Scan(ReadOnlySpan<char> inputSpan) 82private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 107private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 111ReadOnlySpan<char> slice = inputSpan.Slice(pos);
System\Windows\Forms\ActiveX\AxHost.VBFormat.cs (1)
52ReadOnlySpan<char> format = pbstr.AsSpan();
System\Windows\Forms\ActiveX\DataStreamFromComStream.cs (2)
119ReadOnlySpan<byte> span = new(buffer, index, count); 131public override void Write(ReadOnlySpan<byte> buffer)
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (2)
744var name = nameBstr.AsSpan(); 745var helpString = helpBstr.AsSpan();
System\Windows\Forms\Components\ImageList\ImageListStreamer.cs (4)
15private static ReadOnlySpan<byte> HeaderMagic => "MSFt"u8; 37private static byte[] Compress(ReadOnlySpan<byte> input) 60ReadOnlySpan<byte> remaining = reader.Span[reader.Position..]; 97ReadOnlySpan<byte> buffer = stream.GetBuffer().AsSpan()[..(int)stream.Length];
System\Windows\Forms\Control.cs (3)
2464ReadOnlySpan<char> className = "#32770"; 13715static bool IsKeyDown(Keys key, ReadOnlySpan<byte> stateArray) 13718ReadOnlySpan<byte> stateArray = stackalloc byte[256];
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
162(ReadOnlySpan<Point>)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (2)
2160(ReadOnlySpan<Point>) 2183g.FillPolygon(SystemBrushes.ControlText, (ReadOnlySpan<Point>)[pt1, pt2, middle]);
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (3)
592ReadOnlySpan<int> lines = 616ReadOnlySpan<int> lightLines = 625ReadOnlySpan<int> darkLines =
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (2)
319ReadOnlySpan<int> darkLines = 331ReadOnlySpan<int> lightLines =
System\Windows\Forms\Controls\Labels\LinkArea.LinkAreaConverter.cs (1)
54ReadOnlySpan<char> text = valueStr.AsSpan().Trim();
System\Windows\Forms\Controls\Labels\LinkConverter.cs (1)
50ReadOnlySpan<char> text = valueStr.AsSpan().Trim();
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
2228ReadOnlySpan<char> txt = (z.Length > 40) ? z.AsSpan(0, 40) : z;
System\Windows\Forms\Controls\ListView\ListView.cs (3)
5629ReadOnlySpan<char> txt = (z.Length > 40) ? z.AsSpan(0, 40) : z; 5639ReadOnlySpan<char> txt = (z.Length > 40) ? z.AsSpan(0, 40) : z; 6835ReadOnlySpan<char> text = default;
System\Windows\Forms\Controls\MonthCalendar\SelectionRangeConverter.cs (1)
54ReadOnlySpan<char> text = valueAsString.AsSpan().Trim();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.PropertyMerger.cs (1)
132ReadOnlySpan<object?> objects,
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (2)
1838ReadOnlySpan<char> kashidaString = [kashida]; 1871unsafe int FindInternal(ReadOnlySpan<char> str, int start, int end, RichTextBoxFinds options)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (6)
3792g.DrawLines(SystemPens.ControlText, (ReadOnlySpan<Point>) 3799g.DrawLines(SystemPens.ControlText, (ReadOnlySpan<Point>) 3806g.DrawLines(SystemPens.ControlText, (ReadOnlySpan<Point>) 3819g.DrawLines(SystemPens.ControlText, (ReadOnlySpan<Point>) 3826g.DrawLines(SystemPens.ControlText, (ReadOnlySpan<Point>) 3833g.DrawLines(SystemPens.ControlText, (ReadOnlySpan<Point>)
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapter.cs (1)
148(ReadOnlySpan<Point>)
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (1)
1077ReadOnlySpan<Rectangle> baseRectangles = s_baseSizeGripRectangles;
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (5)
456private static string[] GetMultiselectFiles(ReadOnlySpan<char> fileBuffer) 458var directory = fileBuffer.SliceAtFirstNull(); 459var fileNames = fileBuffer[(directory.Length + 1)..]; 469var fileName = fileNames.SliceAtFirstNull(); 630var currentExtension = Path.GetExtension(fileName.AsSpan());
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanelCellPositionTypeConverter.cs (1)
37ReadOnlySpan<char> text = stringValue.AsSpan().Trim();
System\Windows\Forms\Rendering\ControlPaint.cs (1)
299ReadOnlySpan<ARGB> colors = new((ARGB*)data.Scan0, width * height);
System\Windows\Forms\Rendering\TextExtensions.cs (3)
51ReadOnlySpan<char> text, 153ReadOnlySpan<char> text, 212ReadOnlySpan<char> text,
System\Windows\Forms\Rendering\TextRenderer.cs (22)
37public static void DrawText(IDeviceContext dc, ReadOnlySpan<char> text, Font font, Point pt, Color foreColor) 61ReadOnlySpan<char> text, 93ReadOnlySpan<char> text, 134ReadOnlySpan<char> text, 163ReadOnlySpan<char> text, 191ReadOnlySpan<char> text, 223ReadOnlySpan<char> text, 264ReadOnlySpan<char> text, 281ReadOnlySpan<char> text, 291ReadOnlySpan<char> text, 357ReadOnlySpan<char> text, 392/// <see cref="DrawText(IDeviceContext, ReadOnlySpan{char}, Font?, Rectangle, Color, TextFormatFlags)"/> 396/// versions of <see cref="DrawText(IDeviceContext, ReadOnlySpan{char}, Font, Point, Color)"/> and 397/// <see cref="MeasureText(IDeviceContext, ReadOnlySpan{char}, Font?)"/> that take a Size and 401public static Size MeasureText(ReadOnlySpan<char> text, Font? font) 418public static Size MeasureText(ReadOnlySpan<char> text, Font? font, Size proposedSize) 439public static Size MeasureText(ReadOnlySpan<char> text, Font? font, Size proposedSize, TextFormatFlags flags) 456public static Size MeasureText(IDeviceContext dc, ReadOnlySpan<char> text, Font? font) 475public static Size MeasureText(IDeviceContext dc, ReadOnlySpan<char> text, Font? font, Size proposedSize) 505ReadOnlySpan<char> text, 512ReadOnlySpan<char> text, 528ReadOnlySpan<char> text,
System\Windows\Forms\SendKeys\SendKeys.cs (2)
320private static unsafe void SetKeyboardState(ReadOnlySpan<byte> keystate) 627private static unsafe void SendInput(ReadOnlySpan<byte> oldKeyboardState, SKEvent[]? previousEvents)
System.Windows.Forms.Design (12)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\RegexGenerator.g.cs (4)
85protected override void Scan(ReadOnlySpan<char> inputSpan) 103private bool TryFindNextPossibleStartingPosition(ReadOnlySpan<char> inputSpan) 128private bool TryMatchAtCurrentPosition(ReadOnlySpan<char> inputSpan) 132ReadOnlySpan<char> slice = inputSpan.Slice(pos);
System\ComponentModel\Design\ByteViewer.cs (5)
183private void DrawDump(Graphics g, ReadOnlySpan<byte> lineBuffer, int line, Span<char> charsBuffer) 203private void DrawHex(Graphics g, ReadOnlySpan<byte> lineBuffer, int line, Span<char> charsBuffer) 221ReadOnlySpan<char> result = charsBuffer[..charsWritten]; 251ReadOnlySpan<byte> lineBuffer = GetLineBytes(startLine + i); 257ReadOnlySpan<byte> GetLineBytes(int line)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
1290ReadOnlySpan<TypeCode> compatibleTypes =
System\Resources\Tools\StronglyTypedResourceBuilder.cs (1)
53private static ReadOnlySpan<char> CharsToReplace =>
System\Windows\Forms\Design\ListViewGroupCollectionEditor.cs (1)
37ReadOnlySpan<char> listViewGroupName = nameof(ListViewGroup);
System.Windows.Forms.Primitives (281)
Generated\361d1da7f942c932\Windows.Win32.IConnectionPointContainer.g.cs (1)
188 ReadOnlySpan<byte> data = new byte[] {
Generated\361d1da7f942c932\Windows.Win32.IFileOperationProgressSink.g.cs (1)
923 ReadOnlySpan<byte> data = new byte[] {
Generated\361d1da7f942c932\Windows.Win32.IHTMLImageElementFactory.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 217 ReadOnlySpan<byte> data = new byte[] {
Generated\361d1da7f942c932\Windows.Win32.IHTMLMimeTypesCollection.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 221 ReadOnlySpan<byte> data = new byte[] {
Generated\361d1da7f942c932\Windows.Win32.IHTMLOptionElementFactory.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 217 ReadOnlySpan<byte> data = new byte[] {
Generated\361d1da7f942c932\Windows.Win32.IHTMLStyleSheetRulesCollection.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 251 ReadOnlySpan<byte> data = new byte[] {
Generated\361d1da7f942c932\Windows.Win32.IHTMLStyleSheetsCollection.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 296 ReadOnlySpan<byte> data = new byte[] {
Generated\361d1da7f942c932\Windows.Win32.ILegacyIAccessibleProvider.g.cs (1)
684 ReadOnlySpan<byte> data = new byte[] {
Generated\361d1da7f942c932\Windows.Win32.IOleInPlaceObjectWindowless.g.cs (1)
382 ReadOnlySpan<byte> data = new byte[] {
Generated\361d1da7f942c932\Windows.Win32.IPropertyDescriptionList.g.cs (1)
207 ReadOnlySpan<byte> data = new byte[] {
Generated\361d1da7f942c932\Windows.Win32.IProvideMultipleClassInfo.g.cs (1)
271 ReadOnlySpan<byte> data = new byte[] {
Generated\361d1da7f942c932\Windows.Win32.IRawElementProviderFragment.g.cs (1)
355 ReadOnlySpan<byte> data = new byte[] {
Generated\361d1da7f942c932\Windows.Win32.IRawElementProviderFragmentRoot.g.cs (1)
187 ReadOnlySpan<byte> data = new byte[] {
Generated\361d1da7f942c932\Windows.Win32.IRawElementProviderHwndOverride.g.cs (1)
144 ReadOnlySpan<byte> data = new byte[] {
Generated\361d1da7f942c932\Windows.Win32.IRawElementProviderSimple.g.cs (1)
277 ReadOnlySpan<byte> data = new byte[] {
Generated\361d1da7f942c932\Windows.Win32.IUIAutomationCacheRequest.g.cs (1)
410 ReadOnlySpan<byte> data = new byte[] {
Generated\361d1da7f942c932\Windows.Win32.IUIAutomationElementArray.g.cs (1)
179 ReadOnlySpan<byte> data = new byte[] {
Generated\361d1da7f942c932\Windows.Win32.IUIAutomationEventHandler.g.cs (1)
145 ReadOnlySpan<byte> data = new byte[] {
Generated\361d1da7f942c932\Windows.Win32.IUIAutomationFocusChangedEventHandler.g.cs (1)
141 ReadOnlySpan<byte> data = new byte[] {
Generated\361d1da7f942c932\Windows.Win32.IUIAutomationPropertyChangedEventHandler.g.cs (1)
149 ReadOnlySpan<byte> data = new byte[] {
Generated\361d1da7f942c932\Windows.Win32.IUIAutomationProxyFactory.g.cs (1)
185 ReadOnlySpan<byte> data = new byte[] {
Generated\361d1da7f942c932\Windows.Win32.IUIAutomationProxyFactoryEntry.g.cs (1)
572 ReadOnlySpan<byte> data = new byte[] {
Generated\361d1da7f942c932\Windows.Win32.IUIAutomationProxyFactoryMapping.g.cs (1)
450 ReadOnlySpan<byte> data = new byte[] {
Generated\361d1da7f942c932\Windows.Win32.IUIAutomationStructureChangedEventHandler.g.cs (1)
145 ReadOnlySpan<byte> data = new byte[] {
Generated\361d1da7f942c932\Windows.Win32.System_Com_StructuredStorage_ILockBytes_Extensions.g.cs (2)
49 internal static unsafe winmdroot.Foundation.HRESULT WriteAt(this winmdroot.System.Com.StructuredStorage.ILockBytes.Interface @this, ulong ulOffset, ReadOnlySpan<byte> pv, out uint pcbWritten) 62 internal static unsafe winmdroot.Foundation.HRESULT WriteAt(this winmdroot.System.Com.StructuredStorage.ILockBytes.Interface @this, ulong ulOffset, ReadOnlySpan<byte> pv)
Generated\361d1da7f942c932\Windows.Win32.UI_Accessibility_IUIAutomation_Extensions.g.cs (2)
45 internal static unsafe winmdroot.Foundation.HRESULT AddPropertyChangedEventHandlerNativeArray(this winmdroot.UI.Accessibility.IUIAutomation.Interface @this, winmdroot.UI.Accessibility.IUIAutomationElement* element, winmdroot.UI.Accessibility.TreeScope scope, winmdroot.UI.Accessibility.IUIAutomationCacheRequest* cacheRequest, winmdroot.UI.Accessibility.IUIAutomationPropertyChangedEventHandler* handler, ReadOnlySpan<winmdroot.UI.Accessibility.UIA_PROPERTY_ID> propertyArray) 56 internal static unsafe winmdroot.Foundation.HRESULT IntNativeArrayToSafeArray(this winmdroot.UI.Accessibility.IUIAutomation.Interface @this, ReadOnlySpan<int> array, out winmdroot.System.Com.SAFEARRAY* safeArray)
Generated\361d1da7f942c932\Windows.Win32.UI_Shell_IFileDialog_Extensions.g.cs (1)
25 internal static unsafe winmdroot.Foundation.HRESULT SetFileTypes(this winmdroot.UI.Shell.IFileDialog.Interface @this, ReadOnlySpan<winmdroot.UI.Shell.Common.COMDLG_FILTERSPEC> rgFilterSpec)
Generated\361d1da7f942c932\Windows.Win32.UI_Shell_IFileOpenDialog_Extensions.g.cs (1)
25 internal static unsafe winmdroot.Foundation.HRESULT SetFileTypes(this winmdroot.UI.Shell.IFileOpenDialog.Interface @this, ReadOnlySpan<winmdroot.UI.Shell.Common.COMDLG_FILTERSPEC> rgFilterSpec)
Generated\361d1da7f942c932\Windows.Win32.UI_Shell_IFileSaveDialog_Extensions.g.cs (1)
25 internal static unsafe winmdroot.Foundation.HRESULT SetFileTypes(this winmdroot.UI.Shell.IFileSaveDialog.Interface @this, ReadOnlySpan<winmdroot.UI.Shell.Common.COMDLG_FILTERSPEC> rgFilterSpec)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.byte.InlineArrays.g.cs (6)
52 internal unsafe readonly ReadOnlySpan<byte> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength); 54 internal readonly bool Equals(ReadOnlySpan<byte> value) => AsReadOnlySpan().SequenceEqual(value); 56 public static implicit operator __byte_4(ReadOnlySpan<byte> value) 98 internal unsafe readonly ReadOnlySpan<byte> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength); 100 internal readonly bool Equals(ReadOnlySpan<byte> value) => AsReadOnlySpan().SequenceEqual(value); 102 public static implicit operator __byte_260(ReadOnlySpan<byte> value)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.char.InlineArrays.g.cs (15)
53 internal unsafe readonly ReadOnlySpan<char> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength); 55 internal readonly bool Equals(ReadOnlySpan<char> value) => value.Length == SpanLength ? AsReadOnlySpan().SequenceEqual(value) : AsReadOnlySpan().SliceAtNull().SequenceEqual(value); 74 public static implicit operator __char_64(ReadOnlySpan<char> value) 117 internal unsafe readonly ReadOnlySpan<char> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength); 119 internal readonly bool Equals(ReadOnlySpan<char> value) => value.Length == SpanLength ? AsReadOnlySpan().SequenceEqual(value) : AsReadOnlySpan().SliceAtNull().SequenceEqual(value); 138 public static implicit operator __char_32(ReadOnlySpan<char> value) 181 internal unsafe readonly ReadOnlySpan<char> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength); 183 internal readonly bool Equals(ReadOnlySpan<char> value) => value.Length == SpanLength ? AsReadOnlySpan().SequenceEqual(value) : AsReadOnlySpan().SliceAtNull().SequenceEqual(value); 202 public static implicit operator __char_48(ReadOnlySpan<char> value) 245 internal unsafe readonly ReadOnlySpan<char> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength); 247 internal readonly bool Equals(ReadOnlySpan<char> value) => value.Length == SpanLength ? AsReadOnlySpan().SequenceEqual(value) : AsReadOnlySpan().SliceAtNull().SequenceEqual(value); 266 public static implicit operator __char_2084(ReadOnlySpan<char> value) 309 internal unsafe readonly ReadOnlySpan<char> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength); 311 internal readonly bool Equals(ReadOnlySpan<char> value) => value.Length == SpanLength ? AsReadOnlySpan().SequenceEqual(value) : AsReadOnlySpan().SliceAtNull().SequenceEqual(value); 330 public static implicit operator __char_80(ReadOnlySpan<char> value)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IAccessible.g.cs (2)
85 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 1351 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IAccessibleEx.g.cs (1)
274 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IAdviseSinkEx.g.cs (1)
273 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IAutoComplete.g.cs (1)
201 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IAutoComplete2.g.cs (1)
255 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IBindHost.g.cs (1)
209 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IBinding.g.cs (1)
296 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IBindStatusCallback.g.cs (1)
389 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IClassFactory.g.cs (1)
189 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IClassFactory2.g.cs (1)
324 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IConnectionPoint.g.cs (1)
307 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IEnumConnectionPoints.g.cs (1)
249 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IEnumConnections.g.cs (1)
252 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IEnumIDList.g.cs (1)
279 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IEnumOleUndoUnits.g.cs (1)
254 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IEnumOLEVERB.g.cs (1)
264 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IEnumShellItems.g.cs (1)
277 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IEnumVARIANT.g.cs (1)
258 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IErrorInfo.g.cs (1)
314 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IErrorLog.g.cs (1)
145 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IExpandCollapseProvider.g.cs (1)
209 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IFileDialog.g.cs (2)
83 internal unsafe void SetFileTypes(ReadOnlySpan<winmdroot.UI.Shell.Common.COMDLG_FILTERSPEC> rgFilterSpec) 1136 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IFileDialogCustomize.g.cs (1)
1390 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IFileDialogEvents.g.cs (1)
410 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IFileOpenDialog.g.cs (2)
83 internal unsafe void SetFileTypes(ReadOnlySpan<winmdroot.UI.Shell.Common.COMDLG_FILTERSPEC> rgFilterSpec) 959 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IFileSaveDialog.g.cs (2)
83 internal unsafe void SetFileTypes(ReadOnlySpan<winmdroot.UI.Shell.Common.COMDLG_FILTERSPEC> rgFilterSpec) 1094 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IFont.g.cs (1)
982 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IFontDisp.g.cs (2)
78 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 188 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IGetOleObject.g.cs (1)
153 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IGetVBAObject.g.cs (1)
153 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IGridItemProvider.g.cs (1)
304 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IGridProvider.g.cs (1)
236 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLCurrentStyle.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 3277 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLDataTransfer.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 412 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLDocument.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 215 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLDocument2.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 3629 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLDocument3.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 1465 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLDocument4.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 651 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLDOMNode.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 811 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLElement.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 2936 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLElement2.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 3283 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLElement3.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 1554 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLElementCollection.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 380 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLEventObj.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 1019 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLFiltersCollection.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 296 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLFormElement.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 929 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLFrameBase.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 745 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLFramesCollection2.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 268 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLImgElement.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 1705 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLLocation.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 806 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLOpsProfile.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 451 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLOptionElement.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 531 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLPluginsCollection.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 249 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLRect.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 435 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLRectCollection.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 296 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLRenderStyle.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 745 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLRuleStyle.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 5207 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLScreen.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 515 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLSelectionObject.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 307 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLStyle.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 5738 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLStyleSheet.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 851 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLStyleSheetRule.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 317 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLWindow2.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 2419 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLWindow3.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 650 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IHTMLWindow4.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 256 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IInvokeProvider.g.cs (1)
140 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.ILockBytes.g.cs (3)
116 internal unsafe void WriteAt(ulong ulOffset, ReadOnlySpan<byte> pv, out uint pcbWritten) 128 internal unsafe void WriteAt(ulong ulOffset, ReadOnlySpan<byte> pv) 433 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IMessageFilter.g.cs (1)
225 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IModalWindow.g.cs (1)
140 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IMultipleViewProvider.g.cs (1)
266 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.int.InlineArrays.g.cs (3)
52 internal unsafe readonly ReadOnlySpan<int> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength); 54 internal readonly bool Equals(ReadOnlySpan<int> value) => AsReadOnlySpan().SequenceEqual(value); 56 public static implicit operator __int_6(ReadOnlySpan<int> value)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IOleAdviseHolder.g.cs (1)
323 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IOleClientSite.g.cs (1)
318 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IOleCommandTarget.g.cs (1)
211 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IOleContainer.g.cs (1)
209 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IOleControl.g.cs (1)
268 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IOleControlSite.g.cs (1)
371 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IOleInPlaceActiveObject.g.cs (1)
367 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IOleInPlaceFrame.g.cs (1)
586 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IOleInPlaceObject.g.cs (1)
329 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IOleInPlaceSite.g.cs (1)
574 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IOleInPlaceUIWindow.g.cs (1)
367 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IOleObject.g.cs (1)
996 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IOleParentUndoUnit.g.cs (1)
418 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IOleUndoManager.g.cs (1)
574 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IOleUndoUnit.g.cs (1)
263 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IOleWindow.g.cs (1)
189 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IOmHistory.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 336 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IOmNavigator.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 855 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IParseDisplayName.g.cs (1)
151 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IPerPropertyBrowsing.g.cs (1)
303 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IPersistPropertyBag.g.cs (1)
241 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IPersistStorage.g.cs (1)
365 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IPersistStreamInit.g.cs (1)
328 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IPropertyBag.g.cs (1)
199 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IPropertyNotifySink.g.cs (1)
171 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IPropertyStore.g.cs (1)
324 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IProvideClassInfo.g.cs (1)
138 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IProvideClassInfo2.g.cs (1)
173 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IQuickActivate.g.cs (1)
243 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IRangeValueProvider.g.cs (1)
397 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IRichEditOle.g.cs (1)
826 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IRichEditOleCallback.g.cs (1)
620 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IScrollItemProvider.g.cs (1)
136 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IScrollProvider.g.cs (1)
405 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.ISelectionItemProvider.g.cs (1)
280 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.ISelectionProvider.g.cs (1)
225 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IShellFolder.g.cs (1)
769 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IShellItem.g.cs (1)
367 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IShellItemArray.g.cs (1)
476 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IShellItemFilter.g.cs (1)
190 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.ISimpleFrameSite.g.cs (1)
205 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.ISpecifyPropertyPages.g.cs (1)
149 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.ISupportErrorInfo.g.cs (1)
151 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.ITableItemProvider.g.cs (1)
174 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.ITableProvider.g.cs (1)
217 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.ITextDocument.g.cs (2)
78 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 1067 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.ITextFont.g.cs (2)
78 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 2636 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.ITextPara.g.cs (2)
78 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 2334 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.ITextProvider.g.cs (1)
335 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.ITextProvider2.g.cs (1)
382 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.ITextRange.g.cs (2)
78 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 2773 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.ITextRangeProvider.g.cs (1)
814 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.ITextSelection.g.cs (2)
78 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 2520 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.ITextStoryRanges.g.cs (2)
78 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 324 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IToggleProvider.g.cs (1)
180 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IUIAutomation.g.cs (3)
1237 internal unsafe void AddPropertyChangedEventHandlerNativeArray(winmdroot.UI.Accessibility.IUIAutomationElement* element, winmdroot.UI.Accessibility.TreeScope scope, winmdroot.UI.Accessibility.IUIAutomationCacheRequest* cacheRequest, winmdroot.UI.Accessibility.IUIAutomationPropertyChangedEventHandler* handler, ReadOnlySpan<winmdroot.UI.Accessibility.UIA_PROPERTY_ID> propertyArray) 1585 internal unsafe winmdroot.System.Com.SAFEARRAY* IntNativeArrayToSafeArray(ReadOnlySpan<int> array) 2459 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IUIAutomationCondition.g.cs (1)
100 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IUIAutomationElement.g.cs (1)
3282 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IUIAutomationTreeWalker.g.cs (1)
661 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IValueProvider.g.cs (1)
241 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IVBFormat.g.cs (1)
164 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IVBGetControl.g.cs (1)
142 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IViewObject.g.cs (1)
400 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IViewObject2.g.cs (1)
368 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IWebBrowser.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 993 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IWebBrowser2.g.cs (2)
89 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 2306 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.IWebBrowserApp.g.cs (2)
77 internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) 1635 ReadOnlySpan<byte> data = new byte[] {
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PInvoke.dwmapi.dll.g.cs (1)
60 internal static unsafe winmdroot.Foundation.HRESULT DwmSetWindowAttribute(winmdroot.Foundation.HWND hwnd, winmdroot.Graphics.Dwm.DWMWINDOWATTRIBUTE dwAttribute, ReadOnlySpan<byte> pvAttribute)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PInvoke.GDI32.dll.g.cs (2)
106 internal static unsafe winmdroot.Foundation.BOOL ExtTextOut(winmdroot.Graphics.Gdi.HDC hdc, int x, int y, winmdroot.Graphics.Gdi.ETO_OPTIONS options, [Optional] winmdroot.Foundation.RECT? lprect, [Optional] string lpString, [Optional] ReadOnlySpan<int> lpDx) 540 internal static unsafe winmdroot.Foundation.BOOL LPtoDP(winmdroot.Graphics.Gdi.HDC hdc, ReadOnlySpan<global::System.Drawing.Point> lppt)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.PInvoke.USER32.dll.g.cs (4)
392 internal static unsafe winmdroot.UI.WindowsAndMessaging.HACCEL CreateAcceleratorTable(ReadOnlySpan<winmdroot.UI.WindowsAndMessaging.ACCEL> paccel) 2689 internal static unsafe winmdroot.Foundation.WAIT_EVENT MsgWaitForMultipleObjectsEx([Optional] ReadOnlySpan<winmdroot.Foundation.HANDLE> pHandles, uint dwMilliseconds, winmdroot.UI.WindowsAndMessaging.QUEUE_STATUS_FLAGS dwWakeMask, winmdroot.UI.WindowsAndMessaging.MSG_WAIT_FOR_MULTIPLE_OBJECTS_EX_FLAGS dwFlags) 3165 internal static unsafe uint SendInput(ReadOnlySpan<winmdroot.UI.Input.KeyboardAndMouse.INPUT> pInputs, int cbSize) 3445 internal static unsafe winmdroot.Foundation.BOOL SetKeyboardState(ReadOnlySpan<byte> lpKeyState)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Windows.Win32.uint.InlineArrays.g.cs (3)
52 internal unsafe readonly ReadOnlySpan<uint> AsReadOnlySpan() => MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(in Value[0]), SpanLength); 54 internal readonly bool Equals(ReadOnlySpan<uint> value) => AsReadOnlySpan().SequenceEqual(value); 56 public static implicit operator __uint_6(ReadOnlySpan<uint> value)
Interop\Richedit\Interop.CHARFORMAT2W.cs (1)
44public ReadOnlySpan<char> FaceName
Microsoft\Office\IMsoComponent.cs (1)
110ReadOnlySpan<byte> data =
Microsoft\Office\IMsoComponentManager.cs (1)
22ReadOnlySpan<byte> data =
Microsoft\VisualStudio\Shell\ICategorizeProperties.cs (1)
20ReadOnlySpan<byte> data =
Microsoft\VisualStudio\Shell\IProvidePropertyBuilder.cs (1)
20ReadOnlySpan<byte> data =
Microsoft\VisualStudio\Shell\IVSMDPerPropertyBrowsing.cs (1)
21ReadOnlySpan<byte> data =
Microsoft\VisualStudio\Shell\IVsPerPropertyBrowsing.cs (1)
20ReadOnlySpan<byte> data =
System\CharacterConstants.cs (1)
8public static ReadOnlySpan<char> NewLine => ['\n', '\r'];
System\ComponentModel\TypeConverterHelper.cs (1)
28public static bool TryParseAsSpan<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(ITypeDescriptorContext? context, CultureInfo? culture, ReadOnlySpan<char> text, Span<T> output)
System\Diagnostics\TraceSwitchExtensions.cs (1)
116public void AppendFormatted(params ReadOnlySpan<char> value) => _stringBuilderHandler.AppendFormatted(value);
System\Windows\Forms\Automation\UiaTextRange.cs (1)
303ReadOnlySpan<char> rangeText = _provider.Text.AsSpan().Slice(Start, Length);
System\Windows\Forms\DeviceContextExtensions.cs (2)
71internal static void DrawLines(this DeviceContextHdcScope hdc, HPEN hpen, ReadOnlySpan<int> lines) => 80internal static unsafe void DrawLines(this HDC hdc, HPEN hpen, ReadOnlySpan<int> lines)
System\Windows\Forms\IExtender.cs (1)
91ReadOnlySpan<byte> data =
System\Windows\Forms\PaddingConverter.cs (1)
27ReadOnlySpan<char> text = stringValue.AsSpan().Trim();
System\Windows\Forms\SystemDrawingExtensions.cs (1)
54internal static void DrawLines(this Graphics graphics, Pen pen, ReadOnlySpan<int> lines)
Windows\Win32\PInvoke.DrawTextEx.cs (1)
11ReadOnlySpan<char> lpchText,
Windows\Win32\UI\Controls\LVITEMW.cs (1)
13public unsafe void UpdateText(ReadOnlySpan<char> text)
Windows\Win32\UI\Shell\NOTIFYICONDATAW.cs (3)
30public ReadOnlySpan<char> Tip 41public ReadOnlySpan<char> Info 52public ReadOnlySpan<char> InfoTitle
System.Windows.Input.Manipulations (1)
System\Windows\Input\Manipulations\Exceptions.cs (1)
236private static string Format(string format, params ReadOnlySpan<object> args)
System.Xaml (31)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\ReflectionUtils.cs (12)
42internal static ReadOnlySpan<char> GetAssemblyPartialName(Assembly assembly) 53ReadOnlySpan<char> fullName = assembly.FullName; 55return ReadOnlySpan<char>.Empty; 57ReadOnlySpan<char> nameSlice = fullName; 75static void UnescapeDirty(ref ReadOnlySpan<char> dirtyName) 77dirtyName = !AssemblyNameInfo.TryParse(dirtyName, out AssemblyNameInfo? result) ? ReadOnlySpan<char>.Empty : result.Name; 95internal static void GetAssemblyVersionPlusToken(Assembly assembly, out ReadOnlySpan<char> assemblyVersion, out ReadOnlySpan<char> assemblyToken) 98ReadOnlySpan<char> assemblyName = assembly.FullName; 100assemblyVersion = ReadOnlySpan<char>.Empty; 101assemblyToken = ReadOnlySpan<char>.Empty; 124assemblyToken = ReadOnlySpan<char>.Empty;
System\Xaml\MS\Impl\KnownStrings.cs (2)
66public static bool Eq(ReadOnlySpan<char> a, ReadOnlySpan<char> b)
System\Xaml\Parser\GenericTypeNameScanner.cs (5)
102internal static int ParseSubscriptSegment(ReadOnlySpan<char> subscript, ref int pos) 152internal static ReadOnlySpan<char> StripSubscript(ReadOnlySpan<char> typeName, out ReadOnlySpan<char> subscript) 157subscript = ReadOnlySpan<char>.Empty;
System\Xaml\Schema\ClrNamespaceUriParser.cs (1)
32ReadOnlySpan<char> keyword = uriInput.AsSpan(0, colonIdx);
System\Xaml\Schema\XamlNamespace.cs (4)
103ReadOnlySpan<char> typeNameSpan = GenericTypeNameScanner.StripSubscript(typeName, out ReadOnlySpan<char> subscript); 129private static Type MakeArrayType(Type elementType, ReadOnlySpan<char> subscript) 148private static string MangleGenericTypeName(ReadOnlySpan<char> typeName, int paramNum)
System\Xaml\XamlSchemaContext.cs (1)
181ReadOnlySpan<char> values = clrNs.AsSpan();
System\Xaml\XamlType.cs (2)
1625ReadOnlySpan<char> typeNameSpan = GenericTypeNameScanner.StripSubscript(typeName, out ReadOnlySpan<char> subscript);
System\Xaml\XamlTypeName.cs (2)
238ReadOnlySpan<char> name = GenericTypeNameScanner.StripSubscript(Name, out ReadOnlySpan<char> subscript);
System\Xaml\XamlXmlWriter.cs (2)
634ReadOnlySpan<char> typeNamePrefixed = string.IsNullOrEmpty(prefix) ? typeName : $"{prefix}:{typeName}"; 637typeNamePrefixed = GenericTypeNameScanner.StripSubscript(typeNamePrefixed, out ReadOnlySpan<char> subscript);
UIAutomationClientSideProviders (23)
MS\Internal\AutomationProxies\ProxyHwnd.cs (5)
71ReadOnlySpan<WinEventTracker.EvtIdProperty> aEvents; 100ReadOnlySpan<WinEventTracker.EvtIdProperty> aEvents; 399protected virtual ReadOnlySpan<WinEventTracker.EvtIdProperty> EventToWinEvent(AutomationEvent idEvent) 456return ReadOnlySpan<WinEventTracker.EvtIdProperty>.Empty; 508private ReadOnlySpan<WinEventTracker.EvtIdProperty> PropertyToWinEvent(AutomationProperty[] aProps)
MS\Internal\AutomationProxies\WindowsButton.cs (1)
284protected override ReadOnlySpan<WinEventTracker.EvtIdProperty> EventToWinEvent(AutomationEvent idEvent)
MS\Internal\AutomationProxies\WindowsComboBox.cs (4)
305ReadOnlySpan<WinEventTracker.EvtIdProperty> editPortionEvents = CreateEditPortionEvents(aidProps); 341ReadOnlySpan<WinEventTracker.EvtIdProperty> editPortionEvents = CreateEditPortionEvents(aidProps); 797private static ReadOnlySpan<WinEventTracker.EvtIdProperty> CreateEditPortionEvents(AutomationProperty[] aidProps) 811return ReadOnlySpan<WinEventTracker.EvtIdProperty>.Empty;
MS\Internal\AutomationProxies\WindowsEditBox.cs (1)
252protected override ReadOnlySpan<WinEventTracker.EvtIdProperty> EventToWinEvent(AutomationEvent idEvent)
MS\Internal\AutomationProxies\WindowsFormsLinkLabel.cs (1)
68protected override ReadOnlySpan<WinEventTracker.EvtIdProperty> EventToWinEvent(AutomationEvent idEvent)
MS\Internal\AutomationProxies\WindowsHyperlink.cs (1)
124protected override ReadOnlySpan<WinEventTracker.EvtIdProperty> EventToWinEvent(AutomationEvent idEvent)
MS\Internal\AutomationProxies\WindowsListBox.cs (1)
453ReadOnlySpan<WinEventTracker.EvtIdProperty> aEvtIdProperties = [new WinEventTracker.EvtIdProperty(NativeMethods.EventObjectSelection, SelectionPattern.IsSelectionRequiredProperty)];
MS\Internal\AutomationProxies\WindowsListView.cs (4)
498ReadOnlySpan<WinEventTracker.EvtIdProperty> aEvents = [new WinEventTracker.EvtIdProperty(NativeMethods.EventObjectCreate, TablePattern.ColumnHeadersProperty)]; 507ReadOnlySpan<WinEventTracker.EvtIdProperty> aEvents = [new WinEventTracker.EvtIdProperty(NativeMethods.EventObjectSelection, eventId)]; 527ReadOnlySpan<WinEventTracker.EvtIdProperty> aEvents = [new WinEventTracker.EvtIdProperty(NativeMethods.EventObjectCreate, TablePattern.ColumnHeadersProperty)]; 536ReadOnlySpan<WinEventTracker.EvtIdProperty> aEvents = [new WinEventTracker.EvtIdProperty(NativeMethods.EventObjectSelection, eventId)];
MS\Internal\AutomationProxies\WindowsTreeView.cs (1)
345protected override ReadOnlySpan<WinEventTracker.EvtIdProperty> EventToWinEvent(AutomationEvent idEvent)
MS\Internal\AutomationProxies\WinEventTracker.cs (4)
46internal static void AddToNotificationList(IntPtr hwnd, ProxyRaiseEvents raiseEvents, ReadOnlySpan<EvtIdProperty> aEvtIdProp) 75internal static void RemoveToNotificationList(IntPtr hwnd, ReadOnlySpan<EvtIdProperty> aEvtIdProp, ProxyRaiseEvents raiseEvents) 337private static void BuildEventsList(EventFlag eFlag, IntPtr hwnd, ProxyRaiseEvents raiseEvents, ReadOnlySpan<EvtIdProperty> aEvtIdProp) 522private static ReadOnlySpan<int> EventIdToIndex => [
VBCSCompiler (3)
src\roslyn\src\Compilers\Server\VBCSCompiler\BuildServerController.cs (3)
242var argSpan = arg.AsSpan(); 249var timeoutValue = argSpan[timeoutArgPrefix.Length..]; 260var parsedLogFilePath = argSpan[logArgPrefix.Length..];