491 instantiations of ReadOnlySpan
http2cat (2)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
594return Huffman.Decode(new ReadOnlySpan<byte>(_stringOctets, 0, _stringLength), ref dst);
src\Shared\ServerInfrastructure\BufferExtensions.cs (1)
188buffer.Write(new ReadOnlySpan<byte>(byteBuffer, position, length));
IIS.FunctionalTests (2)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
594return Huffman.Decode(new ReadOnlySpan<byte>(_stringOctets, 0, _stringLength), ref dst);
src\Shared\ServerInfrastructure\BufferExtensions.cs (1)
188buffer.Write(new ReadOnlySpan<byte>(byteBuffer, position, length));
IIS.LongTests (2)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
594return Huffman.Decode(new ReadOnlySpan<byte>(_stringOctets, 0, _stringLength), ref dst);
src\Shared\ServerInfrastructure\BufferExtensions.cs (1)
188buffer.Write(new ReadOnlySpan<byte>(byteBuffer, position, length));
IIS.NewHandler.FunctionalTests (2)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
594return Huffman.Decode(new ReadOnlySpan<byte>(_stringOctets, 0, _stringLength), ref dst);
src\Shared\ServerInfrastructure\BufferExtensions.cs (1)
188buffer.Write(new ReadOnlySpan<byte>(byteBuffer, position, length));
IIS.NewShim.FunctionalTests (2)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
594return Huffman.Decode(new ReadOnlySpan<byte>(_stringOctets, 0, _stringLength), ref dst);
src\Shared\ServerInfrastructure\BufferExtensions.cs (1)
188buffer.Write(new ReadOnlySpan<byte>(byteBuffer, position, length));
IIS.ShadowCopy.Tests (1)
src\Shared\ServerInfrastructure\BufferExtensions.cs (1)
188buffer.Write(new ReadOnlySpan<byte>(byteBuffer, position, length));
IISExpress.FunctionalTests (2)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
594return Huffman.Decode(new ReadOnlySpan<byte>(_stringOctets, 0, _stringLength), ref dst);
src\Shared\ServerInfrastructure\BufferExtensions.cs (1)
188buffer.Write(new ReadOnlySpan<byte>(byteBuffer, position, length));
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\KeyRingBasedDataProtector.cs (1)
147return new Guid(new ReadOnlySpan<byte>(ptr, sizeof(Guid)));
Microsoft.AspNetCore.Http.Connections (1)
src\SignalR\common\Shared\PipeWriterStream.cs (1)
52_pipeWriter.Write(new ReadOnlySpan<byte>(buffer, offset, count));
Microsoft.AspNetCore.Http.Connections.Client (1)
src\SignalR\common\Shared\PipeWriterStream.cs (1)
52_pipeWriter.Write(new ReadOnlySpan<byte>(buffer, offset, count));
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
EndToEndBenchmarks.cs (1)
209if (!Payload.Span.SequenceEqual(new(oversized, 0, PayloadLength)))
Microsoft.AspNetCore.Server.HttpSys (3)
RequestProcessing\ResponseBody.cs (1)
282SetDataChunkWithPinnedData(chunks, ref chunkIndex, new ReadOnlySpan<byte>((void*)(handle.AddrOfPinnedObject() + buffer.Offset), buffer.Count));
src\Shared\HttpSys\RequestProcessing\HeaderEncoding.cs (2)
16header = new ReadOnlySpan<byte>(pBytes, byteCount).GetLatin1String(); 20header = new ReadOnlySpan<byte>(pBytes, byteCount).GetAsciiOrUTF8String(Encoding.UTF8);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
594return Huffman.Decode(new ReadOnlySpan<byte>(_stringOctets, 0, _stringLength), ref dst);
src\Shared\ServerInfrastructure\BufferExtensions.cs (1)
188buffer.Write(new ReadOnlySpan<byte>(byteBuffer, position, length));
Microsoft.AspNetCore.Server.IIS (3)
src\Shared\HttpSys\RequestProcessing\HeaderEncoding.cs (2)
16header = new ReadOnlySpan<byte>(pBytes, byteCount).GetLatin1String(); 20header = new ReadOnlySpan<byte>(pBytes, byteCount).GetAsciiOrUTF8String(Encoding.UTF8);
src\Shared\ServerInfrastructure\BufferExtensions.cs (1)
188buffer.Write(new ReadOnlySpan<byte>(byteBuffer, position, length));
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\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
594return Huffman.Decode(new ReadOnlySpan<byte>(_stringOctets, 0, _stringLength), ref dst);
src\Shared\runtime\Http3\QPack\QPackDecoder.cs (1)
637return Huffman.Decode(new ReadOnlySpan<byte>(_stringOctets, 0, _stringLength), ref dst);
src\Shared\ServerInfrastructure\BufferExtensions.cs (1)
188buffer.Write(new ReadOnlySpan<byte>(byteBuffer, position, length));
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (18)
HttpUtilitiesTest.cs (2)
36var block = new ReadOnlySpan<byte>(Encoding.ASCII.GetBytes(input)); 66var block = new ReadOnlySpan<byte>(Encoding.ASCII.GetBytes(input));
KnownStringsTests.cs (1)
78var data = new ReadOnlySpan<byte>(methodData);
src\Shared\test\Shared.Tests\runtime\Http2\HuffmanDecodingTests.cs (7)
74int decodedByteCount = Huffman.Decode(new ReadOnlySpan<byte>(encoded, 0, encodedByteCount), ref decoded); 250Assert.Equal(expected.Length, Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst)); 271Exception exception = Assert.Throws<HuffmanDecodingException>(() => Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst)); 288Exception exception = Assert.Throws<HuffmanDecodingException>(() => Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst)); 299int decodedCount = Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref actualDestination); 333Exception exception = Assert.Throws<HuffmanDecodingException>(() => Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst)); 344int decodedLength = Huffman.Decode(new ReadOnlySpan<byte>(encoded, 0, encoded.Length), ref decodedBytes);
src\Shared\test\Shared.Tests\runtime\Http3\VariableLengthIntegerHelperTests.cs (8)
16ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(); 28ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[] 43ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[] 59ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[] 74ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[] 92ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[] 107ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>( 124ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[]
Microsoft.AspNetCore.Shared.Tests (20)
runtime\Http2\HuffmanDecodingTests.cs (7)
74int decodedByteCount = Huffman.Decode(new ReadOnlySpan<byte>(encoded, 0, encodedByteCount), ref decoded); 250Assert.Equal(expected.Length, Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst)); 271Exception exception = Assert.Throws<HuffmanDecodingException>(() => Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst)); 288Exception exception = Assert.Throws<HuffmanDecodingException>(() => Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst)); 299int decodedCount = Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref actualDestination); 333Exception exception = Assert.Throws<HuffmanDecodingException>(() => Huffman.Decode(new ReadOnlySpan<byte>(encoded), ref dst)); 344int decodedLength = Huffman.Decode(new ReadOnlySpan<byte>(encoded, 0, encoded.Length), ref decodedBytes);
runtime\Http3\VariableLengthIntegerHelperTests.cs (8)
16ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(); 28ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[] 43ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[] 59ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[] 74ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[] 92ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[] 107ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>( 124ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[]
src\Shared\HttpSys\RequestProcessing\HeaderEncoding.cs (2)
16header = new ReadOnlySpan<byte>(pBytes, byteCount).GetLatin1String(); 20header = new ReadOnlySpan<byte>(pBytes, byteCount).GetAsciiOrUTF8String(Encoding.UTF8);
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
594return Huffman.Decode(new ReadOnlySpan<byte>(_stringOctets, 0, _stringLength), ref dst);
src\Shared\runtime\Http3\QPack\QPackDecoder.cs (1)
637return Huffman.Decode(new ReadOnlySpan<byte>(_stringOctets, 0, _stringLength), ref dst);
src\Shared\ServerInfrastructure\BufferExtensions.cs (1)
188buffer.Write(new ReadOnlySpan<byte>(byteBuffer, position, length));
Microsoft.AspNetCore.SignalR.Client.Core (1)
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.AspNetCore.WebUtilities.Tests (3)
HttpResponseStreamWriterTest.cs (3)
266var span = new ReadOnlySpan<char>(array); 300var span = new ReadOnlySpan<char>(array); 870httpResponseStreamWriter.Write(new ReadOnlySpan<char>(new char[] { 'a', 'b' }));
Microsoft.Build.Framework (1)
NativeMethods.cs (1)
1565return MemoryExtensions.SequenceEqual(new ReadOnlySpan<char>(buffer, len), s.AsSpan());
Microsoft.Cci.Extensions (1)
Extensions\CSharp\CSharpCciExtensions.cs (1)
919ReadOnlySpan<byte> actual = new ReadOnlySpan<byte>(blob.CurrentPointer, blob.Length);
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)
3999return StringTable.AddSharedUtf8(new ReadOnlySpan<byte>(bytes, byteCount));
Microsoft.CodeAnalysis.CodeStyle (8)
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\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\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\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
951TSource[] chunk = new ReadOnlySpan<TSource>(source, index, Math.Min(size, source.Length - index)).ToArray();
Microsoft.CodeAnalysis.Rebuild.UnitTests (2)
RoundTripUtil.cs (2)
119rebuildPdbBytes = new ReadOnlySpan<byte>(rebuildPdbReader.MetadataPointer, rebuildPdbReader.MetadataLength).ToArray().ToImmutableArray(); 145var pdbSpan = new ReadOnlySpan<byte>(originalPdbReader!.MetadataPointer, originalPdbReader.MetadataLength);
Microsoft.CodeAnalysis.UnitTests (1)
StringTableTests.cs (1)
91var ptrResult = StringTable.TextEqualsASCII(str, new ReadOnlySpan<byte>(ptr, ascii.Length));
Microsoft.CodeAnalysis.Workspaces (10)
Serialization\SerializerService_Reference.cs (1)
482writer.WriteSpan(new ReadOnlySpan<byte>(reader.MetadataPointer, reader.MetadataLength));
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\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\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\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
951TSource[] chunk = new ReadOnlySpan<TSource>(source, index, Math.Min(size, source.Length - index)).ToArray();
Storage\SQLite\v2\SQLitePersistentStorage.Accessor.cs (1)
250new ReadOnlySpan<byte>(dataBytes, 0, dataLength));
Microsoft.Extensions.AI (1)
ChatCompletion\ChatCompletion{T}.cs (1)
99var utf8Span = new ReadOnlySpan<byte>(buffer, 0, utf8SpanLength);
Microsoft.Extensions.AI.OpenAI (1)
src\Shared\ServerSentEvents\ArrayBuffer.cs (1)
91public readonly ReadOnlySpan<byte> ActiveReadOnlySpan => new ReadOnlySpan<byte>(_bytes, _activeStart, _availableStart - _activeStart);
Microsoft.Extensions.Caching.Hybrid (4)
Internal\BufferChunk.cs (1)
89internal ReadOnlySpan<byte> AsSpan() => Length == 0 ? default : new(OversizedArray!, Offset, Length);
Internal\HybridCachePayload.cs (2)
191ReadOnlySpan<byte> bytes = new(source.Array!, source.Offset, source.Count); 369value = new(scratch, 0, charCount);
Internal\InbuiltTypeSerializer.cs (1)
60target.Write(new(oversized, 0, length));
Microsoft.Extensions.Caching.Hybrid.Tests (2)
BufferReleaseTests.cs (2)
128cache.BackendCache.Set(key, new ReadOnlySpan<byte>(arr, 0, bytes).ToArray()); 191cache.BackendCache.Set(key, new ReadOnlySpan<byte>(arr, 0, bytes).ToArray());
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\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
90public ReadOnlySpan<byte> ActiveReadOnlySpan => new ReadOnlySpan<byte>(_bytes, _activeStart, _availableStart - _activeStart);
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) :
PresentationCore (2)
System\Windows\Media\PixelFormat.cs (2)
157ReadOnlySpan<byte> pGuidPixelFormat = new(&guidPixelFormat, 15); 158ReadOnlySpan<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);
Shared (1)
ServerSentEvents\ArrayBuffer.cs (1)
91public readonly ReadOnlySpan<byte> ActiveReadOnlySpan => new ReadOnlySpan<byte>(_bytes, _activeStart, _availableStart - _activeStart);
System.Collections.Immutable (5)
System\Collections\Immutable\ImmutableArray_1.Builder.cs (1)
1019new 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 (2)
System\IO\ConsoleStream.cs (1)
26Write(new ReadOnlySpan<byte>(buffer, offset, count));
System\IO\StdInReader.cs (1)
353AppendExtraBuffer(new ReadOnlySpan<byte>(bufPtr, result));
System.Data.Common (1)
System\Data\SQLTypes\SQLBytes.cs (1)
328ReadOnlySpan<byte> span = new ReadOnlySpan<byte>(_rgbBuf, (int)offset, count);
System.Diagnostics.DiagnosticSource (2)
System\Diagnostics\Activity.cs (2)
2090return new ActivitySpanId(Convert.ToHexStringLower(new ReadOnlySpan<byte>(&id, sizeof(ulong)))); 2173_hexString = Convert.ToHexStringLower(new ReadOnlySpan<byte>(&id, sizeof(ulong)));
System.Drawing.Common.Tests (3)
DrawingTest.cs (1)
19new ReadOnlySpan<byte>((void*)data.Scan0, data.Stride * data.Height),
System\Drawing\GraphicsTests.cs (2)
2945ReadOnlySpan<byte> bytes = new((byte*)data.Scan0, data.Stride * data.Height); 2959ReadOnlySpan<byte> bytes = new((byte*)data.Scan0, data.Stride * data.Height);
System.Formats.Asn1 (8)
System\Formats\Asn1\AsnCharacterStringEncodings.cs (8)
89return GetByteCount(new ReadOnlySpan<char>(chars, index, count)); 94return GetByteCount(new ReadOnlySpan<char>(chars, count)); 114new ReadOnlySpan<char>(chars, charIndex, charCount), 122new ReadOnlySpan<char>(chars, charCount), 129return GetCharCount(new ReadOnlySpan<byte>(bytes, index, count)); 134return GetCharCount(new ReadOnlySpan<byte>(bytes, count)); 149new ReadOnlySpan<byte>(bytes, byteIndex, byteCount), 157new ReadOnlySpan<byte>(bytes, byteCount),
System.Formats.Cbor (2)
System\Formats\Cbor\Writer\CborWriter.cs (2)
228return new ReadOnlySpan<byte>(_buffer, 0, _offset); 253new ReadOnlySpan<byte>(_buffer, 0, _offset).CopyTo(newBuffer);
System.IO.Compression (1)
System\IO\Compression\DeflateZLib\DeflateStream.cs (1)
507WriteCore(new ReadOnlySpan<byte>(buffer, offset, count));
System.IO.Compression.Brotli (3)
System\IO\Compression\dec\BrotliStream.Decompress.cs (2)
187OperationStatus lastResult = _decoder.Decompress(new ReadOnlySpan<byte>(_buffer, _bufferOffset, _bufferCount), destination, out int bytesConsumed, out bytesWritten); 230new ReadOnlySpan<byte>(_buffer, _bufferOffset, _bufferCount).CopyTo(_buffer);
System\IO\Compression\enc\BrotliStream.Compress.cs (1)
54WriteCore(new ReadOnlySpan<byte>(buffer, offset, count));
System.IO.Hashing (15)
System\IO\Hashing\Crc32.cs (1)
101return Hash(new ReadOnlySpan<byte>(source));
System\IO\Hashing\Crc64.cs (1)
99return Hash(new ReadOnlySpan<byte>(source));
System\IO\Hashing\NonCryptographicHashAlgorithm.cs (1)
92Append(new ReadOnlySpan<byte>(source));
System\IO\Hashing\XxHash128.cs (2)
63return Hash(new ReadOnlySpan<byte>(source), seed); 193current = HashToHash128(new ReadOnlySpan<byte>(buffer, (int)_state.TotalLength), (long)_state.Seed);
System\IO\Hashing\XxHash3.cs (2)
62return Hash(new ReadOnlySpan<byte>(source), seed); 192current = HashToUInt64(new ReadOnlySpan<byte>(buffer, (int)_state.TotalLength), (long)_state.Seed);
System\IO\Hashing\XxHash32.cs (3)
131remaining = new ReadOnlySpan<byte>(_holdback, 0, remainingLength); 152return Hash(new ReadOnlySpan<byte>(source)); 171return Hash(new ReadOnlySpan<byte>(source), seed);
System\IO\Hashing\XxHash64.cs (3)
131remaining = new ReadOnlySpan<byte>(_holdback, 0, remainingLength); 152return Hash(new ReadOnlySpan<byte>(source)); 171return Hash(new ReadOnlySpan<byte>(source), seed);
System\IO\Hashing\XxHashShared.cs (2)
381new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes)); 382new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));
System.IO.Packaging (1)
System\IO\Packaging\InterleavedZipPackagePartStream.cs (1)
284=> WriteCore(new ReadOnlySpan<byte>(buffer, offset, count));
System.IO.Pipes (2)
System\IO\Pipes\PipeStream.cs (1)
121Write(new ReadOnlySpan<byte>(&value, 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 (7)
src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
90public ReadOnlySpan<byte> ActiveReadOnlySpan => new ReadOnlySpan<byte>(_bytes, _activeStart, _availableStart - _activeStart);
src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HPackDecoder.cs (1)
594return Huffman.Decode(new ReadOnlySpan<byte>(_stringOctets, 0, _stringLength), ref dst);
src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\QPack\QPackDecoder.cs (1)
637return Huffman.Decode(new ReadOnlySpan<byte>(_stringOctets, 0, _stringLength), ref dst);
System\Net\Http\Headers\HttpHeaders.cs (1)
1405return new ReadOnlySpan<HeaderEntry>(GetEntriesArray(), 0, _count);
System\Net\Http\HttpContent.cs (1)
1120Write(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.NameResolution (2)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.IPAddress.cs (1)
72new ReadOnlySpan<byte>(other.Address, addressByteCount));
src\libraries\Common\src\System\Net\InteropIPAddressExtensions.Unix.cs (1)
37new ReadOnlySpan<byte>(nativeIPAddress.Address, Interop.Sys.IPv6AddressBytes),
System.Net.NetworkInformation (3)
System\Net\NetworkInformation\IPAddressUtil.cs (1)
37IPAddress ipAddress = new IPAddress(new ReadOnlySpan<byte>(addressInfo->AddressBytes, addressInfo->NumAddressBytes));
System\Net\NetworkInformation\LinuxNetworkInterface.cs (2)
106lni._physicalAddress = new PhysicalAddress(new ReadOnlySpan<byte>(nii->AddressBytes, nii->NumAddressBytes).ToArray()); 116var address = new IPAddress(new ReadOnlySpan<byte>(ai->AddressBytes, ai->NumAddressBytes));
System.Net.Ping (2)
System\Net\NetworkInformation\Ping.RawSocket.cs (2)
112socket.SetRawSocketOption(0, 11, new ReadOnlySpan<byte>(&opt, sizeof(int))); 117socket.SetRawSocketOption(41, 25, new ReadOnlySpan<byte>(&opt, sizeof(int)));
System.Net.Primitives (4)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.IPAddress.cs (1)
72new ReadOnlySpan<byte>(other.Address, addressByteCount));
src\libraries\Common\src\System\Net\SocketAddress.cs (1)
149hash.AddBytes(new ReadOnlySpan<byte>(_buffer, 0, _size));
System\Net\IPAddress.cs (2)
138this(new ReadOnlySpan<byte>(address ?? ThrowAddressNullException()), scopeid) 180this(new ReadOnlySpan<byte>(address ?? ThrowAddressNullException()))
System.Net.Quic (3)
src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
90public 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)
564new ReadOnlySpan<QUIC_BUFFER>(data.Buffers, (int)data.BufferCount),
System.Net.Requests (1)
System\Net\RequestStream.cs (1)
99_internalStream.Write(new(buffer, offset, count));
System.Net.Security (9)
src\libraries\Common\src\Interop\Unix\System.Net.Security.Native\Interop.GssBuffer.cs (1)
55new ReadOnlySpan<byte>(_data.ToPointer(), checked((int)_length)) :
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (1)
77return new ReadOnlySpan<byte>((void*)protocol, len);
src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
90public ReadOnlySpan<byte> ActiveReadOnlySpan => new ReadOnlySpan<byte>(_bytes, _activeStart, _availableStart - _activeStart);
System\Net\NegotiateAuthenticationPal.ManagedNtlm.cs (2)
311ReadOnlySpan<byte> span = new ReadOnlySpan<byte>(&field, sizeof(MessageField)); 317ReadOnlySpan<byte> span = new ReadOnlySpan<byte>(&field, sizeof(MessageField));
System\Net\Security\SslStream.cs (1)
809public override void WriteByte(byte value) => Write(new ReadOnlySpan<byte>(ref value));
System\Net\Security\SslStream.IO.cs (3)
597SendAuthResetSignal(new ReadOnlySpan<byte>(alertToken.Payload), ExceptionDispatchInfo.Capture(new AuthenticationException(SR.net_ssl_io_cert_custom_validation, null))); 602SendAuthResetSignal(new ReadOnlySpan<byte>(alertToken.Payload), ExceptionDispatchInfo.Capture(new AuthenticationException(SR.Format(SR.net_ssl_io_cert_chain_validation, chainStatus), null))); 607SendAuthResetSignal(new ReadOnlySpan<byte>(alertToken.Payload), ExceptionDispatchInfo.Capture(new AuthenticationException(SR.Format(SR.net_ssl_io_cert_validation, sslPolicyErrors), null)));
System.Net.ServerSentEvents (1)
src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
90public ReadOnlySpan<byte> ActiveReadOnlySpan => new ReadOnlySpan<byte>(_bytes, _activeStart, _availableStart - _activeStart);
System.Net.Sockets (6)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.IPAddress.cs (1)
72new ReadOnlySpan<byte>(other.Address, addressByteCount));
src\libraries\Common\src\System\Net\InteropIPAddressExtensions.Unix.cs (1)
37new ReadOnlySpan<byte>(nativeIPAddress.Address, Interop.Sys.IPv6AddressBytes),
System\Net\Sockets\NetworkStream.cs (1)
347Write(new ReadOnlySpan<byte>(&value, 1));
System\Net\Sockets\SocketAsyncContext.Unix.cs (1)
431return SocketPal.TryCompleteSendTo(context._socket, new ReadOnlySpan<byte>(BufferPtr, bufferLength), null, ref bufferIndex, ref Offset, ref Count, Flags, SocketAddress.Span, ref BytesTransferred, out ErrorCode);
System\Net\Sockets\SocketAsyncEngine.Unix.cs (1)
369foreach (var socketEvent in new ReadOnlySpan<Interop.Sys.SocketEvent>(Buffer, numEvents))
System\Net\Sockets\SocketAsyncEventArgs.Unix.cs (1)
347new ReadOnlySpan<byte>(_acceptBuffer, 0, _acceptAddressBufferCount).CopyTo(remoteSocketAddress.Buffer.Span);
System.Net.WebClient (1)
src\libraries\Common\src\System\IO\ChunkedMemoryStream.cs (1)
38Write(new ReadOnlySpan<byte>(buffer, offset, count));
System.Net.WebSockets (1)
System\Net\WebSockets\Compression\WebSocketDeflater.cs (1)
76return new ReadOnlySpan<byte>(_buffer, 0, position);
System.Private.CoreLib (98)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.ReadDir.cs (3)
44? new ReadOnlySpan<byte>(Name, new ReadOnlySpan<byte>(Name, NameBufferSize).IndexOf<byte>(0)) 45: new ReadOnlySpan<byte>(Name, NameLength);
src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
64return GetAndTrimString(new ReadOnlySpan<char>((char*)nativeMsgPtr, length));
src\libraries\Common\src\System\Number.Formatting.Common.cs (1)
954vlb.Append(new ReadOnlySpan<TChar>(p, (int)(digits + MaxUInt32DecDigits - p)));
src\libraries\System.Private.CoreLib\src\Internal\Runtime\InteropServices\ComponentActivator.cs (2)
196ReadOnlySpan<byte> assemblySpan = new ReadOnlySpan<byte>(assembly, (int)assemblyByteLength); 200symbolsSpan = new ReadOnlySpan<byte>(symbols, (int)symbolsByteLength);
src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (1)
804var src = new ReadOnlySpan<byte>(value, startIndex, length);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\CollectionExtensions.cs (1)
172new ReadOnlySpan<T>(list._items, 0, list._size).CopyTo(destination);
src\libraries\System.Private.CoreLib\src\System\Convert.cs (9)
2317return ToBase64String(new ReadOnlySpan<byte>(inArray), Base64FormattingOptions.None); 2324return ToBase64String(new ReadOnlySpan<byte>(inArray), options); 2340return ToBase64String(new ReadOnlySpan<byte>(inArray, offset, length), options); 2414ToBase64CharsLargeNoLineBreaks(new ReadOnlySpan<byte>(inArray, offsetIn, length), outArray.AsSpan(offsetOut), charLengthRequired); 2852if (!TryFromBase64Chars(new ReadOnlySpan<char>(inputPtr, inputLength), decodedBytes, out int _)) 3047return ToHexString(new ReadOnlySpan<byte>(inArray)); 3070return ToHexString(new ReadOnlySpan<byte>(inArray, offset, length)); 3124return ToHexStringLower(new ReadOnlySpan<byte>(inArray)); 3147return ToHexStringLower(new ReadOnlySpan<byte>(inArray, offset, length));
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeEventDispatcher.cs (1)
182ReadOnlySpan<byte> payload = new ReadOnlySpan<byte>((void*)instanceData.Payload, (int)instanceData.PayloadLength);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeEventProvider.cs (1)
31id = BitConverter.ToUInt64(new ReadOnlySpan<byte>(additionalData, sizeof(ulong)));
src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
240return new ReadOnlySpan<string>(names).ToArray();
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (1)
317span = new ReadOnlySpan<char>(buffer, ICU_ULOC_KEYWORD_AND_VALUES_CAPACITY);
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (1)
192outputBuffer.Append(new ReadOnlySpan<TChar>(p, (int)(buffer + 16 - p)));
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\libraries\System.Private.CoreLib\src\System\Guid.cs (2)
58this(new ReadOnlySpan<byte>(b ?? throw new ArgumentNullException(nameof(b)))) 889return new ReadOnlySpan<char>(chArr, 0, newLength);
src\libraries\System.Private.CoreLib\src\System\IO\BinaryReader.cs (1)
364byteBuffer = new ReadOnlySpan<byte>(mStream.InternalGetBuffer(), position, numBytes);
src\libraries\System.Private.CoreLib\src\System\IO\BufferedStream.cs (1)
452new ReadOnlySpan<byte>(_buffer, _readPos, readbytes).CopyTo(destination);
src\libraries\System.Private.CoreLib\src\System\IO\File.cs (2)
740WriteAllBytes(path, new ReadOnlySpan<byte>(bytes)); 789AppendAllBytes(path, new ReadOnlySpan<byte>(bytes));
src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (1)
227var span = new ReadOnlySpan<byte>(_buffer, origPos, count);
src\libraries\System.Private.CoreLib\src\System\IO\Strategies\BufferedFileStreamStrategy.cs (2)
211new ReadOnlySpan<byte>(_buffer, _readPos, n).CopyTo(destination); 468WriteSpan(new ReadOnlySpan<byte>(buffer, offset, count), new ArraySegment<byte>(buffer, offset, count));
src\libraries\System.Private.CoreLib\src\System\IO\Strategies\OSFileStreamStrategy.cs (1)
231Write(new ReadOnlySpan<byte>(buffer, offset, count));
src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (2)
323new ReadOnlySpan<byte>(localBuffer, 0, result).CopyTo(localDestination.Span); 791new ReadOnlySpan<byte>(sharedBuffer, 0, numRead).CopyTo(buffer);
src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (5)
464new ReadOnlySpan<byte>(byteBuffer, n, _byteLen - n).CopyTo(byteBuffer); 751charsRead = _decoder.GetChars(new ReadOnlySpan<byte>(_byteBuffer, 0, _byteLen), userBuffer, flush: false); 770charsRead = _decoder.GetChars(new ReadOnlySpan<byte>(_byteBuffer, 0, _byteLen), userBuffer, flush: true); 1151n = _decoder.GetChars(new ReadOnlySpan<byte>(tmpByteBuffer, 0, _byteLen), buffer.Span.Slice(charsRead), flush: false); 1215n = _decoder.GetChars(new ReadOnlySpan<byte>(tmpByteBuffer, 0, _byteLen), buffer.Span.Slice(charsRead), flush: false);
src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (2)
313int count = _encoder.GetBytes(new ReadOnlySpan<char>(_charBuffer, 0, _charPos), byteBuffer, flushEncoder); 992int count = _encoder.GetBytes(new ReadOnlySpan<char>(_charBuffer, 0, _charPos), byteBuffer, flushEncoder);
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStream.cs (1)
607WriteCore(new ReadOnlySpan<byte>(buffer, offset, count));
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (1)
3923new ReadOnlySpan<T>(source).CopyTo(destination);
src\libraries\System.Private.CoreLib\src\System\Random.cs (1)
310return GetItems(new ReadOnlySpan<T>(choices), length);
src\libraries\System.Private.CoreLib\src\System\ReadOnlySpan.cs (2)
203public static implicit operator ReadOnlySpan<T>(T[]? array) => new ReadOnlySpan<T>(array); 209=> new ReadOnlySpan<T>(segment.Array, segment.Offset, segment.Count);
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyNameHelpers.StrongName.cs (1)
47ReadOnlySpan<byte> publicKeyBlob = new ReadOnlySpan<byte>(publicKey);
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
180return BinaryPrimitives.ReadInt32LittleEndian(new ReadOnlySpan<byte>(p, sizeof(int)));
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ArrayMarshaller.cs (1)
92=> new ReadOnlySpan<TUnmanagedElement>(unmanagedValue, numElements);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\PointerArrayMarshaller.cs (1)
93=> new ReadOnlySpan<TUnmanagedElement>(unmanagedValue, numElements);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ReadOnlySpanMarshaller.cs (2)
194return new ReadOnlySpan<T>(_managedValues!); 204return new ReadOnlySpan<TUnmanagedElement>(_unmanagedArray, numElements);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\SpanMarshaller.cs (1)
97=> new ReadOnlySpan<TUnmanagedElement>(unmanaged, numElements);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeBuffer.cs (1)
310WriteSpan(byteOffset, new ReadOnlySpan<T>(array, index, count));
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (1)
124return new ReadOnlySpan<string>(ret).ToArray();
src\libraries\System.Private.CoreLib\src\System\Security\SecureString.cs (1)
32Initialize(new ReadOnlySpan<char>(value, length));
src\libraries\System.Private.CoreLib\src\System\String.cs (1)
280return enc.GetString(new ReadOnlySpan<byte>(pStart, length));
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (5)
726return JoinCore(new ReadOnlySpan<char>(in separator), new ReadOnlySpan<string?>(value)); 751return JoinCore(separator.AsSpan(), new ReadOnlySpan<string?>(value)); 782return JoinCore(separator, new ReadOnlySpan<string?>(value, startIndex, count)); 794return JoinCore(separator.AsSpan(), new ReadOnlySpan<string?>(valuesArray)); 932return JoinCore(separator, new ReadOnlySpan<string?>(valuesArray));
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (6)
576char[] arrChar = new ReadOnlySpan<char>(chars, count).ToArray(); 703char[] arrChar = new ReadOnlySpan<char>(chars, charCount).ToArray(); 722new ReadOnlySpan<byte>(arrByte, 0, byteCount).CopyTo(new Span<byte>(bytes, byteCount)); 778byte[] arrByte = new ReadOnlySpan<byte>(bytes, count).ToArray(); 852byte[] arrByte = new ReadOnlySpan<byte>(bytes, byteCount).ToArray(); 871new ReadOnlySpan<char>(arrChar, 0, charCount).CopyTo(new Span<char>(chars, charCount));
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.Internal.cs (8)
234chars: new ReadOnlySpan<char>(pCharsOriginal, originalCharCount).Slice(charsConsumedSoFar), 263ReadOnlySpan<char> chars = new ReadOnlySpan<char>(pOriginalChars, originalCharCount).Slice(charsConsumedSoFar); 498chars: new ReadOnlySpan<char>(pOriginalChars, originalCharCount).Slice(charsConsumedSoFar), 531ReadOnlySpan<char> chars = new ReadOnlySpan<char>(pOriginalChars, originalCharCount).Slice(charsConsumedSoFar); 828bytes: new ReadOnlySpan<byte>(pBytesOriginal, originalByteCount).Slice(bytesConsumedSoFar), 857ReadOnlySpan<byte> bytes = new ReadOnlySpan<byte>(pOriginalBytes, originalByteCount).Slice(bytesConsumedSoFar); 1094bytes: new ReadOnlySpan<byte>(pOriginalBytes, originalByteCount).Slice(bytesConsumedSoFar), 1133ReadOnlySpan<byte> bytes = new ReadOnlySpan<byte>(pOriginalBytes, originalByteCount).Slice(bytesConsumedSoFar);
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (5)
921new ReadOnlySpan<char>(chunk.m_ChunkChars, chunkStartIndex, chunkCount).CopyTo(destination.Slice(curDestIndex)); 2038ReadOnlySpan<char> chunk = new ReadOnlySpan<char>(sbChunk.m_ChunkChars, 0, chunk_length); 2677new ReadOnlySpan<char>(chunk.m_ChunkChars, 0, copyCount1).CopyTo(newChunk.m_ChunkChars); 2683new ReadOnlySpan<char>(chunk.m_ChunkChars, copyCount1, copyCount2).CopyTo(chunk.m_ChunkChars); 2794new ReadOnlySpan<char>(endChunk.m_ChunkChars, endIndexInChunk, copyCount).CopyTo(endChunk.m_ChunkChars.AsSpan(copyTargetIndexInChunk));
src\libraries\System.Private.CoreLib\src\System\Text\TranscodingStream.cs (1)
472Write(new ReadOnlySpan<byte>(buffer, offset, count));
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\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\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\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.WaitThread.cs (1)
244int signaledHandleIndex = WaitHandle.WaitAny(new ReadOnlySpan<SafeWaitHandle>(_waitHandles, 0, numUserWaits + 1), timeoutDurationMs);
src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandle.cs (1)
294return WaitMultiple(new ReadOnlySpan<WaitHandle>(waitHandles), waitAll, millisecondsTimeout);
src\System\Reflection\AssemblyName.CoreCLR.cs (1)
80byte[] publicKeyOrToken = new ReadOnlySpan<byte>(pParts->_pPublicKeyOrToken, pParts->_cbPublicKeyOrToken).ToArray();
src\System\Reflection\RuntimeCustomAttributeData.cs (1)
920_blob = new ReadOnlySpan<byte>((void*)attributeBlob.Signature, attributeBlob.Length);
src\System\RuntimeType.CoreCLR.cs (2)
2670return new ReadOnlySpan<Type>(candidates).ToArray(); 4351=> Encoding.UTF8.GetString(new ReadOnlySpan<byte>(m_pStringHeap, m_StringHeapByteLength));
src\System\StubHelpers.cs (3)
186int end = new ReadOnlySpan<byte>((byte*)cstr, length).IndexOf((byte)0); 226sb.ReplaceBufferUtf8Internal(new ReadOnlySpan<byte>(pBytes, nbBytes)); 460int end = new ReadOnlySpan<char>((char*)nativeHome, length).IndexOf('\0');
src\System\Threading\Mutex.CoreCLR.Unix.cs (1)
115new ReadOnlySpan<byte>(systemCallErrors, SystemCallErrorsBufferSize).IndexOf((byte)'\0');
System.Private.DataContractSerialization (3)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (1)
250Write(new ReadOnlySpan<byte>(buffer, offset, count));
System\Xml\XmlStreamNodeWriter.cs (2)
340new ReadOnlySpan<char>(chars, charCount) 345BinaryPrimitives.ReverseEndianness(new ReadOnlySpan<short>(chars, charCount),
System.Private.Uri (9)
System\PercentEncodingHelper.cs (1)
88if (Rune.DecodeFromUtf8(new ReadOnlySpan<byte>(&temp, bytesLeftInBuffer), out Rune rune, out bytesConsumed) == OperationStatus.Done)
System\Uri.cs (8)
3864newHost = string.Concat(newHost, new ReadOnlySpan<char>(pString + start, end - start)); 3874newHost = string.Concat(newHost, new ReadOnlySpan<char>(pString + start, end - start)); 3878DomainNameHelper.IsValid(new ReadOnlySpan<char>(pString + start, end - start), iri: false, StaticNotAny(flags, Flags.ImplicitFile), out int domainNameLength)) 3886if (!new ReadOnlySpan<char>(pString + start, domainNameLength).ContainsAnyInRange('A', 'Z')) 3893DomainNameHelper.IsValid(new ReadOnlySpan<char>(pString + start, end - start), iri: true, StaticNotAny(flags, Flags.ImplicitFile), out domainNameLength)) 3912newHost = string.Concat(newHost, new ReadOnlySpan<char>(pString + start, end - start)); 3984newHost = string.Concat(newHost, new ReadOnlySpan<char>(pString + startPort, idx - startPort)); 4094string temp = UriHelper.StripBidiControlCharacters(new ReadOnlySpan<char>(pString + start, end - start));
System.Private.Windows.Core (1)
Windows\Win32\System\Com\ComManagedStream.cs (1)
237ReadOnlySpan<byte> buffer = new(pv, checked((int)cb));
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)
669WriteBytesUnchecked(new ReadOnlySpan<byte>(buffer, byteCount));
System\Reflection\Metadata\BlobWriter.cs (1)
147WriteBytes(new ReadOnlySpan<byte>(buffer, byteCount));
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (1)
215return 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\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
180return BinaryPrimitives.ReadInt32LittleEndian(new ReadOnlySpan<byte>(p, sizeof(int)));
System.Runtime.Numerics (3)
src\libraries\Common\src\System\Number.Formatting.Common.cs (1)
954vlb.Append(new ReadOnlySpan<TChar>(p, (int)(digits + MaxUInt32DecDigits - p)));
System\Number.BigInteger.cs (1)
863BigIntegerToDecChars((Utf16Char*)ptr + span.Length, new ReadOnlySpan<uint>((void*)state.ptr, state.Length), state.digits);
System\Numerics\BigInteger.cs (1)
272this(new ReadOnlySpan<byte>(value ?? throw new ArgumentNullException(nameof(value))))
System.Security.Cryptography (119)
Microsoft\Win32\SafeHandles\SafePasswordHandle.cs (1)
102return new ReadOnlySpan<char>((char*)handle, Length);
src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanDerivation.cs (2)
145new ReadOnlySpan<byte>(secretAgreement, 0, half + odd), 156new ReadOnlySpan<byte>(secretAgreement, half, half + odd),
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
34new ReadOnlySpan<byte>(passwordBytes),
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (2)
134new ReadOnlySpan<byte>(passwordBytes), 206Decrypt(new ReadOnlySpan<byte>(passwordBytes));
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9LocalKeyId.cs (1)
27: this(new ReadOnlySpan<byte>(keyId))
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (2)
783return VerifyHash(new ReadOnlySpan<byte>(hash), new ReadOnlySpan<byte>(signature), hashAlgorithm, padding);
System\Security\Cryptography\AesGcm.cs (2)
31: this(new ReadOnlySpan<byte>(key ?? throw new ArgumentNullException(nameof(key)))) 92: this(new ReadOnlySpan<byte>(key ?? throw new ArgumentNullException(nameof(key))), tagSizeInBytes)
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\CryptographicOperations.cs (4)
94return HashData(hashAlgorithm, new ReadOnlySpan<byte>(source)); 397return HmacData(hashAlgorithm, new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source)); 545return HmacData(hashAlgorithm, new ReadOnlySpan<byte>(key), source);
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.Unix.cs (1)
106return CryptographicOperations.HashData(hashAlgorithm, new ReadOnlySpan<byte>(data, offset, count));
System\Security\Cryptography\DSAWrapper.cs (1)
160CryptographicOperations.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)
185CryptographicOperations.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\HMACMD5.cs (3)
94return HashData(new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source)); 238return HashData(new ReadOnlySpan<byte>(key), source);
System\Security\Cryptography\HMACSHA1.cs (3)
99return HashData(new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source)); 237return HashData(new ReadOnlySpan<byte>(key), source);
System\Security\Cryptography\HMACSHA256.cs (3)
91return HashData(new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source)); 229return HashData(new ReadOnlySpan<byte>(key), source);
System\Security\Cryptography\HMACSHA3_256.cs (3)
127return HashData(new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source)); 269return HashData(new ReadOnlySpan<byte>(key), source);
System\Security\Cryptography\HMACSHA3_384.cs (3)
127return HashData(new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source)); 269return HashData(new ReadOnlySpan<byte>(key), source);
System\Security\Cryptography\HMACSHA3_512.cs (3)
127return HashData(new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source)); 269return HashData(new ReadOnlySpan<byte>(key), source);
System\Security\Cryptography\HMACSHA384.cs (3)
108return HashData(new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source)); 246return HashData(new ReadOnlySpan<byte>(key), source);
System\Security\Cryptography\HMACSHA512.cs (3)
105return HashData(new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source)); 243return HashData(new ReadOnlySpan<byte>(key), source);
System\Security\Cryptography\IncrementalHash.cs (2)
63AppendData(new ReadOnlySpan<byte>(data)); 97AppendData(new ReadOnlySpan<byte>(data, offset, count));
System\Security\Cryptography\Kmac128.cs (2)
227return HashData(new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source), outputLength, customizationString);
System\Security\Cryptography\Kmac256.cs (2)
227return HashData(new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source), outputLength, customizationString);
System\Security\Cryptography\KmacXof128.cs (2)
227return HashData(new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source), outputLength, customizationString);
System\Security\Cryptography\KmacXof256.cs (2)
227return HashData(new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source), outputLength, customizationString);
System\Security\Cryptography\MD5.cs (1)
57return HashData(new ReadOnlySpan<byte>(source));
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\SHA1.cs (1)
55return HashData(new ReadOnlySpan<byte>(source));
System\Security\Cryptography\SHA256.cs (1)
54return HashData(new ReadOnlySpan<byte>(source));
System\Security\Cryptography\SHA3_256.cs (1)
77return HashData(new ReadOnlySpan<byte>(source));
System\Security\Cryptography\SHA3_384.cs (1)
77return HashData(new ReadOnlySpan<byte>(source));
System\Security\Cryptography\SHA3_512.cs (1)
77return HashData(new ReadOnlySpan<byte>(source));
System\Security\Cryptography\SHA384.cs (1)
54return HashData(new ReadOnlySpan<byte>(source));
System\Security\Cryptography\SHA512.cs (1)
54return HashData(new ReadOnlySpan<byte>(source));
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\SP800108HmacCounterKdfImplementationOpenSsl.cs (2)
60DeriveBytes(new ReadOnlySpan<byte>(label), new ReadOnlySpan<byte>(context), destination);
System\Security\Cryptography\SymmetricAlgorithm.cs (10)
449return DecryptEcb(new ReadOnlySpan<byte>(ciphertext), paddingMode); 567return EncryptEcb(new ReadOnlySpan<byte>(plaintext), paddingMode); 690return DecryptCbc(new ReadOnlySpan<byte>(ciphertext), new ReadOnlySpan<byte>(iv), paddingMode); 845return EncryptCbc(new ReadOnlySpan<byte>(plaintext), new ReadOnlySpan<byte>(iv), paddingMode); 1018new ReadOnlySpan<byte>(ciphertext), 1019new ReadOnlySpan<byte>(iv), 1259new ReadOnlySpan<byte>(plaintext), 1260new ReadOnlySpan<byte>(iv),
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (2)
582return Create(issuerCertificate, notBefore, notAfter, new ReadOnlySpan<byte>(serialNumber)); 771return 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\OpenSslX509Encoder.cs (1)
160rsa.ImportRSAPublicKey(new ReadOnlySpan<byte>(encodedData), out _);
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)
60: this(new ReadOnlySpan<byte>(data))
System\Security\Cryptography\X509Certificates\X509CertificateLoader.netcore.cs (1)
15return LoadCertificate(new ReadOnlySpan<byte>(data));
System\Security\Cryptography\X509Certificates\X509CertificateLoader.Unix.cs (2)
187return new ReadOnlySpan<SafeBagAsn>(_certBags, 0, _certCount); 192return new ReadOnlySpan<SafeBagAsn>(_keyBags, 0, _keyCount);
System.Security.Cryptography.Pkcs (8)
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
34new ReadOnlySpan<byte>(passwordBytes),
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (2)
134new ReadOnlySpan<byte>(passwordBytes), 206Decrypt(new ReadOnlySpan<byte>(passwordBytes));
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)
157var signature = new ReadOnlySpan<byte>(rented, 0, bytesWritten);
System\Security\Cryptography\Pkcs\CmsSignature.ECDsa.cs (1)
171var signedHash = new ReadOnlySpan<byte>(rented, 0, bytesWritten);
System\Security\Cryptography\Pkcs\EnvelopedCms.cs (1)
142Decode(new ReadOnlySpan<byte>(encodedMessage));
System\Security\Cryptography\Pkcs\SignedCms.cs (1)
166Decode(new ReadOnlySpan<byte>(encodedMessage));
System.Security.Cryptography.ProtectedData (2)
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\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
64return 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)
81return GetIndexOfFirstCharToEncode(new ReadOnlySpan<char>(text, textLength)); // performs bounds checking
System.Text.Json (1)
src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
90public ReadOnlySpan<byte> ActiveReadOnlySpan => new ReadOnlySpan<byte>(_bytes, _activeStart, _availableStart - _activeStart);
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.Windows.Forms (6)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
1544new 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)
1033attr.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)
274ReadOnlySpan<ARGB> colors = new((ARGB*)data.Scan0, width * height); 1585attributes.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));
System.Windows.Forms.Primitives.Tests (2)
Interop\ComCtl32\LVITEMWTests.cs (2)
65ReadOnlySpan<char> sText = new(lvi.pszText, lvi.cchTextMax); 87ReadOnlySpan<char> sText = new(lvi.pszText, lvi.cchTextMax);
System.Windows.Forms.Primitives.TestUtilities (5)
Metafiles\EmfRecord.cs (1)
33public ReadOnlySpan<HGDIOBJ> Handles => new(_lpht, _nHandles);
Metafiles\RecordTypes\EMRPOLY16.cs (1)
37return new(p, checked((int)cpts));
Metafiles\RecordTypes\EMRPOLYPOLY16.cs (2)
62return new(c, checked((int)nPolys)); 83return new ReadOnlySpan<POINTS>(currentPoint, (int)counts[current]);
Metafiles\RecordTypes\EMRTEXT.cs (1)
28return new ReadOnlySpan<char>(b, (int)nChars);
System.Windows.Forms.UI.IntegrationTests (2)
Infra\ScreenRecordService.cs (2)
274previousImageData = new ReadOnlySpan<uint>((void*)lockedBitmaps[previousFrameBufferIndex].data.Scan0, totalLockedPixels); 275currentImageData = new ReadOnlySpan<uint>((void*)lockedBitmaps[currentFrameBufferIndex].data.Scan0, totalLockedPixels);
12468 references to ReadOnlySpan
Aspire.Dashboard (14)
ConsoleLogs\AnsiParser.cs (7)
27var span = text.AsSpan(); 77var span = text.AsSpan(); 268private static bool IsControlSequence(ReadOnlySpan<char> span, ref int position, out char finalByte, out int[] parameters) 332private static bool IsConEmuSequence(ReadOnlySpan<char> span, ref int position) 377private static bool IsLinkControlSequence(ReadOnlySpan<char> span, ref int position, out string? url) 425var urlSpan = span[4..urlEndEscapePosition]; 847private static int SubIndexOfSpan(ReadOnlySpan<char> span, char value, int startIndex = 0)
Extensions\StringExtensions.cs (1)
44var s = name.AsSpan().Trim();
Otlp\Model\OtlpHelpers.cs (1)
77var data = bytes.Span;
Otlp\Model\OtlpUnits.cs (2)
104public static string MapUnit(ReadOnlySpan<char> unit) 153public static string MapPerUnit(ReadOnlySpan<char> perUnit)
Otlp\Storage\TelemetryRepository.cs (1)
1009var s = traceId.Span;
src\Shared\ConsoleLogs\TimestampParser.cs (2)
19var span = text.AsSpan(); 21ReadOnlySpan<char> content;
Aspire.Hosting (9)
Dcp\DcpHost.cs (6)
266(ILogger, LogLevel, string message) GetLogInfo(ReadOnlySpan<byte> line) 273var date = line[..tab]; 276var level = line[..tab]; 279var category = line[..tab]; 281var message = line; 325while (seq.TryReadTo(out ReadOnlySpan<byte> line, (byte)'\n'))
src\Shared\ConsoleLogs\TimestampParser.cs (2)
19var span = text.AsSpan(); 21ReadOnlySpan<char> content;
Utils\VolumeNameGenerator.cs (1)
42var nameSpan = name.AsSpan();
Aspire.Hosting.Azure.AppContainers (1)
AzureContainerAppsInfrastructure.cs (1)
902var span = format.AsSpan();
BuildActionTelemetryTable (4)
src\Compilers\Core\Portable\InternalUtilities\Hash.cs (4)
223internal static int GetFNVHashCode(ReadOnlySpan<byte> data, out bool isAscii) 266internal static int GetFNVHashCode(ReadOnlySpan<char> data) 291internal static int GetCaseInsensitiveFNVHashCode(ReadOnlySpan<char> data) 426internal static int CombineFNVHash(int hashCode, ReadOnlySpan<char> data)
CodeGenerator (2)
src\Shared\runtime\Http2\Hpack\HeaderField.cs (2)
14public HeaderField(int? staticTableIndex, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
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);
http2cat (67)
src\Shared\Http2cat\Http2Utilities.cs (7)
31public static ReadOnlySpan<byte> ClientPreface => "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n"u8; 146void IHttpStreamHeadersHandler.OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 396public Task SendAsync(ReadOnlySpan<byte> span) 981public void OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value) 986public void OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\Shared\runtime\Http2\Hpack\DynamicTable.cs (4)
51public void Insert(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 56public void Insert(int? staticTableIndex, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\Shared\runtime\Http2\Hpack\HeaderField.cs (2)
14public HeaderField(int? staticTableIndex, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (18)
131public void Decode(ReadOnlySpan<byte> data, bool endHeaders, IHttpStreamHeadersHandler handler) 137private void DecodeInternal(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler) 193ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length); 199private void ParseDynamicTableSizeUpdate(ReadOnlySpan<byte> data, ref int currentIndex) 208private void ParseHeaderValueLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 238private void ParseHeaderNameLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 251private void ParseHeaderValueLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 263private void ParseHeaderFieldIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 271private void ParseHeaderNameIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 280private void ParseHeaderNameLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 306private void Parse(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 390private void ParseLiteralHeaderField(ReadOnlySpan<byte> data, ref int currentIndex, byte b, byte mask, byte indexPrefix, bool index, IHttpStreamHeadersHandler handler) 417private void ParseHeaderName(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 455private void ParseHeaderValue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 499private void ProcessHeaderValue(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler) 501ReadOnlySpan<byte> headerValueSpan = _headerValueRange == null 516ReadOnlySpan<byte> headerNameSpan = _headerNameRange == null 633private bool TryDecodeInteger(ReadOnlySpan<byte> data, ref int currentIndex, out int result)
src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (4)
63var statusBytes = StatusCodes.ToStatusBytes(statusCode); 288public static bool EncodeLiteralHeaderFieldWithoutIndexingNewName(string name, ReadOnlySpan<string> values, byte[] separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten) 410public static bool EncodeStringLiteral(ReadOnlySpan<byte> value, Span<byte> destination, out int bytesWritten) 513public static bool EncodeStringLiterals(ReadOnlySpan<string> values, byte[]? separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten)
src\Shared\runtime\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\Shared\runtime\Http2\Hpack\StatusCodes.cs (1)
11public static ReadOnlySpan<byte> ToStatusBytes(int statusCode)
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\Shared\ServerInfrastructure\BufferExtensions.cs (2)
22public static ReadOnlySpan<byte> ToSpan(in this ReadOnlySequence<byte> buffer) 215var source = data.AsSpan();
src\Shared\ServerInfrastructure\BufferWriter.cs (2)
91public void Write(ReadOnlySpan<byte> source) 136private void WriteMultiBuffer(ReadOnlySpan<byte> source)
src\Shared\ServerInfrastructure\Http2\Bitshifter.cs (2)
16public static uint ReadUInt24BigEndian(ReadOnlySpan<byte> source) 32public static uint ReadUInt31BigEndian(ReadOnlySpan<byte> source)
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\Shared\ServerInfrastructure\HttpCharacters.cs (6)
41public static bool ContainsInvalidAuthorityChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedAuthorityBytes) >= 0; 43public static int IndexOfInvalidHostChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedHostChars); 45public static int IndexOfInvalidTokenChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedTokenChars); 47public static int IndexOfInvalidTokenChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedTokenBytes); 51public static int IndexOfInvalidFieldValueChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedFieldChars); 54public static int IndexOfInvalidFieldValueCharExtended(ReadOnlySpan<char> span) => span.IndexOfAny(_invalidFieldChars);
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;
IIS.FunctionalTests (67)
src\Shared\Http2cat\Http2Utilities.cs (7)
31public static ReadOnlySpan<byte> ClientPreface => "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n"u8; 146void IHttpStreamHeadersHandler.OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 396public Task SendAsync(ReadOnlySpan<byte> span) 981public void OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value) 986public void OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\Shared\runtime\Http2\Hpack\DynamicTable.cs (4)
51public void Insert(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 56public void Insert(int? staticTableIndex, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\Shared\runtime\Http2\Hpack\HeaderField.cs (2)
14public HeaderField(int? staticTableIndex, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (18)
131public void Decode(ReadOnlySpan<byte> data, bool endHeaders, IHttpStreamHeadersHandler handler) 137private void DecodeInternal(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler) 193ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length); 199private void ParseDynamicTableSizeUpdate(ReadOnlySpan<byte> data, ref int currentIndex) 208private void ParseHeaderValueLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 238private void ParseHeaderNameLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 251private void ParseHeaderValueLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 263private void ParseHeaderFieldIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 271private void ParseHeaderNameIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 280private void ParseHeaderNameLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 306private void Parse(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 390private void ParseLiteralHeaderField(ReadOnlySpan<byte> data, ref int currentIndex, byte b, byte mask, byte indexPrefix, bool index, IHttpStreamHeadersHandler handler) 417private void ParseHeaderName(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 455private void ParseHeaderValue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 499private void ProcessHeaderValue(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler) 501ReadOnlySpan<byte> headerValueSpan = _headerValueRange == null 516ReadOnlySpan<byte> headerNameSpan = _headerNameRange == null 633private bool TryDecodeInteger(ReadOnlySpan<byte> data, ref int currentIndex, out int result)
src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (4)
63var statusBytes = StatusCodes.ToStatusBytes(statusCode); 288public static bool EncodeLiteralHeaderFieldWithoutIndexingNewName(string name, ReadOnlySpan<string> values, byte[] separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten) 410public static bool EncodeStringLiteral(ReadOnlySpan<byte> value, Span<byte> destination, out int bytesWritten) 513public static bool EncodeStringLiterals(ReadOnlySpan<string> values, byte[]? separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten)
src\Shared\runtime\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\Shared\runtime\Http2\Hpack\StatusCodes.cs (1)
11public static ReadOnlySpan<byte> ToStatusBytes(int statusCode)
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\Shared\ServerInfrastructure\BufferExtensions.cs (2)
22public static ReadOnlySpan<byte> ToSpan(in this ReadOnlySequence<byte> buffer) 215var source = data.AsSpan();
src\Shared\ServerInfrastructure\BufferWriter.cs (2)
91public void Write(ReadOnlySpan<byte> source) 136private void WriteMultiBuffer(ReadOnlySpan<byte> source)
src\Shared\ServerInfrastructure\Http2\Bitshifter.cs (2)
16public static uint ReadUInt24BigEndian(ReadOnlySpan<byte> source) 32public static uint ReadUInt31BigEndian(ReadOnlySpan<byte> source)
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\Shared\ServerInfrastructure\HttpCharacters.cs (6)
41public static bool ContainsInvalidAuthorityChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedAuthorityBytes) >= 0; 43public static int IndexOfInvalidHostChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedHostChars); 45public static int IndexOfInvalidTokenChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedTokenChars); 47public static int IndexOfInvalidTokenChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedTokenBytes); 51public static int IndexOfInvalidFieldValueChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedFieldChars); 54public static int IndexOfInvalidFieldValueCharExtended(ReadOnlySpan<char> span) => span.IndexOfAny(_invalidFieldChars);
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;
IIS.LongTests (67)
src\Shared\Http2cat\Http2Utilities.cs (7)
31public static ReadOnlySpan<byte> ClientPreface => "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n"u8; 146void IHttpStreamHeadersHandler.OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 396public Task SendAsync(ReadOnlySpan<byte> span) 981public void OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value) 986public void OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\Shared\runtime\Http2\Hpack\DynamicTable.cs (4)
51public void Insert(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 56public void Insert(int? staticTableIndex, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\Shared\runtime\Http2\Hpack\HeaderField.cs (2)
14public HeaderField(int? staticTableIndex, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (18)
131public void Decode(ReadOnlySpan<byte> data, bool endHeaders, IHttpStreamHeadersHandler handler) 137private void DecodeInternal(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler) 193ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length); 199private void ParseDynamicTableSizeUpdate(ReadOnlySpan<byte> data, ref int currentIndex) 208private void ParseHeaderValueLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 238private void ParseHeaderNameLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 251private void ParseHeaderValueLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 263private void ParseHeaderFieldIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 271private void ParseHeaderNameIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 280private void ParseHeaderNameLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 306private void Parse(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 390private void ParseLiteralHeaderField(ReadOnlySpan<byte> data, ref int currentIndex, byte b, byte mask, byte indexPrefix, bool index, IHttpStreamHeadersHandler handler) 417private void ParseHeaderName(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 455private void ParseHeaderValue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 499private void ProcessHeaderValue(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler) 501ReadOnlySpan<byte> headerValueSpan = _headerValueRange == null 516ReadOnlySpan<byte> headerNameSpan = _headerNameRange == null 633private bool TryDecodeInteger(ReadOnlySpan<byte> data, ref int currentIndex, out int result)
src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (4)
63var statusBytes = StatusCodes.ToStatusBytes(statusCode); 288public static bool EncodeLiteralHeaderFieldWithoutIndexingNewName(string name, ReadOnlySpan<string> values, byte[] separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten) 410public static bool EncodeStringLiteral(ReadOnlySpan<byte> value, Span<byte> destination, out int bytesWritten) 513public static bool EncodeStringLiterals(ReadOnlySpan<string> values, byte[]? separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten)
src\Shared\runtime\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\Shared\runtime\Http2\Hpack\StatusCodes.cs (1)
11public static ReadOnlySpan<byte> ToStatusBytes(int statusCode)
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\Shared\ServerInfrastructure\BufferExtensions.cs (2)
22public static ReadOnlySpan<byte> ToSpan(in this ReadOnlySequence<byte> buffer) 215var source = data.AsSpan();
src\Shared\ServerInfrastructure\BufferWriter.cs (2)
91public void Write(ReadOnlySpan<byte> source) 136private void WriteMultiBuffer(ReadOnlySpan<byte> source)
src\Shared\ServerInfrastructure\Http2\Bitshifter.cs (2)
16public static uint ReadUInt24BigEndian(ReadOnlySpan<byte> source) 32public static uint ReadUInt31BigEndian(ReadOnlySpan<byte> source)
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\Shared\ServerInfrastructure\HttpCharacters.cs (6)
41public static bool ContainsInvalidAuthorityChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedAuthorityBytes) >= 0; 43public static int IndexOfInvalidHostChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedHostChars); 45public static int IndexOfInvalidTokenChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedTokenChars); 47public static int IndexOfInvalidTokenChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedTokenBytes); 51public static int IndexOfInvalidFieldValueChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedFieldChars); 54public static int IndexOfInvalidFieldValueCharExtended(ReadOnlySpan<char> span) => span.IndexOfAny(_invalidFieldChars);
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;
IIS.NewHandler.FunctionalTests (67)
src\Shared\Http2cat\Http2Utilities.cs (7)
31public static ReadOnlySpan<byte> ClientPreface => "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n"u8; 146void IHttpStreamHeadersHandler.OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 396public Task SendAsync(ReadOnlySpan<byte> span) 981public void OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value) 986public void OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\Shared\runtime\Http2\Hpack\DynamicTable.cs (4)
51public void Insert(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 56public void Insert(int? staticTableIndex, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\Shared\runtime\Http2\Hpack\HeaderField.cs (2)
14public HeaderField(int? staticTableIndex, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (18)
131public void Decode(ReadOnlySpan<byte> data, bool endHeaders, IHttpStreamHeadersHandler handler) 137private void DecodeInternal(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler) 193ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length); 199private void ParseDynamicTableSizeUpdate(ReadOnlySpan<byte> data, ref int currentIndex) 208private void ParseHeaderValueLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 238private void ParseHeaderNameLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 251private void ParseHeaderValueLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 263private void ParseHeaderFieldIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 271private void ParseHeaderNameIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 280private void ParseHeaderNameLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 306private void Parse(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 390private void ParseLiteralHeaderField(ReadOnlySpan<byte> data, ref int currentIndex, byte b, byte mask, byte indexPrefix, bool index, IHttpStreamHeadersHandler handler) 417private void ParseHeaderName(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 455private void ParseHeaderValue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 499private void ProcessHeaderValue(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler) 501ReadOnlySpan<byte> headerValueSpan = _headerValueRange == null 516ReadOnlySpan<byte> headerNameSpan = _headerNameRange == null 633private bool TryDecodeInteger(ReadOnlySpan<byte> data, ref int currentIndex, out int result)
src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (4)
63var statusBytes = StatusCodes.ToStatusBytes(statusCode); 288public static bool EncodeLiteralHeaderFieldWithoutIndexingNewName(string name, ReadOnlySpan<string> values, byte[] separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten) 410public static bool EncodeStringLiteral(ReadOnlySpan<byte> value, Span<byte> destination, out int bytesWritten) 513public static bool EncodeStringLiterals(ReadOnlySpan<string> values, byte[]? separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten)
src\Shared\runtime\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\Shared\runtime\Http2\Hpack\StatusCodes.cs (1)
11public static ReadOnlySpan<byte> ToStatusBytes(int statusCode)
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\Shared\ServerInfrastructure\BufferExtensions.cs (2)
22public static ReadOnlySpan<byte> ToSpan(in this ReadOnlySequence<byte> buffer) 215var source = data.AsSpan();
src\Shared\ServerInfrastructure\BufferWriter.cs (2)
91public void Write(ReadOnlySpan<byte> source) 136private void WriteMultiBuffer(ReadOnlySpan<byte> source)
src\Shared\ServerInfrastructure\Http2\Bitshifter.cs (2)
16public static uint ReadUInt24BigEndian(ReadOnlySpan<byte> source) 32public static uint ReadUInt31BigEndian(ReadOnlySpan<byte> source)
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\Shared\ServerInfrastructure\HttpCharacters.cs (6)
41public static bool ContainsInvalidAuthorityChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedAuthorityBytes) >= 0; 43public static int IndexOfInvalidHostChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedHostChars); 45public static int IndexOfInvalidTokenChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedTokenChars); 47public static int IndexOfInvalidTokenChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedTokenBytes); 51public static int IndexOfInvalidFieldValueChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedFieldChars); 54public static int IndexOfInvalidFieldValueCharExtended(ReadOnlySpan<char> span) => span.IndexOfAny(_invalidFieldChars);
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;
IIS.NewShim.FunctionalTests (67)
src\Shared\Http2cat\Http2Utilities.cs (7)
31public static ReadOnlySpan<byte> ClientPreface => "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n"u8; 146void IHttpStreamHeadersHandler.OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 396public Task SendAsync(ReadOnlySpan<byte> span) 981public void OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value) 986public void OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\Shared\runtime\Http2\Hpack\DynamicTable.cs (4)
51public void Insert(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 56public void Insert(int? staticTableIndex, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\Shared\runtime\Http2\Hpack\HeaderField.cs (2)
14public HeaderField(int? staticTableIndex, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (18)
131public void Decode(ReadOnlySpan<byte> data, bool endHeaders, IHttpStreamHeadersHandler handler) 137private void DecodeInternal(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler) 193ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length); 199private void ParseDynamicTableSizeUpdate(ReadOnlySpan<byte> data, ref int currentIndex) 208private void ParseHeaderValueLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 238private void ParseHeaderNameLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 251private void ParseHeaderValueLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 263private void ParseHeaderFieldIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 271private void ParseHeaderNameIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 280private void ParseHeaderNameLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 306private void Parse(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 390private void ParseLiteralHeaderField(ReadOnlySpan<byte> data, ref int currentIndex, byte b, byte mask, byte indexPrefix, bool index, IHttpStreamHeadersHandler handler) 417private void ParseHeaderName(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 455private void ParseHeaderValue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 499private void ProcessHeaderValue(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler) 501ReadOnlySpan<byte> headerValueSpan = _headerValueRange == null 516ReadOnlySpan<byte> headerNameSpan = _headerNameRange == null 633private bool TryDecodeInteger(ReadOnlySpan<byte> data, ref int currentIndex, out int result)
src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (4)
63var statusBytes = StatusCodes.ToStatusBytes(statusCode); 288public static bool EncodeLiteralHeaderFieldWithoutIndexingNewName(string name, ReadOnlySpan<string> values, byte[] separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten) 410public static bool EncodeStringLiteral(ReadOnlySpan<byte> value, Span<byte> destination, out int bytesWritten) 513public static bool EncodeStringLiterals(ReadOnlySpan<string> values, byte[]? separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten)
src\Shared\runtime\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\Shared\runtime\Http2\Hpack\StatusCodes.cs (1)
11public static ReadOnlySpan<byte> ToStatusBytes(int statusCode)
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\Shared\ServerInfrastructure\BufferExtensions.cs (2)
22public static ReadOnlySpan<byte> ToSpan(in this ReadOnlySequence<byte> buffer) 215var source = data.AsSpan();
src\Shared\ServerInfrastructure\BufferWriter.cs (2)
91public void Write(ReadOnlySpan<byte> source) 136private void WriteMultiBuffer(ReadOnlySpan<byte> source)
src\Shared\ServerInfrastructure\Http2\Bitshifter.cs (2)
16public static uint ReadUInt24BigEndian(ReadOnlySpan<byte> source) 32public static uint ReadUInt31BigEndian(ReadOnlySpan<byte> source)
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\Shared\ServerInfrastructure\HttpCharacters.cs (6)
41public static bool ContainsInvalidAuthorityChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedAuthorityBytes) >= 0; 43public static int IndexOfInvalidHostChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedHostChars); 45public static int IndexOfInvalidTokenChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedTokenChars); 47public static int IndexOfInvalidTokenChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedTokenBytes); 51public static int IndexOfInvalidFieldValueChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedFieldChars); 54public static int IndexOfInvalidFieldValueCharExtended(ReadOnlySpan<char> span) => span.IndexOfAny(_invalidFieldChars);
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;
IIS.ShadowCopy.Tests (21)
src\Shared\ServerInfrastructure\BufferExtensions.cs (2)
22public static ReadOnlySpan<byte> ToSpan(in this ReadOnlySequence<byte> buffer) 215var source = data.AsSpan();
src\Shared\ServerInfrastructure\BufferWriter.cs (2)
91public void Write(ReadOnlySpan<byte> source) 136private void WriteMultiBuffer(ReadOnlySpan<byte> source)
src\Shared\ServerInfrastructure\Http2\Bitshifter.cs (2)
16public static uint ReadUInt24BigEndian(ReadOnlySpan<byte> source) 32public static uint ReadUInt31BigEndian(ReadOnlySpan<byte> source)
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\Shared\ServerInfrastructure\HttpCharacters.cs (6)
41public static bool ContainsInvalidAuthorityChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedAuthorityBytes) >= 0; 43public static int IndexOfInvalidHostChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedHostChars); 45public static int IndexOfInvalidTokenChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedTokenChars); 47public static int IndexOfInvalidTokenChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedTokenBytes); 51public static int IndexOfInvalidFieldValueChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedFieldChars); 54public static int IndexOfInvalidFieldValueCharExtended(ReadOnlySpan<char> span) => span.IndexOfAny(_invalidFieldChars);
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;
IISExpress.FunctionalTests (67)
src\Shared\Http2cat\Http2Utilities.cs (7)
31public static ReadOnlySpan<byte> ClientPreface => "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n"u8; 146void IHttpStreamHeadersHandler.OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 396public Task SendAsync(ReadOnlySpan<byte> span) 981public void OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value) 986public void OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\Shared\runtime\Http2\Hpack\DynamicTable.cs (4)
51public void Insert(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 56public void Insert(int? staticTableIndex, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\Shared\runtime\Http2\Hpack\HeaderField.cs (2)
14public HeaderField(int? staticTableIndex, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (18)
131public void Decode(ReadOnlySpan<byte> data, bool endHeaders, IHttpStreamHeadersHandler handler) 137private void DecodeInternal(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler) 193ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length); 199private void ParseDynamicTableSizeUpdate(ReadOnlySpan<byte> data, ref int currentIndex) 208private void ParseHeaderValueLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 238private void ParseHeaderNameLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 251private void ParseHeaderValueLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 263private void ParseHeaderFieldIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 271private void ParseHeaderNameIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 280private void ParseHeaderNameLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 306private void Parse(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 390private void ParseLiteralHeaderField(ReadOnlySpan<byte> data, ref int currentIndex, byte b, byte mask, byte indexPrefix, bool index, IHttpStreamHeadersHandler handler) 417private void ParseHeaderName(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 455private void ParseHeaderValue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 499private void ProcessHeaderValue(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler) 501ReadOnlySpan<byte> headerValueSpan = _headerValueRange == null 516ReadOnlySpan<byte> headerNameSpan = _headerNameRange == null 633private bool TryDecodeInteger(ReadOnlySpan<byte> data, ref int currentIndex, out int result)
src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (4)
63var statusBytes = StatusCodes.ToStatusBytes(statusCode); 288public static bool EncodeLiteralHeaderFieldWithoutIndexingNewName(string name, ReadOnlySpan<string> values, byte[] separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten) 410public static bool EncodeStringLiteral(ReadOnlySpan<byte> value, Span<byte> destination, out int bytesWritten) 513public static bool EncodeStringLiterals(ReadOnlySpan<string> values, byte[]? separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten)
src\Shared\runtime\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\Shared\runtime\Http2\Hpack\StatusCodes.cs (1)
11public static ReadOnlySpan<byte> ToStatusBytes(int statusCode)
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\Shared\ServerInfrastructure\BufferExtensions.cs (2)
22public static ReadOnlySpan<byte> ToSpan(in this ReadOnlySequence<byte> buffer) 215var source = data.AsSpan();
src\Shared\ServerInfrastructure\BufferWriter.cs (2)
91public void Write(ReadOnlySpan<byte> source) 136private void WriteMultiBuffer(ReadOnlySpan<byte> source)
src\Shared\ServerInfrastructure\Http2\Bitshifter.cs (2)
16public static uint ReadUInt24BigEndian(ReadOnlySpan<byte> source) 32public static uint ReadUInt31BigEndian(ReadOnlySpan<byte> source)
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\Shared\ServerInfrastructure\HttpCharacters.cs (6)
41public static bool ContainsInvalidAuthorityChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedAuthorityBytes) >= 0; 43public static int IndexOfInvalidHostChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedHostChars); 45public static int IndexOfInvalidTokenChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedTokenChars); 47public static int IndexOfInvalidTokenChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedTokenBytes); 51public static int IndexOfInvalidFieldValueChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedFieldChars); 54public static int IndexOfInvalidFieldValueCharExtended(ReadOnlySpan<char> span) => span.IndexOfAny(_invalidFieldChars);
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;
illink (5)
ILLink.RoslynAnalyzer (3)
CompilationExtensions.cs (1)
140 public static ImmutableArray<T> ToImmutableArray<T> (this ReadOnlySpan<T> span)
INamedTypeSymbolExtensions.cs (2)
17 var roSpan = typeName.AsSpan (); 21 var currentName = dot < 0 ? roSpan : roSpan.Slice (dot + 1);
InMemory.FunctionalTests (21)
Http2\Http2ConnectionTests.cs (5)
2434public void OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 2439public void OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 2468public void OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value)
Http2\Http2TestBase.cs (6)
438void IHttpStreamHeadersHandler.OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 452public void OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value) 461void IHttpStreamHeadersHandler.OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 781protected Task SendAsync(ReadOnlySpan<byte> span)
ResponseTests.cs (1)
3242var source = expectedString.AsSpan();
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (1)
723ReadOnlySpan<byte> reqSerialSpan = reqSerial.Span;
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (8)
507protected Task SendAsync(ReadOnlySpan<byte> span) 619internal Task EndStreamAsync(ReadOnlySpan<byte> span = default) 772public void OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 784_headerHandler.DecodedHeaders[((Span<byte>)knownHeader.Name).GetAsciiString()] = HttpUtilities.GetAsciiOrUTF8String((ReadOnlySpan<byte>)knownHeader.Value); 787public void OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value) 797public void OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
Interop.FunctionalTests (1)
Http2\Http2RequestTests.cs (1)
53meterListener.SetMeasurementEventCallback<double>((Instrument instrument, double measurement, ReadOnlySpan<KeyValuePair<string, object>> tags, object state) =>
Microsoft.AspNetCore.Authorization (1)
src\Shared\Debugger\DebuggerHelpers.cs (1)
28public static string GetDebugText(ReadOnlySpan<KeyValuePair<string, object?>> values, bool includeNullValues = true, string? prefix = null)
Microsoft.AspNetCore.Components (47)
NavigationManager.cs (5)
238var uriPathOnly = pathEndIndex < 0 ? uri : uri.AsSpan(0, pathEndIndex); 254internal ReadOnlySpan<char> ToBaseRelativePath(ReadOnlySpan<char> uri) 264var uriPathOnly = pathEndIndex < 0 ? uri : uri[..pathEndIndex]; 530var 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;
Routing\Router.cs (4)
155private static ReadOnlySpan<char> TrimQueryOrHash(ReadOnlySpan<char> str) 195var relativePath = NavigationManager.ToBaseRelativePath(_locationAbsolute.AsSpan()); 196var locationPathSpan = TrimQueryOrHash(relativePath);
Routing\UrlValueConstraint.cs (15)
15public delegate bool TryParseDelegate<T>(ReadOnlySpan<char> str, [MaybeNullWhen(false)] out T result); 35private static bool TryParse(ReadOnlySpan<char> str, out string result) 41private static bool TryParse(ReadOnlySpan<char> str, out DateTime result) 44private static bool TryParse(ReadOnlySpan<char> str, out DateOnly result) 47private static bool TryParse(ReadOnlySpan<char> str, out TimeOnly result) 50private static bool TryParse(ReadOnlySpan<char> str, out decimal result) 53private static bool TryParse(ReadOnlySpan<char> str, out double result) 56private static bool TryParse(ReadOnlySpan<char> str, out float result) 59private static bool TryParse(ReadOnlySpan<char> str, out int result) 62private static bool TryParse(ReadOnlySpan<char> str, out long result) 91public abstract bool TryParse(ReadOnlySpan<char> value, [MaybeNullWhen(false)] out object result); 93public abstract object? Parse(ReadOnlySpan<char> value, string destinationNameForMessage); 106public override bool TryParse(ReadOnlySpan<char> value, [MaybeNullWhen(false)] out object result) 120public override object? Parse(ReadOnlySpan<char> value, string destinationNameForMessage) 163bool TryParseNullable(ReadOnlySpan<char> value, [MaybeNullWhen(false)] out T? result)
src\Components\Shared\src\ArrayBuilder.cs (1)
83internal int Append(ReadOnlySpan<T> source)
src\Http\Routing\src\Constraints\FileNameRouteConstraint.cs (1)
122internal static bool IsFileName(ReadOnlySpan<char> value)
src\Http\Routing\src\Patterns\RoutePatternMatcher.cs (3)
288ReadOnlySpan<char> requestSegment, 334ReadOnlySpan<char> requestSegment, 462var parameterValueSpan = requestSegment.Slice(parameterStartIndex, parameterTextLength);
src\Shared\QueryStringEnumerable.cs (1)
94ReadOnlySpan<char> source = chars.Span;
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.Endpoints (5)
FormMapping\FormDataReader.cs (2)
194internal void PopPrefix(ReadOnlySpan<char> key) 227var 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();
Microsoft.AspNetCore.Components.Performance (4)
RouteTableFactoryBenchmarks.cs (4)
30ReadOnlySpan<string> segments1 = ["first", "second", "third", "fourth", "fifth", "sixth", "{parameter1}"]; 31ReadOnlySpan<string> segments2 = ["apple", "banana", "cake", "dates", "eggs", "flour", "{parameter2}"]; 32ReadOnlySpan<string> segments3 = ["one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "{parameter3}"]; 33ReadOnlySpan<string> segments4 = ["create", "read", "update", "delete", "list"];
Microsoft.AspNetCore.Components.Server (29)
src\Components\Shared\src\ArrayBuilder.cs (1)
83internal int Append(ReadOnlySpan<T> source)
src\Components\Shared\src\ArrayBuilderMemoryStream.cs (1)
65public override void Write(ReadOnlySpan<byte> buffer)
src\SignalR\common\Protocols.MessagePack\src\Protocol\MessagePackHubProtocolWorker.cs (1)
656if (reader.TryReadStringSpan(out var span))
src\SignalR\common\Shared\BinaryMessageParser.cs (2)
37var span = GetSpan(lengthPrefixBuffer); 75private static ReadOnlySpan<byte> GetSpan(in ReadOnlySequence<byte> lengthPrefixBuffer)
src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
315public override void Write(ReadOnlySpan<byte> span) 391public ReadOnlySpan<byte> Span => Buffer.AsSpan(0, Length);
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\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackReader.cs (2)
724public bool TryReadStringSpan(out ReadOnlySpan<byte> span) 768ReadOnlySpan<byte> unreadSpan = this.reader.UnreadSpan;
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\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\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\SequenceReaderExtensions.cs (1)
34ReadOnlySpan<byte> span = reader.UnreadSpan;
Microsoft.AspNetCore.Components.WebAssembly (2)
HotReload\HotReloadAgent.cs (2)
197MetadataUpdater.ApplyUpdate(assembly, item.MetadataDelta, item.ILDelta, item.PdbBytes ?? ReadOnlySpan<byte>.Empty); 261MetadataUpdater.ApplyUpdate(assembly, item.MetadataDelta, item.ILDelta, ReadOnlySpan<byte>.Empty);
Microsoft.AspNetCore.Components.WebView (3)
IpcCommon.cs (1)
43var messageAfterPrefix = message.AsSpan(_ipcMessagePrefix.Length);
src\Components\Shared\src\ArrayBuilder.cs (1)
83internal int Append(ReadOnlySpan<T> source)
src\Components\Shared\src\ArrayBuilderMemoryStream.cs (1)
65public override void Write(ReadOnlySpan<byte> buffer)
Microsoft.AspNetCore.CookiePolicy (1)
ResponseCookiesWrapper.cs (1)
138public void Append(ReadOnlySpan<KeyValuePair<string, string>> keyValuePairs, CookieOptions options)
Microsoft.AspNetCore.Cors (1)
src\Shared\Debugger\DebuggerHelpers.cs (1)
28public static string GetDebugText(ReadOnlySpan<KeyValuePair<string, object?>> values, bool includeNullValues = true, string? prefix = null)
Microsoft.AspNetCore.DataProtection.Abstractions (4)
src\Shared\WebEncoders\WebEncoders.cs (4)
79ReadOnlySpan<char> inputSpan = input.AsSpan(offset, count); 136ReadOnlySpan<char> inputSpan = input.AsSpan(offset, count); 367public static string Base64UrlEncode(ReadOnlySpan<byte> input) 405public static int Base64UrlEncode(ReadOnlySpan<byte> input, Span<char> output)
Microsoft.AspNetCore.Diagnostics.Middleware (2)
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.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)
38var addressToParse = value.AsSpan(startIndex, length).Trim();
Microsoft.AspNetCore.Http (6)
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\Shared\HttpRuleParser.cs (2)
63var subspan = input.AsSpan(startIndex); 189ReadOnlySpan<char> inputSpan = input.AsSpan();
Microsoft.AspNetCore.Http.Abstractions (10)
Extensions\HttpResponseWritingExtensions.cs (1)
103var source = text.AsSpan();
HostString.cs (1)
183var port = uriComponent.AsSpan(index);
src\Shared\Debugger\DebuggerHelpers.cs (1)
28public static string GetDebugText(ReadOnlySpan<KeyValuePair<string, object?>> values, bool includeNullValues = true, string? prefix = null)
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\Shared\ValueStringBuilder\ValueListBuilder.cs (1)
54public ReadOnlySpan<T> AsSpan() => _span.Slice(0, _pos);
Microsoft.AspNetCore.Http.Connections (6)
src\Shared\WebEncoders\WebEncoders.cs (4)
79ReadOnlySpan<char> inputSpan = input.AsSpan(offset, count); 136ReadOnlySpan<char> inputSpan = input.AsSpan(offset, count); 367public static string Base64UrlEncode(ReadOnlySpan<byte> input) 405public static int Base64UrlEncode(ReadOnlySpan<byte> input, Span<char> output)
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.Common (3)
NegotiateProtocol.cs (2)
41private static ReadOnlySpan<byte> ProtocolVersionPropertyNameBytes => "ProtocolVersion"u8; 146public static NegotiationResponse ParseResponse(ReadOnlySpan<byte> content)
src\SignalR\common\Shared\Utf8BufferTextWriter.cs (1)
167private void WriteInternal(ReadOnlySpan<char> buffer)
Microsoft.AspNetCore.Http.Extensions (11)
src\Components\Endpoints\src\FormMapping\FormDataReader.cs (2)
194internal void PopPrefix(ReadOnlySpan<char> key) 227var separator = _currentPrefixBuffer.Length > 0 && key[0] != '['
src\Shared\PropertyAsParameterInfo.cs (1)
64public static ReadOnlySpan<ParameterInfo> Flatten(ParameterInfo[] parameters, ParameterBindingMethodCache cache)
src\Shared\ValueStringBuilder\ValueListBuilder.cs (1)
54public ReadOnlySpan<T> AsSpan() => _span.Slice(0, _pos);
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.Extensions.Tests (3)
RequestDelegateFactoryTests.cs (3)
902ReadOnlySpan<byte> Method1() => "hello world"u8; 917public ReadOnlySpan<byte> Buffer { get; } 919public RefStruct(ReadOnlySpan<byte> buffer)
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)
160public static IResult Text(ReadOnlySpan<byte> utf8Content, string? contentType = null, int? statusCode = null)
src\Shared\ResultsHelpers\SharedUrlHelper.cs (1)
78static bool HasControlCharacter(ReadOnlySpan<char> readOnlySpan)
TypedResults.cs (1)
146public 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 (11)
BufferingStream.cs (1)
266public override void Write(ReadOnlySpan<byte> buffer)
RequestBufferingStream.cs (1)
74private void WriteToBuffer(ReadOnlySpan<byte> span)
ResponseBufferingStream.cs (3)
61public override void Write(ReadOnlySpan<byte> span) 82private void CommonWrite(ReadOnlySpan<byte> span) 89var slice = span.Slice(0, innerCount);
src\Shared\ValueStringBuilder\ValueListBuilder.cs (1)
54public ReadOnlySpan<T> AsSpan() => _span.Slice(0, _pos);
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)
452var host = hostText.AsSpan(1);
IPNetwork.cs (9)
112/// Converts the specified <see cref="ReadOnlySpan{T}"/> of <see langword="char"/> representation of 115/// <param name="networkSpan">The <see cref="ReadOnlySpan{T}"/> of <see langword="char"/> to convert, in CIDR notation.</param> 121/// <inheritdoc cref="TryParseComponents(ReadOnlySpan{char}, out IPAddress?, out int)"/> 122public static IPNetwork Parse(ReadOnlySpan<char> networkSpan) 138/// Converts the specified <see cref="ReadOnlySpan{T}"/> of <see langword="char"/> representation of 142/// <param name="networkSpan">The <see cref="ReadOnlySpan{T}"/> of <see langword="char"/> to validate.</param> 152/// <inheritdoc cref="TryParseComponents(ReadOnlySpan{char}, out IPAddress?, out int)"/> 153public static bool TryParse(ReadOnlySpan<char> networkSpan, [NotNullWhen(true)] out IPNetwork? network) 181ReadOnlySpan<char> networkSpan,
Microsoft.AspNetCore.Identity.FunctionalTests (1)
src\Identity\Extensions.Core\src\Base32.cs (1)
77var trimmedInput = input.AsSpan().TrimEnd('=');
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\Shared\PropertyAsParameterInfo.cs (1)
64public static ReadOnlySpan<ParameterInfo> Flatten(ParameterInfo[] parameters, ParameterBindingMethodCache cache)
Microsoft.AspNetCore.Mvc.Core (4)
Routing\UrlHelperBase.cs (1)
360static bool HasControlCharacter(ReadOnlySpan<char> readOnlySpan)
src\Shared\HttpRuleParser.cs (2)
63var subspan = input.AsSpan(startIndex); 189ReadOnlySpan<char> inputSpan = input.AsSpan();
src\Shared\ResultsHelpers\SharedUrlHelper.cs (1)
78static 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 (2)
DefaultEditorTemplates.cs (1)
473public override void Write(ReadOnlySpan<char> buffer)
Rendering\TagBuilder.cs (1)
179var remainingName = name.AsSpan(1);
Microsoft.AspNetCore.OpenApi (6)
Services\OpenApiGenerator.cs (2)
261var parameters = PropertyAsParameterInfo.Flatten(methodInfo.GetParameters(), ParameterBindingMethodCache.Instance); 368var parameters = PropertyAsParameterInfo.Flatten(methodInfo.GetParameters(), ParameterBindingMethodCache.Instance);
src\Shared\PropertyAsParameterInfo.cs (1)
64public static ReadOnlySpan<ParameterInfo> Flatten(ParameterInfo[] parameters, ParameterBindingMethodCache cache)
src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
315public override void Write(ReadOnlySpan<byte> span) 391public ReadOnlySpan<byte> Span => Buffer.AsSpan(0, Length);
src\SignalR\common\Shared\Utf8BufferTextWriter.cs (1)
167private void WriteInternal(ReadOnlySpan<char> buffer)
Microsoft.AspNetCore.OutputCaching (5)
FormatterBinaryReader.cs (2)
158public ReadOnlySpan<byte> ReadBytesSpan(int count) 170var result = MemoryMarshal.CreateReadOnlySpan(ref Unsafe.Add(ref _root, _offset), count);
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.OutputCaching.Microbenchmarks (2)
EndToEndBenchmarks.cs (2)
78static void WriteInRandomChunks(ReadOnlySpan<byte> value, Stream destination) 92var value = source.Span;
Microsoft.AspNetCore.Razor (1)
TagHelpers\NullHtmlEncoder.cs (1)
64var span = value.AsSpan(startIndex, characterCount);
Microsoft.AspNetCore.ResponseCaching (1)
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 (31)
Constraints\FileNameRouteConstraint.cs (1)
122internal static bool IsFileName(ReadOnlySpan<char> value)
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; 158var hostSpan = host.AsSpan();
Matching\ILEmitTrieFactory.cs (5)
535var span = text.AsSpan(index, 4); 545var span = text.ToLowerInvariant().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\Shared\Debugger\DebuggerHelpers.cs (1)
28public static string GetDebugText(ReadOnlySpan<KeyValuePair<string, object?>> values, bool includeNullValues = true, string? prefix = null)
src\Shared\HttpRuleParser.cs (2)
63var subspan = input.AsSpan(startIndex); 189ReadOnlySpan<char> inputSpan = input.AsSpan();
Microsoft.AspNetCore.Routing.Microbenchmarks (2)
Matching\TrivialMatcher.cs (1)
38internal Candidate[] FindCandidateSet(string path, ReadOnlySpan<PathSegment> segments)
src\Http\Routing\test\UnitTests\Matching\BarebonesMatcher.cs (1)
103internal Candidate[] FindCandidateSet(string path, ReadOnlySpan<PathSegment> segments)
Microsoft.AspNetCore.Routing.Tests (1)
Matching\BarebonesMatcher.cs (1)
103internal Candidate[] FindCandidateSet(string path, ReadOnlySpan<PathSegment> segments)
Microsoft.AspNetCore.Server.HttpSys (26)
Helpers.cs (2)
11public static ReadOnlySpan<byte> ChunkTerminator => "0\r\n\r\n"u8; 12public static ReadOnlySpan<byte> CRLF => "\r\n"u8;
IHttpSysRequestTimingFeature.cs (1)
19ReadOnlySpan<long> Timestamps { get; }
RequestProcessing\ResponseBody.cs (1)
288ReadOnlySpan<byte> bytes)
RequestProcessing\ResponseStreamAsyncResult.cs (1)
167private static void SetDataChunkWithPinnedData(HTTP_DATA_CHUNK[] chunks, ref int chunkIndex, ReadOnlySpan<byte> bytes)
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (3)
84public ReadOnlySpan<long> Timestamps 102return ReadOnlySpan<long>.Empty; 187var timestamps = Timestamps;
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (1)
2703private static ReadOnlySpan<HttpSysRequestHeader> HeaderKeys =>
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\Shared\PathNormalizer\PathNormalizer.cs (2)
18ReadOnlySpan<byte> dotSlash = "./"u8; 19ReadOnlySpan<byte> slashDot = "/."u8;
src\Shared\ServerInfrastructure\HttpCharacters.cs (6)
41public static bool ContainsInvalidAuthorityChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedAuthorityBytes) >= 0; 43public static int IndexOfInvalidHostChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedHostChars); 45public static int IndexOfInvalidTokenChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedTokenChars); 47public static int IndexOfInvalidTokenChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedTokenBytes); 51public static int IndexOfInvalidFieldValueChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedFieldChars); 54public static int IndexOfInvalidFieldValueCharExtended(ReadOnlySpan<char> span) => span.IndexOfAny(_invalidFieldChars);
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.HttpSys.FunctionalTests (62)
src\Shared\Http2cat\Http2Utilities.cs (7)
31public static ReadOnlySpan<byte> ClientPreface => "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n"u8; 146void IHttpStreamHeadersHandler.OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 396public Task SendAsync(ReadOnlySpan<byte> span) 981public void OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value) 986public void OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\Shared\runtime\Http2\Hpack\DynamicTable.cs (4)
51public void Insert(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 56public void Insert(int? staticTableIndex, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\Shared\runtime\Http2\Hpack\HeaderField.cs (2)
14public HeaderField(int? staticTableIndex, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (18)
131public void Decode(ReadOnlySpan<byte> data, bool endHeaders, IHttpStreamHeadersHandler handler) 137private void DecodeInternal(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler) 193ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length); 199private void ParseDynamicTableSizeUpdate(ReadOnlySpan<byte> data, ref int currentIndex) 208private void ParseHeaderValueLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 238private void ParseHeaderNameLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 251private void ParseHeaderValueLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 263private void ParseHeaderFieldIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 271private void ParseHeaderNameIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 280private void ParseHeaderNameLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 306private void Parse(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 390private void ParseLiteralHeaderField(ReadOnlySpan<byte> data, ref int currentIndex, byte b, byte mask, byte indexPrefix, bool index, IHttpStreamHeadersHandler handler) 417private void ParseHeaderName(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 455private void ParseHeaderValue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 499private void ProcessHeaderValue(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler) 501ReadOnlySpan<byte> headerValueSpan = _headerValueRange == null 516ReadOnlySpan<byte> headerNameSpan = _headerNameRange == null 633private bool TryDecodeInteger(ReadOnlySpan<byte> data, ref int currentIndex, out int result)
src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (4)
63var statusBytes = StatusCodes.ToStatusBytes(statusCode); 288public static bool EncodeLiteralHeaderFieldWithoutIndexingNewName(string name, ReadOnlySpan<string> values, byte[] separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten) 410public static bool EncodeStringLiteral(ReadOnlySpan<byte> value, Span<byte> destination, out int bytesWritten) 513public static bool EncodeStringLiterals(ReadOnlySpan<string> values, byte[]? separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten)
src\Shared\runtime\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\Shared\runtime\Http2\Hpack\StatusCodes.cs (1)
11public static ReadOnlySpan<byte> ToStatusBytes(int statusCode)
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\Shared\ServerInfrastructure\BufferExtensions.cs (2)
22public static ReadOnlySpan<byte> ToSpan(in this ReadOnlySequence<byte> buffer) 215var source = data.AsSpan();
src\Shared\ServerInfrastructure\BufferWriter.cs (2)
91public void Write(ReadOnlySpan<byte> source) 136private void WriteMultiBuffer(ReadOnlySpan<byte> source)
src\Shared\ServerInfrastructure\Http2\Bitshifter.cs (2)
16public static uint ReadUInt24BigEndian(ReadOnlySpan<byte> source) 32public static uint ReadUInt31BigEndian(ReadOnlySpan<byte> source)
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\Shared\ServerInfrastructure\HttpCharacters.cs (6)
41public static bool ContainsInvalidAuthorityChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedAuthorityBytes) >= 0; 43public static int IndexOfInvalidHostChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedHostChars); 45public static int IndexOfInvalidTokenChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedTokenChars); 47public static int IndexOfInvalidTokenChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedTokenBytes); 51public static int IndexOfInvalidFieldValueChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedFieldChars); 54public static int IndexOfInvalidFieldValueCharExtended(ReadOnlySpan<char> span) => span.IndexOfAny(_invalidFieldChars);
Microsoft.AspNetCore.Server.IIS (23)
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (3)
84public ReadOnlySpan<long> Timestamps 102return ReadOnlySpan<long>.Empty; 187var timestamps = Timestamps;
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (1)
2703private static ReadOnlySpan<HttpSysRequestHeader> HeaderKeys =>
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\Shared\PathNormalizer\PathNormalizer.cs (2)
18ReadOnlySpan<byte> dotSlash = "./"u8; 19ReadOnlySpan<byte> slashDot = "/."u8;
src\Shared\ServerInfrastructure\BufferExtensions.cs (2)
22public static ReadOnlySpan<byte> ToSpan(in this ReadOnlySequence<byte> buffer) 215var source = data.AsSpan();
src\Shared\ServerInfrastructure\BufferWriter.cs (2)
91public void Write(ReadOnlySpan<byte> source) 136private void WriteMultiBuffer(ReadOnlySpan<byte> source)
src\Shared\ServerInfrastructure\HttpCharacters.cs (6)
41public static bool ContainsInvalidAuthorityChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedAuthorityBytes) >= 0; 43public static int IndexOfInvalidHostChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedHostChars); 45public static int IndexOfInvalidTokenChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedTokenChars); 47public static int IndexOfInvalidTokenChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedTokenBytes); 51public static int IndexOfInvalidFieldValueChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedFieldChars); 54public static int IndexOfInvalidFieldValueCharExtended(ReadOnlySpan<char> span) => span.IndexOfAny(_invalidFieldChars);
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 (262)
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 (3)
379var suffixSpan = suffixBuffer.ToSpan(); 428var suffixSpan = suffixBuffer.ToSpan(); 456var trailerSpan = trailerBuffer.ToSpan();
Internal\Http\Http1Connection.cs (3)
18internal static ReadOnlySpan<byte> Http2GoAwayHttp11RequiredBytes => [0, 0, 8, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13]; 863var clientPrefaceRequestLine = Http2.Http2Connection.ClientPreface.Slice(0, PrefaceLineLength); 864var currentRequestLine = requestData.Slice(0, PrefaceLineLength).ToSpan();
Internal\Http\Http1OutputProducer.cs (13)
19private static ReadOnlySpan<byte> ContinueBytes => "HTTP/1.1 100 Continue\r\n\r\n"u8; 20private static ReadOnlySpan<byte> HttpVersion11Bytes => "HTTP/1.1 "u8; 21private static ReadOnlySpan<byte> EndHeadersBytes => "\r\n\r\n"u8; 22private static ReadOnlySpan<byte> EndChunkedResponseBytes => "0\r\n\r\n"u8; 96public Task WriteDataAsync(ReadOnlySpan<byte> buffer, CancellationToken cancellationToken = default) 106public ValueTask<FlushResult> WriteDataToPipeAsync(ReadOnlySpan<byte> buffer, CancellationToken cancellationToken = default) 295public ValueTask<FlushResult> WriteChunkAsync(ReadOnlySpan<byte> buffer, CancellationToken cancellationToken) 319private void CommitChunkInternal(ref BufferWriter<PipeWriter> writer, ReadOnlySpan<byte> buffer) 494public ValueTask<FlushResult> FirstWriteAsync(int statusCode, string? reasonPhrase, HttpResponseHeaders responseHeaders, bool autoChunk, ReadOnlySpan<byte> buffer, CancellationToken cancellationToken) 514public ValueTask<FlushResult> FirstWriteChunkedAsync(int statusCode, string? reasonPhrase, HttpResponseHeaders responseHeaders, bool autoChunk, ReadOnlySpan<byte> buffer, CancellationToken cancellationToken) 551ReadOnlySpan<byte> buffer, 570ReadOnlySpan<byte> buffer, 802public 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 (12)
57private static ReadOnlySpan<byte> RequestLineDelimiters => [ByteLF, 0]; 66if (!reader.TryReadToAny(out ReadOnlySpan<byte> requestLine, RequestLineDelimiters, advancePastDelimiter: false)) 175var remaining = requestLine.Slice(offset); 201var span = reader.UnreadSpan; 319private static byte[] AppendEndOfLine(ReadOnlySpan<byte> span, bool lineFeedOnly) 461private static bool TryTakeSingleHeader(TRequestHandler handler, ReadOnlySpan<byte> headerLine) 555private int GetUnknownMethodLength(ReadOnlySpan<byte> span) 567private static bool IsTlsHandshake(ReadOnlySpan<byte> requestLine) 578private void RejectRequestLine(ReadOnlySpan<byte> requestLine) 588private void RejectRequestHeader(ReadOnlySpan<byte> headerLine) 592private void RejectUnknownVersion(ReadOnlySpan<byte> version) 596private BadHttpRequestException GetInvalidRequestException(RequestRejectionReason reason, ReadOnlySpan<byte> headerLine)
Internal\Http\HttpProtocol.cs (7)
534public virtual void OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value, bool checkForNewlineChars) 541public virtual void OnHeader(int index, bool indexOnly, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 549public void OnTrailer(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 1395private BadHttpRequestException GetInvalidRequestTargetException(ReadOnlySpan<byte> target)
Internal\Http\HttpRequestHeaders.cs (2)
94private void AppendContentLength(ReadOnlySpan<byte> value) 113private 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, bool autoChunk, ReadOnlySpan<byte> data, CancellationToken cancellationToken); 29ValueTask<FlushResult> FirstWriteChunkedAsync(int statusCode, string? reasonPhrase, HttpResponseHeaders responseHeaders, bool autoChunk, ReadOnlySpan<byte> data, CancellationToken cancellationToken);
Internal\Http2\Http2Connection.cs (27)
43private static ReadOnlySpan<byte> ClientPrefaceBytes => "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n"u8; 44private static ReadOnlySpan<byte> AuthorityBytes => ":authority"u8; 45private static ReadOnlySpan<byte> MethodBytes => ":method"u8; 46private static ReadOnlySpan<byte> PathBytes => ":path"u8; 47private static ReadOnlySpan<byte> SchemeBytes => ":scheme"u8; 48private static ReadOnlySpan<byte> StatusBytes => ":status"u8; 49private static ReadOnlySpan<byte> ConnectionBytes => "connection"u8; 50private static ReadOnlySpan<byte> TeBytes => "te"u8; 51private static ReadOnlySpan<byte> TrailersBytes => "trailers"u8; 52private static ReadOnlySpan<byte> ConnectBytes => "CONNECT"u8; 53private static ReadOnlySpan<byte> ProtocolBytes => ":protocol"u8; 55public static ReadOnlySpan<byte> ClientPreface => ClientPrefaceBytes; 638if (reader.TryReadTo(out ReadOnlySpan<byte> requestLine, (byte)'\n')) 666var span = preface.ToSpan(); 1536public void OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 1541public void OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 1554public void OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value) 1572private void OnHeaderCore(HeaderType headerType, int? staticTableIndex, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 1661private void ValidateHeaderContent(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 1686private void UpdateHeaderParsingState(ReadOnlySpan<byte> value, PseudoHeaderFields headerField) 1780private static PseudoHeaderFields GetPseudoHeaderField(ReadOnlySpan<byte> name) 1816private static bool IsConnectionSpecificHeaderField(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
Internal\Http2\Http2FrameWriter.cs (2)
35private static ReadOnlySpan<byte> ContinueBytes => [0x08, 0x03, (byte)'1', (byte)'0', (byte)'0']; 607private void SplitHeaderAcrossFrames(int streamId, ReadOnlySpan<byte> dataToFrame, bool endOfHeaders, bool isFramePrepared)
Internal\Http2\Http2OutputProducer.cs (5)
388public Task WriteDataAsync(ReadOnlySpan<byte> data, CancellationToken cancellationToken) 524public ValueTask<FlushResult> WriteDataToPipeAsync(ReadOnlySpan<byte> data, CancellationToken cancellationToken) 555public ValueTask<FlushResult> FirstWriteAsync(int statusCode, string? reasonPhrase, HttpResponseHeaders responseHeaders, bool autoChunk, ReadOnlySpan<byte> data, CancellationToken cancellationToken) 565ValueTask<FlushResult> IHttpOutputProducer.WriteChunkAsync(ReadOnlySpan<byte> data, CancellationToken cancellationToken) 570public ValueTask<FlushResult> FirstWriteChunkedAsync(int statusCode, string? reasonPhrase, HttpResponseHeaders responseHeaders, bool autoChunk, ReadOnlySpan<byte> data, CancellationToken cancellationToken)
Internal\Http2\Http2Stream.cs (6)
343var pathSegment = queryIndex == -1 ? path.AsSpan() : path.AsSpan(0, queryIndex); 412private bool TryValidatePath(ReadOnlySpan<char> pathSegment) 690public override void OnHeader(int index, bool indexOnly, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 730private 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)
152public ValueTask<FlushResult> FirstWriteAsync(int statusCode, string? reasonPhrase, HttpResponseHeaders responseHeaders, bool autoChunk, ReadOnlySpan<byte> data, CancellationToken cancellationToken) 162public ValueTask<FlushResult> FirstWriteChunkedAsync(int statusCode, string? reasonPhrase, HttpResponseHeaders responseHeaders, bool autoChunk, ReadOnlySpan<byte> data, CancellationToken cancellationToken) 323public ValueTask<FlushResult> WriteChunkAsync(ReadOnlySpan<byte> data, CancellationToken cancellationToken) 328public Task WriteDataAsync(ReadOnlySpan<byte> data, CancellationToken cancellationToken) 353public ValueTask<FlushResult> WriteDataToPipeAsync(ReadOnlySpan<byte> data, CancellationToken cancellationToken)
Internal\Http3\Http3Stream.cs (29)
29private static ReadOnlySpan<byte> AuthorityBytes => ":authority"u8; 30private static ReadOnlySpan<byte> MethodBytes => ":method"u8; 31private static ReadOnlySpan<byte> PathBytes => ":path"u8; 32private static ReadOnlySpan<byte> ProtocolBytes => ":protocol"u8; 33private static ReadOnlySpan<byte> SchemeBytes => ":scheme"u8; 34private static ReadOnlySpan<byte> StatusBytes => ":status"u8; 35private static ReadOnlySpan<byte> ConnectionBytes => "connection"u8; 36private static ReadOnlySpan<byte> TeBytes => "te"u8; 37private static ReadOnlySpan<byte> TrailersBytes => "trailers"u8; 38private static ReadOnlySpan<byte> ConnectBytes => "CONNECT"u8; 212public void OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value) 219public void OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 224public void OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 237public override void OnHeader(int index, bool indexOnly, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 277private void AppendHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 282private void OnHeaderCore(HeaderType headerType, int? staticTableIndex, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 360private void ValidateHeaderContent(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 385private void UpdateHeaderParsingState(ReadOnlySpan<byte> value, PseudoHeaderFields headerField) 494private static PseudoHeaderFields GetPseudoHeaderField(ReadOnlySpan<byte> name) 530private static bool IsConnectionSpecificHeaderField(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 1064var pathSegment = queryIndex == -1 ? path.AsSpan() : path.AsSpan(0, queryIndex); 1133private 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\Shared\PathNormalizer\PathNormalizer.cs (2)
18ReadOnlySpan<byte> dotSlash = "./"u8; 19ReadOnlySpan<byte> slashDot = "/."u8;
src\Shared\runtime\Http2\Hpack\DynamicTable.cs (4)
51public void Insert(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 56public void Insert(int? staticTableIndex, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\Shared\runtime\Http2\Hpack\HeaderField.cs (2)
14public HeaderField(int? staticTableIndex, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (18)
131public void Decode(ReadOnlySpan<byte> data, bool endHeaders, IHttpStreamHeadersHandler handler) 137private void DecodeInternal(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler) 193ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length); 199private void ParseDynamicTableSizeUpdate(ReadOnlySpan<byte> data, ref int currentIndex) 208private void ParseHeaderValueLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 238private void ParseHeaderNameLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 251private void ParseHeaderValueLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 263private void ParseHeaderFieldIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 271private void ParseHeaderNameIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 280private void ParseHeaderNameLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 306private void Parse(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 390private void ParseLiteralHeaderField(ReadOnlySpan<byte> data, ref int currentIndex, byte b, byte mask, byte indexPrefix, bool index, IHttpStreamHeadersHandler handler) 417private void ParseHeaderName(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 455private void ParseHeaderValue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 499private void ProcessHeaderValue(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler) 501ReadOnlySpan<byte> headerValueSpan = _headerValueRange == null 516ReadOnlySpan<byte> headerNameSpan = _headerNameRange == null 633private bool TryDecodeInteger(ReadOnlySpan<byte> data, ref int currentIndex, out int result)
src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (4)
63var statusBytes = StatusCodes.ToStatusBytes(statusCode); 288public static bool EncodeLiteralHeaderFieldWithoutIndexingNewName(string name, ReadOnlySpan<string> values, byte[] separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten) 410public static bool EncodeStringLiteral(ReadOnlySpan<byte> value, Span<byte> destination, out int bytesWritten) 513public static bool EncodeStringLiterals(ReadOnlySpan<string> values, byte[]? separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten)
src\Shared\runtime\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\Shared\runtime\Http2\Hpack\StatusCodes.cs (1)
11public static ReadOnlySpan<byte> ToStatusBytes(int statusCode)
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\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\Shared\runtime\Http3\QPack\QPackDecoder.cs (21)
175public void Decode(ReadOnlySpan<byte> data, bool endHeaders, IHttpStreamHeadersHandler handler) 181private void DecodeInternal(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler) 249ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length); 255private void ParseHeaderNameIndexPostBase(ReadOnlySpan<byte> data, ref int currentIndex) 263private void ParsePostBaseIndex(ReadOnlySpan<byte> data, ref int currentIndex) 271private void ParseHeaderNameLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 284private void ParseHeaderName(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 323private void ParseHeaderFieldIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 331private void ParseHeaderNameIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 340private void ParseHeaderValueLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 370private void ParseHeaderValue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 407private void ParseHeaderValueLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 424private void ParseCompressedHeaders(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 523private void ParseRequiredInsertCountContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 532private void ParseBase(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 552private void ParseBaseContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 561private void ParseRequiredInsertCount(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 591private void ProcessHeaderValue(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler) 593ReadOnlySpan<byte> headerValueSpan = _headerValueRange == null 603ReadOnlySpan<byte> headerNameSpan = _headerNameRange == null 687private bool TryDecodeInteger(ReadOnlySpan<byte> data, ref int currentIndex, out int result)
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\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\Shared\ServerInfrastructure\BufferExtensions.cs (2)
22public static ReadOnlySpan<byte> ToSpan(in this ReadOnlySequence<byte> buffer) 215var source = data.AsSpan();
src\Shared\ServerInfrastructure\BufferWriter.cs (2)
91public void Write(ReadOnlySpan<byte> source) 136private void WriteMultiBuffer(ReadOnlySpan<byte> source)
src\Shared\ServerInfrastructure\Http2\Bitshifter.cs (2)
16public static uint ReadUInt24BigEndian(ReadOnlySpan<byte> source) 32public static uint ReadUInt31BigEndian(ReadOnlySpan<byte> source)
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\Shared\ServerInfrastructure\HttpCharacters.cs (6)
41public static bool ContainsInvalidAuthorityChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedAuthorityBytes) >= 0; 43public static int IndexOfInvalidHostChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedHostChars); 45public static int IndexOfInvalidTokenChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedTokenChars); 47public static int IndexOfInvalidTokenChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedTokenBytes); 51public static int IndexOfInvalidFieldValueChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedFieldChars); 54public static int IndexOfInvalidFieldValueCharExtended(ReadOnlySpan<char> span) => span.IndexOfAny(_invalidFieldChars);
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\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.Core.Tests (25)
HttpParserTests.cs (3)
887public void OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 927public void OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value)
HttpUtilitiesTest.cs (2)
36var block = new ReadOnlySpan<byte>(Encoding.ASCII.GetBytes(input)); 66var block = new ReadOnlySpan<byte>(Encoding.ASCII.GetBytes(input));
KnownStringsTests.cs (1)
78var data = new ReadOnlySpan<byte>(methodData);
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (1)
723ReadOnlySpan<byte> reqSerialSpan = reqSerial.Span;
src\Shared\test\Shared.Tests\runtime\Http2\HPackDecoderTest.cs (5)
965void IHttpStreamHeadersHandler.OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 980void IHttpStreamHeadersHandler.OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value) 989void IHttpStreamHeadersHandler.OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\Shared\test\Shared.Tests\runtime\Http3\QPackDecoderTest.cs (5)
372void IHttpStreamHeadersHandler.OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 392void IHttpStreamHeadersHandler.OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value) 401public void OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\Shared\test\Shared.Tests\runtime\Http3\VariableLengthIntegerHelperTests.cs (8)
16ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(); 28ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[] 43ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[] 59ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[] 74ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[] 92ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[] 107ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>( 124ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[]
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (29)
Http1ConnectionBenchmark.cs (3)
105public void OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 119public void OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value)
Http2\HPackDecoderBenchmark.cs (5)
114public void OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 118public void OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 130public void OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value)
Http3\QPackDecoderBenchmark.cs (5)
103public void OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 107public void OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 119public void OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value)
HttpParserBenchmark.cs (6)
105public void OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 118public void OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value) 132public void OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 146public void OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value)
KnownStringsBenchmark.cs (2)
96private int GetKnownMethod(ReadOnlySpan<byte> data) 132ReadOnlySpan<byte> data = _version;
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (8)
507protected Task SendAsync(ReadOnlySpan<byte> span) 619internal Task EndStreamAsync(ReadOnlySpan<byte> span = default) 772public void OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 784_headerHandler.DecodedHeaders[((Span<byte>)knownHeader.Name).GetAsciiString()] = HttpUtilities.GetAsciiOrUTF8String((ReadOnlySpan<byte>)knownHeader.Value); 787public void OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value) 797public void OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (5)
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.Shared.Tests (124)
runtime\Http2\HPackDecoderTest.cs (5)
965void IHttpStreamHeadersHandler.OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 980void IHttpStreamHeadersHandler.OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value) 989void IHttpStreamHeadersHandler.OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
runtime\Http3\QPackDecoderTest.cs (5)
372void IHttpStreamHeadersHandler.OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 392void IHttpStreamHeadersHandler.OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value) 401public void OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
runtime\Http3\VariableLengthIntegerHelperTests.cs (8)
16ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(); 28ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[] 43ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[] 59ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[] 74ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[] 92ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[] 107ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>( 124ReadOnlySpan<byte> readOnlySpan = new ReadOnlySpan<byte>(new byte[]
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (3)
84public ReadOnlySpan<long> Timestamps 102return ReadOnlySpan<long>.Empty; 187var timestamps = Timestamps;
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (1)
2703private static ReadOnlySpan<HttpSysRequestHeader> HeaderKeys =>
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\Shared\PathNormalizer\PathNormalizer.cs (2)
18ReadOnlySpan<byte> dotSlash = "./"u8; 19ReadOnlySpan<byte> slashDot = "/."u8;
src\Shared\QueryStringEnumerable.cs (1)
94ReadOnlySpan<char> source = chars.Span;
src\Shared\runtime\Http2\Hpack\DynamicTable.cs (4)
51public void Insert(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 56public void Insert(int? staticTableIndex, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\Shared\runtime\Http2\Hpack\HeaderField.cs (2)
14public HeaderField(int? staticTableIndex, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (18)
131public void Decode(ReadOnlySpan<byte> data, bool endHeaders, IHttpStreamHeadersHandler handler) 137private void DecodeInternal(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler) 193ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length); 199private void ParseDynamicTableSizeUpdate(ReadOnlySpan<byte> data, ref int currentIndex) 208private void ParseHeaderValueLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 238private void ParseHeaderNameLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 251private void ParseHeaderValueLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 263private void ParseHeaderFieldIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 271private void ParseHeaderNameIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 280private void ParseHeaderNameLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 306private void Parse(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 390private void ParseLiteralHeaderField(ReadOnlySpan<byte> data, ref int currentIndex, byte b, byte mask, byte indexPrefix, bool index, IHttpStreamHeadersHandler handler) 417private void ParseHeaderName(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 455private void ParseHeaderValue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 499private void ProcessHeaderValue(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler) 501ReadOnlySpan<byte> headerValueSpan = _headerValueRange == null 516ReadOnlySpan<byte> headerNameSpan = _headerNameRange == null 633private bool TryDecodeInteger(ReadOnlySpan<byte> data, ref int currentIndex, out int result)
src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (4)
63var statusBytes = StatusCodes.ToStatusBytes(statusCode); 288public static bool EncodeLiteralHeaderFieldWithoutIndexingNewName(string name, ReadOnlySpan<string> values, byte[] separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten) 410public static bool EncodeStringLiteral(ReadOnlySpan<byte> value, Span<byte> destination, out int bytesWritten) 513public static bool EncodeStringLiterals(ReadOnlySpan<string> values, byte[]? separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten)
src\Shared\runtime\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\Shared\runtime\Http2\Hpack\StatusCodes.cs (1)
11public static ReadOnlySpan<byte> ToStatusBytes(int statusCode)
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\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\Shared\runtime\Http3\QPack\QPackDecoder.cs (21)
175public void Decode(ReadOnlySpan<byte> data, bool endHeaders, IHttpStreamHeadersHandler handler) 181private void DecodeInternal(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler) 249ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length); 255private void ParseHeaderNameIndexPostBase(ReadOnlySpan<byte> data, ref int currentIndex) 263private void ParsePostBaseIndex(ReadOnlySpan<byte> data, ref int currentIndex) 271private void ParseHeaderNameLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 284private void ParseHeaderName(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 323private void ParseHeaderFieldIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 331private void ParseHeaderNameIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 340private void ParseHeaderValueLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 370private void ParseHeaderValue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 407private void ParseHeaderValueLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 424private void ParseCompressedHeaders(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 523private void ParseRequiredInsertCountContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 532private void ParseBase(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 552private void ParseBaseContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 561private void ParseRequiredInsertCount(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 591private void ProcessHeaderValue(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler) 593ReadOnlySpan<byte> headerValueSpan = _headerValueRange == null 603ReadOnlySpan<byte> headerNameSpan = _headerNameRange == null 687private bool TryDecodeInteger(ReadOnlySpan<byte> data, ref int currentIndex, out int result)
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\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\Shared\SegmentWriteStream.cs (1)
133public override void Write(ReadOnlySpan<byte> buffer)
src\Shared\ServerInfrastructure\BufferExtensions.cs (2)
22public static ReadOnlySpan<byte> ToSpan(in this ReadOnlySequence<byte> buffer) 215var source = data.AsSpan();
src\Shared\ServerInfrastructure\BufferWriter.cs (2)
91public void Write(ReadOnlySpan<byte> source) 136private void WriteMultiBuffer(ReadOnlySpan<byte> source)
src\Shared\ServerInfrastructure\Http2\Bitshifter.cs (2)
16public static uint ReadUInt24BigEndian(ReadOnlySpan<byte> source) 32public static uint ReadUInt31BigEndian(ReadOnlySpan<byte> source)
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\Shared\ServerInfrastructure\HttpCharacters.cs (6)
41public static bool ContainsInvalidAuthorityChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedAuthorityBytes) >= 0; 43public static int IndexOfInvalidHostChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedHostChars); 45public static int IndexOfInvalidTokenChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedTokenChars); 47public static int IndexOfInvalidTokenChar(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(_allowedTokenBytes); 51public static int IndexOfInvalidFieldValueChar(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(_allowedFieldChars); 54public static int IndexOfInvalidFieldValueCharExtended(ReadOnlySpan<char> span) => span.IndexOfAny(_invalidFieldChars);
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\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\Shared\WebEncoders\WebEncoders.cs (4)
79ReadOnlySpan<char> inputSpan = input.AsSpan(offset, count); 136ReadOnlySpan<char> inputSpan = input.AsSpan(offset, count); 367public static string Base64UrlEncode(ReadOnlySpan<byte> input) 405public static int Base64UrlEncode(ReadOnlySpan<byte> input, Span<char> output)
Microsoft.AspNetCore.SignalR.Client.Tests (3)
src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
315public override void Write(ReadOnlySpan<byte> span) 391public ReadOnlySpan<byte> Span => Buffer.AsSpan(0, Length);
src\SignalR\common\Shared\TextMessageParser.cs (1)
17var span = buffer.First.Span;
Microsoft.AspNetCore.SignalR.Common (7)
IInvocationBinder.cs (1)
42string? GetTarget(ReadOnlySpan<byte> utf8Bytes) => null;
Protocol\HandshakeProtocol.cs (1)
49public static ReadOnlySpan<byte> GetSuccessfulHandshake(IHubProtocol protocol) => _successHandshakeData.Span;
src\SignalR\common\Shared\MemoryBufferWriter.cs (2)
315public override void Write(ReadOnlySpan<byte> span) 391public ReadOnlySpan<byte> Span => Buffer.AsSpan(0, Length);
src\SignalR\common\Shared\TextMessageParser.cs (1)
17var span = buffer.First.Span;
src\SignalR\common\Shared\Utf8BufferTextReader.cs (1)
72var source = _utf8Buffer.First.Span;
src\SignalR\common\Shared\Utf8BufferTextWriter.cs (1)
167private void WriteInternal(ReadOnlySpan<char> buffer)
Microsoft.AspNetCore.SignalR.Common.Tests (2)
src\SignalR\common\Shared\BinaryMessageParser.cs (2)
37var span = GetSpan(lengthPrefixBuffer); 75private static ReadOnlySpan<byte> GetSpan(in ReadOnlySequence<byte> lengthPrefixBuffer)
Microsoft.AspNetCore.SignalR.Core (8)
Internal\DefaultHubDispatcher.cs (1)
822public override string? GetTargetName(ReadOnlySpan<byte> targetUtf8Bytes)
Internal\HubConnectionBinder.cs (1)
41public string? GetTarget(ReadOnlySpan<byte> targetUtf8Bytes)
Internal\HubDispatcher.cs (1)
15public abstract string? GetTargetName(ReadOnlySpan<byte> targetUtf8Bytes);
Internal\Utf8HashLookup.cs (5)
58internal bool TryGetValue(ReadOnlySpan<byte> encodedValue, [MaybeNullWhen(false), AllowNull] out string value) 76private bool TryGetValueSlow(ReadOnlySpan<byte> encodedValue, [MaybeNullWhen(false), AllowNull] out string value) 95private bool TryGetValueFromChars(ReadOnlySpan<char> key, [MaybeNullWhen(false), AllowNull] out string value) 112private static int GetHashCode(ReadOnlySpan<char> value) => 115private static int GetCaseSensitiveHashCode(ReadOnlySpan<byte> encodedValue)
Microsoft.AspNetCore.SignalR.Microbenchmarks (3)
src\SignalR\common\Shared\BinaryMessageParser.cs (2)
37var span = GetSpan(lengthPrefixBuffer); 75private static ReadOnlySpan<byte> GetSpan(in ReadOnlySequence<byte> lengthPrefixBuffer)
src\SignalR\common\Shared\TextMessageParser.cs (1)
17var span = buffer.First.Span;
Microsoft.AspNetCore.SignalR.Protocols.Json (3)
src\SignalR\common\Shared\TextMessageParser.cs (1)
17var span = buffer.First.Span;
src\SignalR\common\Shared\Utf8BufferTextReader.cs (1)
72var source = _utf8Buffer.First.Span;
src\SignalR\common\Shared\Utf8BufferTextWriter.cs (1)
167private void WriteInternal(ReadOnlySpan<char> buffer)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (5)
Protocol\MessagePackHubProtocolWorker.cs (1)
656if (reader.TryReadStringSpan(out var span))
src\SignalR\common\Shared\BinaryMessageParser.cs (2)
37var span = GetSpan(lengthPrefixBuffer); 75private static ReadOnlySpan<byte> GetSpan(in ReadOnlySequence<byte> lengthPrefixBuffer)
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\SignalR\common\Shared\MemoryBufferWriter.cs (2)
315public override void Write(ReadOnlySpan<byte> span) 391public ReadOnlySpan<byte> Span => Buffer.AsSpan(0, Length);
src\SignalR\common\Shared\TextMessageParser.cs (1)
17var span = buffer.First.Span;
src\SignalR\common\Shared\Utf8BufferTextReader.cs (1)
72var source = _utf8Buffer.First.Span;
src\SignalR\common\Shared\Utf8BufferTextWriter.cs (1)
167private void WriteInternal(ReadOnlySpan<char> buffer)
Microsoft.AspNetCore.SignalR.Specification.Tests (2)
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\SignalR\common\Shared\MemoryBufferWriter.cs (2)
315public override void Write(ReadOnlySpan<byte> span) 391public ReadOnlySpan<byte> Span => Buffer.AsSpan(0, Length);
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\Shared\ValueStringBuilder\ValueListBuilder.cs (1)
54public ReadOnlySpan<T> AsSpan() => _span.Slice(0, _pos);
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 (35)
FormPipeReader.cs (13)
29private static ReadOnlySpan<byte> UTF8EqualEncoded => "="u8; 30private static ReadOnlySpan<byte> UTF8AndEncoded => "&"u8; 153private void ParseFormValuesFast(ReadOnlySpan<byte> span, 158ReadOnlySpan<byte> key; 159ReadOnlySpan<byte> value; 161var equalsDelimiter = GetEqualsForEncoding(); 162var andDelimiter = GetAndForEncoding(); 168ReadOnlySpan<byte> keyValuePair; 244var equalsDelimiter = GetEqualsForEncoding(); 245var andDelimiter = GetAndForEncoding(); 386private string GetDecodedString(ReadOnlySpan<byte> readOnlySpan) 422private ReadOnlySpan<byte> GetEqualsForEncoding() 434private 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. 333private static bool SubMatch(ArraySegment<byte> segment1, ReadOnlySpan<byte> matchBytes, out int matchOffset, out int matchCount)
QueryHelpers.cs (3)
84var uriToBeAppended = uri.AsSpan(); 85var anchorText = ReadOnlySpan<char>.Empty;
src\Shared\QueryStringEnumerable.cs (1)
94ReadOnlySpan<char> source = chars.Span;
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\Shared\WebEncoders\WebEncoders.cs (4)
79ReadOnlySpan<char> inputSpan = input.AsSpan(offset, count); 136ReadOnlySpan<char> inputSpan = input.AsSpan(offset, count); 367public static string Base64UrlEncode(ReadOnlySpan<byte> input) 405public static int Base64UrlEncode(ReadOnlySpan<byte> input, Span<char> output)
Microsoft.AspNetCore.WebUtilities.Tests (3)
FileBufferingReadStreamTests.cs (1)
645public override void Write(ReadOnlySpan<byte> source)
HttpResponseStreamWriterTest.cs (2)
266var span = new ReadOnlySpan<char>(array); 300var span = new ReadOnlySpan<char>(array);
Microsoft.Build (31)
Evaluation\ConditionEvaluator.cs (4)
58if (TryGetSingleProperty(leftValue.AsSpan(), pieceStart, pieceEnd - pieceStart, out ReadOnlySpan<char> propertyName)) 111internal static bool TryGetSingleProperty(ReadOnlySpan<char> input, int beginning, int length, out ReadOnlySpan<char> propertyName) 127static bool ContainsInvalidCharacter(ReadOnlySpan<char> span)
Evaluation\Expander.cs (9)
3368ReadOnlySpan<char> expressionRoot = expressionFunction == null ? ReadOnlySpan<char>.Empty : expressionFunction.AsSpan(); 3988ReadOnlySpan<char> functionName; 3991ReadOnlySpan<char> remainder = ReadOnlySpan<char>.Empty; 3996ReadOnlySpan<char> expressionFunctionAsSpan = expressionFunction.AsSpan(); 3998ReadOnlySpan<char> expressionSubstringAsSpan = argumentStartIndex > -1 ? expressionFunctionAsSpan.Slice(methodStartIndex, argumentStartIndex - methodStartIndex) : ReadOnlySpan<char>.Empty; 4064ReadOnlySpan<char> netPropertyName = expressionFunctionAsSpan.Slice(methodStartIndex, methodLength).Trim();
FileMatcher.cs (3)
1674internal static bool IsMatch(ReadOnlySpan<char> input, string pattern) 1676if (input == ReadOnlySpan<char>.Empty) 1707bool CompareIgnoreCase(ref ReadOnlySpan<char> input, int iIndex, int pIndex)
FileSystem\DirectoryCacheFileSystemWrapper.cs (2)
86FindPredicate predicate = (ref ReadOnlySpan<char> fileName) => 94FindTransform<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);
FileUtilities.cs (3)
593var span = value.Span; 668internal static bool LooksLikeUnixFilePath(ReadOnlySpan<char> value, string baseDirectory = "") 681ReadOnlySpan<char> directory = value.Slice(0, directoryLength);
Logging\OptimizedStringIndenter.cs (2)
74ReadOnlySpan<char> input = state.s; 113private static Span<StringSegment> GetStringSegments(ReadOnlySpan<char> input, Span<StringSegment> segments, out StringSegment[]? pooledArray)
Utilities\SimpleVersion.cs (6)
112var span = RemoveTrivia(input); 130private static ReadOnlySpan<char> RemoveTrivia(string input) 133ReadOnlySpan<char> span = input.AsSpan().Trim(); 151private static bool ParseComponent(ref ReadOnlySpan<char> span, out int value) 167private static int ParseComponent(ReadOnlySpan<char> span) 173var spanOrString = span;
Microsoft.Build.Engine.OM.UnitTests (3)
FileUtilities.cs (3)
593var span = value.Span; 668internal static bool LooksLikeUnixFilePath(ReadOnlySpan<char> value, string baseDirectory = "") 681ReadOnlySpan<char> directory = value.Slice(0, directoryLength);
Microsoft.Build.Engine.UnitTests (1)
Evaluation\Evaluator_Tests.cs (1)
4641bool result = ConditionEvaluator.TryGetSingleProperty(input.AsSpan(), start, length, out ReadOnlySpan<char> actual);
Microsoft.Build.Framework (1)
ArraySortHelper.cs (1)
1226private static ReadOnlySpan<byte> Log2DeBruijn => new byte[32]
Microsoft.Build.Tasks.CodeAnalysis (2)
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\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
98public void AppendFormatted(ReadOnlySpan<char> value) => _builder!.Append(value.ToString());
Microsoft.Build.Tasks.Core (6)
FileMatcher.cs (3)
1674internal static bool IsMatch(ReadOnlySpan<char> input, string pattern) 1676if (input == ReadOnlySpan<char>.Empty) 1707bool CompareIgnoreCase(ref ReadOnlySpan<char> input, int iIndex, int pIndex)
FileUtilities.cs (3)
593var span = value.Span; 668internal static bool LooksLikeUnixFilePath(ReadOnlySpan<char> value, string baseDirectory = "") 681ReadOnlySpan<char> directory = value.Slice(0, directoryLength);
Microsoft.Build.Utilities.Core (6)
FileMatcher.cs (3)
1674internal static bool IsMatch(ReadOnlySpan<char> input, string pattern) 1676if (input == ReadOnlySpan<char>.Empty) 1707bool CompareIgnoreCase(ref ReadOnlySpan<char> input, int iIndex, int pIndex)
FileUtilities.cs (3)
593var span = value.Span; 668internal static bool LooksLikeUnixFilePath(ReadOnlySpan<char> value, string baseDirectory = "") 681ReadOnlySpan<char> directory = value.Slice(0, directoryLength);
Microsoft.Cci.Extensions (8)
Extensions\CSharp\CSharpCciExtensions.cs (8)
26public static ReadOnlySpan<byte> RosNullableAttributeName => new byte[] 33public static ReadOnlySpan<byte> RosSystemRuntimeCompilerServicesNamespace => new byte[] 916private static unsafe bool Equals(this StringHandle handle, ReadOnlySpan<byte> other, SRMetadataReader reader) 919ReadOnlySpan<byte> actual = new ReadOnlySpan<byte>(blob.CurrentPointer, blob.Length); 923private static bool TypeMatchesNameAndNamespace(this EntityHandle handle, ReadOnlySpan<byte> @namespace, ReadOnlySpan<byte> name, SRMetadataReader reader) 938private static bool CustomAttributeTypeMatchesNameAndNamespace(this CustomAttribute attribute, ReadOnlySpan<byte> @namespace, ReadOnlySpan<byte> name, SRMetadataReader reader)
Microsoft.CodeAnalysis (98)
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\PrivateImplementationDetails.cs (2)
565private static string HashToHex(ReadOnlySpan<byte> hash) 575static void toHex(ReadOnlySpan<byte> source, Span<char> destination)
CodeGen\TokenMap.cs (1)
105public ReadOnlySpan<object> GetAllItems()
Collections\ImmutableArrayExtensions.cs (1)
1317internal static int BinarySearch<TElement, TValue>(this ReadOnlySpan<TElement> array, TValue value, Func<TElement, TValue, int> comparer)
CommandLine\CommandLineParser.cs (9)
90/// Determines if a <see cref="ReadOnlySpan{Char}"/> is equal to the provided option name 93/// Prefer this over the Equals methods on <see cref="ReadOnlySpan{Char}"/>. The 99internal static bool IsOptionName(string optionName, ReadOnlySpan<char> value) 119static bool isAllAscii(ReadOnlySpan<char> span) 132internal static bool IsOption(ReadOnlySpan<char> arg) => 924var arg = argMemory.Span; 948static void processSlashes(StringBuilder builder, ReadOnlySpan<char> arg, ref int i) 1003var span = arg.Span; 1059var span = memory.Span;
Compilation\DeterministicKeyBuilder.cs (3)
61internal static string EncodeByteArrayValue(ReadOnlySpan<byte> value) 68internal static void EncodeByteArrayValue(ReadOnlySpan<byte> value, StringBuilder builder) 76protected static void WriteByteArrayValue(JsonWriter writer, string name, ReadOnlySpan<byte> 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)
442public ReadOnlySpan<object> ReferencesInIL()
FileSystem\PathUtilities.cs (1)
797public static string CollapseWithForwardSlash(ReadOnlySpan<char> path)
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 (4)
42public static ReadOnlySpan<byte> DefaultSecret => 127ReadOnlySpan<ulong> defaultSecretUInt64 = MemoryMarshal.Cast<byte, ulong>(DefaultSecret); 145ReadOnlySpan<ulong> defaultSecret3UInt64 = MemoryMarshal.Cast<byte, ulong>(DefaultSecret.Slice(3)); 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)
98public void AppendFormatted(ReadOnlySpan<char> value) => _builder!.Append(value.ToString());
InternalUtilities\FileNameUtilities.cs (1)
48private static int IndexOfExtension(ReadOnlySpan<char> path)
InternalUtilities\Hash.cs (4)
223internal static int GetFNVHashCode(ReadOnlySpan<byte> data, out bool isAscii) 266internal static int GetFNVHashCode(ReadOnlySpan<char> data) 291internal static int GetCaseInsensitiveFNVHashCode(ReadOnlySpan<char> data) 426internal static int CombineFNVHash(int hashCode, ReadOnlySpan<char> data)
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 (5)
356private static string? FindSharedEntryASCII(int hashCode, ReadOnlySpan<byte> asciiChars) 585internal static string AddSharedUtf8(ReadOnlySpan<byte> bytes) 601private static string AddSharedSlow(int hashCode, ReadOnlySpan<byte> utf8Bytes, bool isAscii) 725internal static bool TextEqualsASCII(string text, ReadOnlySpan<byte> ascii) 750internal static bool TextEquals(string array, ReadOnlySpan<char> text)
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)
491private static short InferTypeArityFromMetadataName(ReadOnlySpan<char> emittedTypeName, out int suffixStartsAt) 523static short? tryScanArity(ReadOnlySpan<char> aritySpan) 614var nameSpan = nameMemory.Span;
NativePdbWriter\PdbWriter.cs (2)
604ReadOnlySpan<byte> checksum; 605ReadOnlySpan<byte> embeddedSource;
Operations\ControlFlowGraphBuilder.cs (1)
7809private 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)
463var referencesInIL = module.ReferencesInIL();
src\Dependencies\Collections\SegmentedDictionary`2.cs (1)
192ReadOnlySpan<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\CommonGeneratedNameParser.cs (1)
22public static bool TryParseDebugIds(ReadOnlySpan<char> metadataNameSuffix, char idSeparator, bool isMethodIdOptional, out DebugId methodId, out DebugId entityId)
Syntax\SeparatedSyntaxList.cs (1)
19public static SeparatedSyntaxList<TNode> Create<TNode>(ReadOnlySpan<TNode> nodes) where TNode : SyntaxNode
Syntax\SyntaxList`1.cs (2)
20public static SyntaxList<TNode> Create<TNode>(ReadOnlySpan<TNode> nodes) where TNode : SyntaxNode 27static GreenNode createGreenNode(ReadOnlySpan<TNode> nodes)
Syntax\SyntaxNodeOrTokenList.cs (2)
68public static SyntaxNodeOrTokenList Create(ReadOnlySpan<SyntaxNodeOrToken> nodesAndTokens) 76private static SyntaxNode? CreateNodeFromSpan(ReadOnlySpan<SyntaxNodeOrToken> nodesAndTokens)
Syntax\SyntaxNodeOrTokenListBuilder.cs (1)
111public void Add(ReadOnlySpan<SyntaxNodeOrToken> nodeOrTokens)
Syntax\SyntaxTokenList.cs (2)
64public static SyntaxTokenList Create(ReadOnlySpan<SyntaxToken> tokens) 72private static GreenNode? CreateNodeFromSpan(ReadOnlySpan<SyntaxToken> tokens)
Syntax\SyntaxTriviaList.cs (2)
70public static SyntaxTriviaList Create(ReadOnlySpan<SyntaxTrivia> trivias) 78private 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)
350internal static bool IsBinary(ReadOnlySpan<char> text) 378/// <inheritdoc cref="IsBinary(ReadOnlySpan{char})" />
Microsoft.CodeAnalysis.CodeStyle (40)
src\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderHelper.cs (1)
61var commentText = GetTextContextOfComment(trivia).Span.Trim();
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (1)
1317internal static int BinarySearch<TElement, TValue>(this ReadOnlySpan<TElement> array, TValue value, Func<TElement, TValue, int> comparer)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
797public static string CollapseWithForwardSlash(ReadOnlySpan<char> path)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
53public abstract void Append(ReadOnlySpan<byte> source);
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\Compilers\Core\Portable\Hashing\XxHashShared.cs (4)
42public static ReadOnlySpan<byte> DefaultSecret => 127ReadOnlySpan<ulong> defaultSecretUInt64 = MemoryMarshal.Cast<byte, ulong>(DefaultSecret); 145ReadOnlySpan<ulong> defaultSecret3UInt64 = MemoryMarshal.Cast<byte, ulong>(DefaultSecret.Slice(3)); 249public static void Append(ref State state, ReadOnlySpan<byte> source)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
98public void AppendFormatted(ReadOnlySpan<char> value) => _builder!.Append(value.ToString());
src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
48private static int IndexOfExtension(ReadOnlySpan<char> path)
src\Compilers\Core\Portable\InternalUtilities\Hash.cs (4)
223internal static int GetFNVHashCode(ReadOnlySpan<byte> data, out bool isAscii) 266internal static int GetFNVHashCode(ReadOnlySpan<char> data) 291internal static int GetCaseInsensitiveFNVHashCode(ReadOnlySpan<char> data) 426internal static int CombineFNVHash(int hashCode, ReadOnlySpan<char> data)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (1)
22public static bool Equals(ReadOnlySpan<char> x, ReadOnlyMemory<char> y)
src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (5)
356private static string? FindSharedEntryASCII(int hashCode, ReadOnlySpan<byte> asciiChars) 585internal static string AddSharedUtf8(ReadOnlySpan<byte> bytes) 601private static string AddSharedSlow(int hashCode, ReadOnlySpan<byte> utf8Bytes, bool isAscii) 725internal static bool TextEqualsASCII(string text, ReadOnlySpan<byte> ascii) 750internal static bool TextEquals(string array, ReadOnlySpan<char> text)
src\Dependencies\Collections\SegmentedDictionary`2.cs (1)
192ReadOnlySpan<KeyValuePair<TKey, TValue>> span;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
95private static bool TryParseNotification(ReadOnlySpan<char> value, out NotificationOption2 notification)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ICompilationExtensions.cs (1)
268=> compilation.GetTypeByMetadataName(typeof(ReadOnlySpan<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
757Name: nameof(ReadOnlySpan<int>),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (3)
323/// cref="ReadOnlySpan{T}">ReadOnlySpan</see>&lt;<see cref="byte"/>&gt;, and deserialized to a byte array. 326public void WriteSpan(ReadOnlySpan<byte> span) 363ReadOnlySpan<T> span,
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\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)
Microsoft.CodeAnalysis.Collections.Package (1)
SegmentedDictionary`2.cs (1)
192ReadOnlySpan<KeyValuePair<TKey, TValue>> span;
Microsoft.CodeAnalysis.CSharp (24)
CommandLine\CSharpCommandLineParser.cs (3)
1766var valueSpan = valueMemory.Span; 1920var valueSpan = value.Span; 2097var nullableSpan = "nullable".AsSpan();
CSharpParseOptions.cs (1)
213static void addSingleNamespaceParts(ArrayBuilder<ImmutableArray<string>> namespacesBuilder, ArrayBuilder<string> singleNamespaceBuilder, ReadOnlySpan<char> @namespace)
FlowAnalysis\AbstractFlowPass.cs (1)
2731ReadOnlySpan<BoundExpression> parts;
Parser\LanguageParser_InterpolatedString.cs (15)
44var originalTextSpan = originalText.AsSpan(); 94CodeAnalysis.Syntax.InternalSyntax.SyntaxList<InterpolatedStringContentSyntax> getContent(ReadOnlySpan<char> originalTextSpan) 99var indentationWhitespace = needsDedentation ? getIndentationWhitespace(originalTextSpan) : default; 135ReadOnlySpan<char> getIndentationWhitespace(ReadOnlySpan<char> originalTextSpan) 139var closeQuoteText = originalTextSpan[closeQuoteRange]; 152ReadOnlySpan<char> indentationWhitespace, StringBuilder content, bool isFirst, bool isLast, ReadOnlySpan<char> text) 185var currentLineWhitespace = text[lineStartPosition..currentIndex]; 278ReadOnlySpan<char> indentationWhitespace, 294ReadOnlySpan<char> currentLineWhitespace, 295ReadOnlySpan<char> indentationLineWhitespace, 324private static int SkipWhitespace(ReadOnlySpan<char> text, int currentIndex) 331private static int ConsumeRemainingContentThroughNewLine(StringBuilder content, ReadOnlySpan<char> text, int currentIndex) 347var slice = text[start..currentIndex];
Parser\QuickScanner.cs (1)
270private static ReadOnlySpan<byte> CharProperties => new[]
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
558static ImmutableArray<FunctionPointerParameterSymbol> makeParametersFromMetadata(ReadOnlySpan<ParamInfo<TypeSymbol>> parameterTypes, FunctionPointerMethodSymbol parent)
Symbols\MemberSignatureComparer.cs (2)
760ReadOnlySpan<ParameterSymbol> params1, 762ReadOnlySpan<ParameterSymbol> params2,
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
46nameof(ReadOnlySpan<int>),
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (2)
196convertedType.Name == nameof(ReadOnlySpan<int>) && 983Name: nameof(Span<int>) or nameof(ReadOnlySpan<int>),
src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
52if (context.Compilation.GetBestTypeByMetadataName(typeof(ReadOnlySpan<>).FullName!) is null)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
95var trimmedLine = line.Trim();
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (2)
48var readOnlySpanType = semanticModel.Compilation.GetBestTypeByMetadataName(typeof(ReadOnlySpan<>).FullName!); 209IdentifierName(nameof(ReadOnlySpan<byte>.ToArray))))
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Attributes\AttributeTests_WellKnownAttributes.cs (3)
38var spanName = qualifiedMethodName.AsSpan(); 39var typeName = spanName.Slice(0, lastDotIndex); 40var methodName = spanName.Slice(lastDotIndex + 1);
Microsoft.CodeAnalysis.CSharp.Features (7)
LanguageServices\CSharpSymbolDisplayService.SymbolDescriptionBuilder.cs (1)
131var displayPartsSpans = displayParts.AsSpan();
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
46nameof(ReadOnlySpan<int>),
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (2)
196convertedType.Name == nameof(ReadOnlySpan<int>) && 983Name: nameof(Span<int>) or nameof(ReadOnlySpan<int>),
src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
52if (context.Compilation.GetBestTypeByMetadataName(typeof(ReadOnlySpan<>).FullName!) is null)
src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (2)
48var readOnlySpanType = semanticModel.Compilation.GetBestTypeByMetadataName(typeof(ReadOnlySpan<>).FullName!); 209IdentifierName(nameof(ReadOnlySpan<byte>.ToArray))))
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\SimpleLambdaParametersWithModifiersTests.cs (7)
234Assert.Equal(compilation.GetTypeByMetadataName(typeof(ReadOnlySpan<>).FullName).GetPublicSymbol(), symbol.Parameters.Single().Type.OriginalDefinition); 262Assert.Equal(compilation.GetTypeByMetadataName(typeof(ReadOnlySpan<>).FullName).GetPublicSymbol(), symbol.Parameters.First().Type.OriginalDefinition); 293Assert.Equal(compilation.GetTypeByMetadataName(typeof(ReadOnlySpan<>).FullName).GetPublicSymbol(), symbol.Parameters.First().Type.OriginalDefinition); 328Assert.Equal(compilation.GetTypeByMetadataName(typeof(ReadOnlySpan<>).FullName).GetPublicSymbol(), symbol.Parameters.Single().Type.OriginalDefinition); 357Assert.Equal(compilation.GetTypeByMetadataName(typeof(ReadOnlySpan<>).FullName).GetPublicSymbol(), symbol.Parameters.Single().Type.OriginalDefinition); 1162Assert.Equal(compilation.GetTypeByMetadataName(typeof(ReadOnlySpan<>).FullName).GetPublicSymbol(), symbol.Parameters.Single().Type.OriginalDefinition); 1191Assert.Equal(compilation.GetTypeByMetadataName(typeof(ReadOnlySpan<>).FullName).GetPublicSymbol(), symbol.Parameters.Single().Type.OriginalDefinition);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestSource.cs (1)
94public static CSharpTestSource Create(ReadOnlySpan<CSharpTestSource> source)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
95var trimmedLine = line.Trim();
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (9)
src\Compilers\Core\Portable\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);
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
98public void AppendFormatted(ReadOnlySpan<char> value) => _builder!.Append(value.ToString());
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
98public void AppendFormatted(ReadOnlySpan<char> value) => _builder!.Append(value.ToString());
Microsoft.CodeAnalysis.Features (8)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (2)
71public (ImmutableArray<AnalyzedSwitchSection>, SyntaxNode TargetExpression) AnalyzeIfStatementSequence(ReadOnlySpan<IOperation> operations) 96ReadOnlySpan<IOperation> operations,
EmbeddedLanguages\RegularExpressions\RegexCharClass.cs (1)
207ReadOnlySpan<byte> asciiLookup = [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x03, 0xFE, 0xFF, 0xFF, 0x87, 0xFE, 0xFF, 0xFF, 0x07];
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\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderHelper.cs (1)
61var commentText = GetTextContextOfComment(trivia).Span.Trim();
Microsoft.CodeAnalysis.Features.Test.Utilities (3)
EditAndContinue\SourceMarkers.cs (3)
129var regionText = plainSource.AsSpan().Slice(exceptionRegion.Index, exceptionRegion.Length); 171public static int IndexOfDifferent(ReadOnlySpan<char> span, char c) 184public static int LastIndexOfDifferent(ReadOnlySpan<char> span, char c)
Microsoft.CodeAnalysis.InteractiveHost (7)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
797public static string CollapseWithForwardSlash(ReadOnlySpan<char> path)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
98public void AppendFormatted(ReadOnlySpan<char> value) => _builder!.Append(value.ToString());
src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
48private static int IndexOfExtension(ReadOnlySpan<char> path)
src\Compilers\Core\Portable\InternalUtilities\Hash.cs (4)
223internal static int GetFNVHashCode(ReadOnlySpan<byte> data, out bool isAscii) 266internal static int GetFNVHashCode(ReadOnlySpan<char> data) 291internal static int GetCaseInsensitiveFNVHashCode(ReadOnlySpan<char> data) 426internal static int CombineFNVHash(int hashCode, ReadOnlySpan<char> data)
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
RoundTripUtil.cs (1)
145var pdbSpan = new ReadOnlySpan<byte>(originalPdbReader!.MetadataPointer, originalPdbReader.MetadataLength);
Microsoft.CodeAnalysis.Test.Utilities (10)
Assert\AssertEx.cs (8)
164public static void Equal<T>(ReadOnlySpan<T> expected, T[] actual) => 250ReadOnlySpan<T> expected, 251ReadOnlySpan<T> actual, 366private static bool SequenceEqual<T>(ReadOnlySpan<T> expected, ReadOnlySpan<T> actual, IEqualityComparer<T> comparer = null) 760ReadOnlySpan<T> expected, 761ReadOnlySpan<T> actual, 824static string join(string itemSeparator, ReadOnlySpan<T> items, Func<T, string> itemInspector)
TestHelpers.cs (2)
151public static ImmutableArray<byte> HexToByte(ReadOnlySpan<char> input) 166byte parseByte(ReadOnlySpan<char> input, NumberStyles numberStyle)
Microsoft.CodeAnalysis.UnitTests (1)
Collections\List\SegmentedList.Generic.Tests.AddRange.cs (1)
72if (spanParameter.ParameterType.GetGenericTypeDefinition() != typeof(ReadOnlySpan<>))
Microsoft.CodeAnalysis.Workspaces (49)
Diagnostics\Extensions.cs (1)
94var 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[] { '(', '[' };
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (1)
1317internal static int BinarySearch<TElement, TValue>(this ReadOnlySpan<TElement> array, TValue value, Func<TElement, TValue, int> comparer)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
797public static string CollapseWithForwardSlash(ReadOnlySpan<char> path)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
53public abstract void Append(ReadOnlySpan<byte> source);
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\Compilers\Core\Portable\Hashing\XxHashShared.cs (4)
42public static ReadOnlySpan<byte> DefaultSecret => 127ReadOnlySpan<ulong> defaultSecretUInt64 = MemoryMarshal.Cast<byte, ulong>(DefaultSecret); 145ReadOnlySpan<ulong> defaultSecret3UInt64 = MemoryMarshal.Cast<byte, ulong>(DefaultSecret.Slice(3)); 249public static void Append(ref State state, ReadOnlySpan<byte> source)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
98public void AppendFormatted(ReadOnlySpan<char> value) => _builder!.Append(value.ToString());
src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
48private static int IndexOfExtension(ReadOnlySpan<char> path)
src\Compilers\Core\Portable\InternalUtilities\Hash.cs (4)
223internal static int GetFNVHashCode(ReadOnlySpan<byte> data, out bool isAscii) 266internal static int GetFNVHashCode(ReadOnlySpan<char> data) 291internal static int GetCaseInsensitiveFNVHashCode(ReadOnlySpan<char> data) 426internal static int CombineFNVHash(int hashCode, ReadOnlySpan<char> data)
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (1)
22public static bool Equals(ReadOnlySpan<char> x, ReadOnlyMemory<char> y)
src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (5)
356private static string? FindSharedEntryASCII(int hashCode, ReadOnlySpan<byte> asciiChars) 585internal static string AddSharedUtf8(ReadOnlySpan<byte> bytes) 601private static string AddSharedSlow(int hashCode, ReadOnlySpan<byte> utf8Bytes, bool isAscii) 725internal static bool TextEqualsASCII(string text, ReadOnlySpan<byte> ascii) 750internal static bool TextEquals(string array, ReadOnlySpan<char> text)
src\Dependencies\Collections\SegmentedDictionary`2.cs (1)
192ReadOnlySpan<KeyValuePair<TKey, TValue>> span;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
95private static bool TryParseNotification(ReadOnlySpan<char> value, out NotificationOption2 notification)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ICompilationExtensions.cs (1)
268=> compilation.GetTypeByMetadataName(typeof(ReadOnlySpan<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
757Name: nameof(ReadOnlySpan<int>),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (3)
323/// cref="ReadOnlySpan{T}">ReadOnlySpan</see>&lt;<see cref="byte"/>&gt;, and deserialized to a byte array. 326public void WriteSpan(ReadOnlySpan<byte> span) 363ReadOnlySpan<T> span,
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\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)
Storage\SQLite\Interop\NativeMethods.cs (2)
146public static Result sqlite3_bind_text(SafeSqliteStatementHandle stmt, int index, ReadOnlySpan<byte> val) 158public static Result sqlite3_bind_blob(SafeSqliteStatementHandle stmt, int index, ReadOnlySpan<byte> bytes)
Storage\SQLite\v2\Interop\SqlStatement.cs (1)
106internal void BindBlobParameter(int parameterIndex, ReadOnlySpan<byte> bytes)
Storage\SQLite\v2\SQLitePersistentStorage.Accessor.cs (2)
360ReadOnlySpan<byte> checksumBytes, 361ReadOnlySpan<byte> dataBytes)
Workspace\Solution\Checksum.cs (1)
52public static Checksum From(ReadOnlySpan<byte> checksum)
Workspace\Solution\Checksum_Factory.cs (1)
95public static Checksum Create(ReadOnlySpan<Checksum> hashes)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (30)
src\Compilers\Core\Portable\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);
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (1)
1317internal static int BinarySearch<TElement, TValue>(this ReadOnlySpan<TElement> array, TValue value, Func<TElement, TValue, int> comparer)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
797public static string CollapseWithForwardSlash(ReadOnlySpan<char> path)
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\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
98public void AppendFormatted(ReadOnlySpan<char> value) => _builder!.Append(value.ToString());
src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
48private static int IndexOfExtension(ReadOnlySpan<char> path)
src\Compilers\Core\Portable\InternalUtilities\Hash.cs (4)
223internal static int GetFNVHashCode(ReadOnlySpan<byte> data, out bool isAscii) 266internal static int GetFNVHashCode(ReadOnlySpan<char> data) 291internal static int GetCaseInsensitiveFNVHashCode(ReadOnlySpan<char> data) 426internal static int CombineFNVHash(int hashCode, ReadOnlySpan<char> data)
src\Compilers\Core\Portable\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);
src\Compilers\Core\Portable\InternalUtilities\ReadOnlyMemoryOfCharComparer.cs (1)
22public static bool Equals(ReadOnlySpan<char> x, ReadOnlyMemory<char> y)
src\Compilers\Core\Portable\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)
src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (5)
356private static string? FindSharedEntryASCII(int hashCode, ReadOnlySpan<byte> asciiChars) 585internal static string AddSharedUtf8(ReadOnlySpan<byte> bytes) 601private static string AddSharedSlow(int hashCode, ReadOnlySpan<byte> utf8Bytes, bool isAscii) 725internal static bool TextEqualsASCII(string text, ReadOnlySpan<byte> ascii) 750internal static bool TextEquals(string array, ReadOnlySpan<char> text)
src\Dependencies\Collections\SegmentedDictionary`2.cs (1)
192ReadOnlySpan<KeyValuePair<TKey, TValue>> span;
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
XxHash128Tests.cs (5)
44Assert.Equal(expectedHash128, ReadHashBigEndian(XxHash128.Hash((ReadOnlySpan<byte>)input))); 47Assert.Equal(expectedHash128, ReadHashBigEndian(XxHash128.Hash((ReadOnlySpan<byte>)input, test.Seed))); 107ReadOnlySpan<byte> input = asciiBytes; 111ReadOnlySpan<byte> slice = input.Slice(0, rand.Next(0, input.Length) + 1); 139private static Hash128 ReadHashBigEndian(ReadOnlySpan<byte> span)
Microsoft.CSharp (2)
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (2)
1278private static ReadOnlySpan<PredefinedType> RgptIntOp => 1575private static ReadOnlySpan<PredefinedName> EK2NAME =>
Microsoft.Data.Analysis (541)
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 (8)
539ReadOnlySpan<T> span, 549ReadOnlySpan<T> span, 597ReadOnlySpan<TKey> span, int lo, int hi, 655ReadOnlySpan<TKey> span, int lo, int hi, 677ReadOnlySpan<TKey> span, int i, int n, int lo, 710ReadOnlySpan<TKey> span, int lo, int hi, 738ReadOnlySpan<TKey> span, int i, int j, int k, 749ReadOnlySpan<TKey> span, int i, int j,
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); 384ret.Append(IsValid(i) ? GetBytes(i) : default(ReadOnlySpan<byte>)); 429ret.Append(IsValid(i) ? GetBytes(i) : default(ReadOnlySpan<byte>)); 448ret.Append(IsValid(index.Value) ? GetBytes(index.Value) : default(ReadOnlySpan<byte>)); 468ret.Append(IsValid(index.Value) ? GetBytes(index.Value) : default(ReadOnlySpan<byte>)); 601ReadOnlySpan<byte> bytes = value != null ? Encoding.UTF8.GetBytes(value) : default(ReadOnlySpan<byte>); 614var strBytes = GetBytes(i); 642ReadOnlySpan<byte> bytes = value != null ? Encoding.UTF8.GetBytes(value) : default(ReadOnlySpan<byte>); 655var strBytes = GetBytes(i); 692ret.Append(funcResult != null ? encoding.GetBytes(funcResult) : default(ReadOnlySpan<byte>));
DataFrameColumns\StringDataFrameColumn.cs (4)
348var span = mapIndices.ColumnContainer.Buffers[b].ReadOnlySpan; 349var validitySpan = mapIndices.ColumnContainer.NullBitMapBuffers[b].ReadOnlySpan; 370var span = mapIndices.ColumnContainer.Buffers[b].ReadOnlySpan; 371var 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 (8)
24var rightSpan = right.Buffers[i].ReadOnlySpan; 27var rightValidity = right.NullBitMapBuffers[i].ReadOnlySpan; 77var rightValidity = this.NullBitMapBuffers[i].ReadOnlySpan; 117var leftSpan = this.Buffers[i].ReadOnlySpan; 118var rightSpan = right.Buffers[i].ReadOnlySpan; 159var leftSpan = this.Buffers[i].ReadOnlySpan; 192private static void ValidityElementwiseAnd(ReadOnlySpan<byte> left, ReadOnlySpan<byte> right, Span<byte> destination)
PrimitiveColumnContainer.cs (18)
221var sourceNullBitMap = NullBitMapBuffers[b].ReadOnlySpan; 463ReadOnlySpan<T> thisSpan = Buffers[0].ReadOnlySpan; 464ReadOnlySpan<byte> thisNullBitMapSpan = NullBitMapBuffers[0].ReadOnlySpan; 476ReadOnlySpan<byte> mapIndicesNullBitMapSpan = mapIndices.NullBitMapBuffers[index].ReadOnlySpan; 477ReadOnlySpan<U> mapIndicesSpan = buffer.ReadOnlySpan; 478ReadOnlySpan<long> mapIndicesLongSpan = default; 479ReadOnlySpan<int> mapIndicesIntSpan = default; 574ReadOnlySpan<T> span = buffer.ReadOnlySpan; 593ReadOnlySpan<T> span = buffer.ReadOnlySpan; 612ReadOnlySpan<T> span = buffer.ReadOnlySpan; 631ReadOnlySpan<T> span = buffer.ReadOnlySpan; 650ReadOnlySpan<T> span = buffer.ReadOnlySpan; 669ReadOnlySpan<T> span = buffer.ReadOnlySpan; 688ReadOnlySpan<T> span = buffer.ReadOnlySpan; 707ReadOnlySpan<T> span = buffer.ReadOnlySpan; 726ReadOnlySpan<T> span = buffer.ReadOnlySpan; 745ReadOnlySpan<T> span = buffer.ReadOnlySpan; 764ReadOnlySpan<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; 622ReadOnlySpan<T> readOnlySpan = buffer.ReadOnlySpan; 623ReadOnlySpan<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)
61var values = vBufferColumn[index].GetValues();
Microsoft.DotNet.Build.Tasks.Installers (1)
src\RpmHeader.cs (1)
74private static IndexEntry ReadIndexEntry(ReadOnlySpan<byte> bytes)
Microsoft.DotNet.SignTool (1)
src\StrongName.cs (1)
710ReadOnlySpan<byte> pubKeyData)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (8)
Helpers.cs (8)
21private static ReadOnlySpan<char> GetNextWord(ReadOnlySpan<char> value, scoped ref int pos) 59public static string PascalCase(ReadOnlySpan<char> value) 62ReadOnlySpan<char> word; 88public static string CamelCase(ReadOnlySpan<char> value) 91ReadOnlySpan<char> word; 117public static string KebabCase(ReadOnlySpan<char> value) 120ReadOnlySpan<char> word;
Microsoft.Extensions.AI (7)
CachingHelpers.cs (1)
27public static string GetCacheKey(ReadOnlySpan<object?> values, JsonSerializerOptions serializerOptions)
ChatCompletion\CachingChatClient.cs (1)
131protected abstract string GetCacheKey(params ReadOnlySpan<object?> values);
ChatCompletion\ChatCompletion{T}.cs (1)
99var utf8Span = new ReadOnlySpan<byte>(buffer, 0, utf8SpanLength);
ChatCompletion\DistributedCachingChatClient.cs (1)
99protected override string GetCacheKey(params ReadOnlySpan<object?> values)
ChatCompletion\FunctionInvokingChatClient.cs (1)
606protected virtual IList<ChatMessage> AddResponseMessages(IList<ChatMessage> chat, ReadOnlySpan<FunctionInvocationResult> results)
Embeddings\CachingEmbeddingGenerator.cs (1)
112protected abstract string GetCacheKey(params ReadOnlySpan<object?> values);
Embeddings\DistributedCachingEmbeddingGenerator.cs (1)
81protected override string GetCacheKey(params ReadOnlySpan<object?> values)
Microsoft.Extensions.AI.Abstractions (6)
Contents\DataUriParser.cs (2)
68public static bool IsValidMediaType(ReadOnlySpan<char> mediaTypeSpan, ref string? mediaType) 121private static bool IsValidBase64Data(ReadOnlySpan<char> value)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (1)
551private static string FormatJsonPointer(ReadOnlySpan<string> path)
src\Shared\JsonSchemaExporter\JsonSchemaExporterContext.cs (1)
44public ReadOnlySpan<string> Path => _path;
Utilities\AIJsonSchemaCreateContext.cs (1)
33public ReadOnlySpan<string> Path => _exporterContext.Path;
Utilities\AIJsonUtilities.Schema.cs (1)
447private static JsonElement ParseJsonElement(ReadOnlySpan<byte> utf8Json)
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceEmbeddingGenerator.cs (1)
119ReadOnlySpan<byte> base64 = binaryData.ToMemory().Span;
Microsoft.Extensions.AI.Integration.Tests (2)
QuantizationEmbeddingGenerator.cs (2)
49ReadOnlySpan<float> vector = embedding.Vector.Span; 82ReadOnlySpan<float> vector = embedding.Vector.Span;
Microsoft.Extensions.AI.OpenAI (16)
src\Shared\ServerSentEvents\ArrayBuffer.cs (1)
91public readonly ReadOnlySpan<byte> ActiveReadOnlySpan => new ReadOnlySpan<byte>(_bytes, _activeStart, _availableStart - _activeStart);
src\Shared\ServerSentEvents\Helpers.cs (4)
45public static void WriteUtf8String(this IBufferWriter<byte> writer, ReadOnlySpan<byte> value) 58public static unsafe void WriteUtf8String(this IBufferWriter<byte> writer, ReadOnlySpan<char> value) 81public static bool ContainsLineBreaks(this ReadOnlySpan<char> text) => 113public static unsafe string Utf8GetString(ReadOnlySpan<byte> bytes)
src\Shared\ServerSentEvents\SseFormatter.cs (4)
100ReadOnlySpan<byte> data, 139private static void WriteLinesWithPrefix(PooledByteBufferWriter writer, ReadOnlySpan<byte> prefix, ReadOnlySpan<byte> data) 161ReadOnlySpan<byte> nextLine = data.Slice(0, lineLength);
src\Shared\ServerSentEvents\SseItemParser.cs (1)
11internal delegate T SseItemParser<out T>(string eventType, ReadOnlySpan<byte> data);
src\Shared\ServerSentEvents\SseParser_1.cs (6)
44private static ReadOnlySpan<byte> CRLF => "\r\n"u8; 334ReadOnlySpan<byte> line = _lineBuffer.AsSpan(_lineOffset, _newlineIndex - _lineOffset); 359ReadOnlySpan<byte> fieldName; 360ReadOnlySpan<byte> fieldValue; 392ReadOnlySpan<byte> remainder = _lineBuffer.AsSpan(_newlineIndex + newlineLength, _lineLength - line.Length - newlineLength); 543private static ReadOnlySpan<byte> Utf8Bom => [0xEF, 0xBB, 0xBF];
Microsoft.Extensions.AI.Tests (2)
ChatCompletion\DistributedCachingChatClientTest.cs (1)
821protected override string GetCacheKey(params ReadOnlySpan<object?> values)
Embeddings\DistributedCachingEmbeddingGeneratorTest.cs (1)
354protected override string GetCacheKey(params ReadOnlySpan<object?> values)
Microsoft.Extensions.Caching.Hybrid (8)
Internal\BufferChunk.cs (1)
89internal ReadOnlySpan<byte> AsSpan() => Length == 0 ? default : new(OversizedArray!, Offset, Length);
Internal\DefaultHybridCache.TagInvalidation.cs (1)
83public bool IsTagExpired(ReadOnlySpan<char> tag, long timestamp, out bool isPending)
Internal\HybridCachePayload.cs (5)
191ReadOnlySpan<byte> bytes = new(source.Array!, source.Offset, source.Count); 244if (!TryReadString(ref bytes, ref scratch, out var stringSpan)) 334static bool TryReadString(ref ReadOnlySpan<byte> buffer, ref char[] scratch, out ReadOnlySpan<char> value) 374static 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.Compliance.Abstractions (10)
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)
46public 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)
53public override int GetRedactedLength(ReadOnlySpan<char> input) 95public override int Redact(ReadOnlySpan<char> source, Span<char> destination) 111private static byte[] CreateSha256Hash(ReadOnlySpan<char> value, 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 (6)
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)
Microsoft.Extensions.DependencyModel (2)
DependencyContextJsonReader.cs (2)
18private static ReadOnlySpan<byte> Utf8Bom => [0xEF, 0xBB, 0xBF]; 58ReadOnlySpan<byte> utf8Bom = Utf8Bom;
Microsoft.Extensions.Diagnostics (2)
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;
Microsoft.Extensions.Diagnostics.ResourceMonitoring (43)
Linux\LinuxUtilizationParserCgroupV1.cs (18)
102ReadOnlySpan<char> usage = bufferWriter.Buffer.WrittenSpan; 123ReadOnlySpan<char> stat = bufferWriter.Buffer.WrittenSpan; 189ReadOnlySpan<char> memoryBuffer = bufferWriter.Buffer.WrittenSpan; 209ReadOnlySpan<char> memoryFile = bufferWriter.Buffer.WrittenSpan; 218ReadOnlySpan<char> inactiveMemorySlice = memoryFile.Slice(index + TotalInactiveFile.Length, memoryFile.Length - index - TotalInactiveFile.Length); 230ReadOnlySpan<char> containerMemoryUsageFile = bufferWriter.Buffer.WrittenSpan; 261ReadOnlySpan<char> firstLine = bufferWriter.Buffer.WrittenSpan; 268ReadOnlySpan<char> totalMemory = firstLine.Slice(MemTotal.Length, firstLine.Length - MemTotal.Length); 282ReadOnlySpan<char> unit = totalMemory.Slice(totalMemory.Length - 2, 2); 306ReadOnlySpan<char> stats = bufferWriter.Buffer.WrittenSpan; 320ReadOnlySpan<char> group = groupIndex == -1 ? stats : stats.Slice(0, groupIndex); 339ReadOnlySpan<char> first = group.Slice(0, rangeIndex); 342ReadOnlySpan<char> second = group.Slice(rangeIndex + 1); 363static void ThrowException(ReadOnlySpan<char> content) => 373private static int GetNextNumber(ReadOnlySpan<char> buffer, out long number) 407ReadOnlySpan<char> quotaBuffer = bufferWriter.Buffer.WrittenSpan; 425ReadOnlySpan<char> periodBuffer = bufferWriter.Buffer.WrittenSpan; 462ReadOnlySpan<char> cpuPodWeightBuffer = bufferWriter.Buffer.WrittenSpan;
Linux\LinuxUtilizationParserCgroupV2.cs (20)
111ReadOnlySpan<char> usage = bufferWriter.Buffer.WrittenSpan; 118ReadOnlySpan<char> cpuUsage = usage.Slice(Usage_usec.Length, usage.Length - Usage_usec.Length); 141ReadOnlySpan<char> stat = bufferWriter.Buffer.WrittenSpan; 219ReadOnlySpan<char> memoryBuffer = bufferWriter.Buffer.WrittenSpan; 257ReadOnlySpan<char> memoryUsageFile = bufferWriter.Buffer.WrittenSpan; 290ReadOnlySpan<char> memoryFile; 304ReadOnlySpan<char> inactiveMemorySlice = memoryFile.Slice(index + InactiveFile.Length, memoryFile.Length - index - InactiveFile.Length); 343ReadOnlySpan<char> firstLine = bufferWriter.Buffer.WrittenSpan; 350ReadOnlySpan<char> totalMemory = firstLine.Slice(MemTotal.Length, firstLine.Length - MemTotal.Length); 364ReadOnlySpan<char> unit = totalMemory.Slice(totalMemory.Length - 2, 2); 388ReadOnlySpan<char> stats = bufferWriter.Buffer.WrittenSpan; 402ReadOnlySpan<char> group = groupIndex == -1 ? stats : stats.Slice(0, groupIndex); 421ReadOnlySpan<char> first = group.Slice(0, rangeIndex); 424ReadOnlySpan<char> second = group.Slice(rangeIndex + 1); 445static void ThrowException(ReadOnlySpan<char> content) => 455private static int GetNextNumber(ReadOnlySpan<char> buffer, out long number) 498ReadOnlySpan<char> quotaBuffer = bufferWriter.Buffer.WrittenSpan; 521ReadOnlySpan<char> cpuPeriodSlice = quotaBuffer.Slice(index + quotaString.Length, quotaBuffer.Length - index - quotaString.Length); 547ReadOnlySpan<char> cpuPodWeightBuffer = bufferWriter.Buffer.WrittenSpan; 586ReadOnlySpan<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.Testing (2)
Metrics\CollectedMeasurement.cs (1)
26internal CollectedMeasurement(T value, ReadOnlySpan<KeyValuePair<string, object?>> tags, DateTimeOffset timestamp)
Metrics\MetricCollector.cs (1)
296private void OnMeasurementRecorded(Instrument instrument, T measurement, ReadOnlySpan<KeyValuePair<string, object?>> tags, object? state)
Microsoft.Extensions.Http (1)
Logging\LogHelper.cs (1)
208static ReadOnlySpan<char> GetPath(string pathAndQuery, int queryIndex) => pathAndQuery.AsSpan(0, queryIndex + 1);
Microsoft.Extensions.Http.Diagnostics (7)
Http\DownstreamDependencyMetadataManager.cs (2)
103ReadOnlySpan<char> requestRouteAsSpan = routeMetadata.RequestRoute.AsSpan(); 355ReadOnlySpan<char> requestRouteAsSpan = requestPath.AsSpan();
Logging\Internal\HttpHeadersRedactor.cs (4)
42var firstItem = enumerator.Current.AsSpan(); 44ReadOnlySpan<char> currentItem; 105var firstItem = input[0].AsSpan(); 117ReadOnlySpan<char> currentItem;
src\Shared\BufferWriterPool\BufferWriter.cs (1)
54public ReadOnlySpan<T> WrittenSpan => _buffer.AsSpan(0, WrittenCount);
Microsoft.Extensions.Identity.Core (1)
Base32.cs (1)
77var trimmedInput = input.AsSpan().TrimEnd('=');
Microsoft.Extensions.Logging (3)
Logger.cs (1)
241ReadOnlySpan<LogLevel> logLevels =
LoggerRuleSelector.cs (1)
61ReadOnlySpan<char> prefix, suffix;
src\libraries\Common\src\Extensions\Logging\DebuggerDisplayFormatting.cs (1)
34ReadOnlySpan<LogLevel> logLevels =
Microsoft.Extensions.Logging.Abstractions (5)
src\libraries\Common\src\Extensions\Logging\DebuggerDisplayFormatting.cs (1)
34ReadOnlySpan<LogLevel> logLevels =
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
104public ReadOnlySpan<char> AsSpan(bool terminate) 114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
Microsoft.Extensions.Logging.Console (5)
AnsiParser.cs (1)
52var span = message.AsSpan();
AnsiParsingLogConsole.cs (1)
63ReadOnlySpan<char> span = message.AsSpan(startIndex, length);
JsonConsoleFormatter.cs (1)
99var messageBytes = output.WrittenSpan;
src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
90public ReadOnlySpan<byte> ActiveReadOnlySpan => new ReadOnlySpan<byte>(_bytes, _activeStart, _availableStart - _activeStart);
src\libraries\Common\src\System\Text\Json\PooledByteBufferWriter.cs (1)
30public ReadOnlySpan<byte> WrittenSpan => _buffer.ActiveSpan;
Microsoft.Extensions.Logging.Generators (9)
LoggerMessageGenerator.Emitter.cs (7)
62ReadOnlySpan<char> template = RemoveSpecialSymbol(lm.TemplateList[i].AsSpan()); 63ReadOnlySpan<char> parameter = RemoveSpecialSymbol(lm.TemplateParameters[i].CodeName.AsSpan()); 222ReadOnlySpan<char> template = RemoveSpecialSymbol(t.Key.AsSpan()); 223ReadOnlySpan<char> parameter = RemoveSpecialSymbol(p.Name.AsSpan()); 616private static bool ContainsSpecialSymbol(ReadOnlySpan<char> variableOrTemplateName) 634private static ReadOnlySpan<char> RemoveSpecialSymbol(ReadOnlySpan<char> variableOrTemplateName)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
160public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.cs (1)
144public ReadOnlySpan<T> AsSpan()
Microsoft.Extensions.Options.SourceGeneration (1)
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(); 593ReadOnlySpan<char> span = AsSpan(); 613ReadOnlySpan<char> span = AsSpan();
Microsoft.Extensions.Resilience.PerformanceTests (1)
MetricsUtil.cs (1)
31ReadOnlySpan<KeyValuePair<string, object?>> tags,
Microsoft.Extensions.ServiceDiscovery (1)
Configuration\ConfigurationServiceEndpointProvider.cs (1)
81ReadOnlySpan<string> candidateNames = [DefaultEndpointName, .. _schemes];
Microsoft.Extensions.Telemetry (12)
Http\HttpRouteFormatter.cs (4)
53var httpPathAsSpan = httpPath.AsSpan().TrimStart(ForwardSlash); 173ReadOnlySpan<char> httpPath, 194ReadOnlySpan<char> httpPath, 236ReadOnlySpan<char> httpPath,
Http\HttpRouteParser.cs (4)
46var httpPathAsSpan = httpPath.AsSpan(); 247ReadOnlySpan<char> httpPath, 265ReadOnlySpan<char> httpPathAsSpan, 296ReadOnlySpan<char> httpPathAsSpan,
Logging\Import\LoggerRuleSelector.cs (1)
66ReadOnlySpan<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;
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.Gen.ContextualOptions.Unit.Tests (2)
EmitterTests.cs (1)
141typeof(ReadOnlySpan<>).Assembly
ParserTests.cs (1)
106new[] { typeof(OptionsContextAttribute).Assembly, typeof(ReadOnlySpan<>).Assembly },
Microsoft.Gen.Logging (1)
src\Generators\Shared\RoslynExtensions.cs (1)
106public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span)
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.Gen.Metrics (1)
src\Generators\Shared\RoslynExtensions.cs (1)
106public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span)
Microsoft.Interop.ComInterfaceGenerator (2)
ComInterfaceGenerator.cs (1)
683static ExpressionSyntax CreateEmbeddedDataBlobCreationStatement(ReadOnlySpan<byte> bytes)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
160public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span)
Microsoft.Interop.LibraryImportGenerator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
160public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
160public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span)
Microsoft.Interop.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
160public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span)
Microsoft.JSInterop (1)
src\Components\Shared\src\ArrayBuilder.cs (1)
83internal int Append(ReadOnlySpan<T> source)
Microsoft.Maui (1)
Converters\FlexEnumsConverters.cs (1)
279 var value =
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)
336 static Color FromRgba(ReadOnlySpan<char> colorAsHex) 386 static Color FromArgb(ReadOnlySpan<char> colorAsHex) 588 static bool TryParse(ReadOnlySpan<char> value, out Color color) 609 out ReadOnlySpan<char> quad0, 610 out ReadOnlySpan<char> quad1, 611 out ReadOnlySpan<char> quad2, 612 out ReadOnlySpan<char> quad3)) 632 out ReadOnlySpan<char> triplet0, 633 out ReadOnlySpan<char> triplet1, 634 out ReadOnlySpan<char> triplet2)) 653 out ReadOnlySpan<char> quad0, 654 out ReadOnlySpan<char> quad1, 655 out ReadOnlySpan<char> quad2, 656 out ReadOnlySpan<char> quad3)) 676 out ReadOnlySpan<char> triplet0, 677 out ReadOnlySpan<char> triplet1, 678 out ReadOnlySpan<char> triplet2)) 697 out ReadOnlySpan<char> quad0, 698 out ReadOnlySpan<char> quad1, 699 out ReadOnlySpan<char> quad2, 700 out ReadOnlySpan<char> quad3)) 720 out ReadOnlySpan<char> triplet0, 721 out ReadOnlySpan<char> triplet1, 722 out ReadOnlySpan<char> triplet2)) 751 static Color GetNamedColor(ReadOnlySpan<char> value) 915 ReadOnlySpan<char> value, 916 out ReadOnlySpan<char> quad0, 917 out ReadOnlySpan<char> quad1, 918 out ReadOnlySpan<char> quad2, 919 out ReadOnlySpan<char> quad3) 958 ReadOnlySpan<char> value, 959 out ReadOnlySpan<char> triplet0, 960 out ReadOnlySpan<char> triplet1, 961 out ReadOnlySpan<char> triplet2) 993 static bool TryParseColorValue(ReadOnlySpan<char> elem, int maxValue, bool acceptPercent, out double value) 1010 static bool TryParseOpacity(ReadOnlySpan<char> elem, out double value) 1020 static bool TryParseDouble(ReadOnlySpan<char> s, out double value) => 1029 static int ParseInt(ReadOnlySpan<char> s) =>
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) 160public static Result Parse(ReadOnlySpan<char> span, out Double value, OptionFlags flags = OptionFlags.Default) 212public static bool TryParse(ReadOnlySpan<char> span, out Single value, out int ichEnd, OptionFlags flags = OptionFlags.Default) 301public static bool TryParse(ReadOnlySpan<char> span, out Double value, out int ichEnd, OptionFlags flags = OptionFlags.Default) 484private static bool TryParseSpecial(ReadOnlySpan<char> span, ref int ich, out Double value) 492private static bool TryParseSpecial(ReadOnlySpan<char> span, ref int ich, out Single value) 549private static bool TryParseCore(ReadOnlySpan<char> span, ref int ich, ref bool neg, ref ulong num, ref long exp, OptionFlags flags = OptionFlags.Default)
Utilities\FloatUtils.cs (2)
443public static bool IsFinite(ReadOnlySpan<double> values) 456public 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)
2270var dense1Values = dense1.GetValues(); 2271var dense2Values = dense2.GetValues(); 5410var slotNameValues = slotNames.GetValues(); 6091var stdevValues = stdev.GetValues(); 6111var avgValues = avg.GetValues(); 6112var 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)
src\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)
src\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 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 (4)
KMeansModelParameters.cs (2)
186var values = _centroids[i].GetValues(); 244var values = _centroids[i].GetValues();
KMeansPlusPlusTrainer.cs (2)
1433var reducedStateCacheValues = reducedState.CachedSumDebug[i].GetValues(); 1434var cachedSumCopyValues = cachedSumCopy[i].GetValues();
Microsoft.ML.LightGbm (12)
LightGbmTrainerBase.cs (12)
822private void GetFeatureValueDense(IChannel ch, FloatLabelCursor cursor, CategoricalMetaData catMetaData, Random rand, out ReadOnlySpan<float> featureValues) 860CategoricalMetaData catMetaData, Random rand, out ReadOnlySpan<int> indices, 861out ReadOnlySpan<float> featureValues, out int cnt) 944GetFeatureValueDense(ch, cursor, catMetaData, rand, out ReadOnlySpan<float> featureValues); 968GetFeatureValueSparse(ch, cursor, catMetaData, rand, out ReadOnlySpan<int> featureIndices, out ReadOnlySpan<float> featureValues, out int cnt); 1116GetFeatureValueDense(ch, cursor, catMetaData, rand, out ReadOnlySpan<float> featureValues); 1123GetFeatureValueSparse(ch, cursor, catMetaData, rand, out ReadOnlySpan<int> indices, out ReadOnlySpan<float> featureValues, out int cnt); 1158GetFeatureValueDense(ch, cursor, catMetaData, rand, out ReadOnlySpan<float> featureValues); 1171GetFeatureValueSparse(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 (23)
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();
Microsoft.ML.TensorFlow.Tests (20)
TensorFlowEstimatorTests.cs (3)
311var aValues = avalue.GetValues(); 312var bValues = bvalue.GetValues(); 313var cValues = cvalue.GetValues();
TensorflowTests.cs (17)
210var cValues = c.GetValues(); 319var oneDimValues = oneDim.GetValues(); 323var twoDimValues = twoDim.GetValues(); 327var threeDimValues = threeDim.GetValues(); 331var fourDimValues = fourDim.GetValues(); 335var fourDimKnownValues = fourDimKnown.GetValues(); 460var f64Values = f64.GetValues(); 463var f32Values = f32.GetValues(); 466var i64Values = i64.GetValues(); 469var i32Values = i32.GetValues(); 472var i16Values = i16.GetValues(); 475var i8Values = i8.GetValues(); 478var u64Values = u64.GetValues(); 481var u32Values = u32.GetValues(); 484var u16Values = u16.GetValues(); 487var u8Values = u8.GetValues(); 490var bValues = b.GetValues();
Microsoft.ML.TestFrameworkCommon (4)
TestCommon.cs (4)
142var v1Values = v1.GetValues(); 143var v2Values = v2.GetValues(); 160var v1Indices = v1.GetIndices(); 161var 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 (179)
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 (17)
313protected override EncodeResults<EncodedToken> EncodeToTokens(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings) 328out ReadOnlySpan<char> textSpanToEncode, 356protected override EncodeResults<int> EncodeToIds(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings) 377out ReadOnlySpan<char> textSpanToEncode, 412protected override int CountTokens(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings) 433out ReadOnlySpan<char> textSpanToEncode, 477protected override int GetIndexByTokenCount(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings, bool fromEnd, out string? normalizedText, out int tokenCount) 488private int CountTokens(string? text, ReadOnlySpan<char> textSpan, bool considerPreTokenization, bool considerNormalization, out string? normalizedText, out int charsConsumed, int maxTokenCount = int.MaxValue) 510out ReadOnlySpan<char> textSpanToEncode, 536private int LastIndexOf(string? text, ReadOnlySpan<char> textSpan, int maxTokenCount, bool considerPreTokenization, bool considerNormalization, out string? normalizedText, out int tokenCount) 558out ReadOnlySpan<char> textSpanToEncode, 589private int? MapTokenToId(ReadOnlySpan<char> token) => _vocab.TryGetValue(token, out int value) ? value : null; 739ReadOnlySpan<char> sSpan = s.AsSpan(); 864internal Word MergeWord(ReadOnlySpan<char> w, ref PriorityQueue<Merge>? priorityQueue) 981internal void EncodeWithCache(ReadOnlySpan<char> text, List<EncodedToken> tokens, int offset, ref PriorityQueue<Merge>? priorityQueue) 1055private int EncodeToIdsWithCache(ReadOnlySpan<char> text, List<int>? accumulatedIds, int maxTokens, out int charsConsumed, ref PriorityQueue<Merge>? priorityQueue) 1088internal int EncodeToIdsFromEndWithCache(ReadOnlySpan<char> text, IList<int>? accumulatedIds, int maxTokens, out int textIndex, ref PriorityQueue<Merge>? priorityQueue)
Model\CodeGenTokenizer.cs (25)
285protected override EncodeResults<EncodedToken> EncodeToTokens(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings) 301EncodeResults<EncodedToken> result = EncodeToTokens(text, ReadOnlySpan<char>.Empty, addPrefixSpace, addBeginningOfSentence, addEndOfSentence, considerPreTokenization, considerNormalization); 317public IReadOnlyList<EncodedToken> EncodeToTokens(ReadOnlySpan<char> text, bool addPrefixSpace, bool addBeginningOfSentence, bool addEndOfSentence, out string? normalizedText, bool considerPreTokenization = true, bool considerNormalization = true) 341ReadOnlySpan<char> span = text is null ? textSpan : text.AsSpan(); 488protected override EncodeResults<int> EncodeToIds(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings) 511return EncodeToIds(text, ReadOnlySpan<char>.Empty, addPrefixSpace, addBeginningOfSentence, addEndOfSentence, considerPreTokenization, considerNormalization, out _, out _); 524public IReadOnlyList<int> EncodeToIds(ReadOnlySpan<char> text, bool addPrefixSpace, bool addBeginningOfSentence, bool addEndOfSentence, bool considerPreTokenization = true, bool considerNormalization = true) 544return EncodeToIds(text, ReadOnlySpan<char>.Empty, addPrefixSpace, addBeginningOfSentence, addEndOfSentence, considerPreTokenization, considerNormalization, out normalizedText, out charsConsumed, maxTokenCount); 560public 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) 598ReadOnlySpan<char> span = text is null ? textSpan : text.AsSpan(); 671protected override int CountTokens(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings) 697public int CountTokens(ReadOnlySpan<char> text, bool addPrefixSpace, bool addBeginningOfSentence, bool addEndOfSentence, bool considerPreTokenization = true, bool considerNormalization = true) 716protected override int GetIndexByTokenCount(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings, bool fromEnd, out string? normalizedText, out int tokenCount) 769ReadOnlySpan<char> text, 817ReadOnlySpan<char> span = text is null ? textSpan : text.AsSpan(); 918public 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) 954ReadOnlySpan<char> span = text is null ? textSpan : text.AsSpan(); 1304ReadOnlySpan<char> span = firstToken && hasPrefixSpace && s.Length > 0 && s[0] == _transformedSpace ? s.AsSpan(1) : s.AsSpan(); 1443ReadOnlySpan<char> specialTokenSpan = specialToken.AsSpan(); 1466ReadOnlySpan<char> span = firstToken && hasPrefixSpace && s.Length > 0 && s[0] == _transformedSpace ? s.AsSpan(1) : s.AsSpan(); 1549private int? MapTokenToId(ReadOnlySpan<char> token) 1564private void AppendToBytesArray(ReadOnlySpan<char> text, ref byte[] bytes, ref int bytesIndex) 1616private List<EncodedToken> EncodeToTokens(Span<char> text, Span<int> mapping, ReadOnlySpan<char> originalText, PriorityQueue<SymbolPair> agenda) 1698static EncodedToken GetToken(int id, string token, int index, int length, ReadOnlySpan<char> originalText, Span<int> mapping) 1704void 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\SentencePieceTokenizer.cs (42)
196protected override EncodeResults<EncodedToken> EncodeToTokens(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings) 229public IReadOnlyList<EncodedToken> EncodeToTokens(ReadOnlySpan<char> text, out string? normalizedText, bool addBeginningOfSentence, bool addEndOfSentence, bool considerPreTokenization = true, bool considerNormalization = true) 232private IReadOnlyList<EncodedToken> EncodeToTokens(string? text, ReadOnlySpan<char> textSpan, out string? normalizedText, bool addBeginningOfSentence, bool addEndOfSentence, bool considerPreTokenization, bool considerNormalization) 240ReadOnlySpan<char> textToEncode = text is null ? textSpan : text.AsSpan(); 270private void EncodeWithSpecialTokens(ReadOnlySpan<char> text, bool addBeginOfSentence, bool addEndOfSentence, List<EncodedToken> tokens) 315private void EncodeInternal(ReadOnlySpan<char> text, bool addBeginOfSentence, bool addEndOfSentence, List<EncodedToken> tokens) 374void EncodeAsBytes(ReadOnlySpan<char> text, int index) 425void Segment((int Index, int Length) pieceSpan, ReadOnlySpan<char> text) 453protected override EncodeResults<int> EncodeToIds(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings) 484public IReadOnlyList<int> EncodeToIds(ReadOnlySpan<char> text, bool addBeginningOfSentence, bool addEndOfSentence, bool considerPreTokenization = true, bool considerNormalization = true) 514public IReadOnlyList<int> EncodeToIds(ReadOnlySpan<char> text, bool addBeginningOfSentence, bool addEndOfSentence, int maxTokenCount, out string? normalizedText, out int charsConsumed, bool considerPreTokenization = true, bool considerNormalization = true) 518private IReadOnlyList<int> EncodeToIds(string? text, ReadOnlySpan<char> textSpan, bool addBeginningOfSentence, bool addEndOfSentence, bool considerNormalization, out string? normalizedText, out int charsConsumed, int maxTokenCount = int.MaxValue) 546private IReadOnlyList<int> EncodeToIds(ReadOnlySpan<char> text, bool addBeginningOfSentence, bool addEndOfSentence, bool considerNormalization, 561ReadOnlySpan<char> textToEncode; 593private int EncodeToIdsWithAddedToken(ReadOnlySpan<char> text, bool addBeginOfSentence, bool addEndOfSentence, IList<int> accumulatedIds, out int charsConsumed, int maxTokens = int.MaxValue) 655private int EncodeToIds(ReadOnlySpan<char> text, bool addBeginOfSentence, bool addEndOfSentence, IList<int> accumulatedIds, out int charsConsumed, int maxTokens = int.MaxValue) 741bool EncodeAsBytes(ReadOnlySpan<char> text, int index, ref int charsConsumed) 802bool Segment((int Index, int Length) pieceSpan, ReadOnlySpan<char> text, ref int charsConsumed) 837protected override int CountTokens(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings) 842private int CountTokens(string? text, ReadOnlySpan<char> textSpan, bool addBeginningOfSentence, bool addEndOfSentence, bool considerPreTokenization, bool considerNormalization, out string? normalizedText, out int charsConsumed, int maxTokenCount = int.MaxValue) 866public int CountTokens(ReadOnlySpan<char> text, bool addBeginningOfSentence, bool addEndOfSentence, bool considerPreTokenization = true, bool considerNormalization = true) 896public int CountTokens(ReadOnlySpan<char> text, bool addBeginningOfSentence, bool addEndOfSentence, bool considerPreTokenization, bool considerNormalization, out string? normalizedText, out int charsConsumed, int maxTokenCount = int.MaxValue) 910ReadOnlySpan<char> textToEncode; 927private int CountTokensWithSpecialTokens(ReadOnlySpan<char> text, bool addBeginOfSentence, bool addEndOfSentence, out int charsConsumed, int maxTokens = int.MaxValue) 985private int CountTokens(ReadOnlySpan<char> text, bool addBeginOfSentence, bool addEndOfSentence, out int charsConsumed, int maxTokens = int.MaxValue) 1061bool EncodeAsBytes(ReadOnlySpan<char> text, int index, ref int charsConsumed) 1117bool Segment((int Index, int Length) pieceSpan, ReadOnlySpan<char> text, ref int charsConsumed) 1160protected override int GetIndexByTokenCount(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings, bool fromEnd, out string? normalizedText, out int tokenCount) 1209public int GetIndexByTokenCount(ReadOnlySpan<char> text, bool addBeginningOfSentence, bool addEndOfSentence, int maxTokenCount, out string? normalizedText, out int tokenCount, bool considerPreTokenization = true, bool considerNormalization = true) 1215private int GetIndexByTokenCountFromEnd(string? text, ReadOnlySpan<char> textSpan, int maxTokenCount, bool considerNormalization, out string? normalizedText, out int tokenCount) 1233=> GetIndexByTokenCountFromEnd(text is null ? ReadOnlySpan<char>.Empty : text.AsSpan(), addBeginningOfSentence, addEndOfSentence, maxTokenCount, considerNormalization, out normalizedText, out tokenCount); 1249public int GetIndexByTokenCountFromEnd(ReadOnlySpan<char> text, bool addBeginningOfSentence, bool addEndOfSentence, int maxTokenCount, bool considerNormalization, out string? normalizedText, out int tokenCount) 1263ReadOnlySpan<char> textToEncode; 1288private int CountTokensFromEndWithSpecialTokens(ReadOnlySpan<char> text, bool addBeginOfSentence, bool addEndOfSentence, out int textIndex, int maxTokens) 1312ReadOnlySpan<char> splitText; 1358private int CountTokensFromEnd(ReadOnlySpan<char> text, bool addBeginOfSentence, bool addEndOfSentence, out int textIndex, int maxTokens = int.MaxValue) 1441bool EncodeAsBytesFromEnd(ReadOnlySpan<char> text, int index, ref int textIndex) 1497bool SegmentFromEnd((int Index, int Length) pieceSpan, ReadOnlySpan<char> text, ref int textIndex) 2079ReadOnlySpan<char> tokenSpan = token.AsSpan(); 2169private string GetTokenString(int id, int index, int length, ReadOnlySpan<char> text) 2172private Dictionary<(int Index, int Len), (int LeftIndex, int LeftLen, int RightIndex, int RightLen)>? Encode(ReadOnlySpan<char> text, BpeSymbol[] symbols) 2233void TryMerge(int left, int right, ReadOnlySpan<char> textSpan)
Model\TiktokenTokenizer.cs (14)
258protected override EncodeResults<EncodedToken> EncodeToTokens(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings) 273out ReadOnlySpan<char> textSpanToEncode, 299private void EncodeToTokens(ReadOnlySpan<char> text, List<EncodedToken> tokens, int offset) 362protected override EncodeResults<int> EncodeToIds(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings) 383out ReadOnlySpan<char> textSpanToEncode, 418private int EncodeToIds(ReadOnlySpan<char> text, IList<int> accumulatedIds, out int charsConsumed, int maxTokenCount = int.MaxValue) 528protected override int CountTokens(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings) 531private int CountTokens(string? text, ReadOnlySpan<char> textSpan, bool considerPreTokenization, bool considerNormalization, out string? normalizedText, out int charsConsumed, int maxTokenCount = int.MaxValue) 552out ReadOnlySpan<char> textSpanToEncode, 584private int CountTokens(ReadOnlySpan<char> text, out int charsConsumed, int maxTokens = int.MaxValue) 646protected override int GetIndexByTokenCount(string? text, ReadOnlySpan<char> textSpan, EncodeSettings settings, bool fromEnd, out string? normalizedText, out int tokenCount) 657private int LastIndexOf(string? text, ReadOnlySpan<char> textSpan, int maxTokenCount, bool considerPreTokenization, bool considerNormalization, out string? normalizedText, out int tokenCount) 679out ReadOnlySpan<char> textSpanToEncode, 710private int CountTokensFromEnd(ReadOnlySpan<char> text, out int textIndex, int maxTokens = int.MaxValue)
Model\WordPieceTokenizer.cs (10)
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) 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) 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\SentencePieceNormalizer.cs (2)
76public override string Normalize(ReadOnlySpan<char> original) 173private void InsertDummyPrefix(ReadOnlySpan<char> original, ref int startIndex, int endIndex, Span<char> span, ref int bufferIndex)
Normalizer\UpperCaseNormalizer.cs (1)
38public override string Normalize(ReadOnlySpan<char> original)
PreTokenizer\PreTokenizer.cs (2)
30public abstract IEnumerable<(int Offset, int Length)> PreTokenize(ReadOnlySpan<char> text); 133internal static IEnumerable<(int Offset, int Length)> SplitText(ReadOnlySpan<char> text, Regex regex)
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)
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 (1)
16public static (int Id, int TokenIndex, int TokenLength)[] BytePairEncode(ReadOnlyMemory<byte> mergingBytes, IReadOnlyDictionary<ReadOnlyMemory<byte>, int> ranks, ReadOnlySpan<int> indexMappingSpan)
Utils\Helpers.cs (3)
22internal static int EncodeToUtf8(ReadOnlySpan<char> text, Span<byte> destination, Span<int> indexMapping) 76internal static int EncodeToUtf8AndTransform(ReadOnlySpan<char> text, Span<char> destination, Span<int> indexMapping) 131public static bool ConvertUtf8ToUtf16(ReadOnlySpan<byte> utf8Bytes, Span<char> utf16Chars, out int bytesConsumed, out int charsWritten)
Utils\Helpers.netstandard.cs (6)
56internal static int GetHashCode(ReadOnlySpan<char> span) 67internal static unsafe int GetUtf8Bytes(ReadOnlySpan<char> source, Span<byte> destination) 76internal static unsafe bool TryGetUtf8Bytes(ReadOnlySpan<char> source, Span<byte> destination, out int bytesWritten) 92internal static unsafe string GetString(ReadOnlySpan<byte> utf8Bytes) 100internal static unsafe int GetChars(ReadOnlySpan<byte> bytes, Span<char> chars) 124internal 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 (5)
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);
Microsoft.ML.Tokenizers.Tests (5)
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)
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)
306var inputValues = input.FeatureKeys.GetValues(); 371var keysValues = keys.GetValues(); 372var valuesValues = values.GetValues(); 691var 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.Net.Http.Headers (6)
ContentDispositionHeaderValue.cs (3)
35private static ReadOnlySpan<byte> MimePrefix => "\"=?utf-8?B?"u8; 36private static ReadOnlySpan<byte> MimeSuffix => "?=\""u8; 621var remaining = input.AsSpan();
SetCookieHeaderValue.cs (1)
323private static void Append(ref Span<char> span, ReadOnlySpan<char> other)
src\Shared\HttpRuleParser.cs (2)
63var subspan = input.AsSpan(startIndex); 189ReadOnlySpan<char> inputSpan = input.AsSpan();
Microsoft.NET.StringTools (8)
InternableString.cs (5)
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; 114/// Constructs a new InternableString wrapping the given <see cref="ReadOnlySpan{T}"/>. 120internal InternableString(ReadOnlySpan<char> span) 154_inlineSpan = default(ReadOnlySpan<char>);
SpanBasedStringBuilder.cs (2)
211ReadOnlySpan<char> span = _spans[spanIdx].Span; 236ReadOnlySpan<char> span = _spans[spanIdx].Span;
StringTools.cs (1)
51public static string WeakIntern(ReadOnlySpan<char> str)
Microsoft.NET.StringTools.UnitTests (1)
StringTools_Tests.cs (1)
40ReadOnlySpan<char> span = str.AsSpan();
Microsoft.VisualStudio.LanguageServices (3)
FindReferences\VisualStudioDefinitionsAndReferencesFactory.cs (1)
50var sourceLine = GetSourceLine_MustCallOnUIThread(filePath, linePosition.Line).Trim(' ', '\t');
Workspace\SourceGeneratedFileManager.cs (2)
171var slice = filePath.AsSpan()[_temporaryDirectory.Length..]; 183var guidDirName = slice[..separatorIndex];
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.cs (1)
1364var line = lines[i].TrimStart();
MSBuild (13)
FileUtilities.cs (3)
593var span = value.Span; 668internal static bool LooksLikeUnixFilePath(ReadOnlySpan<char> value, string baseDirectory = "") 681ReadOnlySpan<char> directory = value.Slice(0, directoryLength);
TerminalLogger\ITerminal.cs (2)
49void Write(ReadOnlySpan<char> text); 60void WriteLineFitToWidth(ReadOnlySpan<char> text);
TerminalLogger\NodesFrame.cs (2)
43internal ReadOnlySpan<char> RenderNodeStatus(int i) 110ReadOnlySpan<char> needed = RenderNodeStatus(i);
TerminalLogger\Terminal.cs (3)
128public void Write(ReadOnlySpan<char> text) 154public void WriteLineFitToWidth(ReadOnlySpan<char> text) 156ReadOnlySpan<char> truncatedText = text.Slice(0, Math.Min(text.Length, Width - 1));
TerminalLogger\TerminalLogger.cs (3)
632ReadOnlySpan<char> outputPathSpan = outputPath.Value.Span; 633ReadOnlySpan<char> url = outputPathSpan; 831var projectFileName = Path.GetFileName(e.ProjectFile.AsSpan());
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<>))]
PresentationBuildTasks (18)
MS\Internal\MarkupCompiler\PathInternal.cs (6)
178internal static bool IsEffectivelyEmpty(ReadOnlySpan<char> path) 195internal static int GetRootLength(ReadOnlySpan<char> path) 284internal static bool IsDevice(ReadOnlySpan<char> path) 302internal static bool IsDeviceUNC(ReadOnlySpan<char> path) 325internal static bool IsExtended(ReadOnlySpan<char> path) 339public static bool DoesEndInDirectorySeparator(ReadOnlySpan<char> path)
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 (24)
MS\Internal\FontCache\FamilyCollection.cs (2)
401ReadOnlySpan<char> faceName = originalFamilyName.AsSpan(faceNameIndex); 453private static Text.TextInterface.Font GetFontFromFamily(Text.TextInterface.FontFamily fontFamily, ReadOnlySpan<char> faceName)
MS\Internal\Ink\InkSerializedFormat\AlgoModule.cs (1)
446private static ReadOnlySpan<double> DefaultFirstSquareRoot => [1, 1, 1, 4, 9, 16, 36, 49];
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
271private static ReadOnlySpan<byte> Base64HeaderBytes => [(byte)'b',
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (1)
781ReadOnlySpan<char> contentRangeSpan = contentRange.AsSpan(index + 1);
MS\Internal\Shaping\Positioning.cs (1)
220private static ReadOnlySpan<ushort> BitCount => [0, 2, 2, 4,
src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_exports.cs (1)
341internal 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)
59ReadOnlySpan<char> mouseActionToken = mouseAction.AsSpan().Trim();
System\Windows\Input\Cursor.cs (1)
348private static ReadOnlySpan<int> CursorTypes => [
System\Windows\Input\InputScopeConverter.cs (1)
108ReadOnlySpan<char> spanSource = stringSource;
System\Windows\Input\MouseDevice.cs (2)
1733ReadOnlySpan<RawMouseActions> ButtonPressActions = stackalloc RawMouseActions[5] 1742ReadOnlySpan<RawMouseActions> ButtonReleaseActions = stackalloc RawMouseActions[5]
System\Windows\Media\Animation\KeyTimeConverter.cs (1)
190return string.Concat(returnValue, (ReadOnlySpan<char>)stackalloc char[] { '%' });
System\Windows\Media\CharacterMetrics.cs (1)
158ReadOnlySpan<char> field = s.AsSpan(i, k - i);
System\Windows\Media\EllipseGeometry.cs (1)
386private static ReadOnlySpan<byte> RoundedPathTypes => [(byte)MILCoreSegFlags.SegTypeBezier |
System\Windows\Media\LineGeometry.cs (1)
171private static ReadOnlySpan<byte> LineTypes => [(byte)MILCoreSegFlags.SegTypeLine];
System\Windows\Media\PixelFormat.cs (2)
157ReadOnlySpan<byte> pGuidPixelFormat = new(&guidPixelFormat, 15); 158ReadOnlySpan<byte> pGuidBuiltIn = new(&guidWicPixelFormat, 15);
System\Windows\Media\RectangleGeometry.cs (3)
500private static ReadOnlySpan<byte> GetTypeList(Rect rect, double radiusX, double radiusY) 600private static ReadOnlySpan<byte> RoundedPathTypes => new byte[] { 618private static ReadOnlySpan<byte> SquaredPathTypes => [(byte)MILCoreSegFlags.SegTypeLine | (byte)MILCoreSegFlags.SegClosed,
System\Windows\PresentationSource.cs (1)
572internal static bool IsUnderSamePresentationSource(params ReadOnlySpan<DependencyObject> visuals)
PresentationFramework (99)
Microsoft\Win32\FileDialog.cs (3)
555ReadOnlySpan<string> extensions = GetFilterExtensions(); 674private ReadOnlySpan<string> GetFilterExtensions() 722ReadOnlySpan<char> exts = tokens[indexOfExtension].AsSpan();
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (3)
500ReadOnlySpan<char> segmentValueSpan = segmentValue.AsSpan(); 516private static Point GetPoint(ReadOnlySpan<char> xValue, ReadOnlySpan<char> yValue)
MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
1352private static ReadOnlySpan<char> Separators => [',', ' ', ';'];
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
437ReadOnlySpan<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)
93CanExecuteRoutedEventHandler canExecuteRoutedEventHandler, params ReadOnlySpan<InputGesture> inputGestures)
MS\Internal\Documents\DocumentsTrace.cs (1)
120ReadOnlySpan<char> shortAssemblyName = ReflectionUtils.GetAssemblyPartialName(Assembly.GetCallingAssembly());
MS\Internal\Globalization\BamlResourceContent.cs (7)
88/// <remarks>Prefer <see cref="UnescapeString(ReadOnlySpan{char})"/> overload when possible.</remarks> 96internal static string UnescapeString(ReadOnlySpan<char> contentSpan, bool returnNewInstance = true) 128static void EvaulateEscapeSequence(StringBuilder stringBuilder, ReadOnlySpan<char> contentSpan, ref int i) 184internal static ReadOnlySpan<BamlStringToken> ParseChildPlaceholder(string input) 187return ReadOnlySpan<BamlStringToken>.Empty; 202return ReadOnlySpan<BamlStringToken>.Empty; // error 242return ReadOnlySpan<BamlStringToken>.Empty; // error
MS\Internal\Globalization\BamlTreeUpdater.cs (1)
598ReadOnlySpan<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)
363ReadOnlySpan<Point> points = GeneratePointGrid(elementPoints); 423private ReadOnlySpan<Point> GeneratePointGrid(ElementCornerPoints elementPoints)
MS\Internal\PtsHost\ListMarkerSourceInfo.cs (1)
398private static ReadOnlySpan<int> RomanNumericSizeIncrements => [1, 2, 3, 8, 18, 28, 38, 88, 188, 288, 388, 888];
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (1)
297var abiSpan = new ReadOnlySpan<T>(abi.data.ToPointer(), abi.length);
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)
632ReadOnlySpan<char> typeName = value.AsSpan(); 637ReadOnlySpan<char> name = typeName[segments[0]]; 647ReadOnlySpan<char> @namespace = typeName[segments[0]]; 648ReadOnlySpan<char> name = typeName[segments[1]];
System\Windows\Controls\DataGridLengthConverter.cs (2)
195ReadOnlySpan<char> valueSpan = s.AsSpan().Trim(); 259ReadOnlySpan<char> valueString = valueSpan.Slice(0, valueSpan.Length - strLenUnit);
System\Windows\Controls\DataGridRow.cs (2)
43private static ReadOnlySpan<byte> IdealStateMapping => [ 62private static ReadOnlySpan<byte> FallbackStateMapping => [
System\Windows\Controls\DocumentViewer.cs (1)
2592private static ReadOnlySpan<double> ZoomLevelCollection => [5000.0, 4000.0, 3200.0, 2400.0, 2000.0, 1600.0,
System\Windows\Controls\ItemContainerGenerator.cs (1)
1122ReadOnlySpan<char> token = aqn.AsSpan(index + PublicKeyToken.Length);
System\Windows\Controls\Primitives\DataGridRowHeader.cs (2)
40private static ReadOnlySpan<byte> FallbackStateMapping => [ 59private static ReadOnlySpan<byte> IdealStateMapping => [
System\Windows\Controls\TextSearch.cs (1)
316ReadOnlySpan<char> temp;
System\Windows\Controls\VirtualizingStackPanel.cs (6)
12002ReadOnlySpan<char> traceSplits = trace.AsSpan(); 12097static void Mark(params ReadOnlySpan<object> args) 12209internal static void Trace(VirtualizingStackPanel vsp, ScrollTraceOp op, params ReadOnlySpan<object> args) 12238ReadOnlySpan<char> name = t.ToString(); 12252private static string BuildDetail(ReadOnlySpan<object> args) 12368private void AddTrace(VirtualizingStackPanel vsp, ScrollTraceOp op, ScrollTracingInfo sti, params ReadOnlySpan<object> args)
System\Windows\Controls\VisualStates.cs (1)
414public static void GoToState(Control control, bool useTransitions, params ReadOnlySpan<string> stateNames)
System\Windows\Documents\FixedSchema.cs (1)
438ReadOnlySpan<char> attrValueSpan = attrValue.AsSpan().Trim();
System\Windows\Documents\FixedTextBuilder.cs (1)
88internal static ReadOnlySpan<char> HyphenSet =>
System\Windows\Documents\Glyphs.cs (7)
366private static bool IsEmpty(ReadOnlySpan<char> s) 386ReadOnlySpan<char> valueSpec, 393ReadOnlySpan<char> glyphIndexString = valueSpec; 417ReadOnlySpan<char> characterClusterSpec = valueSpec.Slice(firstBracket + 1, secondBracket - (firstBracket + 1)); 425ReadOnlySpan<char> characterClusterSpec = valueSpec.Slice(firstBracket + 1, colon - (firstBracket + 1)); 427ReadOnlySpan<char> glyphClusterSpec = valueSpec.Slice(colon + 1, secondBracket - (colon + 1)); 544ReadOnlySpan<char> valueSpec = glyphsProp.AsSpan(valueStartIndex, len);
System\Windows\Documents\RtfToXamlReader.cs (7)
234internal static bool StringToDouble(ReadOnlySpan<char> s, ref double d) 255internal static bool StringToInt(ReadOnlySpan<char> s, ref int i) 285internal static bool HexStringToInt(ReadOnlySpan<char> s, ref int i) 3754ReadOnlySpan<char> s = lhs_name.AsSpan(0, rhs_name.Length); 4591internal static ReadOnlySpan<int> HtmlLengths => [ 4989ReadOnlySpan<char> substring = text.AsSpan(index, currentIndex - index); 8571ReadOnlySpan<char> ptString = instr.AsSpan(iStart, i - iStart);
System\windows\Documents\SelectionWordBreaker.cs (1)
77ReadOnlySpan<char> sourceChars = [text[position - 1], text[position]];
System\Windows\Documents\TextPointerBase.cs (1)
638internal static ReadOnlySpan<char> NextLineCharacters => ['\n', '\r', '\v', '\f', '\u0085' /*NEL*/, '\u2028' /*LS*/, '\u2029' /*PS*/];
System\Windows\Documents\TextStore.cs (5)
4673ReadOnlySpan<char> traceSplits = trace.AsSpan(); 4751internal static void Mark(params ReadOnlySpan<object> args) 4803internal static void Trace(TextStore textStore, IMECompositionTraceOp op, params ReadOnlySpan<object> args) 4846private static string BuildDetail(ReadOnlySpan<object> args) 4916private void AddTrace(TextStore textStore, IMECompositionTraceOp op, IMECompositionTracingInfo cti, params ReadOnlySpan<object> args)
System\Windows\Documents\XamlToRtfWriter.cs (5)
2752ReadOnlySpan<char> num = name.AsSpan(2, name.Length - 3); 3544internal static bool ConvertToFontSize(ConverterState converterState, ReadOnlySpan<char> s, ref double d) 3558ReadOnlySpan<char> units = default; 3810internal static bool ConvertToThickness(ConverterState converterState, ReadOnlySpan<char> thickness, ref XamlThickness xthickness) 3824ReadOnlySpan<char> onenum = thickness.Slice(s, e - s);
System\Windows\LengthConverter.cs (2)
190ReadOnlySpan<char> valueSpan = s.AsSpan().Trim(); 215private static double ParseDouble(ReadOnlySpan<char> span, CultureInfo cultureInfo)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (4)
2069ReadOnlySpan<char> uriTypePrefix = uriInput.AsSpan(0, colonIdx); 2090ReadOnlySpan<char> keyword = uriInput.AsSpan(assemblyKeywordStartIdx, equalIdx - assemblyKeywordStartIdx); 2095ReadOnlySpan<char> assemblyName = uriInput.AsSpan(equalIdx + 1); 2109internal virtual ReadOnlySpan<char> GetAssemblyNameForNamespace(Assembly assembly)
System\Windows\Markup\Baml2006\Baml2006ReaderInternal.cs (1)
37internal override ReadOnlySpan<char> GetAssemblyNameForNamespace(Assembly assembly)
System\Windows\Markup\Primitives\ExtensionSimplifierMarkupObject.cs (1)
352ReadOnlySpan<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)
180ReadOnlySpan<char> valueSpan = s.AsSpan().Trim(); 241ReadOnlySpan<char> valueString = valueSpan.Slice(0, valueSpan.Length - strLenUnit);
System\Windows\Markup\XamlGridLengthSerializer.cs (2)
180ReadOnlySpan<char> valueSpan = s.AsSpan().Trim(); 241ReadOnlySpan<char> valueString = valueSpan.Slice(0, valueSpan.Length - strLenUnit);
System\Windows\PropertyPath.cs (1)
907ReadOnlySpan<char> toParse;
System\Windows\SystemParameters.cs (1)
71private static void OnPropertiesChanged(params ReadOnlySpan<string> propertyNames)
System\Windows\ThemeDictionaryExtension.cs (2)
98private static Uri GenerateUri(string assemblyName, string resourceName, ReadOnlySpan<char> themeName) 135ReadOnlySpan<char> nameSpan = resourceName.AsSpan();
System\Windows\VisualStateGroup.cs (1)
97internal 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)
1845private static bool StringToZoomValue(ReadOnlySpan<char> zoomString, out double zoomValue)
ReachFramework (2)
Packaging\XpsFixedPageReaderWriter.cs (2)
1852ReadOnlySpan<char> path = imageUri.OriginalString.AsSpan(); 1853ReadOnlySpan<char> extension = Path.GetExtension(path).Slice(1);
Replay (1)
src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
98public void AppendFormatted(ReadOnlySpan<char> value) => _builder!.Append(value.ToString());
ResultsOfTGenerator (1)
Program.cs (1)
1076var origValueSpan = s.AsSpan();
Roslyn.Test.PdbUtilities (8)
Writer\DelegatingSymUnmanagedWriter.cs (4)
41public override int DefineDocument(string name, Guid language, Guid vendor, Guid type, Guid algorithmId, ReadOnlySpan<byte> checksum, ReadOnlySpan<byte> source) 71public override void SetAsyncInfo(int moveNextMethodToken, int kickoffMethodToken, int catchHandlerOffset, ReadOnlySpan<int> yieldOffsets, ReadOnlySpan<int> resumeOffsets)
Writer\MockSymUnmanagedWriter.cs (4)
46public override int DefineDocument(string name, Guid language, Guid vendor, Guid type, Guid algorithmId, ReadOnlySpan<byte> checksum, ReadOnlySpan<byte> source) 96public override void SetAsyncInfo(int moveNextMethodToken, int kickoffMethodToken, int catchHandlerOffset, ReadOnlySpan<int> yieldOffsets, ReadOnlySpan<int> resumeOffsets)
SemanticSearch.BuildTask (4)
src\Compilers\Core\Portable\InternalUtilities\Hash.cs (4)
223internal static int GetFNVHashCode(ReadOnlySpan<byte> data, out bool isAscii) 266internal static int GetFNVHashCode(ReadOnlySpan<char> data) 291internal static int GetCaseInsensitiveFNVHashCode(ReadOnlySpan<char> data) 426internal static int CombineFNVHash(int hashCode, ReadOnlySpan<char> data)
Shared (19)
BufferWriterPool\BufferWriter.cs (1)
54public ReadOnlySpan<T> WrittenSpan => _buffer.AsSpan(0, WrittenCount);
JsonSchemaExporter\JsonSchemaExporter.cs (1)
551private static string FormatJsonPointer(ReadOnlySpan<string> path)
JsonSchemaExporter\JsonSchemaExporterContext.cs (1)
44public ReadOnlySpan<string> Path => _path;
ServerSentEvents\ArrayBuffer.cs (1)
91public readonly ReadOnlySpan<byte> ActiveReadOnlySpan => new ReadOnlySpan<byte>(_bytes, _activeStart, _availableStart - _activeStart);
ServerSentEvents\Helpers.cs (4)
45public static void WriteUtf8String(this IBufferWriter<byte> writer, ReadOnlySpan<byte> value) 58public static unsafe void WriteUtf8String(this IBufferWriter<byte> writer, ReadOnlySpan<char> value) 81public static bool ContainsLineBreaks(this ReadOnlySpan<char> text) => 113public static unsafe string Utf8GetString(ReadOnlySpan<byte> bytes)
ServerSentEvents\SseFormatter.cs (4)
100ReadOnlySpan<byte> data, 139private static void WriteLinesWithPrefix(PooledByteBufferWriter writer, ReadOnlySpan<byte> prefix, ReadOnlySpan<byte> data) 161ReadOnlySpan<byte> nextLine = data.Slice(0, lineLength);
ServerSentEvents\SseItemParser.cs (1)
11internal delegate T SseItemParser<out T>(string eventType, ReadOnlySpan<byte> data);
ServerSentEvents\SseParser_1.cs (6)
44private static ReadOnlySpan<byte> CRLF => "\r\n"u8; 334ReadOnlySpan<byte> line = _lineBuffer.AsSpan(_lineOffset, _newlineIndex - _lineOffset); 359ReadOnlySpan<byte> fieldName; 360ReadOnlySpan<byte> fieldValue; 392ReadOnlySpan<byte> remainder = _lineBuffer.AsSpan(_newlineIndex + newlineLength, _lineLength - line.Length - newlineLength); 543private static ReadOnlySpan<byte> Utf8Bom => [0xEF, 0xBB, 0xBF];
System.Collections (4)
src\libraries\Common\src\System\Collections\Generic\BitHelper.cs (1)
43ReadOnlySpan<int> span = _span;
src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
31internal static ReadOnlySpan<int> Primes =>
System\Collections\BitArray.cs (1)
90ReadOnlySpan<byte> byteSpan = bytes;
System\Collections\Generic\PriorityQueue.cs (1)
885ReadOnlySpan<(TElement Element, TPriority Priority)> nodes = _nodes.AsSpan(0, _size);
System.Collections.Concurrent (1)
src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
31internal static ReadOnlySpan<int> Primes =>
System.Collections.Immutable (141)
src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
31internal static ReadOnlySpan<int> Primes =>
System\Collections\Frozen\FrozenHashTable.cs (2)
146private static int CalcNumBuckets(ReadOnlySpan<int> hashCodes, bool hashCodesAreUnique) 182ReadOnlySpan<int> primes = HashHelpers.Primes;
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)
22public static unsafe int GetHashCodeOrdinal(ReadOnlySpan<char> s) 78public static unsafe int GetHashCodeOrdinalIgnoreCaseAscii(ReadOnlySpan<char> s) 142public static unsafe int GetHashCodeOrdinalIgnoreCase(ReadOnlySpan<char> s)
System\Collections\Frozen\String\KeyAnalyzer.cs (8)
32ReadOnlySpan<string> uniqueStrings, bool ignoreCase, int minLength, int maxLength) 48private static bool TryUseSubstring(ReadOnlySpan<string> uniqueStrings, bool allUniqueStringsAreConfirmedAscii, bool ignoreCase, int minLength, int maxLength, out AnalysisResults results) 127ReadOnlySpan<string> uniqueStrings, bool allUniqueStringsAreConfirmedAscii, bool ignoreCase, int minLength, int maxLength, int index, int count, GetSpan getHashString) 187private delegate ReadOnlySpan<char> GetSpan(string s, int index, int count); 189private static bool AreAllAscii(ReadOnlySpan<string> strings) 202internal static unsafe bool IsAllAscii(ReadOnlySpan<char> s) 244internal static bool ContainsAnyAsciiLetters(ReadOnlySpan<char> s) 263internal static bool HasSufficientUniquenessFactor(HashSet<string> set, ReadOnlySpan<string> uniqueStrings, int acceptableNonUniqueCount)
System\Collections\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.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\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\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\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\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\ImmutableArray_1.Builder.cs (2)
433public void AddRange(params ReadOnlySpan<T> items) 446public 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\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\ImmutableHashSet_1.cs (2)
234internal ImmutableHashSet<T> Union(ReadOnlySpan<T> other) 696private static MutationResult Union(ReadOnlySpan<T> other, MutationInput origin)
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\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\ImmutableQueue.cs (2)
77return Create((ReadOnlySpan<T>)items); 86public static ImmutableQueue<T> Create<T>(params ReadOnlySpan<T> items)
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\ImmutableSortedSet_1.cs (3)
330internal ImmutableSortedSet<T> Union(ReadOnlySpan<T> other) 1069private ImmutableSortedSet<T> UnionIncremental(ReadOnlySpan<T> items) 1169private ImmutableSortedSet<T> LeafToRootRefill(ReadOnlySpan<T> addedItems)
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.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 (3)
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.Configuration.ConfigurationManager (2)
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\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
104public ReadOnlySpan<char> AsSpan(bool terminate) 114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
System\Console.cs (4)
817public static void WriteLine(ReadOnlySpan<char> value) 855public static void WriteLine([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg) 893public static void Write([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg) 979public static void Write(ReadOnlySpan<char> value)
System\ConsolePal.Unix.ConsoleStream.cs (1)
49public override void Write(ReadOnlySpan<byte> buffer) =>
System\ConsolePal.Unix.cs (6)
616static void ReadRowOrCol(int startExclusive, int endExclusive, StdInReader reader, ReadOnlySpan<byte> source, ref int result) 644static void TransferBytes(ReadOnlySpan<byte> src, StdInReader dst) 808ReadOnlySpan<byte> consoleColorToAnsiCode = 948internal static void WriteToTerminal(ReadOnlySpan<byte> buffer, SafeFileHandle? handle = null, bool mayChangeCursorPosition = true) 959internal static unsafe void WriteFromConsoleStream(SafeFileHandle fd, ReadOnlySpan<byte> buffer) 973private static unsafe void Write(SafeFileHandle fd, ReadOnlySpan<byte> buffer, bool mayChangeCursorPosition = true)
System\IO\CachedConsoleStream.cs (2)
25public override 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 void AppendExtraBuffer(ReadOnlySpan<byte> buffer) 389var chars = new ReadOnlySpan<char>(in c);
System.Data.Common (28)
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)
52private static ReadOnlySpan<int> DaysToMonth365 => [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365]; 53private static ReadOnlySpan<int> DaysToMonth366 => [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366]; 101ReadOnlySpan<int> days = IsLeapYear(year) ?
System\Data\SQLTypes\SQLDecimal.cs (17)
74private static ReadOnlySpan<uint> RgulShiftBase => // 9 134private static ReadOnlySpan<uint> DecimalHelpersLo => 176private static ReadOnlySpan<uint> DecimalHelpersMid => 218private static ReadOnlySpan<uint> DecimalHelpersHi => 260private static ReadOnlySpan<uint> DecimalHelpersHiHi => 321ReadOnlySpan<uint> decimalHelpers; 783private SqlDecimal(ReadOnlySpan<uint> rglData, byte bLen, byte bPrec, byte bScale, bool fPositive) 1475ReadOnlySpan<uint> rglData1 = [x._data1, x._data2, x._data3, x._data4]; 1476ReadOnlySpan<uint> rglData2 = [y._data1, y._data2, y._data3, y._data4]; 1817ReadOnlySpan<uint> rglData = [_data1, _data2, _data3, _data4]; 1903private static ReadOnlySpan<byte> RgCLenFromPrec => 2434ReadOnlySpan<uint> rglData1 = [_data1, _data2, _data3, _data4]; 2435ReadOnlySpan<uint> rglData2 = [snumOp._data1, snumOp._data2, snumOp._data3, snumOp._data4]; 2456ReadOnlySpan<uint> rgulS, // In | Source number 2486ReadOnlySpan<uint> rgulU, // In | Number 2593ReadOnlySpan<uint> rgulU, // In | U 3023private 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.Diagnostics.DiagnosticSource (52)
src\libraries\Common\src\System\HexConverter.cs (6)
164public static void EncodeToUtf16(ReadOnlySpan<byte> bytes, Span<char> chars, Casing casing = Casing.Upper) 181public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 197EncodeToUtf16(*(ReadOnlySpan<byte>*)args.RosPtr, chars, args.casing)); 229public static bool TryDecodeFromUtf16(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 335private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 433public static ReadOnlySpan<byte> CharToHexLookup =>
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
104public ReadOnlySpan<char> AsSpan(bool terminate) 114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
System\Diagnostics\Activity.cs (12)
1091ReadOnlySpan<char> traceIdSpan = traceParent.AsSpan(3, 32); 1092ReadOnlySpan<char> spanIdSpan = traceParent.AsSpan(36, 16); 1902public static ActivityTraceId CreateFromBytes(ReadOnlySpan<byte> idData) 1913public static ActivityTraceId CreateFromUtf8String(ReadOnlySpan<byte> idData) => new ActivityTraceId(idData); 1915public static ActivityTraceId CreateFromString(ReadOnlySpan<char> idData) 1963private ActivityTraceId(ReadOnlySpan<byte> idData) 2026internal static void SetSpanFromHexChars(ReadOnlySpan<char> charData, Span<byte> outBytes) 2044internal static bool IsLowerCaseHexAndNotAllZeros(ReadOnlySpan<char> idData) 2095public static ActivitySpanId CreateFromBytes(ReadOnlySpan<byte> idData) 2106public static ActivitySpanId CreateFromUtf8String(ReadOnlySpan<byte> idData) => new ActivitySpanId(idData); 2108public static ActivitySpanId CreateFromString(ReadOnlySpan<char> idData) 2153private unsafe ActivitySpanId(ReadOnlySpan<byte> idData)
System\Diagnostics\DsesFilterAndTransform.cs (4)
211ReadOnlySpan<char> eventName; 212ReadOnlySpan<char> activitySourceName; 220ReadOnlySpan<char> entry = filterAndPayloadSpec.AsSpan( 230ReadOnlySpan<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\TagList.netcore.cs (6)
38public TagList(params ReadOnlySpan<KeyValuePair<string, object?>> tagList) : this() 124((ReadOnlySpan<KeyValuePair<string, object?>>)_tags).CopyTo(_overflowTags); 185((ReadOnlySpan<KeyValuePair<string, object?>>)_tags).CopyTo(_overflowTags); 272ReadOnlySpan<KeyValuePair<string, object?>> tags = 303internal readonly ReadOnlySpan<KeyValuePair<string, object?>> Tags => 305((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.FileVersionInfo (2)
System\Diagnostics\FileVersionInfo.Unix.cs (2)
202ReadOnlySpan<char> versionSpan = versionString; 229private static ushort ParseUInt16UntilNonDigit(ReadOnlySpan<char> s, out bool endedEarly)
System.Diagnostics.Process (12)
src\libraries\Common\src\Interop\Linux\cgroups\Interop.cgroups.cs (1)
423ReadOnlySpan<char> lineSpan = line;
src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcFsStat.ParseMapModules.cs (1)
149ReadOnlySpan<char> span = s.AsSpan(start, end - start);
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\libraries\Common\src\Interop\Unix\System.Native\Interop.ReadLink.cs (1)
31internal static string? ReadLink(ReadOnlySpan<char> path)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
104public ReadOnlySpan<char> AsSpan(bool terminate) 114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
src\libraries\Common\src\System\Text\ValueUtf8Converter.cs (1)
24public Span<byte> ConvertAndTerminateString(ReadOnlySpan<char> value)
System\Diagnostics\Process.Linux.cs (2)
304ReadOnlySpan<byte> argRemainder = buffer.Slice(0, bytesRead); 344static string? GetUntruncatedNameFromArg(ReadOnlySpan<byte> arg, string prefix)
System.Diagnostics.TextWriterTraceListener (1)
System\Diagnostics\XmlWriterTraceListener.cs (1)
384private void InternalWrite(ReadOnlySpan<char> message)
System.Drawing.Common.Tests (2)
System\Drawing\GraphicsTests.cs (2)
2945ReadOnlySpan<byte> bytes = new((byte*)data.Scan0, data.Stride * data.Height); 2959ReadOnlySpan<byte> bytes = new((byte*)data.Scan0, data.Stride * data.Height);
System.Drawing.Primitives (6)
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 (178)
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 (12)
35internal static int GetByteCount(this Encoding encoding, ReadOnlySpan<char> str) 52internal static int GetBytes(this Encoding encoding, ReadOnlySpan<char> chars, Span<byte> bytes) 84protected abstract int GetBytes(ReadOnlySpan<char> chars, Span<byte> bytes, bool write); 85protected abstract int GetChars(ReadOnlySpan<byte> bytes, Span<char> chars, bool write); 106int GetByteCount(ReadOnlySpan<char> chars) 141int GetCharCount(ReadOnlySpan<byte> bytes) 254protected override int GetBytes(ReadOnlySpan<char> chars, Span<byte> bytes, bool write) 282protected override int GetChars(ReadOnlySpan<byte> bytes, Span<char> chars, bool write) 321protected override int GetBytes(ReadOnlySpan<char> chars, Span<byte> bytes, bool write) 356protected override int GetChars(ReadOnlySpan<byte> bytes, Span<char> chars, bool write) 439public override int GetByteCount(ReadOnlySpan<char> chars) 480public override int GetCharCount(ReadOnlySpan<byte> bytes)
System\Formats\Asn1\AsnDecoder.BitString.cs (25)
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,
System\Formats\Asn1\AsnDecoder.Boolean.cs (2)
45ReadOnlySpan<byte> source, 51ReadOnlySpan<byte> contents = GetPrimitiveContentSpan(
System\Formats\Asn1\AsnDecoder.cs (24)
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)
System\Formats\Asn1\AsnDecoder.Enumerated.cs (5)
48public static ReadOnlySpan<byte> ReadEnumeratedBytes( 49ReadOnlySpan<byte> source, 117ReadOnlySpan<byte> source, 190ReadOnlySpan<byte> source, 297ReadOnlySpan<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 (16)
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 =
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 (21)
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,
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 (13)
61ReadOnlySpan<byte> source, 64out ReadOnlySpan<byte> value, 146ReadOnlySpan<byte> source, 243ReadOnlySpan<byte> source, 316ReadOnlySpan<byte> source, 335ReadOnlySpan<byte> source, 351out ReadOnlySpan<byte> contents, 388ReadOnlySpan<byte> source, 429ReadOnlySpan<byte> source, 439ReadOnlySpan<byte> contents = GetOctetStringContents( 481ReadOnlySpan<byte> source, 493ReadOnlySpan<byte> contents = GetOctetStringContents( 593out ReadOnlySpan<byte> span,
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 (4)
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();
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)
174WriteBitString(ReadOnlySpan<byte>.Empty, tag: tag); 200WriteBitString(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)
58public void WriteObjectIdentifier(ReadOnlySpan<char> oidValue, Asn1Tag? tag = null) 63ReadOnlySpan<byte> wellKnownContents = WellKnownOids.GetContents(oidValue); 79private void WriteObjectIdentifierCore(Asn1Tag tag, ReadOnlySpan<char> oidValue) 117ReadOnlySpan<char> remaining = oidValue.Slice(2); 150private static BigInteger ParseSubIdentifier(ref ReadOnlySpan<char> oidValue)
System\Formats\Asn1\AsnWriter.Text.cs (3)
75public void WriteCharacterString(UniversalTagNumber encodingType, ReadOnlySpan<char> str, Asn1Tag? tag = null) 84private void WriteCharacterStringCore(Asn1Tag tag, Text.Encoding encoding, ReadOnlySpan<char> str) 116private void WriteConstructedCerCharacterString(Asn1Tag tag, Text.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) 116internal static ReadOnlySpan<byte> GetContents(ReadOnlySpan<char> value) 118ReadOnlySpan<byte> data = 322_ => ReadOnlySpan<byte>.Empty
System.Formats.Cbor (54)
System\Formats\Cbor\CborConformanceLevel.cs (5)
207public static int GetKeyEncodingHashCode(ReadOnlySpan<byte> encoding) 227public static bool AreEqualKeyEncodings(ReadOnlySpan<byte> left, ReadOnlySpan<byte> right) 232public static int CompareKeyEncodings(ReadOnlySpan<byte> left, ReadOnlySpan<byte> right, CborConformanceMode mode)
System\Formats\Cbor\CborHelpers.netcoreapp.cs (8)
16public static int GetBytes(Encoding encoding, ReadOnlySpan<char> source, Span<byte> destination) 19public static int GetByteCount(Encoding encoding, ReadOnlySpan<char> chars) 22public static int GetChars(Encoding encoding, ReadOnlySpan<byte> source, Span<char> destination) 25public static int GetCharCount(Encoding encoding, ReadOnlySpan<byte> source) 28public static string GetString(Encoding encoding, ReadOnlySpan<byte> bytes) 44public static Half ReadHalfBigEndian(ReadOnlySpan<byte> source) 48public static unsafe float ReadSingleBigEndian(ReadOnlySpan<byte> source) 52public static double ReadDoubleBigEndian(ReadOnlySpan<byte> source)
System\Formats\Cbor\Reader\CborReader.Array.cs (1)
33ReadOnlySpan<byte> buffer = GetRemainingBytes();
System\Formats\Cbor\Reader\CborReader.cs (2)
253private ReadOnlySpan<byte> GetRemainingBytes() => _data.Span.Slice(_offset); 281private static void EnsureReadCapacity(ReadOnlySpan<byte> buffer, int requiredLength)
System\Formats\Cbor\Reader\CborReader.Integer.cs (2)
143private int DecodeDefiniteLength(CborInitialByte header, ReadOnlySpan<byte> data, out int bytesRead) 157private ulong DecodeUnsignedInteger(CborInitialByte header, ReadOnlySpan<byte> data, out int bytesRead)
System\Formats\Cbor\Reader\CborReader.Map.cs (5)
48ReadOnlySpan<byte> buffer = GetRemainingBytes(); 138ReadOnlySpan<byte> buffer = _data.Span; 139ReadOnlySpan<byte> previousKeyEncoding = buffer.Slice(previousKeyEncodingRange.Offset, previousKeyEncodingRange.Length); 140ReadOnlySpan<byte> currentKeyEncoding = buffer.Slice(currentKeyEncodingRange.Offset, currentKeyEncodingRange.Length); 208private ReadOnlySpan<byte> GetKeyEncoding((int Offset, int Length) range)
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(); 113ReadOnlySpan<byte> buffer = GetRemainingBytes(); 186ReadOnlySpan<byte> buffer = GetRemainingBytes(); 189ReadOnlySpan<byte> encodedString = buffer.Slice(bytesRead, length); 232ReadOnlySpan<byte> buffer = GetRemainingBytes(); 237ReadOnlySpan<byte> encodedSlice = buffer.Slice(bytesRead, byteLength); 273ReadOnlySpan<byte> buffer = GetRemainingBytes(); 335ReadOnlySpan<byte> source = GetRemainingBytes(); 361ReadOnlySpan<byte> source = GetRemainingBytes(); 380ReadOnlySpan<byte> buffer = GetRemainingBytes(); 399ReadOnlySpan<byte> source = input.source.Span; 414ReadOnlySpan<byte> buffer = GetRemainingBytes(); 449ReadOnlySpan<byte> data = GetRemainingBytes(); 468static CborInitialByte ReadNextInitialByte(ReadOnlySpan<byte> buffer, CborMajorType expectedType) 489ReadOnlySpan<byte> buffer = GetRemainingBytes(); 497ReadOnlySpan<byte> encodedSlice = buffer.Slice(bytesRead, byteLength); 506private static int ValidateUtf8AndGetCharCount(ReadOnlySpan<byte> buffer, Encoding utf8Encoding)
System\Formats\Cbor\Writer\CborWriter.Array.cs (1)
82ReadOnlySpan<byte> elementEncoding = _buffer.AsSpan(_frameOffset, currentOffset - _frameOffset);
System\Formats\Cbor\Writer\CborWriter.cs (5)
131public void WriteEncodedValue(ReadOnlySpan<byte> encodedValue) 153static unsafe void ValidateEncoding(ReadOnlySpan<byte> encodedValue, CborConformanceMode conformanceMode) 190ReadOnlySpan<byte> encoding = GetSpanEncoding(); 208ReadOnlySpan<byte> encoding = GetSpanEncoding(); 221private 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})" />. 167ReadOnlySpan<byte> keyValuePairEncoding = source.Slice(range.Offset, range.TotalLength);
System\Formats\Cbor\Writer\CborWriter.String.cs (2)
42public void WriteByteString(ReadOnlySpan<byte> value) 127public void WriteTextString(ReadOnlySpan<char> value)
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)
30private static ReadOnlySpan<byte> HeaderSuffix => [1, 0, 0, 0, 0, 0, 0, 0]; 37public 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 (59)
src\libraries\Common\src\System\IO\Archiving.Utils.Unix.cs (1)
12public static unsafe string EntryFromPath(ReadOnlySpan<char> path, bool appendPathSeparator = false)
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) 122internal static bool RemoveRelativeSegments(ReadOnlySpan<char> path, int rootLength, ref ValueStringBuilder sb) 233internal static ReadOnlySpan<char> TrimEndingDirectorySeparator(ReadOnlySpan<char> path) => 241internal static bool EndsInDirectorySeparator(ReadOnlySpan<char> path) =>
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\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
104public ReadOnlySpan<char> AsSpan(bool terminate) 114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
System\Formats\Tar\TarHeader.Read.cs (16)
61private static TarHeader? TryReadAttributes(TarEntryFormat initialFormat, ReadOnlySpan<byte> buffer, Stream archiveStream) 362private static TarHeader? TryReadCommonAttributes(ReadOnlySpan<byte> buffer, TarEntryFormat initialFormat) 367ReadOnlySpan<byte> spanChecksum = buffer.Slice(FieldLocations.Checksum, FieldLengths.Checksum); 429private void ReadMagicAttribute(ReadOnlySpan<byte> buffer) 431ReadOnlySpan<byte> magic = buffer.Slice(FieldLocations.Magic, FieldLengths.Magic); 463private void ReadVersionAttribute(ReadOnlySpan<byte> buffer) 470ReadOnlySpan<byte> version = buffer.Slice(FieldLocations.Version, FieldLengths.Version); 517private void ReadPosixAndGnuSharedAttributes(ReadOnlySpan<byte> buffer) 537private void ReadGnuAttributes(ReadOnlySpan<byte> buffer) 551private void ReadUstarAttributes(ReadOnlySpan<byte> buffer) 622private void ReadExtendedAttributesFromBuffer(ReadOnlySpan<byte> buffer, string name) 682private void ReadGnuLongPathDataFromBuffer(ReadOnlySpan<byte> buffer) 703ref ReadOnlySpan<byte> buffer, 716ReadOnlySpan<byte> line = buffer.Slice(0, newlinePos); 736ReadOnlySpan<byte> keySlice = line.Slice(0, equalPos); 737ReadOnlySpan<byte> valueSlice = line.Slice(equalPos + 1);
System\Formats\Tar\TarHeader.Write.cs (18)
22private static ReadOnlySpan<byte> UstarMagicBytes => "ustar\0"u8; 23private static ReadOnlySpan<byte> UstarVersionBytes => "00"u8; 25private static ReadOnlySpan<byte> GnuMagicBytes => "ustar "u8; 26private static ReadOnlySpan<byte> GnuVersionBytes => " \0"u8; 524ReadOnlySpan<char> name = _name; 557ReadOnlySpan<byte> pathNameBytes = encodingBuffer.Slice(0, encoded); 645ReadOnlySpan<char> linkName = _linkName; 703ReadOnlySpan<char> uName = _uName; 721ReadOnlySpan<char> gName = _gName; 1021private static int WriteLeftAlignedBytesAndGetChecksum(ReadOnlySpan<byte> bytesToWrite, Span<byte> destination) 1035private static int WriteRightAlignedBytesAndGetChecksum(ReadOnlySpan<byte> bytesToWrite, Span<byte> destination) 1054private static int Checksum(ReadOnlySpan<byte> bytes) 1140private static int WriteAsUtf8String(ReadOnlySpan<char> text, Span<byte> buffer) 1153ReadOnlySpan<char> dirName = Path.GetDirectoryName(_name.AsSpan()); 1156ReadOnlySpan<char> fileName = Path.GetFileName(_name.AsSpan()); 1175ReadOnlySpan<char> tmp = Path.TrimEndingDirectorySeparator(Path.GetTempPath()); 1183private static int GetUtf8TextLength(ReadOnlySpan<char> text) 1187private static int GetUtf16TruncatedTextLength(ReadOnlySpan<char> text, int utf8MaxLength)
System\Formats\Tar\TarHelpers.cs (10)
133internal static bool IsAllNullBytes(ReadOnlySpan<byte> buffer) => 218internal static T ParseNumeric<T>(ReadOnlySpan<byte> buffer) where T : struct, INumber<T>, IBinaryInteger<T> 241internal static T ParseOctal<T>(ReadOnlySpan<byte> buffer) where T : struct, INumber<T> 273private static string GetTrimmedString(ReadOnlySpan<byte> buffer, Encoding encoding) 279internal static ReadOnlySpan<byte> TrimEndingNullsAndSpaces(ReadOnlySpan<byte> buffer) 290private static ReadOnlySpan<byte> TrimLeadingNullsAndSpaces(ReadOnlySpan<byte> buffer) 303internal static string GetTrimmedAsciiString(ReadOnlySpan<byte> buffer) => GetTrimmedString(buffer, Encoding.ASCII); 307internal static string GetTrimmedUtf8String(ReadOnlySpan<byte> buffer) => GetTrimmedString(buffer, Encoding.UTF8);
System.IO.Compression (28)
System\IO\Compression\Crc32Helper.ZLib.cs (1)
21public static unsafe uint UpdateCrc32(uint crc32, ReadOnlySpan<byte> buffer)
System\IO\Compression\DeflateManaged\InflaterManaged.cs (5)
13private static ReadOnlySpan<byte> ExtraLengthBits => 21private static ReadOnlySpan<byte> LengthBase => 29private static ReadOnlySpan<ushort> DistanceBasePosition => 36private static ReadOnlySpan<byte> CodeOrder => [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]; 38private static ReadOnlySpan<byte> StaticDistanceTreeTable =>
System\IO\Compression\DeflateZLib\DeflateStream.cs (2)
525public override void Write(ReadOnlySpan<byte> buffer) 540internal void WriteCore(ReadOnlySpan<byte> buffer)
System\IO\Compression\GZipStream.cs (1)
142public override void Write(ReadOnlySpan<byte> buffer)
System\IO\Compression\PositionPreservingWriteOnlyStreamWrapper.cs (1)
38public override void Write(ReadOnlySpan<byte> buffer)
System\IO\Compression\ZipArchive.cs (1)
524ReadOnlySpan<byte> sizedFileBuffer = fileBufferSpan.Slice(0, currBytesRead);
System\IO\Compression\ZipArchiveEntry.cs (1)
1379public override void Write(ReadOnlySpan<byte> source)
System\IO\Compression\ZipBlocks.cs (12)
38public static bool TryReadBlock(ReadOnlySpan<byte> bytes, out int bytesConsumed, out ZipGenericExtraField field) 64public static List<ZipGenericExtraField> ParseExtraField(ReadOnlySpan<byte> extraFieldData) 165public static Zip64ExtraField GetJustZip64Block(ReadOnlySpan<byte> extraFieldData, 213ReadOnlySpan<byte> data = extraField.Data; 380public static ReadOnlySpan<byte> SignatureConstantBytes => [0x50, 0x4B, 0x06, 0x07]; 433public static ReadOnlySpan<byte> SignatureConstantBytes => [0x50, 0x4B, 0x06, 0x06]; 510public static ReadOnlySpan<byte> DataDescriptorSignatureConstantBytes => [0x50, 0x4B, 0x07, 0x08]; 511public static ReadOnlySpan<byte> SignatureConstantBytes => [0x50, 0x4B, 0x03, 0x04]; 598public static ReadOnlySpan<byte> SignatureConstantBytes => [0x50, 0x4B, 0x01, 0x02]; 626public static bool TryReadBlock(ReadOnlySpan<byte> buffer, Stream furtherReads, bool saveExtraFieldsAndComments, out int bytesRead, out ZipCentralDirectoryFileHeader header) 707ReadOnlySpan<byte> zipExtraFields = dynamicHeader.Slice(header.FilenameLength, header.ExtraFieldLength); 750public static ReadOnlySpan<byte> SignatureConstantBytes => [0x50, 0x4B, 0x05, 0x06];
System\IO\Compression\ZipCustomStreams.cs (2)
158public override void Write(ReadOnlySpan<byte> source) 524public override void Write(ReadOnlySpan<byte> source)
System\IO\Compression\ZipHelper.cs (1)
106internal static bool SeekBackwardsToSignature(Stream stream, ReadOnlySpan<byte> signatureToFind, int maxBytesToRead)
System\IO\Compression\ZLibStream.cs (1)
200public override void Write(ReadOnlySpan<byte> buffer)
System.IO.Compression.Brotli (10)
System\IO\Compression\BrotliStream.cs (1)
77WriteCore(ReadOnlySpan<byte>.Empty, isFinalBlock: true);
System\IO\Compression\dec\BrotliDecoder.cs (2)
55public OperationStatus Decompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesConsumed, out int bytesWritten) 114public 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)
73public override void Write(ReadOnlySpan<byte> buffer) 78internal void WriteCore(ReadOnlySpan<byte> buffer, bool isFinalBlock = false)
System.IO.Compression.ZipFile (1)
src\libraries\Common\src\System\IO\Archiving.Utils.Unix.cs (1)
12public static unsafe string EntryFromPath(ReadOnlySpan<char> path, bool appendPathSeparator = false)
System.IO.FileSystem.Watcher (24)
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) 122internal static bool RemoveRelativeSegments(ReadOnlySpan<char> path, int rootLength, ref ValueStringBuilder sb) 233internal static ReadOnlySpan<char> TrimEndingDirectorySeparator(ReadOnlySpan<char> path) => 241internal static bool EndsInDirectorySeparator(ReadOnlySpan<char> path) =>
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\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
104public ReadOnlySpan<char> AsSpan(bool terminate) 114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
System\IO\FileSystemWatcher.cs (5)
388private bool MatchPattern(ReadOnlySpan<char> relativePath) 390ReadOnlySpan<char> name = IO.Path.GetFileName(relativePath); 422private void NotifyRenameEventArgs(WatcherChangeTypes action, ReadOnlySpan<char> name, ReadOnlySpan<char> oldName) 451private void NotifyFileSystemEventArgs(WatcherChangeTypes changeType, ReadOnlySpan<char> name)
System\IO\FileSystemWatcher.Linux.cs (5)
549private bool ProcessEvent(NotifyEvent nextEvent, ref ReadOnlySpan<char> previousEventName, ref WatchedDirectory? previousEventParent, ref uint previousEventCookie) 593ReadOnlySpan<char> expandedName = associatedDirectoryEntry.GetPath(true, nextEvent.name); 734previousEventName = ReadOnlySpan<char>.Empty; 757ReadOnlySpan<char> previousEventName = ReadOnlySpan<char>.Empty;
System.IO.Hashing (61)
System\IO\Hashing\Crc32.Arm.cs (2)
13private static uint UpdateScalarArm64(uint crc, ReadOnlySpan<byte> source) 41private static uint UpdateScalarArm32(uint crc, ReadOnlySpan<byte> source)
System\IO\Hashing\Crc32.cs (8)
47public override void Append(ReadOnlySpan<byte> source) 109public static byte[] Hash(ReadOnlySpan<byte> source) 129public static bool TryHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 151public static int Hash(ReadOnlySpan<byte> source, Span<byte> destination) 167public static uint HashToUInt32(ReadOnlySpan<byte> source) => 170private static uint Update(uint crc, ReadOnlySpan<byte> source) 182private static uint UpdateScalar(uint crc, ReadOnlySpan<byte> source) 198ReadOnlySpan<uint> crcLookup = CrcLookup;
System\IO\Hashing\Crc32.Table.cs (1)
16private static ReadOnlySpan<uint> CrcLookup =>
System\IO\Hashing\Crc32.Vectorized.cs (2)
18private static bool CanBeVectorized(ReadOnlySpan<byte> source) => 32private static uint UpdateVectorized(uint crc, ReadOnlySpan<byte> source)
System\IO\Hashing\Crc64.cs (8)
46public override void Append(ReadOnlySpan<byte> source) 107public static byte[] Hash(ReadOnlySpan<byte> source) 127public static bool TryHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 149public static int Hash(ReadOnlySpan<byte> source, Span<byte> destination) 165public static ulong HashToUInt64(ReadOnlySpan<byte> source) => 168private static ulong Update(ulong crc, ReadOnlySpan<byte> source) 180private static ulong UpdateScalar(ulong crc, ReadOnlySpan<byte> source) 182ReadOnlySpan<ulong> crcLookup = CrcLookup;
System\IO\Hashing\Crc64.Table.cs (1)
9private static ReadOnlySpan<ulong> CrcLookup => // 256
System\IO\Hashing\Crc64.Vectorized.cs (2)
37private static bool CanBeVectorized(ReadOnlySpan<byte> source) => VectorHelper.IsSupported && source.Length >= Vector128<byte>.Count; 46private static ulong UpdateVectorized(ulong crc, ReadOnlySpan<byte> source)
System\IO\Hashing\NonCryptographicHashAlgorithm.cs (2)
49public abstract void Append(ReadOnlySpan<byte> source); 342public override void Write(ReadOnlySpan<byte> buffer) => hash.Append(buffer);
System\IO\Hashing\XxHash128.cs (6)
70public static byte[] Hash(ReadOnlySpan<byte> source, long seed = 0) 83public static int Hash(ReadOnlySpan<byte> source, Span<byte> destination, long seed = 0) 99public static bool TryHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, long seed = 0) 119public static UInt128 HashToUInt128(ReadOnlySpan<byte> source, long seed = 0) 126private static Hash128 HashToHash128(ReadOnlySpan<byte> source, long seed = 0) 158public override void Append(ReadOnlySpan<byte> source)
System\IO\Hashing\XxHash3.cs (5)
69public static byte[] Hash(ReadOnlySpan<byte> source, long seed = 0) 83public static int Hash(ReadOnlySpan<byte> source, Span<byte> destination, long seed = 0) 99public static bool TryHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, long seed = 0) 124public static ulong HashToUInt64(ReadOnlySpan<byte> source, long seed = 0) 156public override void Append(ReadOnlySpan<byte> source)
System\IO\Hashing\XxHash32.cs (7)
68public override void Append(ReadOnlySpan<byte> source) 127ReadOnlySpan<byte> remaining = ReadOnlySpan<byte>.Empty; 180public static byte[] Hash(ReadOnlySpan<byte> source, int seed = 0) 201public static bool TryHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, int seed = 0) 224public static int Hash(ReadOnlySpan<byte> source, Span<byte> destination, int seed = 0) 241public 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)
68public override void Append(ReadOnlySpan<byte> source) 127ReadOnlySpan<byte> remaining = ReadOnlySpan<byte>.Empty; 180public static byte[] Hash(ReadOnlySpan<byte> source, long seed = 0) 201public static bool TryHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten, long seed = 0) 224public static int Hash(ReadOnlySpan<byte> source, Span<byte> destination, long seed = 0) 241public 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 (4)
37public static ReadOnlySpan<byte> DefaultSecret => 122ReadOnlySpan<ulong> defaultSecretUInt64 = MemoryMarshal.Cast<byte, ulong>(DefaultSecret); 140ReadOnlySpan<ulong> defaultSecret3UInt64 = MemoryMarshal.Cast<byte, ulong>(DefaultSecret.Slice(3)); 240public static void Append(ref State state, ReadOnlySpan<byte> source)
System.IO.IsolatedStorage (2)
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)
284private void ParseTypeAndSubType(ReadOnlySpan<char> typeAndSubType) 306private void ParseParameterAndValue(ReadOnlySpan<char> parameterAndValue) 352private static int GetLengthOfParameterValue(ReadOnlySpan<char> s, int startIndex) 459private static void ValidateQuotedText(ReadOnlySpan<char> quotedText)
System\IO\Packaging\InterleavedZipPackagePartStream.cs (2)
292public override void Write(ReadOnlySpan<byte> buffer) 296private void WriteCore(ReadOnlySpan<byte> buffer)
System\IO\Packaging\ZipWrappingStream.cs (1)
72ReadOnlySpan<byte> buffer
System.IO.Pipelines (1)
System\IO\Pipelines\Pipe.cs (1)
1097private void WriteMultiSegment(ReadOnlySpan<byte> source)
System.IO.Pipes (2)
System\IO\Pipes\PipeStream.Unix.cs (2)
123public override void Write(ReadOnlySpan<byte> buffer) 280private unsafe void WriteCore(ReadOnlySpan<byte> buffer)
System.IO.Ports (1)
System\IO\Ports\SerialStream.Unix.cs (1)
814ReadOnlySpan<byte> buff = writeRequest.Buffer.Span;
System.Linq (51)
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\Average.cs (2)
18if (source.TryGetSpan(out ReadOnlySpan<int> span)) 94if (source.TryGetSpan(out ReadOnlySpan<TSource> span))
System\Linq\Contains.cs (1)
21if (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 (2)
105if (source.TryGetSpan(out ReadOnlySpan<T> span)) 225if (source.TryGetSpan(out ReadOnlySpan<decimal> span))
System\Linq\MaxMin.cs (1)
33if (source.TryGetSpan(out ReadOnlySpan<T> span))
System\Linq\Min.cs (2)
87if (source.TryGetSpan(out ReadOnlySpan<T> span)) 205if (source.TryGetSpan(out ReadOnlySpan<decimal> span))
System\Linq\OrderedEnumerable.SpeedOpt.cs (1)
385if (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)
163private static void Fill(ReadOnlySpan<TSource> source, Span<TResult> destination, Func<TSource, TResult> func) 367ReadOnlySpan<TSource> source = CollectionsMarshal.AsSpan(_source); 381ReadOnlySpan<TSource> source = CollectionsMarshal.AsSpan(_source); 389private 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\Single.cs (1)
118if (source.TryGetSpan(out ReadOnlySpan<TSource> span))
System\Linq\Sum.cs (7)
33if (source.TryGetSpan(out ReadOnlySpan<TSource> span)) 47private static TResult Sum<T, TResult>(ReadOnlySpan<T> span) 63return (TResult)(object)SumSignedIntegersVectorized(Unsafe.BitCast<ReadOnlySpan<T>, ReadOnlySpan<long>>(span)); 67return (TResult)(object)SumSignedIntegersVectorized(Unsafe.BitCast<ReadOnlySpan<T>, ReadOnlySpan<int>>(span)); 80private 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 (10)
158public static int GetCount(bool onlyIfCheap, ReadOnlySpan<TSource> source, Func<TSource, bool> predicate) 183public static TSource[] ToArray(ReadOnlySpan<TSource> source, Func<TSource, bool> predicate) 204public static List<TSource> ToList(ReadOnlySpan<TSource> source, Func<TSource, bool> predicate) 311ReadOnlySpan<TSource> source = CollectionsMarshal.AsSpan(_source); 357public static int GetCount(bool onlyIfCheap, ReadOnlySpan<TSource> source, Func<TSource, bool> predicate, Func<TSource, TResult> selector) 386public static TResult[] ToArray(ReadOnlySpan<TSource> source, Func<TSource, bool> predicate, Func<TSource, TResult> selector) 407public static List<TResult> ToList(ReadOnlySpan<TSource> source, Func<TSource, bool> predicate, Func<TSource, TResult> selector) 428public static TResult? TryGetFirst(ReadOnlySpan<TSource> source, Func<TSource, bool> predicate, Func<TSource, TResult> selector, out bool found) 445public static TResult? TryGetLast(ReadOnlySpan<TSource> source, Func<TSource, bool> predicate, Func<TSource, TResult> selector, out bool found) 462public static TResult? TryGetElementAt(ReadOnlySpan<TSource> source, Func<TSource, bool> predicate, Func<TSource, TResult> selector, int index, out bool found)
System.Memory (62)
artifacts\obj\System.Memory\Debug\net10.0\System.Memory.Forwards.cs (1)
16[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ReadOnlySpan<>))]
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\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 (20)
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) 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) 539ReadOnlySpan<T> remaining = UnreadSpan; 558ReadOnlySpan<T> remaining = UnreadSpan; 790ReadOnlySpan<T> unread = UnreadSpan; 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 (6)
src\libraries\Common\src\System\IO\ReadOnlyMemoryStream.cs (1)
88ReadOnlySpan<byte> s = _content.Span;
System\BinaryData.cs (5)
436ReadOnlySpan<byte> span = _bytes.Span; 491private ReadOnlySpan<byte> GetBytesWithTrimmedBom() 493ReadOnlySpan<byte> span = _bytes.Span; 509/// Defines an implicit conversion from a <see cref="BinaryData" /> to a <see cref="ReadOnlySpan{Byte}"/>. 512public static implicit operator ReadOnlySpan<byte>(BinaryData? data)
System.Net.Http (193)
src\libraries\Common\src\System\HexConverter.cs (6)
164public static void EncodeToUtf16(ReadOnlySpan<byte> bytes, Span<char> chars, Casing casing = Casing.Upper) 181public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 197EncodeToUtf16(*(ReadOnlySpan<byte>*)args.RosPtr, chars, args.casing)); 229public static bool TryDecodeFromUtf16(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 335private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 433public static ReadOnlySpan<byte> CharToHexLookup =>
src\libraries\Common\src\System\IO\DelegatingStream.cs (1)
159public override void Write(ReadOnlySpan<byte> buffer)
src\libraries\Common\src\System\IO\ReadOnlyMemoryStream.cs (1)
88ReadOnlySpan<byte> s = _content.Span;
src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
90public ReadOnlySpan<byte> ActiveReadOnlySpan => new ReadOnlySpan<byte>(_bytes, _activeStart, _availableStart - _activeStart);
src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\DynamicTable.cs (4)
51public void Insert(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 56public void Insert(int? staticTableIndex, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HeaderField.cs (2)
14public HeaderField(int? staticTableIndex, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value)
src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HPackDecoder.cs (18)
131public void Decode(ReadOnlySpan<byte> data, bool endHeaders, IHttpStreamHeadersHandler handler) 137private void DecodeInternal(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler) 193ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length); 199private void ParseDynamicTableSizeUpdate(ReadOnlySpan<byte> data, ref int currentIndex) 208private void ParseHeaderValueLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 238private void ParseHeaderNameLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 251private void ParseHeaderValueLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 263private void ParseHeaderFieldIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 271private void ParseHeaderNameIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 280private void ParseHeaderNameLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 306private void Parse(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 390private void ParseLiteralHeaderField(ReadOnlySpan<byte> data, ref int currentIndex, byte b, byte mask, byte indexPrefix, bool index, IHttpStreamHeadersHandler handler) 417private void ParseHeaderName(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 455private void ParseHeaderValue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 499private void ProcessHeaderValue(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler) 501ReadOnlySpan<byte> headerValueSpan = _headerValueRange == null 516ReadOnlySpan<byte> headerNameSpan = _headerNameRange == null 633private bool TryDecodeInteger(ReadOnlySpan<byte> data, ref int currentIndex, out int result)
src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HPackEncoder.cs (4)
63var statusBytes = StatusCodes.ToStatusBytes(statusCode); 288public static bool EncodeLiteralHeaderFieldWithoutIndexingNewName(string name, ReadOnlySpan<string> values, byte[] separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten) 410public static bool EncodeStringLiteral(ReadOnlySpan<byte> value, Span<byte> destination, out int bytesWritten) 513public static bool EncodeStringLiterals(ReadOnlySpan<string> values, byte[]? separator, Encoding? valueEncoding, Span<byte> destination, out int bytesWritten)
src\libraries\Common\src\System\Net\Http\aspnetcore\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\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\StatusCodes.cs (1)
11public static ReadOnlySpan<byte> ToStatusBytes(int statusCode)
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\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\libraries\Common\src\System\Net\Http\aspnetcore\Http3\QPack\QPackDecoder.cs (21)
175public void Decode(ReadOnlySpan<byte> data, bool endHeaders, IHttpStreamHeadersHandler handler) 181private void DecodeInternal(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler) 249ReadOnlySpan<byte> headerBytes = data.Slice(_headerNameRange.GetValueOrDefault().start, _headerNameRange.GetValueOrDefault().length); 255private void ParseHeaderNameIndexPostBase(ReadOnlySpan<byte> data, ref int currentIndex) 263private void ParsePostBaseIndex(ReadOnlySpan<byte> data, ref int currentIndex) 271private void ParseHeaderNameLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 284private void ParseHeaderName(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 323private void ParseHeaderFieldIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 331private void ParseHeaderNameIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 340private void ParseHeaderValueLength(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 370private void ParseHeaderValue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 407private void ParseHeaderValueLengthContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 424private void ParseCompressedHeaders(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 523private void ParseRequiredInsertCountContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 532private void ParseBase(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 552private void ParseBaseContinue(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 561private void ParseRequiredInsertCount(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler) 591private void ProcessHeaderValue(ReadOnlySpan<byte> data, IHttpStreamHeadersHandler handler) 593ReadOnlySpan<byte> headerValueSpan = _headerValueRange == null 603ReadOnlySpan<byte> headerNameSpan = _headerNameRange == null 687private bool TryDecodeInteger(ReadOnlySpan<byte> data, ref int currentIndex, out int result)
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\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\libraries\Common\src\System\Net\HttpDateParser.cs (1)
37internal static bool TryParse(ReadOnlySpan<char> input, out DateTimeOffset result)
src\libraries\Common\src\System\Net\HttpKnownHeaderNames.TryGetHeaderName.cs (1)
53public static string GetHeaderValue(string name, ReadOnlySpan<char> value)
src\libraries\Common\src\System\Net\MultiArrayBuffer.cs (1)
401public void CopyFrom(ReadOnlySpan<byte> source)
src\libraries\Common\src\System\Text\SimpleRegex.cs (2)
20public static bool IsMatchWithStarWildcard(ReadOnlySpan<char> input, ReadOnlySpan<char> pattern)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
104public ReadOnlySpan<char> AsSpan(bool terminate) 114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
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)
286ReadOnlySpan<char> dateString = dateParameter.Value; 429private static bool IsQuoted(ReadOnlySpan<char> value) 459ReadOnlySpan<char> processedInputSpan = processedInput;
System\Net\Http\Headers\DateHeaderParser.cs (1)
37ReadOnlySpan<char> dateString = value;
System\Net\Http\Headers\HeaderDescriptor.cs (4)
81public static bool TryGet(ReadOnlySpan<byte> headerName, out HeaderDescriptor descriptor) 132public string GetHeaderValue(ReadOnlySpan<byte> headerValue, Encoding? valueEncoding) 175internal static string? GetKnownContentType(ReadOnlySpan<byte> contentTypeValue) 260private static bool TryDecodeUtf8(ReadOnlySpan<byte> input, [NotNullWhen(true)] out string? decoded)
System\Net\Http\Headers\HeaderUtilities.cs (1)
76ReadOnlySpan<byte> utf8 = utf8bytes.AsSpan(0, utf8length);
System\Net\Http\Headers\HttpHeaders.cs (1)
1403internal ReadOnlySpan<HeaderEntry> GetEntries()
System\Net\Http\Headers\KnownHeaders.cs (1)
426internal static unsafe KnownHeader? TryGetKnownHeader(ReadOnlySpan<byte> name)
System\Net\Http\HttpContent.cs (11)
32private static ReadOnlySpan<byte> UTF8Preamble => [0xEF, 0xBB, 0xBF]; 33private static ReadOnlySpan<byte> UTF32Preamble => [0xFF, 0xFE, 0x00, 0x00]; 34private static ReadOnlySpan<byte> UnicodePreamble => [0xFF, 0xFE]; 35private static ReadOnlySpan<byte> BigEndianUnicodePreamble => [0xFE, 0xFF]; 51private static void AssertEncodingConstants(Encoding encoding, int codePage, ReadOnlySpan<byte> preamble) 115ReadOnlySpan<byte> firstBuffer = stream.GetFirstBuffer(); 699private static int GetPreambleLength(ReadOnlySpan<byte> data, Encoding encoding) 723private static bool TryDetectEncoding(ReadOnlySpan<byte> data, [NotNullWhen(true)] out Encoding? encoding, out int preambleLength) 868public ReadOnlySpan<byte> GetFirstBuffer() 899public override void Write(ReadOnlySpan<byte> buffer) 921private void GrowAndWrite(ReadOnlySpan<byte> buffer)
System\Net\Http\HttpMethod.cs (2)
88public static HttpMethod Parse(ReadOnlySpan<char> method) => 92internal static HttpMethod? GetKnownMethod(ReadOnlySpan<char> method)
System\Net\Http\HttpRuleParser.cs (6)
36ReadOnlySpan<char> slice = input.AsSpan(startIndex); 43internal static bool IsToken(ReadOnlySpan<char> input) => 46internal static bool IsToken(ReadOnlySpan<byte> input) => 49internal static string GetTokenString(ReadOnlySpan<byte> input) 142ReadOnlySpan<char> slice = input.AsSpan(startIndex); 304private static bool IsValidHostName(ReadOnlySpan<char> host)
System\Net\Http\MultipartContent.cs (1)
633public 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\ContentLengthWriteStream.cs (1)
22public override void Write(ReadOnlySpan<byte> buffer)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (19)
22private static ReadOnlySpan<byte> ProtocolLiteralHeaderBytes => [0x0, 0x9, 0x3a, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c]; 82private static ReadOnlySpan<byte> Http2ConnectionPreface => "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n"u8; 697void IHttpStreamHeadersHandler.OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) { } 700void IHttpStreamHeadersHandler.OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value) { } 701void IHttpStreamHeadersHandler.OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) { } 704private static ReadOnlySpan<byte> GetFrameData(ReadOnlySpan<byte> frameData, bool hasPad, bool hasPriority) 750ReadOnlySpan<byte> span = _incomingBuffer.ActiveSpan.Slice(0, frameHeader.PayloadLength); 783ReadOnlySpan<byte> frameData = GetFrameData(_incomingBuffer.ActiveSpan.Slice(0, frameHeader.PayloadLength), hasPad: frameHeader.PaddedFlag, hasPriority: false); 837ReadOnlySpan<byte> settings = _incomingBuffer.ActiveSpan.Slice(0, frameHeader.PayloadLength); 991ReadOnlySpan<byte> pingContent = _incomingBuffer.ActiveSpan.Slice(0, FrameHeader.PingLength); 1372private void WriteLiteralHeader(string name, ReadOnlySpan<string> values, Encoding? valueEncoding, ref ArrayBuffer headerBuffer) 1385private void WriteLiteralHeaderValues(ReadOnlySpan<string> values, byte[]? separator, Encoding? valueEncoding, ref ArrayBuffer headerBuffer) 1411private void WriteBytes(ReadOnlySpan<byte> bytes, ref ArrayBuffer headerBuffer) 1428ReadOnlySpan<HeaderEntry> entries = headers.GetEntries(); 1435ReadOnlySpan<string> headerValues = tmpHeaderValuesArray.AsSpan(0, headerValuesCount); 1925public 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)
725ReadOnlySpan<HeaderEntry> entries = headers.GetEntries(); 732ReadOnlySpan<string> headerValues = _headerValues.AsSpan(0, headerValuesCount); 801private void BufferLiteralHeaderWithoutNameReference(string name, ReadOnlySpan<string> values, byte[] separator, Encoding? valueEncoding) 821private void BufferLiteralHeaderValues(ReadOnlySpan<string> values, byte[]? separator, Encoding? valueEncoding) 841private void BufferBytes(ReadOnlySpan<byte> span) 951void IHttpStreamHeadersHandler.OnHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 968void IHttpStreamHeadersHandler.OnStaticIndexedHeader(int index, ReadOnlySpan<byte> value) 974void IHttpStreamHeadersHandler.OnDynamicIndexedHeader(int? index, ReadOnlySpan<byte> name, ReadOnlySpan<byte> value) 993private void OnHeader(int? staticIndex, HeaderDescriptor descriptor, string? staticValue, ReadOnlySpan<byte> literalValue)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (17)
482private void WriteBytes(ReadOnlySpan<byte> bytes) 1105ReadOnlySpan<byte> reasonBytes = line.Slice(MinStatusLineLength + 1); 1205ReadOnlySpan<byte> headerName = buffer.Slice(0, valueStartIdx - 1); 1206ReadOnlySpan<byte> headerValue = buffer.Slice(valueStartIdx, buffer.Length - valueIterator.Length + crOrLfIdx - valueStartIdx); 1223static void ThrowForInvalidHeaderLine(ReadOnlySpan<byte> buffer, int newLineIndex) => 1227private void AddResponseHeader(ReadOnlySpan<byte> name, ReadOnlySpan<byte> value, HttpResponseMessage response, bool isFromTrailer) 1325static void ThrowForInvalidHeaderName(ReadOnlySpan<byte> name) => 1372private void WriteToBuffer(ReadOnlySpan<byte> source) 1379private void Write(ReadOnlySpan<byte> source) 1465private void WriteWithoutBuffering(ReadOnlySpan<byte> source) 1547ReadOnlySpan<byte> bytes = _writeBuffer.ActiveSpan; 1566private void WriteToStream(ReadOnlySpan<byte> source) 1587private bool TryReadNextChunkedLine(out ReadOnlySpan<byte> line) 1589ReadOnlySpan<byte> buffer = _readBuffer.ActiveReadOnlySpan; 1709static bool TryFindEndOfLine(ReadOnlySpan<byte> buffer, out int searchOffset) 1746ReadOnlySpan<byte> available = _readBuffer.ActiveSpan;
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (3)
126public string GetResponseHeaderValueWithCaching(HeaderDescriptor descriptor, ReadOnlySpan<byte> value, Encoding? valueEncoding) 133static string GetOrAddCachedValue([NotNull] ref string? cache, HeaderDescriptor descriptor, ReadOnlySpan<byte> value, Encoding? encoding) 177internal 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)
237ReadOnlySpan<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)
150public override void Write(ReadOnlySpan<byte> buffer)
System\Net\Http\SocketsHttpHandler\SocksHelper.cs (1)
320private 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.HttpListener (17)
src\libraries\Common\src\System\HexConverter.cs (6)
164public static void EncodeToUtf16(ReadOnlySpan<byte> bytes, Span<char> chars, Casing casing = Casing.Upper) 181public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 197EncodeToUtf16(*(ReadOnlySpan<byte>*)args.RosPtr, chars, args.casing)); 229public static bool TryDecodeFromUtf16(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 335private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 433public static ReadOnlySpan<byte> CharToHexLookup =>
src\libraries\Common\src\System\Net\CookieComparer.cs (2)
25internal static bool EqualDomains(ReadOnlySpan<char> left, ReadOnlySpan<char> right)
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 (2)
307private static ReadOnlySpan<char> RemoveChunkExtension(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 (43)
src\libraries\Common\src\System\HexConverter.cs (6)
164public static void EncodeToUtf16(ReadOnlySpan<byte> bytes, Span<char> chars, Casing casing = Casing.Upper) 181public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 197EncodeToUtf16(*(ReadOnlySpan<byte>*)args.RosPtr, chars, args.casing)); 229public static bool TryDecodeFromUtf16(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 335private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 433public static ReadOnlySpan<byte> CharToHexLookup =>
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
104public ReadOnlySpan<char> AsSpan(bool terminate) 114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
System\Net\Base64Stream.cs (1)
15private static ReadOnlySpan<byte> Base64DecodeMap =>
System\Net\BufferBuilder.cs (1)
37internal void Append(ReadOnlySpan<byte> value)
System\Net\Mail\MailBnfHelper.cs (1)
230ReadOnlySpan<char> span = data.AsSpan(start);
System\Net\Mail\SmtpCommands.cs (22)
516internal static IAsyncResult BeginSend(SmtpConnection conn, ReadOnlySpan<byte> command, MailAddress from, 553private static void PrepareCommand(SmtpConnection conn, ReadOnlySpan<byte> command, MailAddress from, bool allowUnicode) 569internal static void Send(SmtpConnection conn, ReadOnlySpan<byte> command, MailAddress from, bool allowUnicode) 669internal static ReadOnlySpan<byte> Auth => "AUTH "u8; 670internal static ReadOnlySpan<byte> CRLF => "\r\n"u8; 671internal static ReadOnlySpan<byte> Data => "DATA\r\n"u8; 672internal static ReadOnlySpan<byte> DataStop => "\r\n.\r\n"u8; 673internal static ReadOnlySpan<byte> EHello => "EHLO "u8; 674internal static ReadOnlySpan<byte> Expand => "EXPN "u8; 675internal static ReadOnlySpan<byte> Hello => "HELO "u8; 676internal static ReadOnlySpan<byte> Help => "HELP"u8; 677internal static ReadOnlySpan<byte> Mail => "MAIL FROM:"u8; 678internal static ReadOnlySpan<byte> Noop => "NOOP\r\n"u8; 679internal static ReadOnlySpan<byte> Quit => "QUIT\r\n"u8; 680internal static ReadOnlySpan<byte> Recipient => "RCPT TO:"u8; 681internal static ReadOnlySpan<byte> Reset => "RSET\r\n"u8; 682internal static ReadOnlySpan<byte> Send => "SEND FROM:"u8; 683internal static ReadOnlySpan<byte> SendAndMail => "SAML FROM:"u8; 684internal static ReadOnlySpan<byte> SendOrMail => "SOML FROM:"u8; 685internal static ReadOnlySpan<byte> Turn => "TURN\r\n"u8; 686internal static ReadOnlySpan<byte> Verify => "VRFY "u8; 687internal static ReadOnlySpan<byte> StartTls => "STARTTLS"u8;
System\Net\Mime\Base64Encoder.cs (1)
10private static ReadOnlySpan<byte> Base64EncodeMap => "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="u8;
System\Net\Mime\MimeBasePart.cs (1)
98ReadOnlySpan<char> valueSpan = value;
System\Net\Mime\QEncodedStream.cs (1)
20private static ReadOnlySpan<byte> HexDecodeMap =>
System\Net\Mime\QuotedPrintableStream.cs (2)
37private static ReadOnlySpan<byte> HexDecodeMap => 58private static ReadOnlySpan<byte> HexEncodeMap => "0123456789ABCDEF"u8;
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)
80internal void Append(ReadOnlySpan<byte> bytes)
System.Net.NameResolution (4)
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.NetworkInformation (19)
src\libraries\Common\src\System\HexConverter.cs (6)
164public static void EncodeToUtf16(ReadOnlySpan<byte> bytes, Span<char> chars, Casing casing = Casing.Upper) 181public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 197EncodeToUtf16(*(ReadOnlySpan<byte>*)args.RosPtr, chars, args.casing)); 229public static bool TryDecodeFromUtf16(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 335private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 433public static ReadOnlySpan<byte> CharToHexLookup =>
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 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.Ping (10)
src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (3)
11public static IPAddress GetIPAddress(ReadOnlySpan<byte> socketAddressBuffer) 51public static IPEndPoint CreateIPEndPoint(ReadOnlySpan<byte> socketAddressBuffer) 64public static bool Equals(this IPEndPoint endPoint, ReadOnlySpan<byte> socketAddressBuffer)
src\libraries\Common\src\System\Net\NetworkInformation\UnixCommandLinePing.cs (1)
215ReadOnlySpan<char> timeSubstring = pingOutput.AsSpan(afterTime, numLength);
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\libraries\Common\src\System\Text\ValueUtf8Converter.cs (1)
24public Span<byte> ConvertAndTerminateString(ReadOnlySpan<char> value)
System\Net\NetworkInformation\Ping.RawSocket.cs (1)
482private static ushort ComputeBufferChecksum(ReadOnlySpan<byte> buffer)
System.Net.Primitives (72)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.InterfaceNameToIndex.cs (1)
12public static partial uint InterfaceNameToIndex(ReadOnlySpan<byte> utf8NullTerminatedName);
src\libraries\Common\src\System\HexConverter.cs (6)
164public static void EncodeToUtf16(ReadOnlySpan<byte> bytes, Span<char> chars, Casing casing = Casing.Upper) 181public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 197EncodeToUtf16(*(ReadOnlySpan<byte>*)args.RosPtr, chars, args.casing)); 229public static bool TryDecodeFromUtf16(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 335private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 433public static ReadOnlySpan<byte> CharToHexLookup =>
src\libraries\Common\src\System\Net\CookieComparer.cs (2)
25internal static bool EqualDomains(ReadOnlySpan<char> left, ReadOnlySpan<char> right)
src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (3)
11public static IPAddress GetIPAddress(ReadOnlySpan<byte> socketAddressBuffer) 51public static IPEndPoint CreateIPEndPoint(ReadOnlySpan<byte> socketAddressBuffer) 64public static bool Equals(this IPEndPoint endPoint, ReadOnlySpan<byte> socketAddressBuffer)
src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (1)
34internal static int ParseHostNumber<TChar>(ReadOnlySpan<TChar> str, int start, int end)
src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (5)
17internal static (int longestSequenceStart, int longestSequenceLength) FindCompressionRange(ReadOnlySpan<ushort> numbers) 45internal static bool ShouldHaveIpv4Embedded(ReadOnlySpan<ushort> numbers) 311internal static void Parse<TChar>(ReadOnlySpan<TChar> address, scoped Span<ushort> numbers, out ReadOnlySpan<TChar> scopeId) 322scopeId = ReadOnlySpan<TChar>.Empty;
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\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\CookieContainer.cs (2)
610ReadOnlySpan<char> hostSpan = host; 618ReadOnlySpan<char> part = hostSpan[ipParts[i]];
System\Net\IPAddress.cs (20)
142public IPAddress(ReadOnlySpan<byte> address, long scopeid) 157internal IPAddress(ReadOnlySpan<ushort> numbers, uint scopeid) 184public IPAddress(ReadOnlySpan<byte> address) 201private static ushort[] ReadUInt16NumbersFromBytes(ReadOnlySpan<byte> address) 231public static bool IsValid(ReadOnlySpan<char> ipSpan) => IPAddressParser.IsValid(ipSpan); 235public static bool IsValidUtf8(ReadOnlySpan<byte> utf8Text) => IPAddressParser.IsValid(utf8Text); 260public static bool TryParse(ReadOnlySpan<byte> utf8Text, [NotNullWhen(true)] out IPAddress? result) 266public static bool TryParse(ReadOnlySpan<char> ipSpan, [NotNullWhen(true)] out IPAddress? address) 273static bool IUtf8SpanParsable<IPAddress>.TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, [NotNullWhen(true)] out IPAddress? result) => 282static bool ISpanParsable<IPAddress>.TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, [NotNullWhen(true)] out IPAddress? result) => 298public static IPAddress Parse(ReadOnlySpan<byte> utf8Text) 303public static IPAddress Parse(ReadOnlySpan<char> ipSpan) 309static IPAddress IUtf8SpanParsable<IPAddress>.Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => 314static IPAddress ISpanParsable<IPAddress>.Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => 487bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) => 492bool IUtf8SpanFormattable.TryFormat(Span<byte> utf8Destination, out int bytesWritten, ReadOnlySpan<char> format, IFormatProvider? provider) => 701ReadOnlySpan<ushort> left = _numbers.AsSpan(0, IPAddressParserStatics.IPv6AddressShorts); 702ReadOnlySpan<ushort> right = comparand._numbers.AsSpan(0, IPAddressParserStatics.IPv6AddressShorts); 718ReadOnlySpan<byte> numbers = MemoryMarshal.AsBytes<ushort>(_numbers); 773public ReadOnlyIPAddress(ReadOnlySpan<byte> newAddress) : base(newAddress)
System\Net\IPAddressParser.cs (8)
19public static unsafe bool IsValid<TChar>(ReadOnlySpan<TChar> ipSpan) 37internal static IPAddress? Parse<TChar>(ReadOnlySpan<TChar> ipSpan, bool tryParse) 66private static unsafe bool TryParseIpv4<TChar>(ReadOnlySpan<TChar> ipSpan, out long address) 90private static unsafe bool TryParseIPv6<TChar>(ReadOnlySpan<TChar> ipSpan, Span<ushort> numbers, int numbersLength, out uint scope) 105IPv6AddressHelper.Parse(ipSpan, numbers, out ReadOnlySpan<TChar> scopeIdSpan); 115ReadOnlySpan<byte> castScopeIdSpan = MemoryMarshal.Cast<TChar, byte>(scopeIdSpan); 121ReadOnlySpan<char> castScopeIdSpan = MemoryMarshal.Cast<TChar, char>(scopeIdSpan); 242static void AppendSections(ReadOnlySpan<ushort> address, Span<TChar> destination, ref int offset)
System\Net\IPEndPoint.cs (2)
95public static bool TryParse(ReadOnlySpan<char> s, [NotNullWhen(true)] out IPEndPoint? result) 137public static IPEndPoint Parse(ReadOnlySpan<char> s)
System\Net\IPNetwork.cs (14)
147public static IPNetwork Parse(ReadOnlySpan<char> s) 163public static IPNetwork Parse(ReadOnlySpan<byte> utf8Text) 196public static bool TryParse(ReadOnlySpan<char> s, out IPNetwork result) 201ReadOnlySpan<char> ipAddressSpan = s.Slice(0, separatorIndex); 202ReadOnlySpan<char> prefixLengthSpan = s.Slice(separatorIndex + 1); 225public static bool TryParse(ReadOnlySpan<byte> utf8Text, out IPNetwork result) 230ReadOnlySpan<byte> ipAddressSpan = utf8Text.Slice(0, separatorIndex); 231ReadOnlySpan<byte> prefixLengthSpan = utf8Text.Slice(separatorIndex + 1); 354bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) => 359bool IUtf8SpanFormattable.TryFormat(Span<byte> utf8Destination, out int bytesWritten, ReadOnlySpan<char> format, IFormatProvider? provider) => 370static IPNetwork ISpanParsable<IPNetwork>.Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s); 373static IPNetwork IUtf8SpanParsable<IPNetwork>.Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text); 376static bool ISpanParsable<IPNetwork>.TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out IPNetwork result) => TryParse(s, out result); 379static bool IUtf8SpanParsable<IPNetwork>.TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out IPNetwork result) => TryParse(utf8Text, out result);
System.Net.Quic (40)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.BIO.cs (1)
43internal static int BioWrite(SafeBioHandle b, ReadOnlySpan<byte> data) =>
src\libraries\Common\src\System\HexConverter.cs (6)
164public static void EncodeToUtf16(ReadOnlySpan<byte> bytes, Span<char> chars, Casing casing = Casing.Upper) 181public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 197EncodeToUtf16(*(ReadOnlySpan<byte>*)args.RosPtr, chars, args.casing)); 229public static bool TryDecodeFromUtf16(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 335private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 433public static ReadOnlySpan<byte> CharToHexLookup =>
src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
90public ReadOnlySpan<byte> ActiveReadOnlySpan => new ReadOnlySpan<byte>(_bytes, _activeStart, _availableStart - _activeStart);
src\libraries\Common\src\System\Net\IPEndPointExtensions.cs (3)
11public static IPAddress GetIPAddress(ReadOnlySpan<byte> socketAddressBuffer) 51public static IPEndPoint CreateIPEndPoint(ReadOnlySpan<byte> socketAddressBuffer) 64public static bool Equals(this IPEndPoint endPoint, ReadOnlySpan<byte> socketAddressBuffer)
src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (1)
34internal static int ParseHostNumber<TChar>(ReadOnlySpan<TChar> str, int start, int end)
src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (5)
17internal static (int longestSequenceStart, int longestSequenceLength) FindCompressionRange(ReadOnlySpan<ushort> numbers) 45internal static bool ShouldHaveIpv4Embedded(ReadOnlySpan<ushort> numbers) 311internal static void Parse<TChar>(ReadOnlySpan<TChar> address, scoped Span<ushort> numbers, out ReadOnlySpan<TChar> scopeId) 322scopeId = ReadOnlySpan<TChar>.Empty;
src\libraries\Common\src\System\Net\MultiArrayBuffer.cs (1)
401public void CopyFrom(ReadOnlySpan<byte> source)
src\libraries\Common\src\System\Net\Security\SslKeyLogger.cs (11)
44public static void WriteLineRaw(ReadOnlySpan<byte> data) 64ReadOnlySpan<byte> clientRandom, 65ReadOnlySpan<byte> clientHandshakeTrafficSecret, 66ReadOnlySpan<byte> serverHandshakeTrafficSecret, 67ReadOnlySpan<byte> clientTrafficSecret0, 68ReadOnlySpan<byte> serverTrafficSecret0, 69ReadOnlySpan<byte> clientEarlyTrafficSecret) 102private static void WriteSecretCore(ReadOnlySpan<byte> labelUtf8, ReadOnlySpan<byte> clientRandomUtf8, ReadOnlySpan<byte> secret) 126private static void HexEncode(ReadOnlySpan<byte> source, Span<byte> destination)
src\libraries\Common\src\System\Net\Security\TargetHostNameHelper.cs (1)
15private static bool IsSafeDnsString(ReadOnlySpan<char> name) =>
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\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\libraries\Common\src\System\Net\HttpDateParser.cs (1)
37internal static bool TryParse(ReadOnlySpan<char> input, out DateTimeOffset result)
System\Net\FtpControlStream.cs (2)
921ReadOnlySpan<char> strSpan = str; 927ReadOnlySpan<char> dateTimeLine = strSpan[parts[1]];
System\Net\FtpDataStream.cs (1)
234public override void Write(ReadOnlySpan<byte> buffer)
System.Net.Security (206)
src\libraries\Common\src\Interop\Unix\System.Net.Security.Native\Interop.GssBuffer.cs (1)
54internal unsafe ReadOnlySpan<byte> Span => (_data != IntPtr.Zero && _length != 0) ?
src\libraries\Common\src\Interop\Unix\System.Net.Security.Native\Interop.NetSecurityNative.cs (8)
112ReadOnlySpan<byte> inputBytes, 140ReadOnlySpan<byte> inputBytes, 176ReadOnlySpan<byte> inputBytes, 242ReadOnlySpan<byte> inputBytes, 255ReadOnlySpan<byte> inputBytes, 267ReadOnlySpan<byte> inputBytes, 279ReadOnlySpan<byte> inputBytes, 280ReadOnlySpan<byte> tokenBytes)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.BIO.cs (1)
43internal static int BioWrite(SafeBioHandle b, ReadOnlySpan<byte> data) =>
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\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (5)
226ReadOnlySpan<byte> cipherList = CipherSuitesPolicyPal.GetOpenSslCipherList(sslAuthenticationOptions.CipherSuitesPolicy, protocols, sslAuthenticationOptions.EncryptionPolicy); 521internal static SecurityStatusPalErrorCode DoSslHandshake(SafeSslHandle context, ReadOnlySpan<byte> input, ref ProtocolToken token) 602internal static Ssl.SslErrorCode Encrypt(SafeSslHandle context, ReadOnlySpan<byte> input, ref ProtocolToken outToken) 839ReadOnlySpan<byte> data = MemoryMarshal.CreateReadOnlySpanFromNullTerminated((byte*)line); 856private static void BioWrite(SafeBioHandle bio, ReadOnlySpan<byte> buffer)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (3)
68internal static unsafe ReadOnlySpan<byte> SslGetAlpnSelected(SafeSslHandle ssl) 75return ReadOnlySpan<byte>.Empty; 271internal static unsafe void SslStapleOcsp(SafeSslHandle ssl, ReadOnlySpan<byte> stapledResponse)
src\libraries\Common\src\System\HexConverter.cs (6)
164public static void EncodeToUtf16(ReadOnlySpan<byte> bytes, Span<char> chars, Casing casing = Casing.Upper) 181public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 197EncodeToUtf16(*(ReadOnlySpan<byte>*)args.RosPtr, chars, args.casing)); 229public static bool TryDecodeFromUtf16(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 335private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 433public static ReadOnlySpan<byte> CharToHexLookup =>
src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
90public ReadOnlySpan<byte> ActiveReadOnlySpan => new ReadOnlySpan<byte>(_bytes, _activeStart, _availableStart - _activeStart);
src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (1)
34internal static int ParseHostNumber<TChar>(ReadOnlySpan<TChar> str, int start, int end)
src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (5)
17internal static (int longestSequenceStart, int longestSequenceLength) FindCompressionRange(ReadOnlySpan<ushort> numbers) 45internal static bool ShouldHaveIpv4Embedded(ReadOnlySpan<ushort> numbers) 311internal static void Parse<TChar>(ReadOnlySpan<TChar> address, scoped Span<ushort> numbers, out ReadOnlySpan<TChar> scopeId) 322scopeId = ReadOnlySpan<TChar>.Empty;
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\libraries\Common\src\System\Net\Security\MD4.cs (5)
63internal static 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 void MD4Transform(Span<uint> state, ReadOnlySpan<byte> block)
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\libraries\Common\src\System\Net\Security\SslKeyLogger.cs (11)
44public static void WriteLineRaw(ReadOnlySpan<byte> data) 64ReadOnlySpan<byte> clientRandom, 65ReadOnlySpan<byte> clientHandshakeTrafficSecret, 66ReadOnlySpan<byte> serverHandshakeTrafficSecret, 67ReadOnlySpan<byte> clientTrafficSecret0, 68ReadOnlySpan<byte> serverTrafficSecret0, 69ReadOnlySpan<byte> clientEarlyTrafficSecret) 102private static void WriteSecretCore(ReadOnlySpan<byte> labelUtf8, ReadOnlySpan<byte> clientRandomUtf8, ReadOnlySpan<byte> secret) 126private static void HexEncode(ReadOnlySpan<byte> source, Span<byte> destination)
src\libraries\Common\src\System\Net\Security\TargetHostNameHelper.cs (1)
15private static bool IsSafeDnsString(ReadOnlySpan<char> name) =>
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (13)
13private ReadOnlySpan<byte> _span; 16internal AsnValueReader(ReadOnlySpan<byte> span, AsnEncodingRules ruleSet) 37internal ReadOnlySpan<byte> PeekContentBytes() 49internal ReadOnlySpan<byte> PeekEncodedValue() 55internal ReadOnlySpan<byte> ReadEncodedValue() 57ReadOnlySpan<byte> value = PeekEncodedValue(); 83internal ReadOnlySpan<byte> ReadIntegerBytes(Asn1Tag? expectedTag = default) 85ReadOnlySpan<byte> ret = AsnDecoder.ReadIntegerBytes(_span, _ruleSet, out int consumed, expectedTag); 92out ReadOnlySpan<byte> value, 128out ReadOnlySpan<byte> value, 171ReadOnlySpan<byte> content = _span.Slice(contentOffset, contentLength); 187ReadOnlySpan<byte> content = _span.Slice(contentOffset, contentLength); 225ReadOnlySpan<byte> value)
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 (32)
49private static ReadOnlySpan<byte> NtlmHeader => "NTLMSSP\0"u8; 51private static ReadOnlySpan<byte> ClientSigningKeyMagic => "session key to client-to-server signing key magic constant\0"u8; 52private static ReadOnlySpan<byte> ServerSigningKeyMagic => "session key to server-to-client signing key magic constant\0"u8; 53private static ReadOnlySpan<byte> ClientSealingKeyMagic => "session key to client-to-server sealing key magic constant\0"u8; 54private static ReadOnlySpan<byte> ServerSealingKeyMagic => "session key to server-to-client sealing key magic constant\0"u8; 264public override unsafe byte[]? GetOutgoingBlob(ReadOnlySpan<byte> incomingBlob, out NegotiateAuthenticationStatusCode statusCode) 311ReadOnlySpan<byte> span = new ReadOnlySpan<byte>(&field, sizeof(MessageField)); 317ReadOnlySpan<byte> span = new ReadOnlySpan<byte>(&field, sizeof(MessageField)); 321private static ReadOnlySpan<byte> GetField(MessageField field, ReadOnlySpan<byte> payload) 328return ReadOnlySpan<byte>.Empty; 347private static void AddToPayload(ref MessageField field, ReadOnlySpan<byte> data, Span<byte> payload, ref int offset) 354private static void AddToPayload(ref MessageField field, ReadOnlySpan<char> data, Span<byte> payload, ref int offset) 365private static void makeNtlm2Hash(string domain, string userName, ReadOnlySpan<char> password, Span<byte> hash) 398private unsafe void makeNtlm2ChallengeResponse(DateTime time, ReadOnlySpan<byte> ntlm2hash, ReadOnlySpan<byte> serverChallenge, Span<byte> clientChallenge, ReadOnlySpan<byte> serverInfo, ref MessageField field, Span<byte> payload, ref int payloadOffset) 457private byte[] ProcessTargetInfo(ReadOnlySpan<byte> targetInfo, out DateTime time, out bool hasNbNames) 474ReadOnlySpan<byte> info = targetInfo; 552private static byte[] DeriveKey(ReadOnlySpan<byte> exportedSessionKey, ReadOnlySpan<byte> magic) 563private unsafe byte[]? ProcessChallenge(ReadOnlySpan<byte> blob, out NegotiateAuthenticationStatusCode statusCode) 578ReadOnlySpan<byte> targetName = GetField(challengeMessage.TargetName, blob); 597ReadOnlySpan<byte> targetInfo = GetField(challengeMessage.TargetInfo, blob); 648ReadOnlySpan<byte> serverChallenge = blob.Slice(24, 8); 714ReadOnlySpan<byte> message, 716ReadOnlySpan<byte> signingKey, 732public override bool VerifyMIC(ReadOnlySpan<byte> message, ReadOnlySpan<byte> signature) 751public override void GetMIC(ReadOnlySpan<byte> message, IBufferWriter<byte> signature) 762public override NegotiateAuthenticationStatusCode Wrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, bool _/*requestEncryption*/, out bool isEncrypted) 780public override NegotiateAuthenticationStatusCode Unwrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, out bool wasEncrypted)
System\Net\NegotiateAuthenticationPal.ManagedSpnego.cs (8)
97public override unsafe byte[]? GetOutgoingBlob(ReadOnlySpan<byte> incomingBlob, out NegotiateAuthenticationStatusCode statusCode) 140private byte[]? CreateSpNegoNegotiateMessage(ReadOnlySpan<byte> incomingBlob, out NegotiateAuthenticationStatusCode statusCode) 216private byte[]? ProcessSpNegoChallenge(ReadOnlySpan<byte> challenge, out NegotiateAuthenticationStatusCode statusCode) 404public override NegotiateAuthenticationStatusCode Wrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, bool requestEncryption, out bool isEncrypted) 414public override NegotiateAuthenticationStatusCode Unwrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, out bool wasEncrypted) 434public override bool VerifyMIC(ReadOnlySpan<byte> message, ReadOnlySpan<byte> signature) 444public override void GetMIC(ReadOnlySpan<byte> message, IBufferWriter<byte> signature)
System\Net\NegotiateAuthenticationPal.Unix.cs (10)
267public override byte[]? GetOutgoingBlob(ReadOnlySpan<byte> incomingBlob, out NegotiateAuthenticationStatusCode statusCode) 332public override NegotiateAuthenticationStatusCode Wrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, bool requestEncryption, out bool isEncrypted) 363public override NegotiateAuthenticationStatusCode Unwrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, out bool wasEncrypted) 422public override unsafe void GetMIC(ReadOnlySpan<byte> message, IBufferWriter<byte> signature) 448public override unsafe bool VerifyMIC(ReadOnlySpan<byte> message, ReadOnlySpan<byte> signature) 487ReadOnlySpan<char> domain = credential.Domain; 532ReadOnlySpan<byte> tokenBytes = token.Span; 554ReadOnlySpan<byte> incomingBlob, 679ReadOnlySpan<byte> incomingBlob,
System\Net\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)
124internal static ReadOnlySpan<byte> GetOpenSslCipherList( 171private static ReadOnlySpan<byte> CipherListFromEncryptionPolicy(EncryptionPolicy policy)
System\Net\Security\NegotiateAuthentication.cs (6)
208public byte[]? GetOutgoingBlob(ReadOnlySpan<byte> incomingBlob, out NegotiateAuthenticationStatusCode statusCode) 290public NegotiateAuthenticationStatusCode Wrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, bool requestEncryption, out bool isEncrypted) 317public NegotiateAuthenticationStatusCode Unwrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, out bool wasEncrypted) 369public void ComputeIntegrityCheck(ReadOnlySpan<byte> message, IBufferWriter<byte> signatureWriter) 394public 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); 811public override unsafe void Write(ReadOnlySpan<byte> buffer)
System\Net\Security\SslStream.IO.cs (3)
492ReadOnlySpan<byte> availableData = _buffer.EncryptedReadOnlySpan; 526private void SendAuthResetSignal(ReadOnlySpan<byte> alert, ExceptionDispatchInfo exception) 1012private int GetFrameSize(ReadOnlySpan<byte> buffer)
System\Net\Security\SslStream.Protocol.cs (5)
817internal ProtocolToken NextMessage(ReadOnlySpan<byte> incomingBuffer, out int consumed) 844private ProtocolToken GenerateToken(ReadOnlySpan<byte> inputBuffer, out int consumed) 896ReadOnlySpan<byte>.Empty, 925ReadOnlySpan<byte>.Empty, 1363internal void SetPayload(ReadOnlySpan<byte> payload)
System\Net\Security\SslStreamPal.Unix.cs (6)
31ReadOnlySpan<byte> clientProtocols) 40ReadOnlySpan<byte> inputBuffer, 51ReadOnlySpan<byte> inputBuffer, 174ReadOnlySpan<byte> inputBuffer, out int consumed, SslAuthenticationOptions sslAuthenticationOptions) 207errorCode = Interop.OpenSsl.DoSslHandshake((SafeSslHandle)context, ReadOnlySpan<byte>.Empty, ref token); 214errorCode = Interop.OpenSsl.DoSslHandshake((SafeSslHandle)context, ReadOnlySpan<byte>.Empty, ref token);
System\Net\Security\TlsFrameHelper.cs (35)
152public delegate bool HelloExtensionCallback(ref TlsFrameInfo info, ExtensionType type, ReadOnlySpan<byte> extensionsData); 171public static bool TryGetFrameHeader(ReadOnlySpan<byte> frame, ref TlsFrameHeader header) 227public static bool TryGetFrameInfo(ReadOnlySpan<byte> frame, ref TlsFrameInfo info, ProcessingOptions options = ProcessingOptions.All, HelloExtensionCallback? callback = null) 292public static string? GetServerName(ReadOnlySpan<byte> frame) 304public static bool TryGetAlertInfo(ReadOnlySpan<byte> frame, ref TlsAlertLevel level, ref TlsAlertDescription description) 365private static bool TryParseHelloFrame(ReadOnlySpan<byte> sslHandshake, ref TlsFrameInfo info, ProcessingOptions options, HelloExtensionCallback? callback) 390ReadOnlySpan<byte> helloData = sslHandshake.Slice(HelloOffset); 408private static bool TryParseClientHello(ReadOnlySpan<byte> clientHello, ref TlsFrameInfo info, ProcessingOptions options, HelloExtensionCallback? callback) 421ReadOnlySpan<byte> p = SkipBytes(clientHello, ProtocolVersionSize + RandomSize); 449private static bool TryParseServerHello(ReadOnlySpan<byte> serverHello, ref TlsFrameInfo info, ProcessingOptions options, HelloExtensionCallback? callback) 465ReadOnlySpan<byte> p = SkipBytes(serverHello, ProtocolVersionSize + RandomSize); 488private static bool TryParseHelloExtensions(ReadOnlySpan<byte> extensions, ref TlsFrameInfo info, ProcessingOptions options, HelloExtensionCallback? callback) 506ReadOnlySpan<byte> extensionData = extensions.Slice(0, extensionLength); 553private static bool TryGetSniFromServerNameList(ReadOnlySpan<byte> serverNameListExtension, out string? sni) 569ReadOnlySpan<byte> serverNameList = serverNameListExtension.Slice(ServerNameListOffset); 576ReadOnlySpan<byte> serverName = serverNameList.Slice(0, serverNameListLength); 582private static string? GetSniFromServerName(ReadOnlySpan<byte> serverName, out bool invalid) 602ReadOnlySpan<byte> hostNameStruct = serverName.Slice(HostNameStructOffset); 612private static string? GetSniFromHostNameStruct(ReadOnlySpan<byte> hostNameStruct, out bool invalid) 620ReadOnlySpan<byte> hostName = hostNameStruct.Slice(HostNameOffset); 631private static bool TryGetSupportedVersionsFromExtension(ReadOnlySpan<byte> extensionData, out SslProtocols protocols) 670private static bool TryGetApplicationProtocolsFromExtension(ReadOnlySpan<byte> extensionData, out ApplicationProtocolInfo alpn) 690ReadOnlySpan<byte> alpnList = extensionData.Slice(AlpnListOffset); 704ReadOnlySpan<byte> protocol = alpnList.Slice(1, protocolLength); 749private static string? DecodeString(ReadOnlySpan<byte> bytes) 788private static int ReadUInt24BigEndian(ReadOnlySpan<byte> bytes) 793private static ReadOnlySpan<byte> SkipBytes(ReadOnlySpan<byte> bytes, int numberOfBytesToSkip) 795return (numberOfBytesToSkip < bytes.Length) ? bytes.Slice(numberOfBytesToSkip) : ReadOnlySpan<byte>.Empty; 803private static ReadOnlySpan<byte> SkipOpaqueType1(ReadOnlySpan<byte> bytes) 808return ReadOnlySpan<byte>.Empty; 817private static ReadOnlySpan<byte> SkipOpaqueType2(ReadOnlySpan<byte> bytes) 822return ReadOnlySpan<byte>.Empty;
System\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 (16)
src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
90public 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 unsafe void WriteUtf8String(this IBufferWriter<byte> writer, ReadOnlySpan<char> value) 64public static bool ContainsLineBreaks(this ReadOnlySpan<char> text) =>
System\Net\ServerSentEvents\SseFormatter.cs (4)
97ReadOnlySpan<byte> data, 136private static void WriteLinesWithPrefix(PooledByteBufferWriter writer, ReadOnlySpan<byte> prefix, ReadOnlySpan<byte> data) 158ReadOnlySpan<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.cs (1)
53internal static unsafe string Utf8GetString(ReadOnlySpan<byte> bytes)
System\Net\ServerSentEvents\SseParser_1.cs (6)
29private static ReadOnlySpan<byte> CRLF => "\r\n"u8; 317ReadOnlySpan<byte> line = _lineBuffer.AsSpan(_lineOffset, _newlineIndex - _lineOffset); 342ReadOnlySpan<byte> fieldName; 343ReadOnlySpan<byte> fieldValue; 375ReadOnlySpan<byte> remainder = _lineBuffer.AsSpan(_newlineIndex + newlineLength, _lineLength - line.Length - newlineLength); 519private static ReadOnlySpan<byte> Utf8Bom => [0xEF, 0xBB, 0xBF];
System.Net.Sockets (57)
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\libraries\Common\src\System\Net\IPEndPointExtensions.cs (3)
11public static IPAddress GetIPAddress(ReadOnlySpan<byte> socketAddressBuffer) 51public static IPEndPoint CreateIPEndPoint(ReadOnlySpan<byte> socketAddressBuffer) 64public static bool Equals(this IPEndPoint endPoint, ReadOnlySpan<byte> socketAddressBuffer)
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\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\Socket.cs (13)
1229public int Send(ReadOnlySpan<byte> buffer) => Send(buffer, SocketFlags.None); 1231public int Send(ReadOnlySpan<byte> buffer, SocketFlags socketFlags) 1241public int Send(ReadOnlySpan<byte> buffer, SocketFlags socketFlags, out SocketError errorCode) 1272SendFile(fileName, ReadOnlySpan<byte>.Empty, ReadOnlySpan<byte>.Empty, TransmitFileOptions.UseDefaultWorkerThread); 1311/// A <see cref="ReadOnlySpan{T}"/> that contains data to be sent before the file is sent. This buffer can be empty. 1314/// A <see cref="ReadOnlySpan{T}"/> that contains data to be sent after the file is sent. This buffer can be empty. 1324public void SendFile(string? fileName, ReadOnlySpan<byte> preBuffer, ReadOnlySpan<byte> postBuffer, TransmitFileOptions flags) 1411public int SendTo(ReadOnlySpan<byte> buffer, EndPoint remoteEP) 1428public int SendTo(ReadOnlySpan<byte> buffer, SocketFlags socketFlags, EndPoint remoteEP) 1471public int SendTo(ReadOnlySpan<byte> buffer, SocketFlags socketFlags, SocketAddress socketAddress) 2169public void SetRawSocketOption(int optionLevel, int optionName, ReadOnlySpan<byte> optionValue)
System\Net\Sockets\Socket.Unix.cs (2)
223private void SendFileInternal(string? fileName, ReadOnlySpan<byte> preBuffer, ReadOnlySpan<byte> postBuffer, TransmitFileOptions flags)
System\Net\Sockets\SocketAsyncContext.Unix.cs (3)
402return SocketPal.TryCompleteSendTo(context._socket, default(ReadOnlySpan<byte>), Buffers, ref BufferIndex, ref Offset, ref Count, Flags, SocketAddress.Span, ref BytesTransferred, out ErrorCode); 1933public SocketError Send(ReadOnlySpan<byte> buffer, SocketFlags flags, int timeout, out int bytesSent) => 1979public unsafe SocketError SendTo(ReadOnlySpan<byte> buffer, SocketFlags flags, Memory<byte> socketAddress, int timeout, out int bytesSent)
System\Net\Sockets\SocketPal.Unix.cs (21)
185private static unsafe int SysWrite(SafeSocketHandle handle, ReadOnlySpan<byte> buffer, ref int offset, ref int count, out Interop.Error errno) 211private static ReadOnlySpan<byte> AvoidNullReference(ReadOnlySpan<byte> buffer) => 214private static unsafe int SysSend(SafeSocketHandle socket, SocketFlags flags, ReadOnlySpan<byte> buffer, ref int offset, ref int count, out Interop.Error errno) 241private static unsafe int SysSend(SafeSocketHandle socket, SocketFlags flags, ReadOnlySpan<byte> buffer, ref int offset, ref int count, ReadOnlySpan<byte> socketAddress, out Interop.Error errno) 285private static unsafe int SysSend(SafeSocketHandle socket, SocketFlags flags, IList<ArraySegment<byte>> buffers, ref int bufferIndex, ref int offset, ReadOnlySpan<byte> socketAddress, out Interop.Error errno) 949public static bool TryCompleteSendTo(SafeSocketHandle socket, Span<byte> buffer, ref int offset, ref int count, SocketFlags flags, ReadOnlySpan<byte> socketAddress, ref int bytesSent, out SocketError errorCode) 955public static bool TryCompleteSendTo(SafeSocketHandle socket, ReadOnlySpan<byte> buffer, SocketFlags flags, ReadOnlySpan<byte> socketAddress, ref int bytesSent, out SocketError errorCode) 961public static bool TryCompleteSendTo(SafeSocketHandle socket, IList<ArraySegment<byte>> buffers, ref int bufferIndex, ref int offset, SocketFlags flags, ReadOnlySpan<byte> socketAddress, ref int bytesSent, out SocketError errorCode) 964return TryCompleteSendTo(socket, default(ReadOnlySpan<byte>), buffers, ref bufferIndex, ref offset, ref count, flags, socketAddress, ref bytesSent, out errorCode); 967public static bool TryCompleteSendTo(SafeSocketHandle socket, ReadOnlySpan<byte> buffer, IList<ArraySegment<byte>>? buffers, ref int bufferIndex, ref int offset, ref int count, SocketFlags flags, ReadOnlySpan<byte> socketAddress, ref int bytesSent, out SocketError errorCode) 1120public static unsafe SocketError Bind(SafeSocketHandle handle, ProtocolType socketProtocolType, ReadOnlySpan<byte> buffer) 1190TryCompleteSendTo(handle, bufferList, ref bufferIndex, ref offset, socketFlags, ReadOnlySpan<byte>.Empty, ref bytesTransferred, out errorCode); 1203TryCompleteSendTo(handle, buffer, ref offset, ref count, socketFlags, ReadOnlySpan<byte>.Empty, ref bytesTransferred, out errorCode); 1207public static SocketError Send(SafeSocketHandle handle, ReadOnlySpan<byte> buffer, SocketFlags socketFlags, out int bytesTransferred) 1216TryCompleteSendTo(handle, buffer, socketFlags, ReadOnlySpan<byte>.Empty, ref bytesTransferred, out errorCode); 1249public static SocketError SendTo(SafeSocketHandle handle, ReadOnlySpan<byte> buffer, SocketFlags socketFlags, Memory<byte> socketAddress, out int bytesTransferred) 1511public static unsafe SocketError SetRawSockOpt(SafeSocketHandle handle, int optionLevel, int optionName, ReadOnlySpan<byte> optionValue)
System\Net\Sockets\UDPClient.cs (6)
881/// An <see cref="ReadOnlySpan{T}"/> of Type <see cref="byte"/> that specifies the UDP datagram that you intend to send. 890public int Send(ReadOnlySpan<byte> datagram, IPEndPoint? endPoint) 919/// An <see cref="ReadOnlySpan{T}"/> of Type <see cref="byte"/> that specifies the UDP datagram that you intend to send. 931public int Send(ReadOnlySpan<byte> datagram, string? hostname, int port) => Send(datagram, GetEndpoint(hostname, port)); 954/// An <see cref="ReadOnlySpan{T}"/> of Type <see cref="byte"/> that specifies the UDP datagram that you intend to send. 960public int Send(ReadOnlySpan<byte> datagram)
System\Net\Sockets\UnixDomainSocketEndPoint.cs (1)
67internal UnixDomainSocketEndPoint(ReadOnlySpan<byte> socketAddress)
System.Net.WebClient (10)
src\libraries\Common\src\System\HexConverter.cs (6)
164public static void EncodeToUtf16(ReadOnlySpan<byte> bytes, Span<char> chars, Casing casing = Casing.Upper) 181public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 197EncodeToUtf16(*(ReadOnlySpan<byte>*)args.RosPtr, chars, args.casing)); 229public static bool TryDecodeFromUtf16(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 335private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 433public static ReadOnlySpan<byte> CharToHexLookup =>
src\libraries\Common\src\System\IO\ChunkedMemoryStream.cs (1)
41public override void Write(ReadOnlySpan<byte> buffer)
src\libraries\Common\src\System\IO\DelegatingStream.cs (1)
159public override void Write(ReadOnlySpan<byte> buffer)
System\Net\WebClient.cs (2)
1140ReadOnlySpan<byte> preamble = encoding.Preamble; 1156ReadOnlySpan<byte> preamble = enc.Preamble;
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)
646private int WriteFrameToSendBuffer(MessageOpcode opcode, bool endOfMessage, bool disableCompression, ReadOnlySpan<byte> payloadBuffer) 697private static int WriteHeader(MessageOpcode opcode, byte[] sendBuffer, ReadOnlySpan<byte> payload, bool endOfMessage, bool useMask, bool compressed) 1642private static int CombineMaskBytes(ReadOnlySpan<byte> buffer, int maskOffset) => 1758private static bool TryValidateUtf8(ReadOnlySpan<byte> span, bool endOfMessage, Utf8MessageState state)
System.Net.WebSockets.Client (4)
System\Net\WebSockets\WebSocketHandle.Managed.cs (4)
310private static WebSocketDeflateOptions ParseDeflateOptions(ReadOnlySpan<char> extension, WebSocketDeflateOptions original) 317ReadOnlySpan<char> value = (end >= 0 ? extension[..end] : extension).Trim(); 338static int ParseWindowBits(ReadOnlySpan<char> value) 488ReadOnlySpan<byte> wsServerGuidBytes = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"u8;
System.Numerics.Tensors (512)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IAggregationOperator.cs (3)
31ReadOnlySpan<T> x) 1144ReadOnlySpan<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.IStatefulUnaryOperator.cs (1)
27ReadOnlySpan<T> x, TStatefulUnaryOperator op, Span<T> destination)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.ITernaryOperator.cs (7)
32ReadOnlySpan<T> x, ReadOnlySpan<T> y, ReadOnlySpan<T> z, Span<T> destination) 1509ReadOnlySpan<T> x, ReadOnlySpan<T> y, T z, Span<T> destination) 2988ReadOnlySpan<T> x, T y, ReadOnlySpan<T> z, Span<T> destination)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IUnaryInputBinaryOutput.cs (1)
26ReadOnlySpan<T> x, 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.cs (2)
105ReadOnlySpan<nint> Lengths { get; } 111ReadOnlySpan<nint> Strides { get; }
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan.cs (12)
88strides = strides.IsEmpty ? (ReadOnlySpan<nint>)TensorSpanHelpers.CalculateStrides(lengths, linearLength) : strides; 109/// Creates a new <see cref="ReadOnlyTensorSpan{T}"/> over the provided <see cref="ReadOnlySpan{T}"/>. The new <see cref="ReadOnlyTensorSpan{T}"/> will 110/// have a rank of 1 and a length equal to the length of the provided <see cref="ReadOnlySpan{T}"/>. 113public ReadOnlyTensorSpan(ReadOnlySpan<T> span) : this(span, [span.Length], []) { } 121public ReadOnlyTensorSpan(ReadOnlySpan<T> span, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides) 128strides = strides.IsEmpty ? (ReadOnlySpan<nint>)TensorSpanHelpers.CalculateStrides(lengths, linearLength) : strides; 145ReadOnlySpan<int>.Empty, 182strides = strides.IsEmpty ? (ReadOnlySpan<nint>)TensorSpanHelpers.CalculateStrides(lengths, linearLength) : strides; 230strides = strides.IsEmpty ? (ReadOnlySpan<nint>)TensorSpanHelpers.CalculateStrides(lengths, linearLength) : strides; 295strides = strides.IsEmpty ? (ReadOnlySpan<nint>)TensorSpanHelpers.CalculateStrides(lengths, linearLength) : strides; 396public ReadOnlySpan<nint> Lengths => _shape.Lengths; 407public ReadOnlySpan<nint> Strides => _shape.Strides;
System\Numerics\Tensors\netcore\Tensor.cs (28)
50internal Tensor(T[]? values, ReadOnlySpan<nint> lengths, bool isPinned = false) : this(values, lengths, Array.Empty<nint>(), isPinned) { } 53internal Tensor(T[]? values, ReadOnlySpan<nint> lengths, ReadOnlySpan<nint> strides, bool isPinned = false) 92/// <param name="lengths">A <see cref="ReadOnlySpan{T}"/> indicating the lengths of each dimension.</param> 104/// <param name="lengths">A <see cref="ReadOnlySpan{T}"/> indicating the lengths of each dimension.</param> 105/// <param name="strides">A <see cref="ReadOnlySpan{T}"/> indicating the strides of each dimension.</param> 117/// <param name="lengths">A <see cref="ReadOnlySpan{T}"/> indicating the lengths of each dimension.</param> 129/// <param name="lengths">A <see cref="ReadOnlySpan{T}"/> indicating the lengths of each dimension.</param> 130/// <param name="strides">A <see cref="ReadOnlySpan{T}"/> indicating the strides of each dimension.</param> 172/// <value><see cref="ReadOnlySpan{T}"/> with the lengths of each dimension.</value> 173public ReadOnlySpan<nint> Lengths => _lengths; 178/// <value><see cref="ReadOnlySpan{T}"/> with the lengths of each dimension.</value> 179ReadOnlySpan<nint> IReadOnlyTensor<Tensor<T>, T>.Lengths => _lengths; 185/// <value><see cref="ReadOnlySpan{T}"/> with the strides of each dimension.</value> 186public ReadOnlySpan<nint> Strides => _strides; 191/// <value><see cref="ReadOnlySpan{T}"/> with the strides of each dimension.</value> 192ReadOnlySpan<nint> IReadOnlyTensor<Tensor<T>, T>.Strides => _strides; 224public Tensor<T> this[params ReadOnlySpan<NRange> ranges] 236if (ranges == ReadOnlySpan<NRange>.Empty) 260T ITensor<Tensor<T>, T>.this[params ReadOnlySpan<nint> indexes] 280T ITensor<Tensor<T>, T>.this[params ReadOnlySpan<NIndex> indexes] 300T IReadOnlyTensor<Tensor<T>, T>.this[params ReadOnlySpan<nint> indexes] => AsReadOnlyTensorSpan()[indexes]; 310T IReadOnlyTensor<Tensor<T>, T>.this[params ReadOnlySpan<NIndex> indexes] => AsReadOnlyTensorSpan()[indexes]; 320Tensor<T> IReadOnlyTensor<Tensor<T>, T>.this[params ReadOnlySpan<NRange> ranges] 459public Tensor<T> Slice(params ReadOnlySpan<NRange> start) 477public Tensor<T> Slice(params ReadOnlySpan<nint> start) 493public Tensor<T> Slice(params ReadOnlySpan<NIndex> startIndex) 660public string ToString(params ReadOnlySpan<nint> maximumLengths)
System\Numerics\Tensors\netcore\Tensor.Factory.cs (16)
23/// <param name="lengths">A <see cref="ReadOnlySpan{T}"/> indicating the lengths of each dimension.</param> 35/// <param name="lengths">A <see cref="ReadOnlySpan{T}"/> indicating the lengths of each dimension.</param> 36/// <param name="strides">A <see cref="ReadOnlySpan{T}"/> indicating the strides of each dimension.</param> 50/// <param name="lengths">A <see cref="ReadOnlySpan{T}"/> indicating the lengths of each dimension.</param> 61/// <param name="lengths">A <see cref="ReadOnlySpan{T}"/> indicating the lengths of each dimension.</param> 62/// <param name="strides">A <see cref="ReadOnlySpan{T}"/> indicating the strides of each dimension.</param> 74/// <param name="lengths">A <see cref="ReadOnlySpan{T}"/> indicating the lengths of each dimension.</param> 87/// <param name="lengths">A <see cref="ReadOnlySpan{T}"/> indicating the lengths of each dimension.</param> 88/// <param name="strides">A <see cref="ReadOnlySpan{T}"/> indicating the strides of each dimension.</param> 100/// <param name="lengths">A <see cref="ReadOnlySpan{T}"/> indicating the lengths of each dimension.</param> 111/// <param name="lengths">A <see cref="ReadOnlySpan{T}"/> indicating the lengths of each dimension.</param> 137/// <param name="lengths">A <see cref="ReadOnlySpan{T}"/> indicating the lengths of each dimension.</param> 148/// <param name="lengths">A <see cref="ReadOnlySpan{T}"/> indicating the lengths of each dimension.</param> 163/// <param name="lengths">A <see cref="ReadOnlySpan{T}"/> indicating the lengths of each dimension.</param> 171/// <param name="lengths">A <see cref="ReadOnlySpan{T}"/> indicating the lengths of each dimension.</param> 172/// <param name="strides">A <see cref="ReadOnlySpan{T}"/> indicating the strides of each dimension.</param>
System\Numerics\Tensors\netcore\TensorExtensions.cs (66)
78/// <param name="lengths"><see cref="ReadOnlySpan{T}"/> of the desired new shape.</param> 144/// <param name="shape"><see cref="ReadOnlySpan{T}"/> of the desired new shape.</param> 146internal static TensorSpan<T> LazyBroadcast<T>(in TensorSpan<T> input, ReadOnlySpan<nint> shape) 187/// <param name="shape"><see cref="ReadOnlySpan{T}"/> of the desired new shape.</param> 189internal static ReadOnlyTensorSpan<T> LazyBroadcast<T>(in ReadOnlyTensorSpan<T> input, ReadOnlySpan<nint> shape) 230/// <param name="lengths"><see cref="ReadOnlySpan{T}"/> of the desired new shape.</param> 232internal static Tensor<T> LazyBroadcast<T>(Tensor<T> input, ReadOnlySpan<nint> lengths) 431private static nint CalculateCopyLength(ReadOnlySpan<nint> lengths, int startingAxis) 2642/// <param name="dimensions"><see cref="ReadOnlySpan{T}"/> with the new axis ordering.</param> 2643public static Tensor<T> PermuteDimensions<T>(this Tensor<T> tensor, params ReadOnlySpan<int> dimensions) 2656ReadOnlySpan<int> permutation; 2729/// <param name="lengths"><see cref="ReadOnlySpan{T}"/> with the new dimensions.</param> 2730public static Tensor<T> Reshape<T>(this Tensor<T> tensor, params ReadOnlySpan<nint> lengths) 2797/// <param name="lengths"><see cref="ReadOnlySpan{T}"/> with the new dimensions.</param> 2868/// <param name="lengths"><see cref="ReadOnlySpan{T}"/> with the new dimensions.</param> 2938/// <param name="lengths"><see cref="ReadOnlySpan{T}"/> of the desired new shape.</param> 2939public static Tensor<T> Resize<T>(Tensor<T> tensor, ReadOnlySpan<nint> lengths) 2944ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref tensor.AsTensorSpan()._reference, (int)tensor._values.Length); 2962ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref tensor._values[0], tensor._values.Length); 2978ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref tensor._reference, (int)tensor._shape._memoryLength); 2994ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref tensor._reference, (int)tensor._shape._memoryLength); 3147public static Tensor<T> SetSlice<T>(this Tensor<T> tensor, in ReadOnlyTensorSpan<T> values, params ReadOnlySpan<NRange> ranges) 3163if (ranges == ReadOnlySpan<NRange>.Empty) 3437public static Tensor<T> Stack<T>(params ReadOnlySpan<Tensor<T>> tensors) 3447public static Tensor<T> StackAlongDimension<T>(int dimension, params ReadOnlySpan<Tensor<T>> tensors) 3474public static ref readonly TensorSpan<T> Stack<T>(scoped in ReadOnlySpan<Tensor<T>> tensors, in TensorSpan<T> destination) 3534public static string ToString<T>(this in TensorSpan<T> tensor, params ReadOnlySpan<nint> maximumLengths) => 3543public static string ToString<T>(this in ReadOnlyTensorSpan<T> tensor, params ReadOnlySpan<nint> maximumLengths) 3550internal static void ToString<T>(this in ReadOnlyTensorSpan<T> tensor, StringBuilder sb, params ReadOnlySpan<nint> maximumLengths) 3594public static string ToString<T>(this Tensor<T> tensor, params ReadOnlySpan<nint> maximumLengths) => ((ReadOnlyTensorSpan<T>)tensor).ToString(maximumLengths); 4701ReadOnlySpan<T> lspan; 4702ReadOnlySpan<T> rspan; 5204ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape._memoryLength); 5215ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape._memoryLength); 5226ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape._memoryLength); 5239ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape._memoryLength); 6005ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape._memoryLength); 6250ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape._memoryLength); 6281ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape._memoryLength); 6312ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape._memoryLength); 6362ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape._memoryLength); 6389ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape._memoryLength); 6416ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape._memoryLength); 6838public static nint[] GetSmallestBroadcastableLengths(ReadOnlySpan<nint> shape1, ReadOnlySpan<nint> shape2) 6857private delegate void PerformCalculationSpanInSpanOut<TIn, TOut>(ReadOnlySpan<TIn> input, Span<TOut> output); 6859private delegate void PerformCalculationSpanInTInSpanOut<T>(ReadOnlySpan<T> input, T value, Span<T> output); 6861private delegate void PerformCalculationTInSpanInSpanOut<T>(T value, ReadOnlySpan<T> input, Span<T> output); 6863private delegate void PerformCalculationTwoSpanInSpanOut<T>(ReadOnlySpan<T> input, ReadOnlySpan<T> inputTwo, Span<T> output); 6865private delegate T PerformCalculationTwoSpanInTOut<T>(ReadOnlySpan<T> input, ReadOnlySpan<T> inputTwo); 6867private delegate T PerformCalculationSpanInTOut<T>(ReadOnlySpan<T> input); 6873ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref input._reference, (int)input._shape.FlattenedLength); 6893ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref left._reference, (int)left._shape.FlattenedLength); 6894ReadOnlySpan<T> rspan = MemoryMarshal.CreateSpan(ref right._reference, (int)right._shape.FlattenedLength); 6909TensorSpan<T> broadcastedLeft = new TensorSpan<T>(new T[newLength], newLengths, ReadOnlySpan<nint>.Empty); 6910TensorSpan<T> broadcastedRight = new TensorSpan<T>(new T[newLength], newLengths, ReadOnlySpan<nint>.Empty); 6914ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref broadcastedLeft._reference, (int)broadcastedLeft.FlattenedLength); 6915ReadOnlySpan<T> rspan = MemoryMarshal.CreateSpan(ref broadcastedRight._reference, (int)broadcastedRight.FlattenedLength); 6930ReadOnlySpan<TIn> inputSpan; 6982ReadOnlySpan<T> inputSpan; 7034ReadOnlySpan<T> inputSpan; 7088ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref left._reference, left._shape._memoryLength <= left.FlattenedLength ? (int)left._shape._memoryLength : (int)left.FlattenedLength); 7089ReadOnlySpan<T> rspan = MemoryMarshal.CreateSpan(ref right._reference, right._shape._memoryLength <= right.FlattenedLength ? (int)right._shape._memoryLength : (int)right.FlattenedLength); 7106ReadOnlySpan<T> ispan;
System\Numerics\Tensors\netcore\TensorHelpers.cs (6)
34internal static bool IsBroadcastableTo(ReadOnlySpan<nint> lengths1, ReadOnlySpan<nint> lengths2) 71internal static nint[] GetIntermediateShape(ReadOnlySpan<nint> shape1, int shape2Length) 98internal static bool AreLengthsTheSame(ReadOnlySpan<nint> lengths1, ReadOnlySpan<nint> lengths2) 116internal static void PermuteIndices(Span<nint> indices, Span<nint> permutedIndices, ReadOnlySpan<int> permutation)
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) 44public 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) 49public static void AddMultiply<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, T multiplier, Span<T> destination) 70public static void AddMultiply<T>(ReadOnlySpan<T> x, T y, ReadOnlySpan<T> multiplier, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Asin.cs (1)
24public 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.BitwiseAnd.cs (3)
23public static void BitwiseAnd<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 38public 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) 38public 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.ConvertChecked.cs (1)
22public static void ConvertChecked<TFrom, TTo>(ReadOnlySpan<TFrom> source, Span<TTo> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertHelpers.cs (1)
15private static bool TryConvertUniversal<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.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) 38public 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 (4)
30public static T CosineSimilarity<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y) 36private static T CosineSimilarityCore<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y) where T : IRootFunctions<T>
System\Numerics\Tensors\netcore\TensorPrimitives.CosPi.cs (1)
28public static void CosPi<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)
27public static void Divide<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 46public static void Divide<T>(ReadOnlySpan<T> x, T y, Span<T> destination) 65public static void Divide<T>(T x, ReadOnlySpan<T> y, Span<T> destination)
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) 65public static void FusedMultiplyAdd<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, T addend, Span<T> destination) 92public static void FusedMultiplyAdd<T>(ReadOnlySpan<T> x, T y, ReadOnlySpan<T> addend, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Half.cs (2)
23public static void ConvertToHalf(ReadOnlySpan<float> source, Span<Half> destination) => 41public static void ConvertToSingle(ReadOnlySpan<Half> source, Span<float> destination) =>
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.IndexOfMax.cs (2)
27public static int IndexOfMax<T>(ReadOnlySpan<T> x) 134private static unsafe int IndexOfMinMaxCore<T, TIndexOfMinMax>(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.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) 50public static void Lerp<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, T amount, Span<T> destination) 71public 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) 52public static void Log<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 71public 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)
28public static T Max<T>(ReadOnlySpan<T> x) 53public static void Max<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 76public static void Max<T>(ReadOnlySpan<T> x, T y, Span<T> destination) 371/// This is the same as <see cref="Aggregate{T, TTransformOperator, TAggregationOperator}(ReadOnlySpan{T})"/> 374private static T MinMaxCore<T, TMinMaxOperator>(ReadOnlySpan<T> x)
System\Numerics\Tensors\netcore\TensorPrimitives.MaxMagnitude.cs (4)
26public static T MaxMagnitude<T>(ReadOnlySpan<T> x) 45public static void MaxMagnitude<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 62public 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) 53public static void MaxMagnitudeNumber<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 77public static void MaxMagnitudeNumber<T>(ReadOnlySpan<T> x, T y, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.MaxNumber.cs (4)
27public static T MaxNumber<T>(ReadOnlySpan<T> x) 52public static void MaxNumber<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 75public static void MaxNumber<T>(ReadOnlySpan<T> x, T y, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.Min.cs (4)
26public static T Min<T>(ReadOnlySpan<T> x) 51public static void Min<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 74public 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) 50public static void MinMagnitude<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 72public 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) 53public static void MinMagnitudeNumber<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 77public static void MinMagnitudeNumber<T>(ReadOnlySpan<T> x, T y, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.MinNumber.cs (4)
27public static T MinNumber<T>(ReadOnlySpan<T> x) 52public static void MinNumber<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 75public 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) 45public 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) 50public static void MultiplyAdd<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, T addend, Span<T> destination) 71public static void MultiplyAdd<T>(ReadOnlySpan<T> x, T y, ReadOnlySpan<T> addend, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.MultiplyAddEstimate.cs (21)
32/// Behaves the same as either <see cref="MultiplyAdd{T}(ReadOnlySpan{T}, ReadOnlySpan{T}, ReadOnlySpan{T}, Span{T})"/> or 33/// <see cref="FusedMultiplyAdd{T}(ReadOnlySpan{T}, ReadOnlySpan{T}, ReadOnlySpan{T}, Span{T})"/> depending on the current machine's capabilities. 36public static void MultiplyAddEstimate<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, ReadOnlySpan<T> addend, Span<T> destination) 58/// Behaves the same as either <see cref="MultiplyAdd{T}(ReadOnlySpan{T}, ReadOnlySpan{T}, T, Span{T})"/> or 59/// <see cref="FusedMultiplyAdd{T}(ReadOnlySpan{T}, ReadOnlySpan{T}, T, Span{T})"/> depending on the current machine's capabilities. 62public static void MultiplyAddEstimate<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, T addend, Span<T> destination) 83/// Behaves the same as either <see cref="MultiplyAdd{T}(ReadOnlySpan{T}, T, ReadOnlySpan{T}, Span{T})"/> or 84/// <see cref="FusedMultiplyAdd{T}(ReadOnlySpan{T}, T, ReadOnlySpan{T}, Span{T})"/> depending on the current machine's capabilities. 87public 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) 38public static void ReciprocalEstimate<T>(ReadOnlySpan<T> x, Span<T> destination) 53public static void ReciprocalSqrt<T>(ReadOnlySpan<T> x, Span<T> destination) 68public static void ReciprocalSqrtEstimate<T>(ReadOnlySpan<T> x, 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 (7)
24public static void Round<T>(ReadOnlySpan<T> x, Span<T> destination) 39public static void Round<T>(ReadOnlySpan<T> x, MidpointRounding mode, Span<T> destination) 80public static void Round<T>(ReadOnlySpan<T> x, int digits, Span<T> destination) where T : IFloatingPoint<T> => 97public static void Round<T>(ReadOnlySpan<T> x, int digits, MidpointRounding mode, Span<T> destination) 105ReadOnlySpan<T> roundPower10; 108ReadOnlySpan<float> roundPower10Single = [1e0f, 1e1f, 1e2f, 1e3f, 1e4f, 1e5f, 1e6f]; 114ReadOnlySpan<double> roundPower10Double = [1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13, 1e14, 1e15];
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 (3)
21public static void ShiftLeft<T>(ReadOnlySpan<T> x, int shiftAmount, Span<T> destination) 36public static void ShiftRightArithmetic<T>(ReadOnlySpan<T> x, int shiftAmount, Span<T> destination) 51public 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.Sin.cs (1)
28public static void Sin<T>(ReadOnlySpan<T> x, Span<T> destination)
System\Numerics\Tensors\netcore\TensorPrimitives.SinCos.cs (1)
25public 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.Subtract.cs (4)
26public static void Subtract<T>(ReadOnlySpan<T> x, ReadOnlySpan<T> y, Span<T> destination) 44public static void Subtract<T>(ReadOnlySpan<T> x, T y, Span<T> destination) 62public 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)
28public 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) 38public static void Xor<T>(ReadOnlySpan<T> x, T y, Span<T> destination)
System\Numerics\Tensors\netcore\TensorShape.cs (6)
29internal TensorShape(nint memoryLength, ReadOnlySpan<nint> lengths, ReadOnlySpan<nint> strides) 53public ReadOnlySpan<nint> Lengths => (_metadata is null) 54? ((ReadOnlySpan<nint>)_lengths).Slice(0, _rank) 58public ReadOnlySpan<nint> Strides => (_metadata is null) 59? ((ReadOnlySpan<nint>)_strides).Slice(0, _rank)
System\Numerics\Tensors\netcore\TensorSpan.cs (8)
90strides = strides.IsEmpty ? (ReadOnlySpan<nint>)TensorSpanHelpers.CalculateStrides(lengths, linearLength) : strides; 130strides = strides.IsEmpty ? (ReadOnlySpan<nint>)TensorSpanHelpers.CalculateStrides(lengths, linearLength) : strides; 148ReadOnlySpan<int>.Empty, 184strides = strides.IsEmpty ? (ReadOnlySpan<nint>)TensorSpanHelpers.CalculateStrides(lengths, linearLength) : strides; 222strides = strides.IsEmpty ? (ReadOnlySpan<nint>)TensorSpanHelpers.CalculateStrides(lengths, linearLength) : strides; 296strides = strides.IsEmpty ? (ReadOnlySpan<nint>)TensorSpanHelpers.CalculateStrides(lengths, linearLength) : strides; 402public ReadOnlySpan<nint> Lengths => _shape.Lengths; 413public ReadOnlySpan<nint> Strides => _shape.Strides;
System\Numerics\Tensors\netcore\TensorSpanHelpers.cs (18)
19public static nint CalculateTotalLength(ReadOnlySpan<nint> lengths) 41public static nint[] CalculateStrides(ReadOnlySpan<nint> lengths) 66public static nint[] CalculateStrides(ReadOnlySpan<nint> lengths, nint linearLength) 91public static nint ComputeLinearIndex(ReadOnlySpan<nint> indexes, ReadOnlySpan<nint> strides, ReadOnlySpan<nint> lengths) 106public static nint ComputeMaxLinearIndex(ReadOnlySpan<nint> strides, ReadOnlySpan<nint> lengths) 125public static nint ComputeStartOffsetSystemArray(Array array, ReadOnlySpan<int> indexes) 149public static nint ComputeStartOffsetSystemArray(Array array, ReadOnlySpan<NIndex> indexes) 175public static nint ComputeLinearIndex(ReadOnlySpan<NIndex> indexes, ReadOnlySpan<nint> strides, ReadOnlySpan<nint> lengths) 191public static void ValidateStrides(ReadOnlySpan<nint> strides, ReadOnlySpan<nint> lengths) 241public static void AdjustIndexes(int curIndex, nint addend, ref nint[] curIndexes, ReadOnlySpan<nint> shape) 261public static void AdjustIndexesDown(int curIndex, nint addend, Span<nint> curIndexes, ReadOnlySpan<nint> shape) 275public static ReadOnlySpan<nint> FillLengths(Span<nint> lengths, Array array)
System\Numerics\Tensors\netcore\TensorSpanHelpers.T.cs (1)
11public static unsafe void Memmove<T>(Span<T> destination, ReadOnlySpan<T> source, nint length, nint dstOffset = 0)
System\Numerics\Tensors\TensorPrimitives.Helpers.cs (13)
16private static void ValidateInputOutputSpanNonOverlapping<T>(ReadOnlySpan<T> input, Span<T> output) 50private static unsafe ReadOnlySpan<TTo> Rename<TFrom, TTo>(ReadOnlySpan<TFrom> span) 54return Unsafe.BitCast<ReadOnlySpan<TFrom>, ReadOnlySpan<TTo>>(span); 70private static ReadOnlySpan<byte> AlignmentByteMask_64x65 => 149private static ReadOnlySpan<ushort> AlignmentUInt16Mask_32x33 => 196private static ReadOnlySpan<uint> AlignmentUInt32Mask_16x17 => 227private static ReadOnlySpan<ulong> AlignmentUInt64Mask_8x9 => 249private static ReadOnlySpan<byte> RemainderByteMask_64x65 => 327private static ReadOnlySpan<ushort> RemainderUInt16Mask_32x33 => 373private static ReadOnlySpan<uint> RemainderUInt32Mask_16x17 => 403private static ReadOnlySpan<ulong> RemainderUInt64Mask_8x9 =>
System\Numerics\Tensors\TensorPrimitives.Single.cs (67)
29public static void Abs(ReadOnlySpan<float> x, Span<float> destination) => 48public static void Add(ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<float> destination) => 65public static void Add(ReadOnlySpan<float> x, float y, Span<float> destination) => 86public static void AddMultiply(ReadOnlySpan<float> x, ReadOnlySpan<float> y, ReadOnlySpan<float> multiplier, Span<float> destination) => 106public static void AddMultiply(ReadOnlySpan<float> x, ReadOnlySpan<float> y, float multiplier, Span<float> destination) => 126public static void AddMultiply(ReadOnlySpan<float> x, float y, ReadOnlySpan<float> multiplier, Span<float> destination) => 150public static void Cosh(ReadOnlySpan<float> x, Span<float> destination) => 172public static float CosineSimilarity(ReadOnlySpan<float> x, ReadOnlySpan<float> y) => 199public static float Distance(ReadOnlySpan<float> x, ReadOnlySpan<float> y) 225public static void Divide(ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<float> destination) => 242public static void Divide(ReadOnlySpan<float> x, float y, Span<float> destination) => 268public static float Dot(ReadOnlySpan<float> x, ReadOnlySpan<float> y) => 289public static void Exp(ReadOnlySpan<float> x, Span<float> destination) => 305public static int IndexOfMax(ReadOnlySpan<float> x) => 322public static int IndexOfMaxMagnitude(ReadOnlySpan<float> x) => 338public static int IndexOfMin(ReadOnlySpan<float> x) => 355public static int IndexOfMinMagnitude(ReadOnlySpan<float> x) => 378public static void Log(ReadOnlySpan<float> x, Span<float> destination) => 401public static void Log2(ReadOnlySpan<float> x, Span<float> destination) => 418public static float Max(ReadOnlySpan<float> x) => 442public static void Max(ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<float> destination) => 460public static float MaxMagnitude(ReadOnlySpan<float> x) => 478public static void MaxMagnitude(ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<float> destination) => 495public static float Min(ReadOnlySpan<float> x) => 519public static void Min(ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<float> destination) => 537public static float MinMagnitude(ReadOnlySpan<float> x) => 560public static void MinMagnitude(ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<float> destination) => 579public static void Multiply(ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<float> destination) => 597public static void Multiply(ReadOnlySpan<float> x, float y, Span<float> destination) => 618public static void MultiplyAdd(ReadOnlySpan<float> x, ReadOnlySpan<float> y, ReadOnlySpan<float> addend, Span<float> destination) => 639public static void MultiplyAdd(ReadOnlySpan<float> x, ReadOnlySpan<float> y, float addend, Span<float> destination) => 659public static void MultiplyAdd(ReadOnlySpan<float> x, float y, ReadOnlySpan<float> addend, Span<float> destination) => 675public static void Negate(ReadOnlySpan<float> x, Span<float> destination) => 695public static float Norm(ReadOnlySpan<float> x) => 711public static float Product(ReadOnlySpan<float> x) 742public static float ProductOfDifferences(ReadOnlySpan<float> x, ReadOnlySpan<float> y) 773public static float ProductOfSums(ReadOnlySpan<float> x, ReadOnlySpan<float> y) 798public static void Sigmoid(ReadOnlySpan<float> x, Span<float> destination) 829public static void Sinh(ReadOnlySpan<float> x, Span<float> destination) => 848public static void SoftMax(ReadOnlySpan<float> x, Span<float> destination) 883public static void Subtract(ReadOnlySpan<float> x, ReadOnlySpan<float> y, Span<float> destination) => 900public static void Subtract(ReadOnlySpan<float> x, float y, Span<float> destination) => 915public static float Sum(ReadOnlySpan<float> x) => 936public static float SumOfMagnitudes(ReadOnlySpan<float> x) => 957public static float SumOfSquares(ReadOnlySpan<float> x) => 982public static void Tanh(ReadOnlySpan<float> x, Span<float> destination) =>
System.Private.CoreLib (2915)
src\libraries\Common\src\Interop\Interop.ICU.cs (2)
15internal static void InitICUFunctions(IntPtr icuuc, IntPtr icuin, ReadOnlySpan<char> version, ReadOnlySpan<char> suffix)
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\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\libraries\Common\src\Interop\Unix\System.Native\Interop.MkDir.cs (1)
15internal static int MkDir(ReadOnlySpan<char> path, int mode)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.ReadDir.cs (3)
34internal ReadOnlySpan<char> GetName(Span<char> buffer) 42ReadOnlySpan<byte> nameBytes = (NameLength == -1) 50ReadOnlySpan<char> value = buffer.Slice(0, charCount);
src\libraries\Common\src\Interop\Unix\System.Native\Interop.ReadLink.cs (1)
31internal static string? ReadLink(ReadOnlySpan<char> path)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.Rename.cs (2)
26internal static int Rename(ReadOnlySpan<char> oldPath, ReadOnlySpan<char> newPath)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.Stat.Span.cs (2)
15internal static int Stat(ReadOnlySpan<char> path, out FileStatus output) 26internal static int LStat(ReadOnlySpan<char> path, out FileStatus output)
src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
77private static string GetAndTrimString(ReadOnlySpan<char> buffer)
src\libraries\Common\src\System\Collections\Generic\BitHelper.cs (1)
43ReadOnlySpan<int> span = _span;
src\libraries\Common\src\System\HexConverter.cs (8)
113private static void EncodeToUtf16_Vector128(ReadOnlySpan<byte> bytes, Span<char> chars, Casing casing) 164public static void EncodeToUtf16(ReadOnlySpan<byte> bytes, Span<char> chars, Casing casing = Casing.Upper) 181public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 197EncodeToUtf16(*(ReadOnlySpan<byte>*)args.RosPtr, chars, args.casing)); 229public static bool TryDecodeFromUtf16(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 244public static bool TryDecodeFromUtf16_Vector128(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 335private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 433public static ReadOnlySpan<byte> CharToHexLookup =>
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) 122internal static bool RemoveRelativeSegments(ReadOnlySpan<char> path, int rootLength, ref ValueStringBuilder sb) 233internal static ReadOnlySpan<char> TrimEndingDirectorySeparator(ReadOnlySpan<char> path) => 241internal static bool EndsInDirectorySeparator(ReadOnlySpan<char> path) =>
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\libraries\Common\src\System\Memory\FixedBufferExtensions.cs (3)
13internal static unsafe string GetStringFromFixedBuffer(this ReadOnlySpan<char> span) 24internal static int GetFixedBufferStringLength(this ReadOnlySpan<char> span) 34internal static bool FixedBufferEqualsString(this ReadOnlySpan<char> span, string value)
src\libraries\Common\src\System\Number.Formatting.Common.cs (5)
55internal static char ParseFormatSpecifier(ReadOnlySpan<char> format, out int digits) 291internal static unsafe void NumberToStringFormat<TChar>(ref ValueListBuilder<TChar> vlb, ref NumberBuffer number, ReadOnlySpan<char> format, NumberFormatInfo info) where TChar : unmanaged, IUtfChar<TChar> 748ReadOnlySpan<TChar> sDecimal, ReadOnlySpan<TChar> sGroup) where TChar : unmanaged, IUtfChar<TChar> 1125private static unsafe int FindSection(ReadOnlySpan<char> format, int section)
src\libraries\Common\src\System\Number.Parsing.Common.cs (9)
35ReadOnlySpan<TChar> decSep; // decimal separator from NumberFormatInfo. 36ReadOnlySpan<TChar> groupSep; // group separator from NumberFormatInfo. 37ReadOnlySpan<TChar> currSymbol = ReadOnlySpan<TChar>.Empty; // currency symbol from NumberFormatInfo. 80currSymbol = ReadOnlySpan<TChar>.Empty; 249currSymbol = ReadOnlySpan<TChar>.Empty; 280internal static unsafe bool TryStringToNumber<TChar>(ReadOnlySpan<TChar> value, NumberStyles styles, ref NumberBuffer number, NumberFormatInfo info) 302private static bool TrailingZeros<TChar>(ReadOnlySpan<TChar> value, int index) 336private static unsafe TChar* MatchChars<TChar>(TChar* p, TChar* pEnd, ReadOnlySpan<TChar> value)
src\libraries\Common\src\System\Reflection\AssemblyNameFormatter.cs (1)
103ReadOnlySpan<char> span = s.AsSpan();
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\libraries\Common\src\System\Sha1ForNonSecretPurposes.cs (1)
56public void Append(ReadOnlySpan<byte> input)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
104public ReadOnlySpan<char> AsSpan(bool terminate) 114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
src\libraries\Common\src\System\Text\ValueUtf8Converter.cs (1)
24public Span<byte> ConvertAndTerminateString(ReadOnlySpan<char> value)
src\libraries\System.Private.CoreLib\src\Internal\Runtime\InteropServices\ComponentActivator.cs (4)
196ReadOnlySpan<byte> assemblySpan = new ReadOnlySpan<byte>(assembly, (int)assemblyByteLength); 197ReadOnlySpan<byte> symbolsSpan = default; 214static void LoadAssemblyBytesLocal(ReadOnlySpan<byte> assemblyBytes, ReadOnlySpan<byte> symbolsBytes) => AssemblyLoadContext.Default.InternalLoad(assemblyBytes, symbolsBytes);
src\libraries\System.Private.CoreLib\src\System\Action.cs (1)
197public delegate void ReadOnlySpanAction<T, in TArg>(ReadOnlySpan<T> span, TArg arg)
src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (14)
399public static char ToChar(ReadOnlySpan<byte> value) 434public static short ToInt16(ReadOnlySpan<byte> value) 472public static int ToInt32(ReadOnlySpan<byte> value) 510public static long ToInt64(ReadOnlySpan<byte> value) 548public static Int128 ToInt128(ReadOnlySpan<byte> value) 575public static ushort ToUInt16(ReadOnlySpan<byte> value) 605public static uint ToUInt32(ReadOnlySpan<byte> value) 635public static ulong ToUInt64(ReadOnlySpan<byte> value) 675public static UInt128 ToUInt128(ReadOnlySpan<byte> value) 700public static unsafe Half ToHalf(ReadOnlySpan<byte> value) 728public static float ToSingle(ReadOnlySpan<byte> value) 756public static double ToDouble(ReadOnlySpan<byte> value) 804var src = new ReadOnlySpan<byte>(value, startIndex, length); 882public static bool ToBoolean(ReadOnlySpan<byte> value)
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\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.ReadBigEndian.cs (26)
21public static double ReadDoubleBigEndian(ReadOnlySpan<byte> source) 38public static Half ReadHalfBigEndian(ReadOnlySpan<byte> source) 55public static short ReadInt16BigEndian(ReadOnlySpan<byte> source) 72public static int ReadInt32BigEndian(ReadOnlySpan<byte> source) 89public static long ReadInt64BigEndian(ReadOnlySpan<byte> source) 106public static Int128 ReadInt128BigEndian(ReadOnlySpan<byte> source) 123public static nint ReadIntPtrBigEndian(ReadOnlySpan<byte> source) 140public static float ReadSingleBigEndian(ReadOnlySpan<byte> source) 158public static ushort ReadUInt16BigEndian(ReadOnlySpan<byte> source) 176public static uint ReadUInt32BigEndian(ReadOnlySpan<byte> source) 194public static ulong ReadUInt64BigEndian(ReadOnlySpan<byte> source) 212public static UInt128 ReadUInt128BigEndian(ReadOnlySpan<byte> source) 230public static nuint ReadUIntPtrBigEndian(ReadOnlySpan<byte> source) 247public static bool TryReadDoubleBigEndian(ReadOnlySpan<byte> source, out double value) 269public static bool TryReadHalfBigEndian(ReadOnlySpan<byte> source, out Half value) 291public static bool TryReadInt16BigEndian(ReadOnlySpan<byte> source, out short value) 313public static bool TryReadInt32BigEndian(ReadOnlySpan<byte> source, out int value) 335public static bool TryReadInt64BigEndian(ReadOnlySpan<byte> source, out long value) 357public static bool TryReadInt128BigEndian(ReadOnlySpan<byte> source, out Int128 value) 379public static bool TryReadIntPtrBigEndian(ReadOnlySpan<byte> source, out nint value) 400public static bool TryReadSingleBigEndian(ReadOnlySpan<byte> source, out float value) 423public static bool TryReadUInt16BigEndian(ReadOnlySpan<byte> source, out ushort value) 446public static bool TryReadUInt32BigEndian(ReadOnlySpan<byte> source, out uint value) 469public static bool TryReadUInt64BigEndian(ReadOnlySpan<byte> source, out ulong value) 492public static bool TryReadUInt128BigEndian(ReadOnlySpan<byte> source, out UInt128 value) 516public static bool TryReadUIntPtrBigEndian(ReadOnlySpan<byte> source, out nuint value)
src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.ReadLittleEndian.cs (26)
21public static double ReadDoubleLittleEndian(ReadOnlySpan<byte> source) 38public static Half ReadHalfLittleEndian(ReadOnlySpan<byte> source) 55public static short ReadInt16LittleEndian(ReadOnlySpan<byte> source) 72public static int ReadInt32LittleEndian(ReadOnlySpan<byte> source) 89public static long ReadInt64LittleEndian(ReadOnlySpan<byte> source) 106public static Int128 ReadInt128LittleEndian(ReadOnlySpan<byte> source) 123public static nint ReadIntPtrLittleEndian(ReadOnlySpan<byte> source) 140public static float ReadSingleLittleEndian(ReadOnlySpan<byte> source) 158public static ushort ReadUInt16LittleEndian(ReadOnlySpan<byte> source) 176public static uint ReadUInt32LittleEndian(ReadOnlySpan<byte> source) 194public static ulong ReadUInt64LittleEndian(ReadOnlySpan<byte> source) 212public static UInt128 ReadUInt128LittleEndian(ReadOnlySpan<byte> source) 230public static nuint ReadUIntPtrLittleEndian(ReadOnlySpan<byte> source) 247public static bool TryReadDoubleLittleEndian(ReadOnlySpan<byte> source, out double value) 269public static bool TryReadHalfLittleEndian(ReadOnlySpan<byte> source, out Half value) 291public static bool TryReadInt16LittleEndian(ReadOnlySpan<byte> source, out short value) 313public static bool TryReadInt32LittleEndian(ReadOnlySpan<byte> source, out int value) 335public static bool TryReadInt64LittleEndian(ReadOnlySpan<byte> source, out long value) 357public static bool TryReadInt128LittleEndian(ReadOnlySpan<byte> source, out Int128 value) 379public static bool TryReadIntPtrLittleEndian(ReadOnlySpan<byte> source, out nint value) 400public static bool TryReadSingleLittleEndian(ReadOnlySpan<byte> source, out float value) 423public static bool TryReadUInt16LittleEndian(ReadOnlySpan<byte> source, out ushort value) 446public static bool TryReadUInt32LittleEndian(ReadOnlySpan<byte> source, out uint value) 469public static bool TryReadUInt64LittleEndian(ReadOnlySpan<byte> source, out ulong value) 492public static bool TryReadUInt128LittleEndian(ReadOnlySpan<byte> source, out UInt128 value) 515public static bool TryReadUIntPtrLittleEndian(ReadOnlySpan<byte> source, out nuint value)
src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.ReverseEndianness.cs (20)
201public static void ReverseEndianness(ReadOnlySpan<ushort> source, Span<ushort> destination) => 204/// <inheritdoc cref="ReverseEndianness(ReadOnlySpan{ushort}, Span{ushort})" /> 205public static void ReverseEndianness(ReadOnlySpan<short> source, Span<short> destination) => 208/// <inheritdoc cref="ReverseEndianness(ReadOnlySpan{ushort}, Span{ushort})" /> 210public static void ReverseEndianness(ReadOnlySpan<uint> source, Span<uint> destination) => 213/// <inheritdoc cref="ReverseEndianness(ReadOnlySpan{ushort}, Span{ushort})" /> 214public static void ReverseEndianness(ReadOnlySpan<int> source, Span<int> destination) => 217/// <inheritdoc cref="ReverseEndianness(ReadOnlySpan{ushort}, Span{ushort})" /> 219public static void ReverseEndianness(ReadOnlySpan<ulong> source, Span<ulong> destination) => 222/// <inheritdoc cref="ReverseEndianness(ReadOnlySpan{ushort}, Span{ushort})" /> 223public static void ReverseEndianness(ReadOnlySpan<long> source, Span<long> destination) => 226/// <inheritdoc cref="ReverseEndianness(ReadOnlySpan{ushort}, Span{ushort})" /> 228public static void ReverseEndianness(ReadOnlySpan<nuint> source, Span<nuint> destination) => 235/// <inheritdoc cref="ReverseEndianness(ReadOnlySpan{ushort}, Span{ushort})" /> 236public static void ReverseEndianness(ReadOnlySpan<nint> source, Span<nint> destination) => 285private static void ReverseEndianness<T, TReverser>(ReadOnlySpan<T> source, Span<T> destination) 373/// <inheritdoc cref="ReverseEndianness(ReadOnlySpan{ushort}, Span{ushort})" /> 375public static void ReverseEndianness(ReadOnlySpan<UInt128> source, Span<UInt128> destination) => 378/// <inheritdoc cref="ReverseEndianness(ReadOnlySpan{ushort}, Span{ushort})" /> 379public static void ReverseEndianness(ReadOnlySpan<Int128> source, Span<Int128> destination)
src\libraries\System.Private.CoreLib\src\System\Buffers\SharedArrayPool.cs (1)
529ReadOnlySpan<char> value = envVar.AsSpan().Trim(' ');
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\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Decoder.cs (1)
32public static OperationStatus DecodeFromUtf8(ReadOnlySpan<byte> utf8, Span<byte> bytes, out int bytesConsumed, out int bytesWritten, bool isFinalBlock = true) =>
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Encoder.cs (1)
34public static OperationStatus EncodeToUtf8(ReadOnlySpan<byte> bytes, Span<byte> utf8, out int bytesConsumed, out int bytesWritten, bool isFinalBlock = true) =>
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64DecoderHelper.cs (15)
17internal static unsafe OperationStatus DecodeFrom<TBase64Decoder, T>(TBase64Decoder decoder, ReadOnlySpan<T> source, Span<byte> bytes, 266static OperationStatus InvalidDataFallback(TBase64Decoder decoder, ReadOnlySpan<T> source, Span<byte> bytes, ref int bytesConsumed, ref int bytesWritten, bool isFinalBlock) 449internal static OperationStatus DecodeWithWhiteSpaceBlockwise<TBase64Decoder>(TBase64Decoder decoder, ReadOnlySpan<byte> source, Span<byte> bytes, ref int bytesConsumed, ref int bytesWritten, bool isFinalBlock = true) 1186public ReadOnlySpan<sbyte> DecodingMap => 1206public ReadOnlySpan<uint> VbmiLookup0 => 1214public ReadOnlySpan<uint> VbmiLookup1 => 1222public ReadOnlySpan<sbyte> Avx2LutHigh => 1234public ReadOnlySpan<sbyte> Avx2LutLow => 1246public ReadOnlySpan<sbyte> Avx2LutShift => 1260public ReadOnlySpan<int> Vector128LutHigh => [0x02011010, 0x08040804, 0x10101010, 0x10101010]; 1262public ReadOnlySpan<int> Vector128LutLow => [0x11111115, 0x11111111, 0x1A131111, 0x1A1B1B1B]; 1264public ReadOnlySpan<uint> Vector128LutShift => [0x04131000, 0xb9b9bfbf, 0x00000000, 0x00000000]; 1266public ReadOnlySpan<uint> AdvSimdLutOne3 => [0xFFFFFFFF, 0xFFFFFFFF, 0x3EFFFFFF, 0x3FFFFFFF]; 1453public int IndexOfAnyExceptWhiteSpace(ReadOnlySpan<byte> span) 1467public OperationStatus DecodeWithWhiteSpaceBlockwiseWrapper<TBase64Decoder>(TBase64Decoder decoder, ReadOnlySpan<byte> utf8,
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64EncoderHelper.cs (3)
16internal static unsafe OperationStatus EncodeTo<TBase64Encoder, T>(TBase64Encoder encoder, ReadOnlySpan<byte> source, 675public ReadOnlySpan<byte> EncodingMap => "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"u8; 681public ReadOnlySpan<byte> AdvSimdLut4 => "wxyz0123456789+/"u8;
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64Helper.cs (14)
197ReadOnlySpan<byte> EncodingMap { get; } 200ReadOnlySpan<byte> AdvSimdLut4 { get; } 223ReadOnlySpan<sbyte> DecodingMap { get; } 224ReadOnlySpan<uint> VbmiLookup0 { get; } 225ReadOnlySpan<uint> VbmiLookup1 { get; } 226ReadOnlySpan<sbyte> Avx2LutHigh { get; } 227ReadOnlySpan<sbyte> Avx2LutLow { get; } 228ReadOnlySpan<sbyte> Avx2LutShift { get; } 230ReadOnlySpan<int> Vector128LutHigh { get; } 231ReadOnlySpan<int> Vector128LutLow { get; } 232ReadOnlySpan<uint> Vector128LutShift { get; } 233ReadOnlySpan<uint> AdvSimdLutOne3 { get; } 269int IndexOfAnyExceptWhiteSpace(ReadOnlySpan<T> span); 270OperationStatus DecodeWithWhiteSpaceBlockwiseWrapper<TTBase64Decoder>(TTBase64Decoder decoder, ReadOnlySpan<T> source,
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\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Url\Base64UrlDecoder.cs (33)
66public static OperationStatus DecodeFromUtf8(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesConsumed, out int bytesWritten, bool isFinalBlock = true) => 115public static int DecodeFromUtf8(ReadOnlySpan<byte> source, Span<byte> destination) 142public static bool TryDecodeFromUtf8(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 162public static byte[] DecodeFromUtf8(ReadOnlySpan<byte> source) 200public static OperationStatus DecodeFromChars(ReadOnlySpan<char> source, Span<byte> destination, 206ReadOnlySpan<ushort> source, Span<byte> bytes, ref int bytesConsumed, ref int bytesWritten, bool isFinalBlock = true) 332public static int DecodeFromChars(ReadOnlySpan<char> source, Span<byte> destination) 359public static bool TryDecodeFromChars(ReadOnlySpan<char> source, Span<byte> destination, out int bytesWritten) 378public static byte[] DecodeFromChars(ReadOnlySpan<char> source) 400public ReadOnlySpan<sbyte> DecodingMap => 420public ReadOnlySpan<uint> VbmiLookup0 => 428public ReadOnlySpan<uint> VbmiLookup1 => 436public ReadOnlySpan<sbyte> Avx2LutHigh => 448public ReadOnlySpan<sbyte> Avx2LutLow => 460public ReadOnlySpan<sbyte> Avx2LutShift => 474public ReadOnlySpan<int> Vector128LutHigh => [0x392d0000, 0x7a6f5a4f, 0x00000000, 0x00000000]; 476public ReadOnlySpan<int> Vector128LutLow => [0x302d0101, 0x70615041, 0x01010101, 0x01010101]; 478public ReadOnlySpan<uint> Vector128LutShift => [0x04110000, 0xb9b9bfbf, 0x00000000, 0x00000000]; 480public ReadOnlySpan<uint> AdvSimdLutOne3 => [0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFF3EFF]; 602public int IndexOfAnyExceptWhiteSpace(ReadOnlySpan<byte> span) => default(Base64DecoderByte).IndexOfAnyExceptWhiteSpace(span); 605public OperationStatus DecodeWithWhiteSpaceBlockwiseWrapper<TBase64Decoder>(TBase64Decoder decoder, ReadOnlySpan<byte> utf8, Span<byte> bytes, 612public ReadOnlySpan<sbyte> DecodingMap => default(Base64UrlDecoderByte).DecodingMap; 614public ReadOnlySpan<uint> VbmiLookup0 => default(Base64UrlDecoderByte).VbmiLookup0; 616public ReadOnlySpan<uint> VbmiLookup1 => default(Base64UrlDecoderByte).VbmiLookup1; 618public ReadOnlySpan<sbyte> Avx2LutHigh => default(Base64UrlDecoderByte).Avx2LutHigh; 620public ReadOnlySpan<sbyte> Avx2LutLow => default(Base64UrlDecoderByte).Avx2LutLow; 622public ReadOnlySpan<sbyte> Avx2LutShift => default(Base64UrlDecoderByte).Avx2LutShift; 626public ReadOnlySpan<int> Vector128LutHigh => default(Base64UrlDecoderByte).Vector128LutHigh; 628public ReadOnlySpan<int> Vector128LutLow => default(Base64UrlDecoderByte).Vector128LutLow; 630public ReadOnlySpan<uint> Vector128LutShift => default(Base64UrlDecoderByte).Vector128LutShift; 632public ReadOnlySpan<uint> AdvSimdLutOne3 => default(Base64UrlDecoderByte).AdvSimdLutOne3; 839public int IndexOfAnyExceptWhiteSpace(ReadOnlySpan<ushort> span) 853public OperationStatus DecodeWithWhiteSpaceBlockwiseWrapper<TBase64Decoder>(TBase64Decoder decoder, ReadOnlySpan<ushort> source, Span<byte> bytes,
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Url\Base64UrlEncoder.cs (15)
29public static OperationStatus EncodeToUtf8(ReadOnlySpan<byte> source, 67public static int EncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> destination) 86public static byte[] EncodeToUtf8(ReadOnlySpan<byte> source) 106public static OperationStatus EncodeToChars(ReadOnlySpan<byte> source, Span<char> destination, 118public static int EncodeToChars(ReadOnlySpan<byte> source, Span<char> destination) 137public static char[] EncodeToChars(ReadOnlySpan<byte> source) 152public static unsafe string EncodeToString(ReadOnlySpan<byte> source) 159ReadOnlySpan<byte> source = *(ReadOnlySpan<byte>*)spanPtr; 180public static bool TryEncodeToChars(ReadOnlySpan<byte> source, Span<char> destination, out int charsWritten) 195public static bool TryEncodeToUtf8(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 222public ReadOnlySpan<byte> EncodingMap => "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"u8; 228public ReadOnlySpan<byte> AdvSimdLut4 => "wxyz0123456789-_"u8; 318public ReadOnlySpan<byte> EncodingMap => default(Base64UrlEncoderByte).EncodingMap; 324public ReadOnlySpan<byte> AdvSimdLut4 => default(Base64UrlEncoderByte).AdvSimdLut4;
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Url\Base64UrlValidator.cs (12)
15/// If the method returns <see langword="true"/>, the same text passed to <see cref="Base64Url.DecodeFromChars(ReadOnlySpan{char})"/> and 16/// <see cref="Base64Url.TryDecodeFromChars(ReadOnlySpan{char}, Span{byte}, out int)"/> would successfully decode (in the case 17/// of <see cref="Base64Url.TryDecodeFromChars(ReadOnlySpan{char}, Span{byte}, out int)"/> assuming sufficient output space). 20public static bool IsValid(ReadOnlySpan<char> base64UrlText) => 28/// If the method returns <see langword="true"/>, the same text passed to <see cref="Base64Url.DecodeFromChars(ReadOnlySpan{char})"/> and 29/// <see cref="Base64Url.TryDecodeFromChars(ReadOnlySpan{char}, Span{byte}, out int)"/> would successfully decode (in the case 30/// of <see cref="Base64Url.TryDecodeFromChars(ReadOnlySpan{char}, Span{byte}, out int)"/> assuming sufficient output space). 33public static bool IsValid(ReadOnlySpan<char> base64UrlText, out int decodedLength) => 42public static bool IsValid(ReadOnlySpan<byte> utf8Base64UrlText) => 52public static bool IsValid(ReadOnlySpan<byte> utf8Base64UrlText, out int decodedLength) => 62public int IndexOfAnyExcept(ReadOnlySpan<char> span) => span.IndexOfAnyExcept(s_validBase64UrlChars); 88public int IndexOfAnyExcept(ReadOnlySpan<byte> span) => span.IndexOfAnyExcept(s_validBase64UrlChars);
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\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\libraries\System.Private.CoreLib\src\System\Buffers\Text\FormattingHelpers.CountDigits.cs (3)
18ReadOnlySpan<byte> log2ToPow10 = 31ReadOnlySpan<ulong> powersOf10 = 68ReadOnlySpan<long> table =
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Formatter\Utf8Formatter.TimeSpan.cs (1)
33ReadOnlySpan<byte> decimalSeparator = default;
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\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\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\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\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\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Date.Helpers.cs (1)
148ReadOnlySpan<int> days = DateTime.IsLeapYear(year) ? GregorianCalendar.DaysToMonth366 : GregorianCalendar.DaysToMonth365;
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\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\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\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Float.cs (4)
30public static unsafe bool TryParse(ReadOnlySpan<byte> source, out float value, out int bytesConsumed, char standardFormat = default) 63public static unsafe bool TryParse(ReadOnlySpan<byte> source, out double value, out int bytesConsumed, char standardFormat = default) 79private static bool TryParseNormalAsFloatingPoint(ReadOnlySpan<byte> source, ref Number.NumberBuffer number, out int bytesConsumed, char standardFormat) 113private static bool TryParseAsSpecialFloatingPoint<T>(ReadOnlySpan<byte> source, T positiveInfinity, T negativeInfinity, T nan, out T value, out int bytesConsumed) where T : struct
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.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\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Signed.cs (4)
35public static bool TryParse(ReadOnlySpan<byte> source, out sbyte value, out int bytesConsumed, char standardFormat = default) 87public static bool TryParse(ReadOnlySpan<byte> source, out short value, out int bytesConsumed, char standardFormat = default) 139public static bool TryParse(ReadOnlySpan<byte> source, out int value, out int bytesConsumed, char standardFormat = default) 191public static bool TryParse(ReadOnlySpan<byte> source, out long value, out int bytesConsumed, char standardFormat = default)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.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\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\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Integer.Unsigned.cs (4)
29public static bool TryParse(ReadOnlySpan<byte> source, out byte value, out int bytesConsumed, char standardFormat = default) 81public static bool TryParse(ReadOnlySpan<byte> source, out ushort value, out int bytesConsumed, char standardFormat = default) 133public static bool TryParse(ReadOnlySpan<byte> source, out uint value, out int bytesConsumed, char standardFormat = default) 185public static bool TryParse(ReadOnlySpan<byte> source, out ulong value, out int bytesConsumed, char standardFormat = default)
src\libraries\System.Private.CoreLib\src\System\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\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\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\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\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\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\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\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\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\libraries\System.Private.CoreLib\src\System\Byte.cs (22)
108public static byte Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 116public static bool TryParse(ReadOnlySpan<char> s, out byte result) => TryParse(s, NumberStyles.Integer, provider: null, out result); 122public static bool TryParse(ReadOnlySpan<byte> utf8Text, out byte result) => TryParse(utf8Text, NumberStyles.Integer, provider: null, out result); 136public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out byte result) 162public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 168public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 296/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 297static bool IBinaryInteger<byte>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out byte value) 329/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 330static bool IBinaryInteger<byte>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out byte value) 1130/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1131public static byte Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Integer, provider); 1133/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1134public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out byte result) => TryParse(s, NumberStyles.Integer, provider, out result); 1167/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1168public static byte Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 1174/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 1175public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out byte result) 1181/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 1182public static byte Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Integer, provider); 1184/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 1185public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out byte result) => TryParse(utf8Text, NumberStyles.Integer, provider, out result);
src\libraries\System.Private.CoreLib\src\System\Char.cs (13)
58private static ReadOnlySpan<byte> Latin1CharInfo => 177bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) 191bool IUtf8SpanFormattable.TryFormat(Span<byte> utf8Destination, out int bytesWritten, ReadOnlySpan<char> format, IFormatProvider? provider) => 202internal static char Parse(ReadOnlySpan<char> s) 221internal static bool TryParse(ReadOnlySpan<char> s, out char result) 1177/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 1178static bool IBinaryInteger<char>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out char value) 1227/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 1228static bool IBinaryInteger<char>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out char value) 1507static char INumberBase<char>.Parse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider) => Parse(s); 1921static bool INumberBase<char>.TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out char result) => TryParse(s, out result); 1948static char ISpanParsable<char>.Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s); 1950static bool ISpanParsable<char>.TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out char result) => TryParse(s, out result);
src\libraries\System.Private.CoreLib\src\System\CodeDom\Compiler\IndentedTextWriter.cs (2)
182public override void Write([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg) 371public override void WriteLine([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg)
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\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (1)
157ReadOnlySpan<KeyValuePair<TKey, TValue>> span;
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\EqualityComparer.cs (4)
272IAlternateEqualityComparer<ReadOnlySpan<char>, string>, 302public bool Equals(ReadOnlySpan<char> span, string target) 313public int GetHashCode(ReadOnlySpan<char> span) => string.GetHashCode(span); 315public string Create(ReadOnlySpan<char> span) => span.ToString();
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\NonRandomizedStringEqualityComparer.cs (14)
77private sealed class OrdinalComparer : NonRandomizedStringEqualityComparer, IAlternateEqualityComparer<ReadOnlySpan<char>, string?> 91int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.GetHashCode(ReadOnlySpan<char> span) => 94bool IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Equals(ReadOnlySpan<char> span, string? target) 105string IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Create(ReadOnlySpan<char> span) => 109private sealed class OrdinalIgnoreCaseComparer : NonRandomizedStringEqualityComparer, IAlternateEqualityComparer<ReadOnlySpan<char>, string?> 123int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.GetHashCode(ReadOnlySpan<char> span) => 126bool IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Equals(ReadOnlySpan<char> span, string? target) 137string IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Create(ReadOnlySpan<char> span) =>
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\RandomizedStringEqualityComparer.cs (14)
50private sealed class OrdinalComparer : RandomizedStringEqualityComparer, IAlternateEqualityComparer<ReadOnlySpan<char>, string?> 57string IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Create(ReadOnlySpan<char> span) => 62bool IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Equals(ReadOnlySpan<char> alternate, string? other) 88int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.GetHashCode(ReadOnlySpan<char> alternate) => 95private sealed class OrdinalIgnoreCaseComparer : RandomizedStringEqualityComparer, IAlternateEqualityComparer<ReadOnlySpan<char>, string?> 102string IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Create(ReadOnlySpan<char> span) => 107bool IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Equals(ReadOnlySpan<char> alternate, string? other) 133int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.GetHashCode(ReadOnlySpan<char> alternate) =>
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.cs (1)
144public ReadOnlySpan<T> AsSpan()
src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
31internal static ReadOnlySpan<int> Primes =>
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\libraries\System.Private.CoreLib\src\System\Convert.Base64.cs (2)
31private static bool TryDecodeFromUtf16(ReadOnlySpan<char> utf16, Span<byte> bytes, out int consumed, out int written) 193private static ReadOnlySpan<sbyte> DecodingMap =>
src\libraries\System.Private.CoreLib\src\System\Convert.cs (11)
2343public static string ToBase64String(ReadOnlySpan<byte> bytes, Base64FormattingOptions options = Base64FormattingOptions.None) 2429public static unsafe bool TryToBase64Chars(ReadOnlySpan<byte> bytes, Span<char> chars, out int charsWritten, Base64FormattingOptions options = Base64FormattingOptions.None) 2473private static void ToBase64CharsLargeNoLineBreaks(ReadOnlySpan<byte> bytes, Span<char> chars, int charLengthRequired) 2669public static bool TryFromBase64Chars(ReadOnlySpan<char> chars, Span<byte> bytes, out int bytesWritten) 2763private static void CopyToTempBufferWithoutWhiteSpace(ReadOnlySpan<char> chars, Span<char> tempBuffer, out int consumed, out int charsWritten) 2943public static byte[] FromHexString(ReadOnlySpan<char> chars) 2990public static OperationStatus FromHexString(ReadOnlySpan<char> source, Span<byte> destination, out int charsConsumed, out int bytesWritten) 3079public static string ToHexString(ReadOnlySpan<byte> bytes) 3095public static bool TryToHexString(ReadOnlySpan<byte> source, Span<char> destination, out int charsWritten) 3156public static string ToHexStringLower(ReadOnlySpan<byte> bytes) 3172public static bool TryToHexStringLower(ReadOnlySpan<byte> source, Span<char> destination, out int charsWritten)
src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (25)
287public static DateOnly Parse(ReadOnlySpan<char> s, IFormatProvider? provider = default, DateTimeStyles style = DateTimeStyles.None) 310public static DateOnly ParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] ReadOnlySpan<char> format, IFormatProvider? provider = default, DateTimeStyles style = DateTimeStyles.None) 329public static DateOnly ParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] string[] formats) => ParseExact(s, formats, null, DateTimeStyles.None); 340public static DateOnly ParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] string[] formats, IFormatProvider? provider, DateTimeStyles style = DateTimeStyles.None) 426public static bool TryParse(ReadOnlySpan<char> s, out DateOnly result) => TryParse(s, null, DateTimeStyles.None, out result); 436public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, DateTimeStyles style, out DateOnly result) => TryParseInternal(s, provider, style, out result) == ParseFailureKind.None; 438private static ParseFailureKind TryParseInternal(ReadOnlySpan<char> s, IFormatProvider? provider, DateTimeStyles style, out DateOnly result) 473public static bool TryParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] ReadOnlySpan<char> format, out DateOnly result) => TryParseExact(s, format, null, DateTimeStyles.None, out result); 485public static bool TryParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] ReadOnlySpan<char> format, IFormatProvider? provider, DateTimeStyles style, out DateOnly result) => 487private static ParseFailureKind TryParseExactInternal(ReadOnlySpan<char> s, ReadOnlySpan<char> format, IFormatProvider? provider, DateTimeStyles style, out DateOnly result) 538public static bool TryParseExact(ReadOnlySpan<char> s, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] string?[]? formats, out DateOnly result) => TryParseExact(s, formats, null, DateTimeStyles.None, out result); 549public static bool TryParseExact(ReadOnlySpan<char> s, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] string?[]? formats, IFormatProvider? provider, DateTimeStyles style, out DateOnly result) => 552private static ParseFailureKind TryParseExactInternal(ReadOnlySpan<char> s, string?[]? formats, IFormatProvider? provider, DateTimeStyles style, out DateOnly result) 690private static void ThrowOnError(ParseFailureKind result, ReadOnlySpan<char> s) 784public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) => 788public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) => 791private bool TryFormatCore<TChar>(Span<TChar> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] ReadOnlySpan<char> format, IFormatProvider? provider = null) 842/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 843public static DateOnly Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, provider, DateTimeStyles.None); 845/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 846public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out DateOnly result) => TryParse(s, provider, DateTimeStyles.None, out result);
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (22)
108internal static ReadOnlySpan<uint> DaysToMonth365 => [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365]; 109internal static ReadOnlySpan<uint> DaysToMonth366 => [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366]; 111private static ReadOnlySpan<byte> DaysInMonth365 => [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; 112private static ReadOnlySpan<byte> DaysInMonth366 => [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; 971ReadOnlySpan<uint> daysTo = IsLeapYear(y) ? DaysToMonth366 : DaysToMonth365; 1090ReadOnlySpan<uint> days = RuntimeHelpers.IsKnownConstant(month) && month == 1 || IsLeapYear(year) ? DaysToMonth366 : DaysToMonth365; 1602public static DateTime Parse(ReadOnlySpan<char> s, IFormatProvider? provider = null, DateTimeStyles styles = DateTimeStyles.None) 1631public static DateTime ParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.DateTimeFormat)] ReadOnlySpan<char> format, IFormatProvider? provider, DateTimeStyles style = DateTimeStyles.None) 1644public static DateTime ParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.DateTimeFormat)] string[] formats, IFormatProvider? provider, DateTimeStyles style = DateTimeStyles.None) 1773public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.DateTimeFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) => 1777public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.DateTimeFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) => 1793public static bool TryParse(ReadOnlySpan<char> s, out DateTime result) 1811public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, DateTimeStyles styles, out DateTime result) 1830public static bool TryParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.DateTimeFormat)] ReadOnlySpan<char> format, IFormatProvider? provider, DateTimeStyles style, out DateTime result) 1849public static bool TryParseExact(ReadOnlySpan<char> s, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.DateTimeFormat)] string?[]? formats, IFormatProvider? provider, DateTimeStyles style, out DateTime result) 1994ReadOnlySpan<uint> days = IsLeapYear(year) ? DaysToMonth366 : DaysToMonth365; 2038/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 2039public static DateTime Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, provider, DateTimeStyles.None); 2041/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 2042public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out DateTime result) => TryParse(s, provider, DateTimeStyles.None, out result);
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (15)
680public static DateTimeOffset Parse(ReadOnlySpan<char> input, IFormatProvider? formatProvider = null, DateTimeStyles styles = DateTimeStyles.None) 712public static DateTimeOffset ParseExact(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.DateTimeFormat)] ReadOnlySpan<char> format, IFormatProvider? formatProvider, DateTimeStyles styles = DateTimeStyles.None) 732public static DateTimeOffset ParseExact(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.DateTimeFormat)] string[] formats, IFormatProvider? formatProvider, DateTimeStyles styles = DateTimeStyles.None) 804public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.DateTimeFormat)] ReadOnlySpan<char> format = default, IFormatProvider? formatProvider = null) => 808public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.DateTimeFormat)] ReadOnlySpan<char> format = default, IFormatProvider? formatProvider = null) => 824public static bool TryParse(ReadOnlySpan<char> input, out DateTimeOffset result) 849public static bool TryParse(ReadOnlySpan<char> input, IFormatProvider? formatProvider, DateTimeStyles styles, out DateTimeOffset result) 878ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.DateTimeFormat)] ReadOnlySpan<char> format, IFormatProvider? formatProvider, DateTimeStyles styles, out DateTimeOffset result) 907ReadOnlySpan<char> input, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.DateTimeFormat)] string?[]? formats, IFormatProvider? formatProvider, DateTimeStyles styles, out DateTimeOffset result) 1040/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1041public static DateTimeOffset Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, provider, DateTimeStyles.None); 1043/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1044public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out DateTimeOffset result) => TryParse(s, provider, DateTimeStyles.None, out result);
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (21)
282this((ReadOnlySpan<int>)(bits ?? throw new ArgumentNullException(nameof(bits)))) 291public Decimal(ReadOnlySpan<int> bits) 502public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 508public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 535public static decimal Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Number, IFormatProvider? provider = null) 543public static bool TryParse(ReadOnlySpan<char> s, out decimal result) => TryParse(s, NumberStyles.Number, provider: null, out result); 549public static bool TryParse(ReadOnlySpan<byte> utf8Text, out decimal result) => TryParse(utf8Text, NumberStyles.Number, provider: null, out result); 563public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out decimal result) 638internal static decimal ToDecimal(ReadOnlySpan<byte> span) 1823/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1824public static decimal Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Number, provider); 1826/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1827public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out decimal result) => TryParse(s, NumberStyles.Number, provider, out result); 1833/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1834public static decimal Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Number, IFormatProvider? provider = null) 1840/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 1841public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out decimal result) 1847/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 1848public static decimal Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Number, provider); 1850/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 1851public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out decimal result) => TryParse(utf8Text, NumberStyles.Number, provider, out result);
src\libraries\System.Private.CoreLib\src\System\Decimal.DecCalc.cs (3)
106private static ReadOnlySpan<uint> UInt32Powers10 => 121private static ReadOnlySpan<ulong> UInt64Powers10 => 144private static ReadOnlySpan<double> DoublePowers10 =>
src\libraries\System.Private.CoreLib\src\System\DefaultBinder.cs (12)
55ReadOnlySpan<ParameterInfo> par = candidates[i]!.GetParametersAsSpan(); 107ReadOnlySpan<ParameterInfo> par = candidates[i]!.GetParametersAsSpan(); 309ReadOnlySpan<ParameterInfo> parms = candidates[0]!.GetParametersAsSpan(); 400ReadOnlySpan<ParameterInfo> parameters = bestMatch.GetParametersAsSpan(); 565ReadOnlySpan<ParameterInfo> par = candidates[i].GetParametersAsSpan(); 800ReadOnlySpan<ParameterInfo> par = match[i].GetParametersAsSpan(); 864private static int FindMostSpecific(ReadOnlySpan<ParameterInfo> p1, int[] paramOrder1, Type? paramArrayType1, 865ReadOnlySpan<ParameterInfo> p2, int[] paramOrder2, Type? paramArrayType2, 1099ReadOnlySpan<ParameterInfo> params1 = m1.GetParametersAsSpan(); 1100ReadOnlySpan<ParameterInfo> params2 = m2.GetParametersAsSpan(); 1184private static bool CreateParamOrder(int[] paramOrder, ReadOnlySpan<ParameterInfo> pars, string[] names) 1244private static ReadOnlySpan<Primitives> PrimitiveConversions =>
src\libraries\System.Private.CoreLib\src\System\Delegate.cs (2)
27Combine((ReadOnlySpan<Delegate?>)delegates); 38public static Delegate? Combine(params ReadOnlySpan<Delegate?> delegates)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Debug.cs (4)
347public void AppendFormatted(ReadOnlySpan<char> value) => _stringBuilderHandler.AppendFormatted(value); 353public void AppendFormatted(ReadOnlySpan<char> value, int alignment = 0, string? format = null) => _stringBuilderHandler.AppendFormatted(value, alignment, format); 442public void AppendFormatted(ReadOnlySpan<char> value) => _stringBuilderHandler.AppendFormatted(value); 448public void AppendFormatted(ReadOnlySpan<char> value, int alignment = 0, string? format = null) => _stringBuilderHandler.AppendFormatted(value, alignment, format);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\StackTrace.cs (1)
288ReadOnlySpan<ParameterInfo> pi = default;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeEventDispatcher.cs (1)
182ReadOnlySpan<byte> payload = new ReadOnlySpan<byte>((void*)instanceData.Payload, (int)instanceData.PayloadLength);
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\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (3)
1759ReadOnlySpan<byte> namespaceBytes = 5747ReadOnlySpan<char> hexValueFormatted = ulongHexScratch.Slice(0, charsWritten); 5794ReadOnlySpan<char> keywordFormatted = ulongHexScratch.Slice(0, charsWritten);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\NativeRuntimeEventSource.cs (1)
44internal unsafe void ProcessEvent(uint eventID, uint osThreadID, DateTime timeStamp, Guid activityId, Guid childActivityId, ReadOnlySpan<byte> payload)
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\libraries\System.Private.CoreLib\src\System\Double.cs (19)
375public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 381public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 409public static double Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Float | NumberStyles.AllowThousands, IFormatProvider? provider = null) 417public static bool TryParse(ReadOnlySpan<char> s, out double result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider: null, out result); 421/// <param name="result">When this method returns, contains a double-precision floating-point number equivalent of the numeric value or symbol contained in <paramref name="utf8Text" /> if the conversion succeeded or zero if the conversion failed. The conversion fails if the <paramref name="utf8Text" /> is <see cref="ReadOnlySpan{T}.Empty" /> or is not in a valid format. This parameter is passed uninitialized; any value originally supplied in result will be overwritten.</param> 423public static bool TryParse(ReadOnlySpan<byte> utf8Text, out double result) => TryParse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider: null, out result); 437public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out double result) 1785/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1786public static double Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider); 1788/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1789public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out double result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider, out result); 2261/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 2262public static double Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Float | NumberStyles.AllowThousands, IFormatProvider? provider = null) 2268/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 2269public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out double result) 2275/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 2276public static double Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider); 2278/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 2279public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out double result) => TryParse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider, out result);
src\libraries\System.Private.CoreLib\src\System\Enum.cs (23)
533ReadOnlySpan<TStorage> span = values; 560public static object Parse(Type enumType, ReadOnlySpan<char> value) => 601public static object Parse(Type enumType, ReadOnlySpan<char> value, bool ignoreCase) 624public static TEnum Parse<TEnum>(ReadOnlySpan<char> value) where TEnum : struct => 660public static TEnum Parse<TEnum>(ReadOnlySpan<char> value, bool ignoreCase) where TEnum : struct 680public static bool TryParse(Type enumType, ReadOnlySpan<char> value, [NotNullWhen(true)] out object? result) => 712public static bool TryParse(Type enumType, ReadOnlySpan<char> value, bool ignoreCase, [NotNullWhen(true)] out object? result) => 716private static unsafe bool TryParse(Type enumType, ReadOnlySpan<char> value, bool ignoreCase, bool throwOnFailure, [NotNullWhen(true)] out object? result) 774static bool TryParseRareTypes(RuntimeType rt, ReadOnlySpan<char> value, bool ignoreCase, bool throwOnFailure, [NotNullWhen(true)] out long result) 842public static bool TryParse<TEnum>(ReadOnlySpan<char> value, out TEnum result) where TEnum : struct => 876public static bool TryParse<TEnum>(ReadOnlySpan<char> value, bool ignoreCase, out TEnum result) where TEnum : struct => 881private static bool TryParse<TEnum>(ReadOnlySpan<char> value, bool ignoreCase, bool throwOnFailure, out TEnum result) where TEnum : struct 915RuntimeType enumType, ReadOnlySpan<char> value, bool ignoreCase, bool throwOnFailure, out TUnderlying result) 973RuntimeType enumType, ReadOnlySpan<char> value, bool ignoreCase, bool throwOnFailure, out TUnderlying result) 1043private static bool TryParseByName<TStorage>(RuntimeType enumType, ReadOnlySpan<char> value, bool ignoreCase, bool throwOnFailure, out TStorage result) 1046ReadOnlySpan<char> originalValue = value; 1058ReadOnlySpan<char> subvalue; 1687bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) 1747public static unsafe bool TryFormat<TEnum>(TEnum value, Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.EnumFormat)] ReadOnlySpan<char> format = default) where TEnum : struct 1803internal static unsafe bool TryFormatUnconstrained<TEnum>(TEnum value, Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.EnumFormat)] ReadOnlySpan<char> format = default) 1891private static bool TryFormatPrimitiveNonDefault<TUnderlying, TStorage>(RuntimeType enumType, TUnderlying value, Span<char> destination, out int charsWritten, ReadOnlySpan<char> format) 2107private static void WriteMultipleFoundFlagsNames(string[] names, ReadOnlySpan<int> foundItems, Span<char> destination) 2253ReadOnlySpan<byte> rawData = MemoryMarshal.AsBytes(new ReadOnlySpan<long>(ref value));
src\libraries\System.Private.CoreLib\src\System\Environment.Variables.Windows.cs (1)
97ReadOnlySpan<char> variable = MemoryMarshal.CreateReadOnlySpanFromNullTerminated(currentPtr);
src\libraries\System.Private.CoreLib\src\System\GCMemoryInfo.cs (4)
80internal ReadOnlySpan<GCGenerationInfo> GenerationInfoAsSpan => MemoryMarshal.CreateReadOnlySpan(ref _generationInfo0, 5); 85internal ReadOnlySpan<TimeSpan> PauseDurationsAsSpan => MemoryMarshal.CreateReadOnlySpan(ref _pauseDuration0, 2); 191public ReadOnlySpan<TimeSpan> PauseDurations => _data.PauseDurationsAsSpan; 201public ReadOnlySpan<GCGenerationInfo> GenerationInfo => _data.GenerationInfoAsSpan;
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Icu.cs (1)
444ReadOnlySpan<char> calendarStringSpan = MemoryMarshal.CreateReadOnlySpanFromNullTerminated(calendarStringPtr);
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendricalCalculationsHelper.cs (11)
23private static ReadOnlySpan<double> Coefficients1900to1987 => [-0.00002, 0.000297, 0.025184, -0.181133, 0.553040, -0.861938, 0.677066, -0.212591]; 24private static ReadOnlySpan<double> Coefficients1800to1899 => [-0.000009, 0.003844, 0.083563, 0.865736, 4.867575, 15.845535, 31.332267, 38.291999, 28.316289, 11.636204, 2.043794]; 25private static ReadOnlySpan<double> Coefficients1700to1799 => [8.118780842, -0.005092142, 0.003336121, -0.0000266484]; 26private static ReadOnlySpan<double> Coefficients1620to1699 => [196.58333, -4.0675, 0.0219167]; 27private static ReadOnlySpan<double> LambdaCoefficients => [280.46645, 36000.76983, 0.0003032]; 28private static ReadOnlySpan<double> AnomalyCoefficients => [357.52910, 35999.05030, -0.0001559, -0.00000048]; 29private static ReadOnlySpan<double> EccentricityCoefficients => [0.016708617, -0.000042037, -0.0000001236]; 30private static ReadOnlySpan<double> CoefficientsA => [124.90, -1934.134, 0.002063]; 31private static ReadOnlySpan<double> CoefficientsB => [201.11, 72001.5377, 0.00057]; 32private static ReadOnlySpan<double> Coefficients => [23.43929111111111, -0.013004166666666667, -1.638888888888889E-07, 5.03611111111111E-07]; 124private static double PolynomialSum(ReadOnlySpan<double> coefficients, double indeterminate)
src\libraries\System.Private.CoreLib\src\System\Globalization\CharUnicodeInfoData.cs (12)
23private static ReadOnlySpan<byte> CategoryCasingLevel1Index => // 2176 163private static ReadOnlySpan<byte> CategoryCasingLevel2Index => // 6912 599private static ReadOnlySpan<byte> CategoryCasingLevel3Index => // 12528 1387private static ReadOnlySpan<byte> CategoriesValues => // 241 1408private static ReadOnlySpan<byte> UppercaseValues => // 482 1444private static ReadOnlySpan<byte> LowercaseValues => // 482 1489private static ReadOnlySpan<byte> NumericGraphemeLevel1Index => // 2176 1629private static ReadOnlySpan<byte> NumericGraphemeLevel2Index => // 5248 1961private static ReadOnlySpan<byte> NumericGraphemeLevel3Index => // 6400 2366private static ReadOnlySpan<byte> DigitValues => // 177 2383private static ReadOnlySpan<byte> NumericValues => // 1416 2477private static ReadOnlySpan<byte> GraphemeSegmentationValues => // 177
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.cs (45)
139public static bool IsSortable(ReadOnlySpan<char> text) 289internal int CompareOptionIgnoreCase(ReadOnlySpan<char> string1, ReadOnlySpan<char> string2) => 319ReadOnlySpan<char> span1 = default; 320ReadOnlySpan<char> span2 = default; 414public int Compare(ReadOnlySpan<char> string1, ReadOnlySpan<char> string2, CompareOptions options = CompareOptions.None) 488private int CompareStringCore(ReadOnlySpan<char> string1, ReadOnlySpan<char> string2, CompareOptions options) => 528public unsafe bool IsPrefix(ReadOnlySpan<char> source, ReadOnlySpan<char> prefix, CompareOptions options = CompareOptions.None) 600public unsafe bool IsPrefix(ReadOnlySpan<char> source, ReadOnlySpan<char> prefix, CompareOptions options, out int matchLength) 630private unsafe bool StartsWithCore(ReadOnlySpan<char> source, ReadOnlySpan<char> prefix, CompareOptions options, int* matchLengthPtr) => 671public unsafe bool IsSuffix(ReadOnlySpan<char> source, ReadOnlySpan<char> suffix, CompareOptions options = CompareOptions.None) 743public unsafe bool IsSuffix(ReadOnlySpan<char> source, ReadOnlySpan<char> suffix, CompareOptions options, out int matchLength) 778private unsafe bool EndsWithCore(ReadOnlySpan<char> source, ReadOnlySpan<char> suffix, CompareOptions options, int* matchLengthPtr) => 873if (!source.TryGetSpan(startIndex, count, out ReadOnlySpan<char> sourceSpan)) 907if (!source.TryGetSpan(startIndex, count, out ReadOnlySpan<char> sourceSpan)) 943public unsafe int IndexOf(ReadOnlySpan<char> source, ReadOnlySpan<char> value, CompareOptions options = CompareOptions.None) 1013public unsafe int IndexOf(ReadOnlySpan<char> source, ReadOnlySpan<char> value, CompareOptions options, out int matchLength) 1034public int IndexOf(ReadOnlySpan<char> source, Rune value, CompareOptions options = CompareOptions.None) 1046private unsafe int IndexOf(ReadOnlySpan<char> source, ReadOnlySpan<char> value, int* matchLengthPtr, CompareOptions options, bool fromBeginning) 1111private unsafe int IndexOfCore(ReadOnlySpan<char> source, ReadOnlySpan<char> target, CompareOptions options, int* matchLengthPtr, bool fromBeginning) => 1231if (!source.TryGetSpan(startIndex, count, out ReadOnlySpan<char> sourceSpan)) 1291if (!source.TryGetSpan(startIndex, count, out ReadOnlySpan<char> sourceSpan)) 1317public unsafe int LastIndexOf(ReadOnlySpan<char> source, ReadOnlySpan<char> value, CompareOptions options = CompareOptions.None) 1385public unsafe int LastIndexOf(ReadOnlySpan<char> source, ReadOnlySpan<char> value, CompareOptions options, out int matchLength) 1406public unsafe int LastIndexOf(ReadOnlySpan<char> source, Rune value, CompareOptions options = CompareOptions.None) 1458public int GetSortKey(ReadOnlySpan<char> source, Span<byte> destination, CompareOptions options = CompareOptions.None) 1475private int GetSortKeyCore(ReadOnlySpan<char> source, Span<byte> destination, CompareOptions options) => 1491public int GetSortKeyLength(ReadOnlySpan<char> source, CompareOptions options = CompareOptions.None) 1508private int GetSortKeyLengthCore(ReadOnlySpan<char> source, CompareOptions options) => 1540public int GetHashCode(ReadOnlySpan<char> source, CompareOptions options) 1576private int GetHashCodeOfStringCore(ReadOnlySpan<char> source, CompareOptions options) =>
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Icu.cs (26)
50private unsafe int IcuCompareString(ReadOnlySpan<char> string1, ReadOnlySpan<char> string2, CompareOptions options) 66private unsafe int IcuIndexOfCore(ReadOnlySpan<char> source, ReadOnlySpan<char> target, CompareOptions options, int* matchLengthPtr, bool fromBeginning) 104private unsafe int IndexOfOrdinalIgnoreCaseHelper(ReadOnlySpan<char> source, ReadOnlySpan<char> target, CompareOptions options, int* matchLengthPtr, bool fromBeginning) 196ReadOnlySpan<char> remainingSource = fromBeginning 219private unsafe int IndexOfOrdinalHelper(ReadOnlySpan<char> source, ReadOnlySpan<char> target, CompareOptions options, int* matchLengthPtr, bool fromBeginning) 314private unsafe bool IcuStartsWith(ReadOnlySpan<char> source, ReadOnlySpan<char> prefix, CompareOptions options, int* matchLengthPtr) 343private unsafe bool StartsWithOrdinalIgnoreCaseHelper(ReadOnlySpan<char> source, ReadOnlySpan<char> prefix, CompareOptions options, int* matchLengthPtr) 425private unsafe bool StartsWithOrdinalHelper(ReadOnlySpan<char> source, ReadOnlySpan<char> prefix, CompareOptions options, int* matchLengthPtr) 498private unsafe bool IcuEndsWith(ReadOnlySpan<char> source, ReadOnlySpan<char> suffix, CompareOptions options, int* matchLengthPtr) 527private unsafe bool EndsWithOrdinalIgnoreCaseHelper(ReadOnlySpan<char> source, ReadOnlySpan<char> suffix, CompareOptions options, int* matchLengthPtr) 610private unsafe bool EndsWithOrdinalHelper(ReadOnlySpan<char> source, ReadOnlySpan<char> suffix, CompareOptions options, int* matchLengthPtr) 741private unsafe int IcuGetSortKey(ReadOnlySpan<char> source, Span<byte> destination, CompareOptions options) 790private unsafe int IcuGetSortKeyLength(ReadOnlySpan<char> source, CompareOptions options) 820private static bool IcuIsSortable(ReadOnlySpan<char> text) 845private unsafe int IcuGetHashCodeOfString(ReadOnlySpan<char> source, CompareOptions options) 993private static ReadOnlySpan<bool> HighCharTable => // 0x80
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.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\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Nls.cs (18)
46ReadOnlySpan<char> source, 47ReadOnlySpan<char> value, 77internal static int NlsIndexOfOrdinalCore(ReadOnlySpan<char> source, ReadOnlySpan<char> value, bool ignoreCase, bool fromBeginning) 106private unsafe int NlsGetHashCodeOfString(ReadOnlySpan<char> source, CompareOptions options) 208private unsafe int NlsCompareString(ReadOnlySpan<char> string1, ReadOnlySpan<char> string2, CompareOptions options) 260ReadOnlySpan<char> lpStringSource, 261ReadOnlySpan<char> lpStringValue, 309private unsafe int NlsIndexOfCore(ReadOnlySpan<char> source, ReadOnlySpan<char> target, CompareOptions options, int* matchLengthPtr, bool fromBeginning) 320private unsafe bool NlsStartsWith(ReadOnlySpan<char> source, ReadOnlySpan<char> prefix, CompareOptions options, int* matchLengthPtr) 341private unsafe bool NlsEndsWith(ReadOnlySpan<char> source, ReadOnlySpan<char> suffix, CompareOptions options, int* matchLengthPtr) 423private unsafe int NlsGetSortKey(ReadOnlySpan<char> source, Span<byte> destination, CompareOptions options) 523private unsafe int NlsGetSortKeyLength(ReadOnlySpan<char> source, CompareOptions options) 566private static unsafe bool NlsIsSortable(ReadOnlySpan<char> text)
src\libraries\System.Private.CoreLib\src\System\Globalization\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\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (6)
32private static string NormalizeCultureName(string name, ReadOnlySpan<char> extension, out int collationStart) 119ReadOnlySpan<char> alternateSortName = realNameBuffer.AsSpan(index + 1); 144_sRealName = NormalizeCultureName(_sWindowsName, indexOfExtensions > 0 ? _sRealName.AsSpan(indexOfExtensions) : ReadOnlySpan<char>.Empty, out int collationStart); 294ReadOnlySpan<char> span; 354private static string ConvertIcuTimeFormatString(ReadOnlySpan<char> icuFormatString) 373static bool HandleQuoteLiteral(ReadOnlySpan<char> icuFormatString, ref int i, Span<char> result, ref int resultPos)
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (10)
197internal static int ParseRepeatPattern(ReadOnlySpan<char> format, int pos, char patternChar) 344internal static int ParseNextChar(ReadOnlySpan<char> format, int pos) 366private static bool IsUseGenitiveForm(ReadOnlySpan<char> format, int index, int tokenLen, char patternToMatch) 766result.Append(Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(s)); 775internal static void FormatFraction<TChar>(ref ValueListBuilder<TChar> result, int fraction, ReadOnlySpan<char> fractionFormat) where TChar : unmanaged, IUtfChar<TChar> 1029internal static bool TryFormat<TChar>(DateTime dateTime, Span<TChar> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) where TChar : unmanaged, IUtfChar<TChar> => 1032internal static bool TryFormat<TChar>(DateTime dateTime, Span<TChar> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider, TimeSpan offset) where TChar : unmanaged, IUtfChar<TChar> 1176internal static bool IsValidCustomDateOnlyFormat(ReadOnlySpan<char> format, bool throwOnError) 1247internal static bool IsValidCustomTimeOnlyFormat(ReadOnlySpan<char> format, bool throwOnError)
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (27)
368internal ReadOnlySpan<TChar> AMDesignatorTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 372Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(AMDesignator) : 373Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(amDesignatorUtf8 ??= Encoding.UTF8.GetBytes(AMDesignator)); 617internal ReadOnlySpan<TChar> DateSeparatorTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 621Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(DateSeparator) : 622Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(dateSeparatorUtf8 ??= Encoding.UTF8.GetBytes(DateSeparator)); 820internal ReadOnlySpan<TChar> PMDesignatorTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 824Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(PMDesignator) : 825Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(pmDesignatorUtf8 ??= Encoding.UTF8.GetBytes(PMDesignator)); 1002internal ReadOnlySpan<TChar> TimeSeparatorTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 1006Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(TimeSeparator) : 1007Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(timeSeparatorUtf8 ??= Encoding.UTF8.GetBytes(TimeSeparator)); 1702internal ReadOnlySpan<TChar> DecimalSeparatorTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 1706Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(DecimalSeparator) : 1707Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(_decimalSeparatorUtf8 ??= Encoding.UTF8.GetBytes(DecimalSeparator)); 2032ReadOnlySpan<char> monthPostfix = dateWords[i].AsSpan(1); 2191private void AddMonthNames(TokenHashValue[] temp, ReadOnlySpan<char> monthPostfix = default)
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (41)
20internal static DateTime ParseExact(ReadOnlySpan<char> s, ReadOnlySpan<char> format, DateTimeFormatInfo dtfi, DateTimeStyles style) 34internal static DateTime ParseExact(ReadOnlySpan<char> s, ReadOnlySpan<char> format, DateTimeFormatInfo dtfi, DateTimeStyles style, out TimeSpan offset) 50internal static bool TryParseExact(ReadOnlySpan<char> s, ReadOnlySpan<char> format, DateTimeFormatInfo dtfi, DateTimeStyles style, out DateTime result) 65internal static bool TryParseExact(ReadOnlySpan<char> s, ReadOnlySpan<char> format, DateTimeFormatInfo dtfi, DateTimeStyles style, out DateTime result, out TimeSpan offset) 83internal static bool TryParseExact(ReadOnlySpan<char> s, ReadOnlySpan<char> format, DateTimeFormatInfo dtfi, DateTimeStyles style, scoped ref DateTimeResult result) 102internal static DateTime ParseExactMultiple(ReadOnlySpan<char> s, string[] formats, 117internal static DateTime ParseExactMultiple(ReadOnlySpan<char> s, string[] formats, 134internal static bool TryParseExactMultiple(ReadOnlySpan<char> s, string?[]? formats, 153internal static bool TryParseExactMultiple(ReadOnlySpan<char> s, string?[]? formats, 169internal static bool TryParseExactMultiple(ReadOnlySpan<char> s, string?[]? formats, 2423internal static DateTime Parse(ReadOnlySpan<char> s, DateTimeFormatInfo dtfi, DateTimeStyles styles) 2437internal static DateTime Parse(ReadOnlySpan<char> s, DateTimeFormatInfo dtfi, DateTimeStyles styles, out TimeSpan offset) 2453internal static bool TryParse(ReadOnlySpan<char> s, DateTimeFormatInfo dtfi, DateTimeStyles styles, out DateTime result) 2468internal static bool TryParse(ReadOnlySpan<char> s, DateTimeFormatInfo dtfi, DateTimeStyles styles, out DateTime result, out TimeSpan offset) 2489internal static bool TryParse(ReadOnlySpan<char> s, DateTimeFormatInfo dtfi, DateTimeStyles styles, scoped ref DateTimeResult result) 3309ReadOnlySpan<char> span = str.Value.Slice(str.Index); 3411ReadOnlySpan<char> span = str.Value.Slice(str.Index); 3512ReadOnlySpan<char> span = str.Value.Slice(str.Index); 3579ReadOnlySpan<char> span = str.Value.Slice(str.Index); 3631private static void SetIfStartsWith(ReadOnlySpan<char> span, [ConstantExpected] string match, int matchResult, scoped ref int result, ref int maxMatchStrLen) 4351ReadOnlySpan<char> quotedSpan = enquotedString.AsSpan(); 4475internal static bool TryParseQuoteString(ReadOnlySpan<char> format, int pos, ref ValueStringBuilder result, out int returnValue) 4545ReadOnlySpan<char> s, 4546ReadOnlySpan<char> formatParam, 4744private static bool TryParseFormatR(ReadOnlySpan<char> source, scoped ref DateTimeResult result) 4939private static bool TryParseFormatO(ReadOnlySpan<char> source, scoped ref DateTimeResult result) 5292private static string Hex(string str) => Hex((ReadOnlySpan<char>)str); 5293private static string Hex(ReadOnlySpan<char> str) 5340internal ReadOnlySpan<char> Value; 5358internal __DTString(ReadOnlySpan<char> str, DateTimeFormatInfo dtfi, bool checkDigitToken) : this(str, dtfi) 5363internal __DTString(ReadOnlySpan<char> str, DateTimeFormatInfo dtfi) 5936internal ReadOnlySpan<char> s; 6067internal ReadOnlySpan<char> failureSpanArgument; // initially the original date time string, but may be overwritten 6070internal void Init(ReadOnlySpan<char> originalDateTimeString) 6089SetBadFormatSpecifierFailure(ReadOnlySpan<char>.Empty); 6092internal void SetBadFormatSpecifierFailure(ReadOnlySpan<char> failedFormatSpecifier)
src\libraries\System.Private.CoreLib\src\System\Globalization\EastAsianLunisolarCalendar.cs (3)
14private static ReadOnlySpan<int> DaysToMonth365 => [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334]; 15private static ReadOnlySpan<int> DaysToMonth366 => [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335]; 364ReadOnlySpan<int> days = isLeapYear ? DaysToMonth366 : DaysToMonth365;
src\libraries\System.Private.CoreLib\src\System\Globalization\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\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\libraries\System.Private.CoreLib\src\System\Globalization\GregorianCalendar.cs (5)
25internal static ReadOnlySpan<int> DaysToMonth365 => [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365]; 27internal static ReadOnlySpan<int> DaysToMonth366 => [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366]; 99ReadOnlySpan<int> days = (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0)) ? DaysToMonth366 : DaysToMonth365; 160ReadOnlySpan<int> daysArray = (y % 4 == 0 && (y % 100 != 0 || y % 400 == 0)) ? DaysToMonth366 : DaysToMonth365; 281ReadOnlySpan<int> days = (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0)) ? DaysToMonth366 : DaysToMonth365;
src\libraries\System.Private.CoreLib\src\System\Globalization\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\libraries\System.Private.CoreLib\src\System\Globalization\HebrewCalendar.cs (2)
121private static ReadOnlySpan<byte> HebrewTable => 262private static ReadOnlySpan<byte> LunarMonthLen =>
src\libraries\System.Private.CoreLib\src\System\Globalization\HijriCalendar.cs (1)
51private static ReadOnlySpan<int> HijriMonthDays => [0, 30, 59, 89, 118, 148, 177, 207, 236, 266, 295, 325, 355];
src\libraries\System.Private.CoreLib\src\System\Globalization\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\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\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\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\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) 66internal static int GetNormalizedLength(this ReadOnlySpan<char> source, NormalizationForm normalizationForm = NormalizationForm.FormC)
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, NormalizationForm normalizationForm, string paramName = "strInput") 221private static bool HasInvalidUnicodeSequence(ReadOnlySpan<char> s)
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\libraries\System.Private.CoreLib\src\System\Globalization\NumberFormatInfo.cs (70)
268internal ReadOnlySpan<TChar> CurrencyDecimalSeparatorTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 272Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_currencyDecimalSeparator) : 273Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(_currencyDecimalSeparatorUtf8 ??= Encoding.UTF8.GetBytes(_currencyDecimalSeparator)); 360internal ReadOnlySpan<TChar> CurrencyGroupSeparatorTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 364Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_currencyGroupSeparator) : 365Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(_currencyGroupSeparatorUtf8 ??= Encoding.UTF8.GetBytes(_currencyGroupSeparator)); 382internal ReadOnlySpan<TChar> CurrencySymbolTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 386Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_currencySymbol) : 387Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(_currencySymbolUtf8 ??= Encoding.UTF8.GetBytes(_currencySymbol)); 428internal ReadOnlySpan<TChar> NaNSymbolTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 432Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_nanSymbol) : 433Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(_nanSymbolUtf8 ??= Encoding.UTF8.GetBytes(_nanSymbol)); 513internal ReadOnlySpan<TChar> NegativeInfinitySymbolTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 517Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_negativeInfinitySymbol) : 518Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(_negativeInfinitySymbolUtf8 ??= Encoding.UTF8.GetBytes(_negativeInfinitySymbol)); 536internal ReadOnlySpan<TChar> NegativeSignTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 540Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_negativeSign) : 541Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(_negativeSignUtf8 ??= Encoding.UTF8.GetBytes(_negativeSign)); 572internal ReadOnlySpan<TChar> NumberDecimalSeparatorTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 576Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_numberDecimalSeparator) : 577Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(_numberDecimalSeparatorUtf8 ??= Encoding.UTF8.GetBytes(_numberDecimalSeparator)); 593internal ReadOnlySpan<TChar> NumberGroupSeparatorTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 597Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_numberGroupSeparator) : 598Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(_numberGroupSeparatorUtf8 ??= Encoding.UTF8.GetBytes(_numberGroupSeparator)); 630internal ReadOnlySpan<TChar> PositiveInfinitySymbolTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 634Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_positiveInfinitySymbol) : 635Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(_positiveInfinitySymbolUtf8 ??= Encoding.UTF8.GetBytes(_positiveInfinitySymbol)); 653internal ReadOnlySpan<TChar> PositiveSignTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 657Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_positiveSign) : 658Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(_positiveSignUtf8 ??= Encoding.UTF8.GetBytes(_positiveSign)); 689internal ReadOnlySpan<TChar> PercentDecimalSeparatorTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 693Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_percentDecimalSeparator) : 694Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(_percentDecimalSeparatorUtf8 ??= Encoding.UTF8.GetBytes(_percentDecimalSeparator)); 710internal ReadOnlySpan<TChar> PercentGroupSeparatorTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 714Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_percentGroupSeparator) : 715Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(_percentGroupSeparatorUtf8 ??= Encoding.UTF8.GetBytes(_percentGroupSeparator)); 731internal ReadOnlySpan<TChar> PercentSymbolTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 735Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_percentSymbol) : 736Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(_percentSymbolUtf8 ??= Encoding.UTF8.GetBytes(_percentSymbol)); 753internal ReadOnlySpan<TChar> PerMilleSymbolTChar<TChar>() where TChar : unmanaged, IUtfChar<TChar> 757Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(_perMilleSymbol) : 758Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(_perMilleSymbolUtf8 ??= Encoding.UTF8.GetBytes(_perMilleSymbol));
src\libraries\System.Private.CoreLib\src\System\Globalization\Ordinal.cs (7)
309if (!source.TryGetSpan(startIndex, count, out ReadOnlySpan<char> sourceSpan)) 329internal static int IndexOfOrdinalIgnoreCase(ReadOnlySpan<char> source, ReadOnlySpan<char> value) 633if (!source.TryGetSpan(startIndex, count, out ReadOnlySpan<char> sourceSpan)) 657internal static int LastIndexOfOrdinalIgnoreCase(ReadOnlySpan<char> source, ReadOnlySpan<char> value) 686internal static int ToUpperOrdinal(ReadOnlySpan<char> source, Span<char> destination)
src\libraries\System.Private.CoreLib\src\System\Globalization\Ordinal.Utf8.cs (4)
61ReadOnlySpan<byte> spanA = MemoryMarshal.CreateReadOnlySpan(ref strA, lengthA); 62ReadOnlySpan<byte> spanB = MemoryMarshal.CreateReadOnlySpan(ref strB, lengthB); 371ReadOnlySpan<byte> spanA = MemoryMarshal.CreateReadOnlySpan(ref source, sourceLength); 372ReadOnlySpan<byte> spanB = MemoryMarshal.CreateReadOnlySpan(ref prefix, prefixLength);
src\libraries\System.Private.CoreLib\src\System\Globalization\OrdinalCasing.Icu.cs (7)
88private static ReadOnlySpan<byte> s_casingTableInit => // 32 148public static void ToUpperInvariantMode(this ReadOnlySpan<char> source, Span<char> destination) 156internal static void ToUpperOrdinal(ReadOnlySpan<char> source, Span<char> destination) 288internal static unsafe int IndexOf(ReadOnlySpan<char> source, ReadOnlySpan<char> value) 352internal static unsafe int LastIndexOf(ReadOnlySpan<char> source, ReadOnlySpan<char> value)
src\libraries\System.Private.CoreLib\src\System\Globalization\PersianCalendar.cs (1)
33private static ReadOnlySpan<int> DaysToMonth => [0, 31, 62, 93, 124, 155, 186, 216, 246, 276, 306, 336, 366];
src\libraries\System.Private.CoreLib\src\System\Globalization\StringInfo.cs (2)
178public static int GetNextTextElementLength(ReadOnlySpan<char> str) => TextSegmentationUtility.GetLengthOfFirstUtf16ExtendedGraphemeCluster(str); 216ReadOnlySpan<char> remaining = str;
src\libraries\System.Private.CoreLib\src\System\Globalization\TextInfo.cs (4)
211internal void ChangeCaseToLower(ReadOnlySpan<char> source, Span<char> destination) 218internal void ChangeCaseToUpper(ReadOnlySpan<char> source, Span<char> destination) 225private unsafe void ChangeCaseCommon<TConversion>(ReadOnlySpan<char> source, Span<char> destination) where TConversion : struct 651ReadOnlySpan<char> src = input.AsSpan(inputIndex, 2);
src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanFormat.cs (3)
51internal static bool TryFormat<TChar>(TimeSpan value, Span<TChar> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? formatProvider) where TChar : unmanaged, IUtfChar<TChar> 109internal static unsafe bool TryFormatStandard<TChar>(TimeSpan value, StandardFormat format, ReadOnlySpan<TChar> decimalSeparator, Span<TChar> destination, out int written) where TChar : unmanaged, IUtfChar<TChar> 499internal void Init(ReadOnlySpan<char> format, bool useInvariantFieldLengths)
src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanParse.cs (30)
91internal ReadOnlySpan<char> _sep; // Store the literal that we are parsing (if any) 99public TimeSpanToken(TTT type, int number, int leadingZeroes, ReadOnlySpan<char> separator) 167private readonly ReadOnlySpan<char> _value; 170internal TimeSpanTokenizer(ReadOnlySpan<char> input) : this(input, 0) { } 172internal TimeSpanTokenizer(ReadOnlySpan<char> input, int startPosition) 186ReadOnlySpan<char> value = _value; 403internal ReadOnlySpan<char> _literals0, _literals1, _literals2, _literals3, _literals4, _literals5; // MaxLiteralTokens=6 451private bool AddSep(ReadOnlySpan<char> sep, ref TimeSpanResult result) 497private readonly ReadOnlySpan<char> _originalTimeSpanString; 499internal TimeSpanResult(bool throwOnFailure, ReadOnlySpan<char> originalTimeSpanString) 580ReadOnlySpan<int> powersOfTen = 627internal static TimeSpan Parse(ReadOnlySpan<char> input, IFormatProvider? formatProvider) 635internal static bool TryParse(ReadOnlySpan<char> input, IFormatProvider? formatProvider, out TimeSpan result) 649internal static TimeSpan ParseExact(ReadOnlySpan<char> input, ReadOnlySpan<char> format, IFormatProvider? formatProvider, TimeSpanStyles styles) 657internal static bool TryParseExact(ReadOnlySpan<char> input, ReadOnlySpan<char> format, IFormatProvider? formatProvider, TimeSpanStyles styles, out TimeSpan result) 671internal static TimeSpan ParseExactMultiple(ReadOnlySpan<char> input, string?[]? formats, IFormatProvider? formatProvider, TimeSpanStyles styles) 679internal static bool TryParseExactMultiple(ReadOnlySpan<char> input, string?[]? formats, IFormatProvider? formatProvider, TimeSpanStyles styles, out TimeSpan result) 694private static bool TryParseTimeSpan(ReadOnlySpan<char> input, TimeSpanStandardStyles style, IFormatProvider? formatProvider, ref TimeSpanResult result) 1228private static bool TryParseExactTimeSpan(ReadOnlySpan<char> input, ReadOnlySpan<char> format, IFormatProvider? formatProvider, TimeSpanStyles styles, ref TimeSpanResult result) 1250private static bool TryParseByFormat(ReadOnlySpan<char> input, ReadOnlySpan<char> format, TimeSpanStyles styles, ref TimeSpanResult result) 1450ReadOnlySpan<char> span = enquotedString.AsSpan(); 1466private static bool TryParseTimeSpanConstant(ReadOnlySpan<char> input, ref TimeSpanResult result) => 1471private ReadOnlySpan<char> _str; 1477ReadOnlySpan<char> str = _str; 1496internal bool TryParse(ReadOnlySpan<char> input, ref TimeSpanResult result) 1662private static bool TryParseExactMultipleTimeSpan(ReadOnlySpan<char> input, string?[]? formats, IFormatProvider? formatProvider, TimeSpanStyles styles, ref TimeSpanResult result)
src\libraries\System.Private.CoreLib\src\System\Globalization\UmAlQuraCalendar.cs (1)
36ReadOnlySpan<short> rawData =
src\libraries\System.Private.CoreLib\src\System\Guid.cs (36)
63public Guid(ReadOnlySpan<byte> b) 80public Guid(ReadOnlySpan<byte> b, bool bigEndian) 334return Parse((ReadOnlySpan<char>)input); 337public static Guid Parse(ReadOnlySpan<char> input) 354return TryParse((ReadOnlySpan<char>)input, out result); 357public static bool TryParse(ReadOnlySpan<char> input, out Guid result) 377return ParseExact((ReadOnlySpan<char>)input, (ReadOnlySpan<char>)format); 380public static Guid ParseExact(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.GuidFormat)] ReadOnlySpan<char> format) 412return TryParseExact((ReadOnlySpan<char>)input, format, out result); 415public static bool TryParseExact(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.GuidFormat)] ReadOnlySpan<char> format, out Guid result) 448private static bool TryParseGuid(ReadOnlySpan<char> guidString, ref GuidResult result) 470private static bool TryParseExactB(ReadOnlySpan<char> guidString, ref GuidResult result) 483private static bool TryParseExactD(ReadOnlySpan<char> guidString, ref GuidResult result) 538static bool TryCompatParsing(ReadOnlySpan<char> guidString, ref GuidResult result) 569private static bool TryParseExactN(ReadOnlySpan<char> guidString, ref GuidResult result) 612private static bool TryParseExactP(ReadOnlySpan<char> guidString, ref GuidResult result) 625private static bool TryParseExactX(ReadOnlySpan<char> guidString, ref GuidResult result) 793ReadOnlySpan<byte> lookup = HexConverter.CharToHexLookup; 806private static bool TryParseHex(ReadOnlySpan<char> guidString, out ushort result, ref bool overflow) 813private static bool TryParseHex(ReadOnlySpan<char> guidString, out uint result) 819private static bool TryParseHex(ReadOnlySpan<char> guidString, out uint result, ref bool overflow) 859private static ReadOnlySpan<char> EatAllWhitespace(ReadOnlySpan<char> str) 892private static bool IsHexPrefix(ReadOnlySpan<char> str, int i) => 1155public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.GuidFormat)] ReadOnlySpan<char> format = default) => 1158bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.GuidFormat)] ReadOnlySpan<char> format, IFormatProvider? provider) => 1162public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.GuidFormat)] ReadOnlySpan<char> format = default) => 1165bool IUtf8SpanFormattable.TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.GuidFormat)] ReadOnlySpan<char> format, IFormatProvider? provider) => 1178private bool TryFormatCore<TChar>(Span<TChar> destination, out int charsWritten, ReadOnlySpan<char> format) where TChar : unmanaged, IUtfChar<TChar> 1745/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1746public static Guid Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s); 1748/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1749public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out Guid result) => TryParse(s, out result);
src\libraries\System.Private.CoreLib\src\System\Half.cs (22)
349/// Parses a <see cref="Half"/> from a <see cref="ReadOnlySpan{Char}"/> and <see cref="IFormatProvider"/>. 355public static Half Parse(ReadOnlySpan<char> s, NumberStyles style = DefaultParseStyle, IFormatProvider? provider = null) 370/// Tries to parse a <see cref="Half"/> from a <see cref="ReadOnlySpan{Char}"/> in the default parse style. 375public static bool TryParse(ReadOnlySpan<char> s, out Half result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider: null, out result); 379/// <param name="result">When this method returns, contains a half-precision floating-point number equivalent of the numeric value or symbol contained in <paramref name="utf8Text" /> if the conversion succeeded or zero if the conversion failed. The conversion fails if the <paramref name="utf8Text" /> is <see cref="ReadOnlySpan{T}.Empty" /> or is not in a valid format. This parameter is passed uninitialized; any value originally supplied in result will be overwritten.</param> 381public static bool TryParse(ReadOnlySpan<byte> utf8Text, out Half result) => TryParse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider: null, out result); 404/// Tries to parse a <see cref="Half"/> from a <see cref="ReadOnlySpan{Char}"/> with the given <see cref="NumberStyles"/> and <see cref="IFormatProvider"/>. 411public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out Half result) 543public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 549public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 2200/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 2201public static Half Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, DefaultParseStyle, provider); 2203/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 2204public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out Half result) => TryParse(s, DefaultParseStyle, provider, out result); 2303/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 2304public static Half Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Float | NumberStyles.AllowThousands, IFormatProvider? provider = null) 2310/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 2311public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out Half result) 2317/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 2318public static Half Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider); 2320/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 2321public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out Half result) => TryParse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider, out result);
src\libraries\System.Private.CoreLib\src\System\HashCode.cs (1)
318public void AddBytes(ReadOnlySpan<byte> value)
src\libraries\System.Private.CoreLib\src\System\Int128.cs (6)
118public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 124public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 141public static Int128 Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 149public static bool TryParse(ReadOnlySpan<char> s, out Int128 result) => TryParse(s, NumberStyles.Integer, provider: null, out result); 155public static bool TryParse(ReadOnlySpan<byte> utf8Text, out Int128 result) => TryParse(utf8Text, NumberStyles.Integer, provider: null, out result); 169public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out Int128 result)
src\libraries\System.Private.CoreLib\src\System\Int16.cs (22)
118public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 124public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 141public static short Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 149public static bool TryParse(ReadOnlySpan<char> s, out short result) => TryParse(s, NumberStyles.Integer, provider: null, out result); 155public static bool TryParse(ReadOnlySpan<byte> utf8Text, out short result) => TryParse(utf8Text, NumberStyles.Integer, provider: null, out result); 169public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out short result) 299/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 300static bool IBinaryInteger<short>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out short value) 374/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 375static bool IBinaryInteger<short>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out short value) 1334/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1335public static short Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Integer, provider); 1337/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1338public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out short result) => TryParse(s, NumberStyles.Integer, provider, out result); 1371/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1372public static short Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 1378/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 1379public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out short result) 1385/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 1386public static short Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Integer, provider); 1388/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 1389public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out short result) => TryParse(utf8Text, NumberStyles.Integer, provider, out result);
src\libraries\System.Private.CoreLib\src\System\Int32.cs (22)
134public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 140public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 157public static int Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 165public static bool TryParse(ReadOnlySpan<char> s, out int result) => TryParse(s, NumberStyles.Integer, provider: null, out result); 171public static bool TryParse(ReadOnlySpan<byte> utf8Text, out int result) => TryParse(utf8Text, NumberStyles.Integer, provider: null, out result); 185public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out int result) 319/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 320static bool IBinaryInteger<int>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out int value) 401/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 402static bool IBinaryInteger<int>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out int value) 1376/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1377public static int Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Integer, provider); 1379/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1380public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out int result) => TryParse(s, NumberStyles.Integer, provider, out result); 1413/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1414public static int Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 1420/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 1421public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out int result) 1427/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 1428public static int Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Integer, provider); 1430/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 1431public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out int result) => TryParse(utf8Text, NumberStyles.Integer, provider, out result);
src\libraries\System.Private.CoreLib\src\System\Int64.cs (22)
131public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 137public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 154public static long Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 162public static bool TryParse(ReadOnlySpan<char> s, out long result) => TryParse(s, NumberStyles.Integer, provider: null, out result); 168public static bool TryParse(ReadOnlySpan<byte> utf8Text, out long result) => TryParse(utf8Text, NumberStyles.Integer, provider: null, out result); 182public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out long result) 316/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 317static bool IBinaryInteger<long>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out long value) 398/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 399static bool IBinaryInteger<long>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out long value) 1379/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1380public static long Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Integer, provider); 1382/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1383public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out long result) => TryParse(s, NumberStyles.Integer, provider, out result); 1416/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1417public static long Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 1423/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 1424public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out long result) 1430/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 1431public static long Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Integer, provider); 1433/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 1434public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out long result) => TryParse(utf8Text, NumberStyles.Integer, provider, out result);
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (20)
211public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) => 215public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) => 222public static nint Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => (nint)nint_t.Parse(s, provider); 223public static nint Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) => (nint)nint_t.Parse(s, style, provider); 244public static bool TryParse(ReadOnlySpan<char> s, out nint result) 254public static bool TryParse(ReadOnlySpan<byte> utf8Text, out nint result) 265public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out nint result) 271public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out nint result) 321/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 322static bool IBinaryInteger<nint>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out nint value) 403/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 404static bool IBinaryInteger<nint>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out nint value) 1388/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1389public static nint Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) => (nint)nint_t.Parse(utf8Text, style, provider); 1391/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 1392public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out nint result) 1398/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 1399public static nint Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => (nint)nint_t.Parse(utf8Text, provider); 1401/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 1402public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out nint result)
src\libraries\System.Private.CoreLib\src\System\IO\BinaryReader.cs (2)
231ReadOnlySpan<byte> span = InternalRead(stackalloc byte[sizeof(decimal)]); 472private ReadOnlySpan<byte> InternalRead(Span<byte> buffer)
src\libraries\System.Private.CoreLib\src\System\IO\BinaryWriter.cs (3)
384public virtual void Write(ReadOnlySpan<byte> buffer) 405public virtual void Write(ReadOnlySpan<char> chars) 413private void WriteCharsCommonWithoutLengthPrefix(ReadOnlySpan<char> chars, bool useThisWriteOverride)
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\libraries\System.Private.CoreLib\src\System\IO\DirectoryInfo.cs (3)
50ReadOnlySpan<char> fullPath = FullPath.AsSpan(); 85ReadOnlySpan<char> trimmedNewPath = Path.TrimEndingDirectorySeparator(newPath.AsSpan()); 86ReadOnlySpan<char> trimmedCurrentPath = Path.TrimEndingDirectorySeparator(FullPath.AsSpan());
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEntry.cs (1)
38ReadOnlySpan<char> relativePath = Directory.Slice(RootDirectory.Length);
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEntry.Unix.cs (15)
18private ReadOnlySpan<char> _fullPath; 19private ReadOnlySpan<char> _fileName; 31ReadOnlySpan<char> directory, 32ReadOnlySpan<char> rootDirectory, 33ReadOnlySpan<char> originalRootDirectory, 41entry._fullPath = ReadOnlySpan<char>.Empty; 42entry._fileName = ReadOnlySpan<char>.Empty; 76private ReadOnlySpan<char> FullPath 92public ReadOnlySpan<char> FileName 109public ReadOnlySpan<char> Directory { get; private set; } 114public ReadOnlySpan<char> RootDirectory { get; private set; } 119public ReadOnlySpan<char> OriginalRootDirectory { get; private set; } 173ReadOnlySpan<char> originalRootDirectory, 174ReadOnlySpan<char> relativePath, 175ReadOnlySpan<char> fileName) =>
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEnumerableFactory.cs (2)
45ReadOnlySpan<char> directoryName = Path.GetDirectoryName(expression.AsSpan()); 101private static bool MatchesPattern(string expression, ReadOnlySpan<char> name, EnumerationOptions options)
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEnumerator.cs (1)
62protected virtual void OnDirectoryFinished(ReadOnlySpan<char> directory) { }
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemName.cs (7)
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 bool MatchPattern(ReadOnlySpan<char> expression, ReadOnlySpan<char> name, bool ignoreCase, bool useExtendedWildcards) 157ReadOnlySpan<char> expressionEnd = expression.Slice(1);
src\libraries\System.Private.CoreLib\src\System\IO\File.cs (11)
657/// 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. 659public static void WriteAllText(string path, ReadOnlySpan<char> contents) 688public static void WriteAllText(string path, ReadOnlySpan<char> contents, Encoding encoding) 759public static void WriteAllBytes(string path, ReadOnlySpan<byte> bytes) 809public static void AppendAllBytes(string path, ReadOnlySpan<byte> bytes) 971public static void AppendAllText(string path, ReadOnlySpan<char> contents) 1004public static void AppendAllText(string path, ReadOnlySpan<char> contents, Encoding encoding) 1503private static void WriteToFile(string path, FileMode mode, ReadOnlySpan<char> contents, Encoding encoding) 1505ReadOnlySpan<byte> preamble = encoding.GetPreamble(); 1539ReadOnlySpan<char> toEncode = contents.Slice(0, Math.Min(contents.Length, ChunkSize)); 1610private static long GetPreallocationSize(FileMode mode, ReadOnlySpan<char> contents, Encoding encoding, int preambleSize)
src\libraries\System.Private.CoreLib\src\System\IO\FileStatus.Unix.cs (25)
148internal bool IsReadOnly(ReadOnlySpan<char> path, bool continueOnError = false) 154internal bool IsFileSystemEntryHidden(ReadOnlySpan<char> path, ReadOnlySpan<char> fileName) 171internal static bool IsNameHidden(ReadOnlySpan<char> fileName) => fileName.StartsWith('.'); 175internal bool IsDirectory(ReadOnlySpan<char> path, bool continueOnError = false) 181internal bool IsSymbolicLink(ReadOnlySpan<char> path, bool continueOnError = false) 187internal FileAttributes GetAttributes(ReadOnlySpan<char> path, ReadOnlySpan<char> fileName, bool continueOnError = false) 193private FileAttributes GetAttributes(SafeFileHandle? handle, ReadOnlySpan<char> path, ReadOnlySpan<char> fileName, bool continueOnError = false) 285internal bool GetExists(ReadOnlySpan<char> path, bool asDirectory) 291internal DateTimeOffset GetCreationTime(ReadOnlySpan<char> path, bool continueOnError = false) 297private DateTimeOffset GetCreationTime(SafeFileHandle? handle, ReadOnlySpan<char> path, bool continueOnError = false) 315internal DateTimeOffset GetLastAccessTime(ReadOnlySpan<char> path, bool continueOnError = false) 321private DateTimeOffset GetLastAccessTime(SafeFileHandle? handle, ReadOnlySpan<char> path, bool continueOnError = false) 340internal DateTimeOffset GetLastWriteTime(ReadOnlySpan<char> path, bool continueOnError = false) 346private DateTimeOffset GetLastWriteTime(SafeFileHandle? handle, ReadOnlySpan<char> path, bool continueOnError = false) 446internal long GetLength(ReadOnlySpan<char> path, bool continueOnError = false) 455internal UnixFileMode GetUnixFileMode(ReadOnlySpan<char> path, bool continueOnError = false) 461private UnixFileMode GetUnixFileMode(SafeFileHandle? handle, ReadOnlySpan<char> path, bool continueOnError = false) 493internal void RefreshCaches(ReadOnlySpan<char> path) 498internal void RefreshCaches(SafeFileHandle? handle, ReadOnlySpan<char> path) 553internal void EnsureCachesInitialized(ReadOnlySpan<char> path, bool continueOnError = false) 558internal void EnsureCachesInitialized(SafeFileHandle? handle, ReadOnlySpan<char> path, bool continueOnError = false) 572private void ThrowOnCacheInitializationError(ReadOnlySpan<char> path)
src\libraries\System.Private.CoreLib\src\System\IO\FileStream.cs (2)
334public override void Write(ReadOnlySpan<byte> buffer) => _strategy.Write(buffer); 624internal void BaseWrite(ReadOnlySpan<byte> buffer) => base.Write(buffer);
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\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\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); 723static void GetLinkTargetFullPath(ref ValueStringBuilder sb, ReadOnlySpan<char> linkTarget)
src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (3)
214internal ReadOnlySpan<byte> InternalReadSpan(int count) 227var span = new ReadOnlySpan<byte>(_buffer, origPos, count); 621public override void Write(ReadOnlySpan<byte> buffer)
src\libraries\System.Private.CoreLib\src\System\IO\Path.cs (59)
72ReadOnlySpan<char> subpath = path.AsSpan(0, subLength); 149public static ReadOnlySpan<char> GetDirectoryName(ReadOnlySpan<char> path) 152return ReadOnlySpan<char>.Empty; 155return end >= 0 ? path.Slice(0, end) : ReadOnlySpan<char>.Empty; 158internal static int GetDirectoryNameOffset(ReadOnlySpan<char> path) 195public static ReadOnlySpan<char> GetExtension(ReadOnlySpan<char> path) 207return ReadOnlySpan<char>.Empty; 212return ReadOnlySpan<char>.Empty; 226ReadOnlySpan<char> result = GetFileName(path.AsSpan()); 236public static ReadOnlySpan<char> GetFileName(ReadOnlySpan<char> path) 256ReadOnlySpan<char> result = GetFileNameWithoutExtension(path.AsSpan()); 266public static ReadOnlySpan<char> GetFileNameWithoutExtension(ReadOnlySpan<char> path) 268ReadOnlySpan<char> fileName = GetFileName(path); 311public static bool IsPathFullyQualified(ReadOnlySpan<char> path) 329public static bool HasExtension(ReadOnlySpan<char> path) 374return Combine((ReadOnlySpan<string>)paths); 382public static string Combine(params ReadOnlySpan<string> paths) 446public static string Join(ReadOnlySpan<char> path1, ReadOnlySpan<char> path2) 456public static string Join(ReadOnlySpan<char> path1, ReadOnlySpan<char> path2, ReadOnlySpan<char> path3) 470public static string Join(ReadOnlySpan<char> path1, ReadOnlySpan<char> path2, ReadOnlySpan<char> path3, ReadOnlySpan<char> path4) 532return Join((ReadOnlySpan<string?>)paths); 540public static string Join(params ReadOnlySpan<string?> paths) 583public static bool TryJoin(ReadOnlySpan<char> path1, ReadOnlySpan<char> path2, Span<char> destination, out int charsWritten) 591ref ReadOnlySpan<char> pathToUse = ref path1.Length == 0 ? ref path2 : ref path1; 617public static bool TryJoin(ReadOnlySpan<char> path1, ReadOnlySpan<char> path2, ReadOnlySpan<char> path3, Span<char> destination, out int charsWritten) 703private static string JoinInternal(ReadOnlySpan<char> first, ReadOnlySpan<char> second) 714private static string JoinInternal(ReadOnlySpan<char> first, ReadOnlySpan<char> second, ReadOnlySpan<char> third) 730private static unsafe string JoinInternal(ReadOnlySpan<char> first, ReadOnlySpan<char> second, ReadOnlySpan<char> third, ReadOnlySpan<char> fourth) 750ReadOnlySpan<char> first = *(ReadOnlySpan<char>*)state.ReadOnlySpanPtr1; 760ReadOnlySpan<char> second = *(ReadOnlySpan<char>*)state.ReadOnlySpanPtr2; 770ReadOnlySpan<char> third = *(ReadOnlySpan<char>*)state.ReadOnlySpanPtr3; 780ReadOnlySpan<char> fourth = *(ReadOnlySpan<char>*)state.ReadOnlySpanPtr4; 792private static ReadOnlySpan<byte> Base32Char => "abcdefghijklmnopqrstuvwxyz012345"u8; 957public static ReadOnlySpan<char> TrimEndingDirectorySeparator(ReadOnlySpan<char> path) => PathInternal.TrimEndingDirectorySeparator(path); 962public static bool EndsInDirectorySeparator(ReadOnlySpan<char> path) => PathInternal.EndsInDirectorySeparator(path);
src\libraries\System.Private.CoreLib\src\System\IO\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\libraries\System.Private.CoreLib\src\System\IO\PinnedBufferMemoryStream.cs (1)
33public override void Write(ReadOnlySpan<byte> buffer) => WriteCore(buffer);
src\libraries\System.Private.CoreLib\src\System\IO\RandomAccess.cs (1)
168public static void Write(SafeFileHandle handle, ReadOnlySpan<byte> buffer, long fileOffset)
src\libraries\System.Private.CoreLib\src\System\IO\RandomAccess.Unix.cs (1)
100internal static unsafe void WriteAtOffset(SafeFileHandle handle, ReadOnlySpan<byte> buffer, long fileOffset)
src\libraries\System.Private.CoreLib\src\System\IO\Strategies\BufferedFileStreamStrategy.cs (2)
471public override void Write(ReadOnlySpan<byte> buffer) 478private void WriteSpan(ReadOnlySpan<byte> source, ArraySegment<byte> arraySegment)
src\libraries\System.Private.CoreLib\src\System\IO\Strategies\DerivedFileStreamStrategy.cs (1)
118public override void Write(ReadOnlySpan<byte> buffer)
src\libraries\System.Private.CoreLib\src\System\IO\Strategies\OSFileStreamStrategy.cs (1)
233public sealed override void Write(ReadOnlySpan<byte> buffer)
src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (3)
912public virtual void Write(ReadOnlySpan<byte> buffer) 1063public override void Write(ReadOnlySpan<byte> buffer) { } 1266public override void Write(ReadOnlySpan<byte> buffer)
src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (2)
549ReadOnlySpan<byte> preamble = _encoding.Preamble; 810ReadOnlySpan<char> charBufferSpan = _charBuffer.AsSpan(_charPos, _charLen - _charPos);
src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (11)
291ReadOnlySpan<byte> preamble = _encoding.Preamble; 384public override void Write(ReadOnlySpan<char> buffer) 399private unsafe void WriteSpan(ReadOnlySpan<char> buffer, bool appendNewLine) 486public override void WriteLine(ReadOnlySpan<char> buffer) 501private void WriteFormatHelper(string format, ReadOnlySpan<object?> args, bool appendNewLine) 570/// Writes a formatted string to the stream, using the same semantics as <see cref="string.Format(string, ReadOnlySpan{object?})"/>. 574public override void Write([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg) 638/// Writes out a formatted string and a new line to the stream, using the same semantics as <see cref="string.Format(string, ReadOnlySpan{object?})"/>. 642public override void WriteLine([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg) 1037public override void Write(ReadOnlySpan<char> buffer) { } 1062public override void WriteLine(ReadOnlySpan<char> buffer) { }
src\libraries\System.Private.CoreLib\src\System\IO\StringReader.cs (1)
186ReadOnlySpan<char> remaining = s.AsSpan(pos);
src\libraries\System.Private.CoreLib\src\System\IO\StringWriter.cs (2)
106public override void Write(ReadOnlySpan<char> buffer) 158public override void WriteLine(ReadOnlySpan<char> buffer)
src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.CreateBroadcasting.cs (4)
183public override void Write(ReadOnlySpan<char> buffer) 271public override void Write([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg) 311public override void WriteLine(ReadOnlySpan<char> buffer) 439public override void WriteLine([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg)
src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.cs (14)
160public virtual void Write(ReadOnlySpan<char> buffer) 321/// Writes a formatted string to the text stream, using the same semantics as <see cref="string.Format(string, ReadOnlySpan{object?})"/>. 325public virtual void Write([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg) 364public virtual void WriteLine(ReadOnlySpan<char> buffer) 528/// Writes out a formatted string and a new line to the text stream, using the same semantics as <see cref="string.Format(string, ReadOnlySpan{object?})"/>. 532public virtual void WriteLine([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg) 707public override void Write(ReadOnlySpan<char> buffer) { } 723public override void Write([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg) { } 733public override void WriteLine(ReadOnlySpan<char> buffer) { } 749public override void WriteLine([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg) { } 815public override void Write(ReadOnlySpan<char> buffer) => _out.Write(buffer); 863public override void Write([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg) => _out.Write(format, arg); 881public override void WriteLine(ReadOnlySpan<char> buffer) => _out.WriteLine(buffer); 926public override void WriteLine([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> arg) => _out.WriteLine(format, arg);
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStream.cs (2)
610public override void Write(ReadOnlySpan<byte> buffer) 625internal unsafe void WriteCore(ReadOnlySpan<byte> buffer)
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStreamWrapper.cs (1)
102public override void Write(ReadOnlySpan<byte> buffer)
src\libraries\System.Private.CoreLib\src\System\ISpanFormattable.cs (1)
20bool TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider);
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\libraries\System.Private.CoreLib\src\System\IUtf8SpanFormattable.cs (1)
19bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, ReadOnlySpan<char> format, IFormatProvider? provider);
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\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\libraries\System.Private.CoreLib\src\System\Math.cs (1)
35private static ReadOnlySpan<double> RoundPower10Double =>
src\libraries\System.Private.CoreLib\src\System\MathF.cs (1)
32private static ReadOnlySpan<float> RoundPower10Single =>
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (304)
96public static ReadOnlySpan<char> AsSpan(this string? text) 113public static ReadOnlySpan<char> AsSpan(this string? text, int start) 128/// <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> 133public static ReadOnlySpan<char> AsSpan(this string? text, Index startIndex) 154/// <summary>Creates a new <see cref="ReadOnlySpan{Char}"/> over a portion of a target string using the range start and end indexes.</summary> 161public static ReadOnlySpan<char> AsSpan(this string? text, Range range) 191public static ReadOnlySpan<char> AsSpan(this string? text, int start, int length) 314/// <inheritdoc cref="Contains{T}(ReadOnlySpan{T}, T)"/> 318Contains((ReadOnlySpan<T>)span, value); 327public static unsafe bool Contains<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>? 372public static bool Contains<T>(this ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer = null) => 375/// <inheritdoc cref="ContainsAny{T}(ReadOnlySpan{T}, T, T)"/> 379ContainsAny((ReadOnlySpan<T>)span, value0, value1); 381/// <inheritdoc cref="ContainsAny{T}(ReadOnlySpan{T}, T, T, T)"/> 385ContainsAny((ReadOnlySpan<T>)span, value0, value1, value2); 387/// <inheritdoc cref="ContainsAny{T}(ReadOnlySpan{T}, ReadOnlySpan{T})"/> 390public static bool ContainsAny<T>(this Span<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>? => 391ContainsAny((ReadOnlySpan<T>)span, values); 393/// <inheritdoc cref="ContainsAny{T}(ReadOnlySpan{T}, SearchValues{T})"/> 397ContainsAny((ReadOnlySpan<T>)span, values); 399/// <inheritdoc cref="ContainsAny(ReadOnlySpan{char}, SearchValues{string})"/> 403ContainsAny((ReadOnlySpan<char>)span, values); 405/// <inheritdoc cref="ContainsAnyExcept{T}(ReadOnlySpan{T}, T)"/> 409ContainsAnyExcept((ReadOnlySpan<T>)span, value); 411/// <inheritdoc cref="ContainsAnyExcept{T}(ReadOnlySpan{T}, T, T)"/> 415ContainsAnyExcept((ReadOnlySpan<T>)span, value0, value1); 417/// <inheritdoc cref="ContainsAnyExcept{T}(ReadOnlySpan{T}, T, T, T)"/> 421ContainsAnyExcept((ReadOnlySpan<T>)span, value0, value1, value2); 423/// <inheritdoc cref="ContainsAnyExcept{T}(ReadOnlySpan{T}, ReadOnlySpan{T})"/> 426public static bool ContainsAnyExcept<T>(this Span<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>? => 427ContainsAnyExcept((ReadOnlySpan<T>)span, values); 429/// <inheritdoc cref="ContainsAnyExcept{T}(ReadOnlySpan{T}, SearchValues{T})"/> 433ContainsAnyExcept((ReadOnlySpan<T>)span, values); 435/// <inheritdoc cref="ContainsAnyInRange{T}(ReadOnlySpan{T}, T, T)"/> 439ContainsAnyInRange((ReadOnlySpan<T>)span, lowInclusive, highInclusive); 441/// <inheritdoc cref="ContainsAnyExceptInRange{T}(ReadOnlySpan{T}, T, T)"/> 445ContainsAnyExceptInRange((ReadOnlySpan<T>)span, lowInclusive, highInclusive); 454public static bool ContainsAny<T>(this ReadOnlySpan<T> span, T value0, T value1) where T : IEquatable<T>? => 465public static bool ContainsAny<T>(this ReadOnlySpan<T> span, T value0, T value1, IEqualityComparer<T>? comparer = null) => 476public static bool ContainsAny<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2) where T : IEquatable<T>? => 488public static bool ContainsAny<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2, IEqualityComparer<T>? comparer = null) => 497public static bool ContainsAny<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>? => 507public static bool ContainsAny<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values, IEqualityComparer<T>? comparer = null) => 516public static bool ContainsAny<T>(this ReadOnlySpan<T> span, SearchValues<T> values) where T : IEquatable<T>? 532public static bool ContainsAny(this ReadOnlySpan<char> span, SearchValues<string> values) => 545public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>? => 559public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer = null) => 573public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1) where T : IEquatable<T>? => 588public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, IEqualityComparer<T>? comparer = null) => 603public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2) where T : IEquatable<T>? => 619public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2, IEqualityComparer<T>? comparer = null) => 632public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>? => 646public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values, IEqualityComparer<T>? comparer = null) => 659public static bool ContainsAnyExcept<T>(this ReadOnlySpan<T> span, SearchValues<T> values) where T : IEquatable<T>? 676public static bool ContainsAnyInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> => 690public static bool ContainsAnyExceptInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> => 701IndexOf((ReadOnlySpan<T>)span, value); 710public static int IndexOf<T>(this Span<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>? => 711IndexOf((ReadOnlySpan<T>)span, value); 721LastIndexOf((ReadOnlySpan<T>)span, value); 730public static int LastIndexOf<T>(this Span<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>? => 731LastIndexOf((ReadOnlySpan<T>)span, value); 743IndexOfAnyExcept((ReadOnlySpan<T>)span, value); 756IndexOfAnyExcept((ReadOnlySpan<T>)span, value0, value1); 770IndexOfAnyExcept((ReadOnlySpan<T>)span, value0, value1, value2); 781public static int IndexOfAnyExcept<T>(this Span<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>? => 782IndexOfAnyExcept((ReadOnlySpan<T>)span, values); 795IndexOfAnyExcept((ReadOnlySpan<T>)span, values); 806public static unsafe int IndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>? 853public static unsafe int IndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer = null) 890static int IndexOfAnyExceptDefaultComparer(ReadOnlySpan<T> span, T value) 906static int IndexOfAnyExceptComparer(ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer) 933public static unsafe int IndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1) where T : IEquatable<T>? 969public static unsafe int IndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, IEqualityComparer<T>? comparer = null) 994static int IndexOfAnyExceptDefaultComparer(ReadOnlySpan<T> span, T value0, T value1) 1011static int IndexOfAnyExceptComparer(ReadOnlySpan<T> span, T value0, T value1, IEqualityComparer<T>? comparer) 1040public static unsafe int IndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2) where T : IEquatable<T>? 1079public static unsafe int IndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2, IEqualityComparer<T>? comparer = null) 1106static int IndexOfAnyExceptDefaultComparer(ReadOnlySpan<T> span, T value0, T value1, T value2) 1124static int IndexOfAnyExceptComparer(ReadOnlySpan<T> span, T value0, T value1, T value2, IEqualityComparer<T>? comparer) 1143private static unsafe int IndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2, T value3) where T : IEquatable<T>? 1180public static unsafe int IndexOfAnyExcept<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>? 1263public static unsafe int IndexOfAnyExcept<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values, IEqualityComparer<T>? comparer = null) 1301public static int IndexOfAnyExcept<T>(this ReadOnlySpan<T> span, SearchValues<T> values) where T : IEquatable<T>? 1321LastIndexOfAnyExcept((ReadOnlySpan<T>)span, value); 1334LastIndexOfAnyExcept((ReadOnlySpan<T>)span, value0, value1); 1348LastIndexOfAnyExcept((ReadOnlySpan<T>)span, value0, value1, value2); 1359public static int LastIndexOfAnyExcept<T>(this Span<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>? => 1360LastIndexOfAnyExcept((ReadOnlySpan<T>)span, values); 1373LastIndexOfAnyExcept((ReadOnlySpan<T>)span, values); 1384public static unsafe int LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>? 1431public static unsafe int LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer = null) 1468static int LastIndexOfAnyExceptDefaultComparer(ReadOnlySpan<T> span, T value) 1484static int LastIndexOfAnyExceptComparer(ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer) 1511public static unsafe int LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1) where T : IEquatable<T>? 1547public static unsafe int LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, IEqualityComparer<T>? comparer = null) 1572static int LastIndexOfAnyExceptDefaultComparer(ReadOnlySpan<T> span, T value0, T value1) 1589static int LastIndexOfAnyExceptComparer(ReadOnlySpan<T> span, T value0, T value1, IEqualityComparer<T>? comparer) 1618public static unsafe int LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2) where T : IEquatable<T>? 1657public static unsafe int LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2, IEqualityComparer<T>? comparer = null) 1684static int LastIndexOfAnyExceptDefaultComparer(ReadOnlySpan<T> span, T value0, T value1, T value2) 1702static int LastIndexOfAnyExceptComparer(ReadOnlySpan<T> span, T value0, T value1, T value2, IEqualityComparer<T>? comparer) 1722private static unsafe int LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2, T value3) where T : IEquatable<T>? 1759public static unsafe int LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>? 1843public static unsafe int LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values, IEqualityComparer<T>? comparer = null) 1881public static int LastIndexOfAnyExcept<T>(this ReadOnlySpan<T> span, SearchValues<T> values) where T : IEquatable<T>? 1891/// <inheritdoc cref="IndexOfAnyInRange{T}(ReadOnlySpan{T}, T, T)"/> 1895IndexOfAnyInRange((ReadOnlySpan<T>)span, lowInclusive, highInclusive); 1907public static int IndexOfAnyInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> 1956/// <inheritdoc cref="IndexOfAnyExceptInRange{T}(ReadOnlySpan{T}, T, T)"/> 1960IndexOfAnyExceptInRange((ReadOnlySpan<T>)span, lowInclusive, highInclusive); 1972public static int IndexOfAnyExceptInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> 2021/// <inheritdoc cref="LastIndexOfAnyInRange{T}(ReadOnlySpan{T}, T, T)"/> 2025LastIndexOfAnyInRange((ReadOnlySpan<T>)span, lowInclusive, highInclusive); 2037public static int LastIndexOfAnyInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> 2086/// <inheritdoc cref="LastIndexOfAnyExceptInRange{T}(ReadOnlySpan{T}, T, T)"/> 2090LastIndexOfAnyExceptInRange((ReadOnlySpan<T>)span, lowInclusive, highInclusive); 2102public static int LastIndexOfAnyExceptInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T> 2165public static bool SequenceEqual<T>(this Span<T> span, ReadOnlySpan<T> other) where T : IEquatable<T>? => 2166SequenceEqual((ReadOnlySpan<T>)span, other); 2172public static int SequenceCompareTo<T>(this Span<T> span, ReadOnlySpan<T> other) where T : IComparable<T>? => 2173SequenceCompareTo((ReadOnlySpan<T>)span, other); 2181public static unsafe int IndexOf<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>? 2220public static unsafe int IndexOf<T>(this ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer = null) 2252static int IndexOfDefaultComparer(ReadOnlySpan<T> span, T value) 2268static int IndexOfComparer(ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer) 2290public static unsafe int IndexOf<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>? 2319public static unsafe int IndexOf<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value, IEqualityComparer<T>? comparer = null) 2339static int IndexOfComparer(ReadOnlySpan<T> span, ReadOnlySpan<T> value, IEqualityComparer<T>? comparer) 2376public static unsafe int LastIndexOf<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>? 2420public static unsafe int LastIndexOf<T>(this ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer = null) 2457static int LastIndexOfDefaultComparer(ReadOnlySpan<T> span, T value) 2473static int LastIndexOfComparer(ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer) 2496public static unsafe int LastIndexOf<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>? 2528public static unsafe int LastIndexOf<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value, IEqualityComparer<T>? comparer = null) 2551static int LastIndexOfComparer(ReadOnlySpan<T> span, ReadOnlySpan<T> value, IEqualityComparer<T>? comparer) 2588IndexOfAny((ReadOnlySpan<T>)span, value0, value1); 2600IndexOfAny((ReadOnlySpan<T>)span, value0, value1, value2); 2609public static int IndexOfAny<T>(this Span<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>? => 2610IndexOfAny((ReadOnlySpan<T>)span, values); 2620IndexOfAny((ReadOnlySpan<T>)span, values); 2630IndexOfAny((ReadOnlySpan<char>)span, values); 2639public static unsafe int IndexOfAny<T>(this ReadOnlySpan<T> span, T value0, T value1) where T : IEquatable<T>? 2672public static unsafe int IndexOfAny<T>(this ReadOnlySpan<T> span, T value0, T value1, IEqualityComparer<T>? comparer = null) 2697static int IndexOfAnyDefaultComparer(ReadOnlySpan<T> span, T value0, T value1) 2714static int IndexOfAnyComparer(ReadOnlySpan<T> span, T value0, T value1, IEqualityComparer<T>? comparer) 2739public static unsafe int IndexOfAny<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2) where T : IEquatable<T>? 2775public static unsafe int IndexOfAny<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2, IEqualityComparer<T>? comparer = null) 2802static int IndexOfAnyDefaultComparer(ReadOnlySpan<T> span, T value0, T value1, T value2) 2820static int IndexOfAnyComparer(ReadOnlySpan<T> span, T value0, T value1, T value2, IEqualityComparer<T>? comparer) 2844public static unsafe int IndexOfAny<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>? 2944public static int IndexOfAny<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values, IEqualityComparer<T>? comparer = null) 2982public static int IndexOfAny<T>(this ReadOnlySpan<T> span, SearchValues<T> values) where T : IEquatable<T>? 2999public static int IndexOfAny(this ReadOnlySpan<char> span, SearchValues<string> values) 3018LastIndexOfAny((ReadOnlySpan<T>)span, value0, value1); 3030LastIndexOfAny((ReadOnlySpan<T>)span, value0, value1, value2); 3039public static int LastIndexOfAny<T>(this Span<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>? => 3040LastIndexOfAny((ReadOnlySpan<T>)span, values); 3050LastIndexOfAny((ReadOnlySpan<T>)span, values); 3059public static unsafe int LastIndexOfAny<T>(this ReadOnlySpan<T> span, T value0, T value1) where T : IEquatable<T>? 3092public static unsafe int LastIndexOfAny<T>(this ReadOnlySpan<T> span, T value0, T value1, IEqualityComparer<T>? comparer = null) 3117static int LastIndexOfAnyDefaultComparer(ReadOnlySpan<T> span, T value0, T value1) 3134static int LastIndexOfAnyComparer(ReadOnlySpan<T> span, T value0, T value1, IEqualityComparer<T>? comparer) 3160public static unsafe int LastIndexOfAny<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2) where T : IEquatable<T>? 3196public static unsafe int LastIndexOfAny<T>(this ReadOnlySpan<T> span, T value0, T value1, T value2, IEqualityComparer<T>? comparer = null) 3223static int LastIndexOfAnyDefaultComparer(ReadOnlySpan<T> span, T value0, T value1, T value2) 3241static int LastIndexOfAnyComparer(ReadOnlySpan<T> span, T value0, T value1, T value2, IEqualityComparer<T>? comparer) 3266public static unsafe int LastIndexOfAny<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values) where T : IEquatable<T>? 3366public static unsafe int LastIndexOfAny<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> values, IEqualityComparer<T>? comparer = null) 3403public static int LastIndexOfAny<T>(this ReadOnlySpan<T> span, SearchValues<T> values) where T : IEquatable<T>? 3418public static unsafe bool SequenceEqual<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other) where T : IEquatable<T>? 3443public static bool SequenceEqual<T>(this Span<T> span, ReadOnlySpan<T> other, IEqualityComparer<T>? comparer = null) => 3444SequenceEqual((ReadOnlySpan<T>)span, other, comparer); 3453public static unsafe bool SequenceEqual<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other, IEqualityComparer<T>? comparer = null) 3504public static int SequenceCompareTo<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other) where T : IComparable<T>? 3529public static unsafe int SequenceCompareTo<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other, IComparer<T>? comparer = null) 3552public static bool StartsWith<T>(this Span<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>? => 3553StartsWith((ReadOnlySpan<T>)span, value); 3560public static unsafe bool StartsWith<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>? 3582public static unsafe bool StartsWith<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value, IEqualityComparer<T>? comparer = null) => 3592public static bool EndsWith<T>(this Span<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>? => 3593EndsWith((ReadOnlySpan<T>)span, value); 3600public static unsafe bool EndsWith<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>? 3627public static unsafe bool EndsWith<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value, IEqualityComparer<T>? comparer = null) => 3639public static bool StartsWith<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>? => 3651public static bool StartsWith<T>(this ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer = null) => 3663public static bool EndsWith<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>? => 3675public static bool EndsWith<T>(this ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer = null) => 4075public static bool Overlaps<T>(this Span<T> span, ReadOnlySpan<T> other) => 4076Overlaps((ReadOnlySpan<T>)span, other); 4083public static bool Overlaps<T>(this Span<T> span, ReadOnlySpan<T> other, out int elementOffset) => 4084Overlaps((ReadOnlySpan<T>)span, other, out elementOffset); 4089public static unsafe bool Overlaps<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other) 4107public static unsafe bool Overlaps<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other, out int elementOffset) 4154BinarySearch((ReadOnlySpan<T>)span, comparable); 4178BinarySearch((ReadOnlySpan<T>)span, comparable); 4203BinarySearch((ReadOnlySpan<T>)span, value, comparer); 4206/// Searches an entire sorted <see cref="ReadOnlySpan{T}"/> for a value 4210/// <param name="span">The sorted <see cref="ReadOnlySpan{T}"/> to search.</param> 4216/// no larger element, the bitwise complement of <see cref="ReadOnlySpan{T}.Length"/>. 4223this ReadOnlySpan<T> span, IComparable<T> comparable) => 4227/// Searches an entire sorted <see cref="ReadOnlySpan{T}"/> for a value 4232/// <param name="span">The sorted <see cref="ReadOnlySpan{T}"/> to search.</param> 4238/// no larger element, the bitwise complement of <see cref="ReadOnlySpan{T}.Length"/>. 4245this ReadOnlySpan<T> span, TComparable comparable) 4252/// Searches an entire sorted <see cref="ReadOnlySpan{T}"/> for the specified <paramref name="value"/> 4257/// <param name="span">The sorted <see cref="ReadOnlySpan{T}"/> to search.</param> 4264/// no larger element, the bitwise complement of <see cref="ReadOnlySpan{T}.Length"/>. 4271this ReadOnlySpan<T> span, T value, TComparer comparer) 4579public static unsafe void Replace<T>(this ReadOnlySpan<T> source, Span<T> destination, T oldValue, T newValue) where T : IEquatable<T>? 4663public static unsafe void Replace<T>(this ReadOnlySpan<T> source, Span<T> destination, T oldValue, T newValue, IEqualityComparer<T>? comparer = null) 4735static void ReplaceDefaultComparer(ReadOnlySpan<T> source, Span<T> destination, T oldValue, T newValue) 4746static void ReplaceComparer(ReadOnlySpan<T> source, Span<T> destination, T oldValue, T newValue, IEqualityComparer<T>? comparer) 4763public static int CommonPrefixLength<T>(this Span<T> span, ReadOnlySpan<T> other) => 4764CommonPrefixLength((ReadOnlySpan<T>)span, other); 4773public static int CommonPrefixLength<T>(this Span<T> span, ReadOnlySpan<T> other, IEqualityComparer<T>? comparer) => 4774CommonPrefixLength((ReadOnlySpan<T>)span, other, comparer); 4781public static unsafe int CommonPrefixLength<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other) 4829public static int CommonPrefixLength<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> other, IEqualityComparer<T>? comparer) 4857private static void SliceLongerSpanToMatchShorterLength<T>(ref ReadOnlySpan<T> span, ref ReadOnlySpan<T> other) 4878public static SpanSplitEnumerator<T> Split<T>(this ReadOnlySpan<T> source, T separator) where T : IEquatable<T> => 4889public static SpanSplitEnumerator<T> Split<T>(this ReadOnlySpan<T> source, ReadOnlySpan<T> separator) where T : IEquatable<T> => 4904/// or when <see cref="SplitAny(ReadOnlySpan{char}, Span{Range}, ReadOnlySpan{char}, StringSplitOptions)"/> 4907public static SpanSplitEnumerator<T> SplitAny<T>(this ReadOnlySpan<T> source, [UnscopedRef] params ReadOnlySpan<T> separators) where T : IEquatable<T> => 4919/// Unlike <see cref="SplitAny{T}(ReadOnlySpan{T}, ReadOnlySpan{T})"/>, the <paramref name="separators"/> is not checked for being empty. 4921/// whereas <see cref="SplitAny{T}(ReadOnlySpan{T}, ReadOnlySpan{T})"/> will use all Unicode whitespace characters as separators if <paramref name="separators"/> is 4924public static SpanSplitEnumerator<T> SplitAny<T>(this ReadOnlySpan<T> source, SearchValues<T> separators) where T : IEquatable<T> => 4928/// Parses the source <see cref="ReadOnlySpan{Char}"/> for the specified <paramref name="separator"/>, populating the <paramref name="destination"/> span 4954public static int Split(this ReadOnlySpan<char> source, Span<Range> destination, char separator, StringSplitOptions options = StringSplitOptions.None) 4962/// Parses the source <see cref="ReadOnlySpan{Char}"/> for the specified <paramref name="separator"/>, populating the <paramref name="destination"/> span 4988public static int Split(this ReadOnlySpan<char> source, Span<Range> destination, ReadOnlySpan<char> separator, StringSplitOptions options = StringSplitOptions.None) 5018/// Parses the source <see cref="ReadOnlySpan{Char}"/> for one of the specified <paramref name="separators"/>, populating the <paramref name="destination"/> span 5044public static int SplitAny(this ReadOnlySpan<char> source, Span<Range> destination, ReadOnlySpan<char> separators, StringSplitOptions options = StringSplitOptions.None) 5059/// Parses the source <see cref="ReadOnlySpan{Char}"/> for one of the specified <paramref name="separators"/>, populating the <paramref name="destination"/> span 5085public static int SplitAny(this ReadOnlySpan<char> source, Span<Range> destination, ReadOnlySpan<string> separators, StringSplitOptions options = StringSplitOptions.None) 5109ReadOnlySpan<char> source, Span<Range> destination, 5110ReadOnlySpan<char> separatorOrSeparators, ReadOnlySpan<string?> stringSeparators, bool isAny, 5245private static (int StartInclusive, int EndExclusive) TrimSplitEntry(ReadOnlySpan<char> source, int startInclusive, int endExclusive) 5267Count((ReadOnlySpan<T>)span, value); 5275public static unsafe int Count<T>(this ReadOnlySpan<T> span, T value) where T : IEquatable<T>? 5322public static unsafe int Count<T>(this ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer = null) 5359static int CountDefaultComparer(ReadOnlySpan<T> span, T value) 5376static int CountComparer(ReadOnlySpan<T> span, T value, IEqualityComparer<T>? comparer) 5400public static int Count<T>(this Span<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>? => 5401Count((ReadOnlySpan<T>)span, value); 5408public static int Count<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value) where T : IEquatable<T>? 5438public static int Count<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> value, IEqualityComparer<T>? comparer = null) 5575return TryWrite(destination, provider, format, out charsWritten, (ReadOnlySpan<object?>)args); 5590public static bool TryWrite(this Span<char> destination, IFormatProvider? provider, CompositeFormat format, out int charsWritten, params ReadOnlySpan<object?> args) 5603private 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) 5654/// Enables enumerating each split within a <see cref="ReadOnlySpan{T}"/> that has been divided using one or more separators. 5660private readonly ReadOnlySpan<T> _span; 5668private readonly ReadOnlySpan<T> _separatorBuffer; 5690internal SpanSplitEnumerator(ReadOnlySpan<T> span, SearchValues<T> searchValues) 5703internal SpanSplitEnumerator(ReadOnlySpan<T> span, ReadOnlySpan<T> separators) 5720internal SpanSplitEnumerator(ReadOnlySpan<T> span, ReadOnlySpan<T> separator, bool treatAsSingleSeparator) 5732internal SpanSplitEnumerator(ReadOnlySpan<T> span, T separator) 5817/// instance instead of in a <see cref="ReadOnlySpan{Char}"/>.
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Globalization.cs (29)
17public static bool IsWhiteSpace(this ReadOnlySpan<char> span) 33public static bool Contains(this ReadOnlySpan<char> span, ReadOnlySpan<char> value, StringComparison comparisonType) 46public static bool Equals(this ReadOnlySpan<char> span, ReadOnlySpan<char> other, StringComparison comparisonType) 70internal static bool EqualsOrdinal(this ReadOnlySpan<char> span, ReadOnlySpan<char> value) 80internal static bool EqualsOrdinalIgnoreCase(this ReadOnlySpan<char> span, ReadOnlySpan<char> value) 96public static int CompareTo(this ReadOnlySpan<char> span, ReadOnlySpan<char> other, StringComparison comparisonType) 127public static int IndexOf(this ReadOnlySpan<char> span, ReadOnlySpan<char> value, StringComparison comparisonType) 158public static int LastIndexOf(this ReadOnlySpan<char> span, ReadOnlySpan<char> value, StringComparison comparisonType) 197public static int ToLower(this ReadOnlySpan<char> source, Span<char> destination, CultureInfo? culture) 223public static int ToLowerInvariant(this ReadOnlySpan<char> source, Span<char> destination) 249public static int ToUpper(this ReadOnlySpan<char> source, Span<char> destination, CultureInfo? culture) 275public static int ToUpperInvariant(this ReadOnlySpan<char> source, Span<char> destination) 298public static bool EndsWith(this ReadOnlySpan<char> span, ReadOnlySpan<char> value, StringComparison comparisonType) 322internal static bool EndsWithOrdinalIgnoreCase(this ReadOnlySpan<char> span, ReadOnlySpan<char> value) 336public static bool StartsWith(this ReadOnlySpan<char> span, ReadOnlySpan<char> value, StringComparison comparisonType) 360internal static bool StartsWithOrdinalIgnoreCase(this ReadOnlySpan<char> span, ReadOnlySpan<char> value) 370public static SpanRuneEnumerator EnumerateRunes(this ReadOnlySpan<char> span) 395public static SpanLineEnumerator EnumerateLines(this ReadOnlySpan<char> span)
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Globalization.Utf8.cs (6)
14internal static bool EqualsOrdinalIgnoreCaseUtf8(this ReadOnlySpan<byte> span, ReadOnlySpan<byte> value) 33internal static bool StartsWithUtf8(this ReadOnlySpan<byte> span, ReadOnlySpan<byte> value, StringComparison comparisonType) 65internal static bool StartsWithOrdinalIgnoreCaseUtf8(this ReadOnlySpan<byte> span, ReadOnlySpan<byte> value)
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Trim.cs (61)
18ReadOnlySpan<T> span = memory.Span; 47ReadOnlySpan<T> span = memory.Span; 102public static ReadOnlySpan<T> Trim<T>(this ReadOnlySpan<T> span, T trimElement) where T : IEquatable<T>? 114public static ReadOnlySpan<T> TrimStart<T>(this ReadOnlySpan<T> span, T trimElement) where T : IEquatable<T>? 122public static ReadOnlySpan<T> TrimEnd<T>(this ReadOnlySpan<T> span, T trimElement) where T : IEquatable<T>? 130private static int ClampStart<T>(ReadOnlySpan<T> span, T trimElement) where T : IEquatable<T>? 164private static int ClampEnd<T>(ReadOnlySpan<T> span, int start, T trimElement) where T : IEquatable<T>? 202public static Memory<T> Trim<T>(this Memory<T> memory, ReadOnlySpan<T> trimElements) where T : IEquatable<T>? 206ReadOnlySpan<T> span = memory.Span; 227public static Memory<T> TrimStart<T>(this Memory<T> memory, ReadOnlySpan<T> trimElements) where T : IEquatable<T>? 249public static Memory<T> TrimEnd<T>(this Memory<T> memory, ReadOnlySpan<T> trimElements) where T : IEquatable<T>? 271public static ReadOnlyMemory<T> Trim<T>(this ReadOnlyMemory<T> memory, ReadOnlySpan<T> trimElements) where T : IEquatable<T>? 275ReadOnlySpan<T> span = memory.Span; 296public static ReadOnlyMemory<T> TrimStart<T>(this ReadOnlyMemory<T> memory, ReadOnlySpan<T> trimElements) where T : IEquatable<T>? 318public static ReadOnlyMemory<T> TrimEnd<T>(this ReadOnlyMemory<T> memory, ReadOnlySpan<T> trimElements) where T : IEquatable<T>? 340public static Span<T> Trim<T>(this Span<T> span, ReadOnlySpan<T> trimElements) where T : IEquatable<T>? 364public static Span<T> TrimStart<T>(this Span<T> span, ReadOnlySpan<T> trimElements) where T : IEquatable<T>? 386public static Span<T> TrimEnd<T>(this Span<T> span, ReadOnlySpan<T> trimElements) where T : IEquatable<T>? 408public static ReadOnlySpan<T> Trim<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> trimElements) where T : IEquatable<T>? 432public static ReadOnlySpan<T> TrimStart<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> trimElements) where T : IEquatable<T>? 454public static ReadOnlySpan<T> TrimEnd<T>(this ReadOnlySpan<T> span, ReadOnlySpan<T> trimElements) where T : IEquatable<T>? 475private static int ClampStart<T>(ReadOnlySpan<T> span, ReadOnlySpan<T> trimElements) where T : IEquatable<T>? 496private static int ClampEnd<T>(ReadOnlySpan<T> span, int start, ReadOnlySpan<T> trimElements) where T : IEquatable<T>? 519ReadOnlySpan<char> span = memory.Span; 545ReadOnlySpan<char> span = memory.Span; 570public static ReadOnlySpan<char> Trim(this ReadOnlySpan<char> span) 581static ReadOnlySpan<char> TrimFallback(ReadOnlySpan<char> span) 608public static ReadOnlySpan<char> TrimStart(this ReadOnlySpan<char> span) 626public static ReadOnlySpan<char> TrimEnd(this ReadOnlySpan<char> span) 645public static ReadOnlySpan<char> Trim(this ReadOnlySpan<char> span, char trimChar) 673public static ReadOnlySpan<char> TrimStart(this ReadOnlySpan<char> span, char trimChar) 692public static ReadOnlySpan<char> TrimEnd(this ReadOnlySpan<char> span, char trimChar) 713public static ReadOnlySpan<char> Trim(this ReadOnlySpan<char> span, ReadOnlySpan<char> trimChars) 723public static ReadOnlySpan<char> TrimStart(this ReadOnlySpan<char> span, ReadOnlySpan<char> trimChars) 756public static ReadOnlySpan<char> TrimEnd(this ReadOnlySpan<char> span, ReadOnlySpan<char> trimChars) 839private static int ClampStart(ReadOnlySpan<char> span) 859private static int ClampEnd(ReadOnlySpan<char> span, int start)
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Trim.Utf8.cs (4)
12internal static ReadOnlySpan<byte> TrimUtf8(this ReadOnlySpan<byte> span) 46static ReadOnlySpan<byte> TrimFallback(ReadOnlySpan<byte> span)
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\libraries\System.Private.CoreLib\src\System\Number.BigInteger.cs (3)
38private static ReadOnlySpan<uint> Pow10UInt32Table => 53private static ReadOnlySpan<int> Pow10BigNumTableIndices => 65private static ReadOnlySpan<uint> Pow10BigNumTable =>
src\libraries\System.Private.CoreLib\src\System\Number.Formatting.cs (27)
275private static ReadOnlySpan<byte> TwoDigitsCharsAsBytes => 286private static ReadOnlySpan<byte> TwoDigitsBytes => 298public static unsafe string FormatDecimal(decimal value, ReadOnlySpan<char> format, NumberFormatInfo info) 324public static unsafe bool TryFormatDecimal<TChar>(decimal value, ReadOnlySpan<char> format, NumberFormatInfo info, Span<TChar> destination, out int charsWritten) where TChar : unmanaged, IUtfChar<TChar> 503public static bool TryFormatFloat<TNumber, TChar>(TNumber value, ReadOnlySpan<char> format, NumberFormatInfo info, Span<TChar> destination, out int charsWritten) 526private static unsafe string? FormatFloat<TNumber, TChar>(ref ValueListBuilder<TChar> vlb, TNumber value, ReadOnlySpan<char> format, NumberFormatInfo info) 653ReadOnlySpan<char> formatSpan = format; 699public static bool TryFormatInt32<TChar>(int value, int hexMask, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten) where TChar : unmanaged, IUtfChar<TChar> 711static unsafe bool TryFormatInt32Slow(int value, int hexMask, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten) 769ReadOnlySpan<char> formatSpan = format; 813public static bool TryFormatUInt32<TChar>(uint value, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten) where TChar : unmanaged, IUtfChar<TChar> 825static unsafe bool TryFormatUInt32Slow(uint value, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten) 883ReadOnlySpan<char> formatSpan = format; 929public static bool TryFormatInt64<TChar>(long value, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten) where TChar : unmanaged, IUtfChar<TChar> 943static unsafe bool TryFormatInt64Slow(long value, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten) 1001ReadOnlySpan<char> formatSpan = format; 1045public static bool TryFormatUInt64<TChar>(ulong value, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten) where TChar : unmanaged, IUtfChar<TChar> 1057static unsafe bool TryFormatUInt64Slow(ulong value, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten) 1115ReadOnlySpan<char> formatSpan = format; 1162public static bool TryFormatInt128<TChar>(Int128 value, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten) where TChar : unmanaged, IUtfChar<TChar> 1176static unsafe bool TryFormatInt128Slow(Int128 value, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten) 1235ReadOnlySpan<char> formatSpan = format; 1280public static bool TryFormatUInt128<TChar>(UInt128 value, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten) where TChar : unmanaged, IUtfChar<TChar> 1292static unsafe bool TryFormatUInt128Slow(UInt128 value, ReadOnlySpan<char> format, IFormatProvider? provider, Span<TChar> destination, out int charsWritten) 1400internal static unsafe bool TryNegativeInt32ToDecStr<TChar>(int value, int digits, ReadOnlySpan<TChar> sNegative, Span<TChar> destination, out int charsWritten) where TChar : unmanaged, IUtfChar<TChar> 1833internal static unsafe bool TryNegativeInt64ToDecStr<TChar>(long value, int digits, ReadOnlySpan<TChar> sNegative, Span<TChar> destination, out int charsWritten) where TChar : unmanaged, IUtfChar<TChar> 2261private static unsafe bool TryNegativeInt128ToDecStr<TChar>(Int128 value, int digits, ReadOnlySpan<TChar> sNegative, Span<TChar> destination, out int charsWritten) where TChar : unmanaged, IUtfChar<TChar>
src\libraries\System.Private.CoreLib\src\System\Number.Grisu3.cs (4)
37private static ReadOnlySpan<short> CachedPowersBinaryExponent => 128private static ReadOnlySpan<short> CachedPowersDecimalExponent => 219private static ReadOnlySpan<ulong> CachedPowersSignificand => 310private static ReadOnlySpan<uint> SmallPowersOfTen =>
src\libraries\System.Private.CoreLib\src\System\Number.NumberToFloatingPointBits.cs (2)
13private static ReadOnlySpan<double> Pow10DoubleTable => 44private static ReadOnlySpan<ulong> Pow5128Table =>
src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (61)
176internal static TInteger ParseBinaryInteger<TChar, TInteger>(ReadOnlySpan<TChar> value, NumberStyles styles, NumberFormatInfo info) 190internal static ParsingStatus TryParseBinaryInteger<TChar, TInteger>(ReadOnlySpan<TChar> value, NumberStyles styles, NumberFormatInfo info, out TInteger result) 213private static ParsingStatus TryParseBinaryIntegerNumber<TChar, TInteger>(ReadOnlySpan<TChar> value, NumberStyles styles, NumberFormatInfo info, out TInteger result) 234internal static ParsingStatus TryParseBinaryIntegerStyle<TChar, TInteger>(ReadOnlySpan<TChar> value, NumberStyles styles, NumberFormatInfo info, out TInteger result) 308ReadOnlySpan<TChar> positiveSign = info.PositiveSignTChar<TChar>(); 309ReadOnlySpan<TChar> negativeSign = info.NegativeSignTChar<TChar>(); 516internal static ParsingStatus TryParseBinaryIntegerHexNumberStyle<TChar, TInteger>(ReadOnlySpan<TChar> value, NumberStyles styles, out TInteger result) 554private static ParsingStatus TryParseBinaryIntegerHexOrBinaryNumberStyle<TChar, TInteger, TParser>(ReadOnlySpan<TChar> value, NumberStyles styles, out TInteger result) 720internal static decimal ParseDecimal<TChar>(ReadOnlySpan<TChar> value, NumberStyles styles, NumberFormatInfo info) 856internal static TFloat ParseFloat<TChar, TFloat>(ReadOnlySpan<TChar> value, NumberStyles styles, NumberFormatInfo info) 867internal static ParsingStatus TryParseDecimal<TChar>(ReadOnlySpan<TChar> value, NumberStyles styles, NumberFormatInfo info, out decimal result) 887internal static bool SpanStartsWith<TChar>(ReadOnlySpan<TChar> span, TChar c) 893internal static bool SpanStartsWith<TChar>(ReadOnlySpan<TChar> span, ReadOnlySpan<TChar> value, StringComparison comparisonType) 898ReadOnlySpan<char> typedSpan = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<char>>(span); 899ReadOnlySpan<char> typedValue = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<char>>(value); 906ReadOnlySpan<byte> typedSpan = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(span); 907ReadOnlySpan<byte> typedValue = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(value); 913internal static ReadOnlySpan<TChar> SpanTrim<TChar>(ReadOnlySpan<TChar> span) 918return Unsafe.BitCast<ReadOnlySpan<char>, ReadOnlySpan<TChar>>(Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<char>>(span).Trim()); 924return Unsafe.BitCast<ReadOnlySpan<byte>, ReadOnlySpan<TChar>>(Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(span).TrimUtf8()); 929internal static bool SpanEqualsOrdinalIgnoreCase<TChar>(ReadOnlySpan<TChar> span, ReadOnlySpan<TChar> value) 934ReadOnlySpan<char> typedSpan = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<char>>(span); 935ReadOnlySpan<char> typedValue = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<char>>(value); 942ReadOnlySpan<byte> typedSpan = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(span); 943ReadOnlySpan<byte> typedValue = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(value); 948internal static bool TryParseFloat<TChar, TFloat>(ReadOnlySpan<TChar> value, NumberStyles styles, NumberFormatInfo info, out TFloat result) 956ReadOnlySpan<TChar> valueTrim = SpanTrim(value); 962ReadOnlySpan<TChar> positiveInfinitySymbol = info.PositiveInfinitySymbolTChar<TChar>(); 976ReadOnlySpan<TChar> nanSymbol = info.NaNSymbolTChar<TChar>(); 984var positiveSign = info.PositiveSignTChar<TChar>(); 1005ReadOnlySpan<TChar> negativeSign = info.NegativeSignTChar<TChar>(); 1031internal static void ThrowOverflowOrFormatException<TChar, TInteger>(ParsingStatus status, ReadOnlySpan<TChar> value) 1043internal static void ThrowFormatException<TChar>(ReadOnlySpan<TChar> value) 1056ReadOnlySpan<byte> bytes = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<byte>>(value);
src\libraries\System.Private.CoreLib\src\System\Numerics\BitOperations.cs (2)
28private static ReadOnlySpan<byte> TrailingZeroCountDeBruijn => // 32 36private static ReadOnlySpan<byte> Log2DeBruijn => // 32
src\libraries\System.Private.CoreLib\src\System\Numerics\IBinaryInteger.cs (4)
82static virtual TSelf ReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned) 125static virtual TSelf ReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned) 174static abstract bool TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out TSelf value); 181static abstract bool TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out TSelf value);
src\libraries\System.Private.CoreLib\src\System\Numerics\INumberBase.cs (7)
294static abstract TSelf Parse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider); 304static virtual TSelf Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider) 429static abstract bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, [MaybeNullWhen(false)] out TSelf result); 438static virtual bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, [MaybeNullWhen(false)] out TSelf result) 486bool IUtf8SpanFormattable.TryFormat(Span<byte> utf8Destination, out int bytesWritten, ReadOnlySpan<char> format, IFormatProvider? provider) 540static TSelf IUtf8SpanParsable<TSelf>.Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) 587static bool IUtf8SpanParsable<TSelf>.TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, [MaybeNullWhen(returnValue: false)] out TSelf result)
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector.cs (1)
739public static Vector<T> Create<T>(ReadOnlySpan<T> values)
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector_1.cs (3)
88public Vector(ReadOnlySpan<T> values) 105public Vector(ReadOnlySpan<byte> values) 123public Vector(Span<T> values) : this((ReadOnlySpan<T>)values)
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector2.cs (4)
63/// <summary>Constructs a vector from the given <see cref="ReadOnlySpan{Single}" />. The span must contain at least 2 elements.</summary> 66public Vector2(ReadOnlySpan<float> values) 400/// <summary>Constructs a vector from the given <see cref="ReadOnlySpan{Single}" />. The span must contain at least 2 elements.</summary> 405public static Vector2 Create(ReadOnlySpan<float> values)
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector3.cs (4)
76/// <summary>Constructs a vector from the given <see cref="ReadOnlySpan{Single}" />. The span must contain at least 3 elements.</summary> 79public Vector3(ReadOnlySpan<float> values) 435/// <summary>Constructs a vector from the given <see cref="ReadOnlySpan{Single}" />. The span must contain at least 3 elements.</summary> 440public static Vector3 Create(ReadOnlySpan<float> values)
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector4.cs (4)
89/// <summary>Constructs a vector from the given <see cref="ReadOnlySpan{Single}" />. The span must contain at least 4 elements.</summary> 92public Vector4(ReadOnlySpan<float> values) 483/// <summary>Constructs a vector from the given <see cref="ReadOnlySpan{Single}" />. The span must contain at least 4 elements.</summary> 487public static Vector4 Create(ReadOnlySpan<float> values) => Vector128.Create(values).AsVector4();
src\libraries\System.Private.CoreLib\src\System\ParseNumbers.cs (7)
17public static long StringToLong(ReadOnlySpan<char> s, int radix, int flags) 23public static long StringToLong(ReadOnlySpan<char> s, int radix, int flags, ref int currPos) 104public static int StringToInt(ReadOnlySpan<char> s, int radix, int flags) 110public static int StringToInt(ReadOnlySpan<char> s, int radix, int flags, ref int currPos) 205private static void EatWhiteSpace(ReadOnlySpan<char> s, ref int i) 212private static long GrabLongs(int radix, ReadOnlySpan<char> s, ref int i, bool isUnsigned) 273private static int GrabInts(int radix, ReadOnlySpan<char> s, ref int i, bool isUnsigned)
src\libraries\System.Private.CoreLib\src\System\Random.cs (2)
193public void GetItems<T>(ReadOnlySpan<T> choices, Span<T> destination) 328public T[] GetItems<T>(ReadOnlySpan<T> choices, int length)
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\libraries\System.Private.CoreLib\src\System\ReadOnlySpan.cs (19)
112/// <summary>Creates a new <see cref="ReadOnlySpan{T}"/> of length 1 around the specified reference.</summary> 163/// Gets a value indicating whether this <see cref="ReadOnlySpan{T}"/> is empty. 176public static bool operator !=(ReadOnlySpan<T> left, ReadOnlySpan<T> right) => !(left == right); 201/// Defines an implicit conversion of an array to a <see cref="ReadOnlySpan{T}"/> 203public static implicit operator ReadOnlySpan<T>(T[]? array) => new ReadOnlySpan<T>(array); 206/// Defines an implicit conversion of a <see cref="ArraySegment{T}"/> to a <see cref="ReadOnlySpan{T}"/> 208public static implicit operator ReadOnlySpan<T>(ArraySegment<T> segment) 214public static ReadOnlySpan<T> Empty => default; 223public static ReadOnlySpan<T> CastUp<TDerived>(ReadOnlySpan<TDerived> items) where TDerived : class?, T 231/// <summary>Enumerates the elements of a <see cref="ReadOnlySpan{T}"/>.</summary> 235private readonly ReadOnlySpan<T> _span; 242internal Enumerator(ReadOnlySpan<T> span) 332public static bool operator ==(ReadOnlySpan<T> left, ReadOnlySpan<T> right) => 337/// For <see cref="ReadOnlySpan{Char}"/>, returns a new instance of string that represents the characters pointed to by the span. 357public ReadOnlySpan<T> Slice(int start) 374public ReadOnlySpan<T> Slice(int start, int length)
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyNameHelpers.StrongName.cs (2)
47ReadOnlySpan<byte> publicKeyBlob = new ReadOnlySpan<byte>(publicKey); 101private static ReadOnlySpan<byte> EcmaKey => [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00];
src\libraries\System.Private.CoreLib\src\System\Reflection\ConstructorInvoker.cs (2)
389internal void CopyBack(Span<object?> dest, ReadOnlySpan<object?> copyOfParameters, ReadOnlySpan<bool> shouldCopyBack)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\AssemblyBuilder.cs (1)
46protected abstract void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ConstructorBuilder.cs (1)
41protected abstract void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\DynamicMethod.cs (1)
335internal override ReadOnlySpan<ParameterInfo> GetParametersAsSpan() => LoadParameters();
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\EnumBuilder.cs (1)
38protected abstract void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\EventBuilder.cs (1)
30protected abstract void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\FieldBuilder.cs (1)
25protected abstract void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\GenericTypeParameterBuilder.cs (1)
16protected abstract void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute);
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\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ModuleBuilder.cs (1)
178protected abstract void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ParameterBuilder.cs (1)
27protected abstract void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\PropertyBuilder.cs (1)
30protected abstract void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilder.cs (1)
280protected abstract void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute);
src\libraries\System.Private.CoreLib\src\System\Reflection\EventInfo.cs (1)
48ReadOnlySpan<ParameterInfo> p = m.GetParametersAsSpan();
src\libraries\System.Private.CoreLib\src\System\Reflection\InvokerEmitUtil.cs (3)
49ReadOnlySpan<ParameterInfo> parameters = method.GetParametersAsSpan(); 117ReadOnlySpan<ParameterInfo> parameters = method.GetParametersAsSpan(); 174ReadOnlySpan<ParameterInfo> parameters = method.GetParametersAsSpan();
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodBase.cs (1)
128ReadOnlySpan<ParameterInfo> paramInfo = GetParametersAsSpan();
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodBaseInvoker.cs (2)
75var parametersSpan = new ReadOnlySpan<object?>(in arg); 346ReadOnlySpan<object?> parameters,
src\libraries\System.Private.CoreLib\src\System\Reflection\Module.cs (1)
189ReadOnlySpan<char> slice = str.AsSpan(0, str.Length - 1);
src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (2)
121ReadOnlySpan<ParameterInfo> parameters = metaMethod.GetParametersAsSpan(); 219ReadOnlySpan<ParameterInfo> parameters = setter.GetParametersAsSpan();
src\libraries\System.Private.CoreLib\src\System\Reflection\ParameterInfo.cs (1)
68ReadOnlySpan<ParameterInfo> args;
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeNameResolver.cs (1)
106ReadOnlySpan<TypeName> genericArgs = typeName.GetGenericArguments();
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\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\DefaultInterpolatedStringHandler.cs (2)
130internal ReadOnlySpan<char> Text => _chars.Slice(0, _pos); 590/// <summary>Fallback for <see cref="AppendFormatted(ReadOnlySpan{char})"/> for when not enough space exists in the current buffer.</summary>
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\RuntimeHelpers.cs (2)
120ReadOnlySpan<short> primitiveWidenTable = 153public static ReadOnlySpan<T> CreateSpan<T>(RuntimeFieldHandle fldHandle)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.Unix.cs (2)
46internal static unsafe int GetAnsiStringByteCount(ReadOnlySpan<char> chars) 53internal static unsafe void GetAnsiStringBytes(ReadOnlySpan<char> chars, Span<byte> bytes)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ArrayMarshaller.cs (5)
50/// <returns>The <see cref="ReadOnlySpan{T}"/> containing the managed elements to marshal.</returns> 51public static ReadOnlySpan<T> GetManagedValuesSource(T[]? managed) 90/// <returns>The <see cref="ReadOnlySpan{TUnmanagedElement}"/> containing the unmanaged elements to marshal.</returns> 91public static ReadOnlySpan<TUnmanagedElement> GetUnmanagedValuesSource(TUnmanagedElement* unmanagedValue, int numElements) 158public ReadOnlySpan<T> GetManagedValuesSource() => _managedArray;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\PointerArrayMarshaller.cs (5)
51/// <returns>The <see cref="ReadOnlySpan{IntPtr}"/> containing the managed elements to marshal.</returns> 52public static ReadOnlySpan<IntPtr> GetManagedValuesSource(T*[]? managed) 91/// <returns>The <see cref="ReadOnlySpan{TUnmanagedElement}"/> containing the unmanaged elements to marshal.</returns> 92public static ReadOnlySpan<TUnmanagedElement> GetUnmanagedValuesSource(TUnmanagedElement* unmanagedValue, int numElements) 159public ReadOnlySpan<IntPtr> GetManagedValuesSource() => Unsafe.As<IntPtr[]>(_managedArray);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ReadOnlySpanMarshaller.cs (15)
12/// Supports marshalling a <see cref="ReadOnlySpan{T}"/> from managed value 18/// A <see cref="ReadOnlySpan{T}"/> marshalled with this marshaller will match the semantics of <see cref="MemoryMarshal.GetReference{T}(ReadOnlySpan{T})"/>. 22[CustomMarshaller(typeof(ReadOnlySpan<>), MarshalMode.ManagedToUnmanagedIn, typeof(ReadOnlySpanMarshaller<,>.ManagedToUnmanagedIn))] 23[CustomMarshaller(typeof(ReadOnlySpan<>), MarshalMode.ManagedToUnmanagedOut, typeof(ReadOnlySpanMarshaller<,>.ManagedToUnmanagedOut))] 24[CustomMarshaller(typeof(ReadOnlySpan<>), MarshalMode.UnmanagedToManagedOut, typeof(ReadOnlySpanMarshaller<,>.UnmanagedToManagedOut))] 40public static TUnmanagedElement* AllocateContainerForUnmanagedElements(ReadOnlySpan<T> managed, out int numElements) 62public static ReadOnlySpan<T> GetManagedValuesSource(ReadOnlySpan<T> managed) 86private ReadOnlySpan<T> _managedArray; 99public void FromManaged(ReadOnlySpan<T> managed, Span<TUnmanagedElement> buffer) 130public ReadOnlySpan<T> GetManagedValuesSource() => _managedArray; 165public static ref T GetPinnableReference(ReadOnlySpan<T> managed) 192public ReadOnlySpan<T> ToManaged() 202public ReadOnlySpan<TUnmanagedElement> GetUnmanagedValuesSource(int numElements)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\SpanMarshaller.cs (3)
56public static ReadOnlySpan<T> GetManagedValuesSource(Span<T> managed) 96public static ReadOnlySpan<TUnmanagedElement> GetUnmanagedValuesSource(TUnmanagedElement* unmanaged, int numElements) 157public ReadOnlySpan<T> GetManagedValuesSource() => _managedArray;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\MemoryMarshal.cs (14)
14/// <see cref="Span{T}"/>, and <see cref="ReadOnlySpan{T}"/>. 53public static unsafe ReadOnlySpan<byte> AsBytes<T>(ReadOnlySpan<T> span) 86public static ref T GetReference<T>(ReadOnlySpan<T> span) => ref span._reference; 100internal 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); 169public static unsafe ReadOnlySpan<TTo> Cast<TFrom, TTo>(ReadOnlySpan<TFrom> span) 243public static ReadOnlySpan<T> CreateReadOnlySpan<T>(scoped ref readonly T reference, int length) => 244new ReadOnlySpan<T>(ref Unsafe.AsRef(in reference), length); 252public static unsafe ReadOnlySpan<char> CreateReadOnlySpanFromNullTerminated(char* value) => 262public static unsafe ReadOnlySpan<byte> CreateReadOnlySpanFromNullTerminated(byte* value) => 468public static unsafe T Read<T>(ReadOnlySpan<byte> source) 487public static unsafe bool TryRead<T>(ReadOnlySpan<byte> source, out T value) 571public static unsafe ref readonly T AsRef<T>(ReadOnlySpan<byte> span)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (20)
685public static NFloat Parse(ReadOnlySpan<char> s, NumberStyles style = DefaultNumberStyles, IFormatProvider? provider = null) 703/// <param name="result">When this method returns, contains a floating-point number equivalent of the numeric value or symbol contained in <paramref name="s" /> if the conversion succeeded or zero if the conversion failed. The conversion fails if the <paramref name="s" /> is <see cref="ReadOnlySpan{T}.Empty" /> or is not in a valid format. This parameter is passed uninitialized; any value originally supplied in result will be overwritten.</param> 705public static bool TryParse(ReadOnlySpan<char> s, out NFloat result) 713/// <param name="result">When this method returns, contains a floating-point number equivalent of the numeric value or symbol contained in <paramref name="utf8Text" /> if the conversion succeeded or zero if the conversion failed. The conversion fails if the <paramref name="utf8Text" /> is <see cref="ReadOnlySpan{T}.Empty" /> or is not in a valid format. This parameter is passed uninitialized; any value originally supplied in result will be overwritten.</param> 715public static bool TryParse(ReadOnlySpan<byte> utf8Text, out NFloat result) 749public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out NFloat result) 860public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) => _value.TryFormat(destination, out charsWritten, format, provider); 863public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) => _value.TryFormat(utf8Destination, out bytesWritten, format, provider); 1830/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1831public static NFloat Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider); 1833/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1834public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out NFloat result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider, out result); 1912/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1913public static NFloat Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Float | NumberStyles.AllowThousands, IFormatProvider? provider = null) 1919/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 1920public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out NFloat result) 1926/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 1927public static NFloat Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider); 1929/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 1930public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out NFloat result) => TryParse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider, out result);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeBuffer.cs (1)
320public void WriteSpan<T>(ulong byteOffset, ReadOnlySpan<T> data)
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\ISimdVector_2.cs (1)
251static virtual TSelf Create(ReadOnlySpan<T> values)
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (1)
915public static Vector128<T> Create<T>(ReadOnlySpan<T> values)
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128_1.cs (2)
567/// <inheritdoc cref="ISimdVector{TSelf, T}.Create(ReadOnlySpan{T})" /> 568static Vector128<T> ISimdVector<Vector128<T>, T>.Create(ReadOnlySpan<T> values) => Vector128.Create(values);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (1)
927public static Vector256<T> Create<T>(ReadOnlySpan<T> values)
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256_1.cs (2)
556/// <inheritdoc cref="ISimdVector{TSelf, T}.Create(ReadOnlySpan{T})" /> 557static Vector256<T> ISimdVector<Vector256<T>, T>.Create(ReadOnlySpan<T> values) => Vector256.Create(values);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (1)
844public static Vector512<T> Create<T>(ReadOnlySpan<T> values)
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512_1.cs (2)
556/// <inheritdoc cref="ISimdVector{TSelf, T}.Create(ReadOnlySpan{T})" /> 557static Vector512<T> ISimdVector<Vector512<T>, T>.Create(ReadOnlySpan<T> values) => Vector512.Create(values);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64.cs (1)
912public static Vector64<T> Create<T>(ReadOnlySpan<T> values)
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (4)
385ReadOnlySpan<byte> spanAssembly = ReadAllBytes(assembly); 392ReadOnlySpan<byte> spanSymbols = default; 405static ReadOnlySpan<byte> ReadAllBytes(Stream stream) 419return ReadOnlySpan<byte>.Empty;
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\libraries\System.Private.CoreLib\src\System\SByte.cs (22)
121public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 127public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 144public static sbyte Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 152public static bool TryParse(ReadOnlySpan<char> s, out sbyte result) => TryParse(s, NumberStyles.Integer, provider: null, out result); 158public static bool TryParse(ReadOnlySpan<byte> utf8Text, out sbyte result) => TryParse(utf8Text, NumberStyles.Integer, provider: null, out result); 172public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out sbyte result) 302/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 303static bool IBinaryInteger<sbyte>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out sbyte value) 355/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 356static bool IBinaryInteger<sbyte>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out sbyte value) 1297/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1298public static sbyte Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Integer, provider); 1300/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1301public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out sbyte result) => TryParse(s, NumberStyles.Integer, provider, out result); 1334/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1335public static sbyte Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 1341/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 1342public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out sbyte result) 1348/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 1349public static sbyte Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Integer, provider); 1351/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 1352public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out sbyte result) => TryParse(utf8Text, NumberStyles.Integer, provider, out result);
src\libraries\System.Private.CoreLib\src\System\SearchValues\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\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\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\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\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\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\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\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\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\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\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\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\libraries\System.Private.CoreLib\src\System\SearchValues\AsciiCharSearchValues.cs (7)
20public AsciiCharSearchValues(ReadOnlySpan<char> values) 47internal override int IndexOfAny(ReadOnlySpan<char> span) => 55internal override int IndexOfAnyExcept(ReadOnlySpan<char> span) => 63internal override int LastIndexOfAny(ReadOnlySpan<char> span) => 71internal override int LastIndexOfAnyExcept(ReadOnlySpan<char> span) => 79internal override bool ContainsAny(ReadOnlySpan<char> span) => 87internal override bool ContainsAnyExcept(ReadOnlySpan<char> span) =>
src\libraries\System.Private.CoreLib\src\System\SearchValues\BitmapCharSearchValues.cs (5)
15public BitmapCharSearchValues(ReadOnlySpan<char> values, int maxInclusive) 55internal override int IndexOfAny(ReadOnlySpan<char> span) => 59internal override int IndexOfAnyExcept(ReadOnlySpan<char> span) => 63internal override int LastIndexOfAny(ReadOnlySpan<char> span) => 67internal override int LastIndexOfAnyExcept(ReadOnlySpan<char> span) =>
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\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\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticMap.cs (11)
43public ProbabilisticMap(ReadOnlySpan<char> values) 94internal static bool Contains(ref uint charMap, ReadOnlySpan<char> values, int ch) => 100internal static bool Contains(ReadOnlySpan<char> values, char ch) => 297var valuesSpan = new ReadOnlySpan<char>(ref values, valuesLength); 315var valuesSpan = new ReadOnlySpan<char>(ref values, valuesLength); 329var valuesSpan = new ReadOnlySpan<char>(ref values, valuesLength); 347var valuesSpan = new ReadOnlySpan<char>(ref values, valuesLength); 362var valuesSpan = new ReadOnlySpan<char>(ref values, valuesLength); 375var valuesSpan = new ReadOnlySpan<char>(ref values, valuesLength); 974internal static int IndexOfAnySimpleLoop<TNegator>(ref char searchSpace, int searchSpaceLength, ReadOnlySpan<char> values) 995internal static int LastIndexOfAnySimpleLoop<TNegator>(ref char searchSpace, int searchSpaceLength, ReadOnlySpan<char> values)
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\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\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\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\libraries\System.Private.CoreLib\src\System\SearchValues\SearchValues.cs (5)
26public static SearchValues<byte> Create(params ReadOnlySpan<byte> values) 76public static SearchValues<char> Create(params ReadOnlySpan<char> values) 84ReadOnlySpan<short> shortValues = MemoryMarshal.Cast<char, short>(values); 232public static SearchValues<string> Create(ReadOnlySpan<string> values, StringComparison comparisonType) 242private static bool TryGetSingleRange<T>(ReadOnlySpan<T> values, out T minInclusive, out T maxInclusive)
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\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\AsciiStringSearchValuesTeddyBase.cs (15)
119protected AsciiStringSearchValuesTeddyBase(ReadOnlySpan<string> values, HashSet<string> uniqueValues, int n) : base(values, uniqueValues) 124ReadOnlySpan<object?>.CastUp(values).CopyTo(_buckets); 135protected AsciiStringSearchValuesTeddyBase(string[][] buckets, ReadOnlySpan<string> values, HashSet<string> uniqueValues, int n) : base(values, uniqueValues) 140((ReadOnlySpan<object?>)buckets).CopyTo(_buckets); 153protected int IndexOfAnyN2(ReadOnlySpan<char> span) 173protected int IndexOfAnyN3(ReadOnlySpan<char> span) 193private int IndexOfAnyN2Vector128(ReadOnlySpan<char> span) 248private int IndexOfAnyN2Avx2(ReadOnlySpan<char> span) 300private int IndexOfAnyN2Avx512(ReadOnlySpan<char> span) 353private int IndexOfAnyN3Vector128(ReadOnlySpan<char> span) 425private int IndexOfAnyN3Avx2(ReadOnlySpan<char> span) 480private int IndexOfAnyN3Avx512(ReadOnlySpan<char> span) 535private bool TryFindMatch(ReadOnlySpan<char> span, ref char searchSpace, Vector128<byte> result, int matchStartOffset, out int offsetFromStart) 583private bool TryFindMatch(ReadOnlySpan<char> span, ref char searchSpace, Vector256<byte> result, int matchStartOffset, out int offsetFromStart) 628private bool TryFindMatch(ReadOnlySpan<char> span, ref char searchSpace, Vector512<byte> result, int matchStartOffset, out int offsetFromStart)
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\AsciiStringSearchValuesTeddyBucketizedN2.cs (2)
15public AsciiStringSearchValuesTeddyBucketizedN2(string[][] buckets, ReadOnlySpan<string> values, HashSet<string> uniqueValues) 21internal override int IndexOfAnyMultiString(ReadOnlySpan<char> span) =>
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\AsciiStringSearchValuesTeddyBucketizedN3.cs (2)
15public AsciiStringSearchValuesTeddyBucketizedN3(string[][] buckets, ReadOnlySpan<string> values, HashSet<string> uniqueValues) 21internal override int IndexOfAnyMultiString(ReadOnlySpan<char> span) =>
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\AsciiStringSearchValuesTeddyNonBucketizedN2.cs (2)
15public AsciiStringSearchValuesTeddyNonBucketizedN2(ReadOnlySpan<string> values, HashSet<string> uniqueValues) 21internal override int IndexOfAnyMultiString(ReadOnlySpan<char> span) =>
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\AsciiStringSearchValuesTeddyNonBucketizedN3.cs (2)
15public AsciiStringSearchValuesTeddyNonBucketizedN3(ReadOnlySpan<string> values, HashSet<string> uniqueValues) 21internal override int IndexOfAnyMultiString(ReadOnlySpan<char> span) =>
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\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\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\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 int IndexOfAnyCaseInsensitiveUnicode(ReadOnlySpan<char> span)
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\StringSearchValuesHelper.cs (1)
26public static void ValidateReadPosition(ReadOnlySpan<char> span, ref char searchSpace, int offset = 0)
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 string[][] Bucketize(ReadOnlySpan<string> values, int bucketCount, int n)
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\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\SingleStringSearchValuesFallback.cs (1)
21internal override int IndexOfAnyMultiString(ReadOnlySpan<char> span) =>
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\SingleStringSearchValuesThreeChars.cs (1)
75internal override int IndexOfAnyMultiString(ReadOnlySpan<char> span) =>
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\StringSearchValues.cs (8)
26public static SearchValues<string> Create(ReadOnlySpan<string> values, bool ignoreCase) 117ReadOnlySpan<string> values, 173ReadOnlySpan<string> values, 247ReadOnlySpan<char> slice = value.AsSpan(0, n); 286ReadOnlySpan<string> values, 315private static bool TryGenerateAllCasePermutationsForPrefixes(ReadOnlySpan<string> values, int n, int maxValues, [NotNullWhen(true)] out string[]? newValues) 443ReadOnlySpan<string> values, 482private static bool ContainsIncompleteSurrogatePairs(ReadOnlySpan<string> values)
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\StringSearchValuesAhoCorasick.cs (1)
19internal override int IndexOfAnyMultiString(ReadOnlySpan<char> span) =>
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\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\libraries\System.Private.CoreLib\src\System\Security\SecureString.cs (2)
21Initialize(ReadOnlySpan<char>.Empty); 35private void Initialize(ReadOnlySpan<char> value)
src\libraries\System.Private.CoreLib\src\System\Security\SecurityElement.cs (1)
329ReadOnlySpan<char> span = str;
src\libraries\System.Private.CoreLib\src\System\Single.cs (19)
370public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 376public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 404public static float Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Float | NumberStyles.AllowThousands, IFormatProvider? provider = null) 412public static bool TryParse(ReadOnlySpan<char> s, out float result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider: null, out result); 416/// <param name="result">When this method returns, contains a single-precision floating-point number equivalent of the numeric value or symbol contained in <paramref name="utf8Text" /> if the conversion succeeded or zero if the conversion failed. The conversion fails if the <paramref name="utf8Text" /> is <see cref="ReadOnlySpan{T}.Empty" /> or is not in a valid format. This parameter is passed uninitialized; any value originally supplied in result will be overwritten.</param> 418public static bool TryParse(ReadOnlySpan<byte> utf8Text, out float result) => TryParse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider: null, out result); 432public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out float result) 1701/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1702public static float Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider); 1704/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1705public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out float result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider, out result); 2177/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 2178public static float Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Float | NumberStyles.AllowThousands, IFormatProvider? provider = null) 2184/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 2185public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out float result) 2191/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 2192public static float Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider); 2194/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 2195public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out float result) => TryParse(utf8Text, NumberStyles.Float | NumberStyles.AllowThousands, provider, out result);
src\libraries\System.Private.CoreLib\src\System\Span.cs (2)
355/// Defines an implicit conversion of a <see cref="Span{T}"/> to a <see cref="ReadOnlySpan{T}"/> 357public static implicit operator ReadOnlySpan<T>(Span<T> span) =>
src\libraries\System.Private.CoreLib\src\System\SpanDebugView.cs (1)
17public SpanDebugView(ReadOnlySpan<T> span)
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.BinarySearch.cs (1)
14ReadOnlySpan<T> span, TComparable comparable)
src\libraries\System.Private.CoreLib\src\System\StartupHookProvider.cs (1)
89ReadOnlySpan<char> disallowedSimpleAssemblyNameChars =
src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (8)
455internal static int CompareOrdinal(ReadOnlySpan<char> strA, ReadOnlySpan<char> strB) 774public static int GetHashCode(ReadOnlySpan<char> value) 783public static int GetHashCode(ReadOnlySpan<char> value, StringComparison comparisonType) 809internal static int GetHashCodeOrdinalIgnoreCase(ReadOnlySpan<char> value) 860internal static unsafe int GetNonRandomizedHashCode(ReadOnlySpan<char> span) 969internal static unsafe int GetNonRandomizedHashCodeOrdinalIgnoreCase(ReadOnlySpan<char> span) 1055private static unsafe int GetNonRandomizedHashCodeOrdinalIgnoreCaseSlow(uint hash1, uint hash2, ReadOnlySpan<char> str)
src\libraries\System.Private.CoreLib\src\System\String.cs (2)
309public extern String(ReadOnlySpan<char> value); 311private static string Ctor(ReadOnlySpan<char> value)
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (71)
80return Concat((ReadOnlySpan<object?>)args); 88public static string Concat(params ReadOnlySpan<object?> args) 149JoinCore(ReadOnlySpan<char>.Empty, values); 287public static string Concat(ReadOnlySpan<char> str0, ReadOnlySpan<char> str1) 304public static string Concat(ReadOnlySpan<char> str0, ReadOnlySpan<char> str1, ReadOnlySpan<char> str2) 326public static string Concat(ReadOnlySpan<char> str0, ReadOnlySpan<char> str1, ReadOnlySpan<char> str2, ReadOnlySpan<char> str3) 351internal static string Concat(ReadOnlySpan<char> str0, ReadOnlySpan<char> str1, ReadOnlySpan<char> str2, ReadOnlySpan<char> str3, ReadOnlySpan<char> str4) 382return Concat((ReadOnlySpan<string?>)values); 390public static string Concat(params ReadOnlySpan<string?> values) 452return copiedLength == totalLength ? result : Concat((ReadOnlySpan<string?>)values.ToArray()); 481return FormatHelper(null, format, (ReadOnlySpan<object?>)args); 490public static string Format([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> args) 521return FormatHelper(provider, format, (ReadOnlySpan<object?>)args); 532public static string Format(IFormatProvider? provider, [StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> args) 537private static string FormatHelper(IFormatProvider? provider, string format, ReadOnlySpan<object?> args) 622return Format(provider, format, (ReadOnlySpan<object?>)args); 635public static string Format(IFormatProvider? provider, CompositeFormat format, params ReadOnlySpan<object?> args) 648private static string Format<TArg0, TArg1, TArg2>(IFormatProvider? provider, CompositeFormat format, TArg0 arg0, TArg1 arg1, TArg2 arg2, ReadOnlySpan<object?> args) 739public static string Join(char separator, params ReadOnlySpan<string?> value) 764public static string Join(string? separator, params ReadOnlySpan<string?> value) 775private static string JoinCore(ReadOnlySpan<char> separator, string?[] value, int startIndex, int count) 840return JoinCore(new ReadOnlySpan<char>(in separator), (ReadOnlySpan<object?>)values); 853public static string Join(char separator, params ReadOnlySpan<object?> values) => 863return JoinCore(separator.AsSpan(), (ReadOnlySpan<object?>)values); 876public static string Join(string? separator, params ReadOnlySpan<object?> values) => 879private static string JoinCore(ReadOnlySpan<char> separator, ReadOnlySpan<object?> values) 916private static string JoinCore<T>(ReadOnlySpan<char> separator, IEnumerable<T> values) 1035private static string JoinCore(ReadOnlySpan<char> separator, ReadOnlySpan<string?> values) 1220private static string? ReplaceCore(ReadOnlySpan<char> searchSpace, ReadOnlySpan<char> oldValue, ReadOnlySpan<char> newValue, CompareInfo compareInfo, CompareOptions options) 1411private string ReplaceHelper(int oldValueLength, string newValue, ReadOnlySpan<int> indices) 1527ReadOnlySpan<char> firstSegment = this.AsSpan(0, idxOfFirstNewlineChar); 1528ReadOnlySpan<char> remaining = this.AsSpan(idxOfFirstNewlineChar + stride); 1547private static int IndexOfNewlineChar(ReadOnlySpan<char> text, string replacementText, out int stride) 1617ReadOnlySpan<char> remaining = this.AsSpan(idxOfFirstNewlineChar + stride); 1665public string[] Split(params ReadOnlySpan<char> separator) 1696private string[] SplitInternal(ReadOnlySpan<char> separators, int count, StringSplitOptions options) 1720ReadOnlySpan<int> sepList = sepListBuilder.AsSpan(); 1769return SplitInternal(default(ReadOnlySpan<char>), count, options); 1797ReadOnlySpan<int> sepList = sepListBuilder.AsSpan(); 1798ReadOnlySpan<int> lengthList = lengthListBuilder.AsSpan(); 1843ReadOnlySpan<int> sepList = sepListBuilder.AsSpan(); 1860private string[] SplitWithoutPostProcessing(ReadOnlySpan<int> sepList, ReadOnlySpan<int> lengthList, int defaultLength, int count) 1897private string[] SplitWithPostProcessing(ReadOnlySpan<int> sepList, ReadOnlySpan<int> lengthList, int defaultLength, int count, StringSplitOptions options) 1912ReadOnlySpan<char> thisEntry; 1974/// <param name="separators"><see cref="ReadOnlySpan{T}"/> of separator chars</param> 1976internal static void MakeSeparatorListAny(ReadOnlySpan<char> source, ReadOnlySpan<char> separators, ref ValueListBuilder<int> sepListBuilder) 2030private static void MakeSeparatorListVectorized(ReadOnlySpan<char> sourceSpan, ref ValueListBuilder<int> sepListBuilder, char c, char c2, char c3) 2148internal static void MakeSeparatorList(ReadOnlySpan<char> source, ReadOnlySpan<char> separator, ref ValueListBuilder<int> sepListBuilder) 2176internal static void MakeSeparatorListAny(ReadOnlySpan<char> source, ReadOnlySpan<string?> separators, ref ValueListBuilder<int> sepListBuilder, ref ValueListBuilder<int> lengthListBuilder) 2369public unsafe string Trim(params ReadOnlySpan<char> trimChars) 2410public unsafe string TrimStart(params ReadOnlySpan<char> trimChars) 2451public unsafe string TrimEnd(params ReadOnlySpan<char> trimChars)
src\libraries\System.Private.CoreLib\src\System\StringComparer.cs (28)
215public sealed class CultureAwareComparer : StringComparer, IAlternateEqualityComparer<ReadOnlySpan<char>, string?>, ISerializable 275int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.GetHashCode(ReadOnlySpan<char> span) => 278bool IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Equals(ReadOnlySpan<char> span, string? target) 289string IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Create(ReadOnlySpan<char> span) => 323public class OrdinalComparer : StringComparer, IAlternateEqualityComparer<ReadOnlySpan<char>, string?> 382bool IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Equals(ReadOnlySpan<char> span, string? target) 403int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.GetHashCode(ReadOnlySpan<char> span) => 408string IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Create(ReadOnlySpan<char> span) => 435internal sealed class OrdinalCaseSensitiveComparer : OrdinalComparer, ISerializable, IAlternateEqualityComparer<ReadOnlySpan<char>, string?> 456bool IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Equals(ReadOnlySpan<char> span, string? target) 467int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.GetHashCode(ReadOnlySpan<char> span) => 470string IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Create(ReadOnlySpan<char> span) => 481internal sealed class OrdinalIgnoreCaseComparer : OrdinalComparer, IAlternateEqualityComparer<ReadOnlySpan<char>, string?>, ISerializable 538bool IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Equals(ReadOnlySpan<char> span, string? target) 549int IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.GetHashCode(ReadOnlySpan<char> span) => 552string IAlternateEqualityComparer<ReadOnlySpan<char>, string?>.Create(ReadOnlySpan<char> span) =>
src\libraries\System.Private.CoreLib\src\System\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\libraries\System.Private.CoreLib\src\System\Text\Ascii.CaseConversion.cs (9)
27public static OperationStatus ToUpper(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 40public static OperationStatus ToUpper(ReadOnlySpan<char> source, Span<char> destination, out int charsWritten) 52public static OperationStatus ToUpper(ReadOnlySpan<byte> source, Span<char> destination, out int charsWritten) 64public static OperationStatus ToUpper(ReadOnlySpan<char> source, Span<byte> destination, out int bytesWritten) 77public static OperationStatus ToLower(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 90public static OperationStatus ToLower(ReadOnlySpan<char> source, Span<char> destination, out int charsWritten) 102public static OperationStatus ToLower(ReadOnlySpan<byte> source, Span<char> destination, out int charsWritten) 114public static OperationStatus ToLower(ReadOnlySpan<char> source, Span<byte> destination, out int bytesWritten) 157private static unsafe OperationStatus ChangeCase<TFrom, TTo, TCasing>(ReadOnlySpan<TFrom> source, Span<TTo> destination, out int destinationElementsWritten)
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.cs (2)
21public static bool IsValid(ReadOnlySpan<byte> value) => 31public static bool IsValid(ReadOnlySpan<char> value) =>
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Equality.cs (28)
23public static bool Equals(ReadOnlySpan<byte> left, ReadOnlySpan<byte> right) 27/// <inheritdoc cref="Equals(ReadOnlySpan{byte}, ReadOnlySpan{byte})"/> 28public static bool Equals(ReadOnlySpan<byte> left, ReadOnlySpan<char> right) 32/// <inheritdoc cref="Equals(ReadOnlySpan{byte}, ReadOnlySpan{char})"/> 33public static bool Equals(ReadOnlySpan<char> left, ReadOnlySpan<byte> right) 36/// <inheritdoc cref="Equals(ReadOnlySpan{byte}, ReadOnlySpan{char})"/> 37public static bool Equals(ReadOnlySpan<char> left, ReadOnlySpan<char> right) 174public static bool EqualsIgnoreCase(ReadOnlySpan<byte> left, ReadOnlySpan<byte> right) 178/// <inheritdoc cref="EqualsIgnoreCase(ReadOnlySpan{byte}, ReadOnlySpan{byte})"/> 179public static bool EqualsIgnoreCase(ReadOnlySpan<byte> left, ReadOnlySpan<char> right) 183/// <inheritdoc cref="EqualsIgnoreCase(ReadOnlySpan{byte}, ReadOnlySpan{byte})"/> 184public static bool EqualsIgnoreCase(ReadOnlySpan<char> left, ReadOnlySpan<byte> right) 187/// <inheritdoc cref="EqualsIgnoreCase(ReadOnlySpan{byte}, ReadOnlySpan{byte})"/> 188public static bool EqualsIgnoreCase(ReadOnlySpan<char> left, ReadOnlySpan<char> right)
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\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\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (9)
140public override unsafe int GetByteCount(ReadOnlySpan<char> chars) 314public override unsafe int GetBytes(ReadOnlySpan<char> chars, Span<byte> bytes) 326public override unsafe bool TryGetBytes(ReadOnlySpan<char> chars, Span<byte> bytes, out int bytesWritten) 381private protected sealed override int GetBytesWithFallback(ReadOnlySpan<char> chars, int originalCharsLength, Span<byte> bytes, int originalBytesLength, EncoderNLS? encoder, bool throwForDestinationOverflow = true) 482public override unsafe int GetCharCount(ReadOnlySpan<byte> bytes) 605public override unsafe int GetChars(ReadOnlySpan<byte> bytes, Span<char> chars) 617public override unsafe bool TryGetChars(ReadOnlySpan<byte> bytes, Span<char> chars, out int charsWritten) 670private protected sealed override int GetCharsWithFallback(ReadOnlySpan<byte> bytes, int originalBytesLength, Span<char> chars, int originalCharsLength, DecoderNLS? decoder, bool throwForDestinationOverflow = true) 801internal sealed override OperationStatus DecodeFirstRune(ReadOnlySpan<byte> bytes, out Rune value, out int bytesConsumed)
src\libraries\System.Private.CoreLib\src\System\Text\CompositeFormat.cs (3)
112private static 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\libraries\System.Private.CoreLib\src\System\Text\Decoder.cs (3)
110public virtual unsafe int GetCharCount(ReadOnlySpan<byte> bytes, bool flush) 196public virtual unsafe int GetChars(ReadOnlySpan<byte> bytes, Span<char> chars, bool flush) 302public virtual unsafe void Convert(ReadOnlySpan<byte> bytes, Span<char> chars, bool flush, out int bytesUsed, out int charsUsed, out bool completed)
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\libraries\System.Private.CoreLib\src\System\Text\DecoderNLS.cs (6)
205internal ReadOnlySpan<byte> GetLeftoverData() => 208internal void SetLeftoverData(ReadOnlySpan<byte> bytes) 221internal int DrainLeftoverDataForGetCharCount(ReadOnlySpan<byte> bytes, out int bytesConsumed) 277internal int DrainLeftoverDataForGetChars(ReadOnlySpan<byte> bytes, Span<char> chars, out int bytesConsumed) 376private static int ConcatInto(ReadOnlySpan<byte> srcLeft, ReadOnlySpan<byte> srcRight, Span<byte> dest)
src\libraries\System.Private.CoreLib\src\System\Text\Encoder.cs (3)
108public virtual unsafe int GetByteCount(ReadOnlySpan<char> chars, bool flush) 193public virtual unsafe int GetBytes(ReadOnlySpan<char> chars, Span<byte> bytes, bool flush) 301public virtual unsafe void Convert(ReadOnlySpan<char> chars, Span<byte> bytes, bool flush, out int charsUsed, out int bytesUsed, out bool completed)
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\libraries\System.Private.CoreLib\src\System\Text\EncoderLatin1BestFitFallback.Data.cs (1)
9private static ReadOnlySpan<char> ArrayCharBestFit =>
src\libraries\System.Private.CoreLib\src\System\Text\EncoderNLS.cs (2)
234internal int DrainLeftoverDataForGetByteCount(ReadOnlySpan<char> chars, out int charsConsumed) 312internal bool TryDrainLeftoverDataForGetBytes(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsConsumed, out int bytesWritten)
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\libraries\System.Private.CoreLib\src\System\Text\Encoding.Internal.cs (14)
73internal virtual OperationStatus DecodeFirstRune(ReadOnlySpan<byte> bytes, out Rune value, out int bytesConsumed) 246/// after data has been drained, then to call <see cref="GetByteCountWithFallback(ReadOnlySpan{char}, int, EncoderNLS)"/>. 263ReadOnlySpan<char> chars = new ReadOnlySpan<char>(pOriginalChars, originalCharCount).Slice(charsConsumedSoFar); 310private protected virtual unsafe int GetByteCountWithFallback(ReadOnlySpan<char> chars, int originalCharsLength, EncoderNLS? encoder) 512/// after data has been drained, then to call <see cref="GetBytesWithFallback(ReadOnlySpan{char}, int, Span{byte}, int, EncoderNLS, bool)"/>. 531ReadOnlySpan<char> chars = new ReadOnlySpan<char>(pOriginalChars, originalCharCount).Slice(charsConsumedSoFar); 586private protected virtual unsafe int GetBytesWithFallback(ReadOnlySpan<char> chars, int originalCharsLength, Span<byte> bytes, int originalBytesLength, EncoderNLS? encoder, bool throwForDestinationOverflow = true) 616chars = ReadOnlySpan<char>.Empty; 840/// after data has been drained, then to call <see cref="GetCharCountWithFallback(ReadOnlySpan{byte}, int, DecoderNLS)"/>. 857ReadOnlySpan<byte> bytes = new ReadOnlySpan<byte>(pOriginalBytes, originalByteCount).Slice(bytesConsumedSoFar); 910private unsafe int GetCharCountWithFallback(ReadOnlySpan<byte> bytes, int originalBytesLength, DecoderNLS? decoder) 1133ReadOnlySpan<byte> bytes = new ReadOnlySpan<byte>(pOriginalBytes, originalByteCount).Slice(bytesConsumedSoFar); 1187private protected virtual unsafe int GetCharsWithFallback(ReadOnlySpan<byte> bytes, int originalBytesLength, Span<char> chars, int originalCharsLength, DecoderNLS? decoder, bool throwForDestinationOverflow = true) 1218bytes = ReadOnlySpan<byte>.Empty;
src\libraries\System.Private.CoreLib\src\System\Text\EncodingData.cs (6)
68private static ReadOnlySpan<int> EncodingNameIndices => 122private static ReadOnlySpan<ushort> CodePagesByName => 178private static ReadOnlySpan<ushort> MappedCodePages => 193private static ReadOnlySpan<int> UiFamilyCodePages => 227private static ReadOnlySpan<int> WebNameIndices => 247private static ReadOnlySpan<uint> Flags =>
src\libraries\System.Private.CoreLib\src\System\Text\EncodingTable.cs (5)
60ReadOnlySpan<char> invariantName = name.ToLowerInvariant().AsSpan(); 110ReadOnlySpan<ushort> mappedCodePages = MappedCodePages; 113ReadOnlySpan<int> webNameIndices = WebNameIndices; 138ReadOnlySpan<ushort> mappedCodePages = MappedCodePages; 140ReadOnlySpan<int> webNameIndices = WebNameIndices;
src\libraries\System.Private.CoreLib\src\System\Text\Latin1Encoding.cs (8)
26public override ReadOnlySpan<byte> Preamble => default; 79public override unsafe int GetByteCount(ReadOnlySpan<char> chars) 226public override unsafe int GetBytes(ReadOnlySpan<char> chars, Span<byte> bytes) 238public override unsafe bool TryGetBytes(ReadOnlySpan<char> chars, Span<byte> bytes, out int bytesWritten) 378public override int GetCharCount(ReadOnlySpan<byte> bytes) 521public override unsafe int GetChars(ReadOnlySpan<byte> bytes, Span<char> chars) 533public override unsafe bool TryGetChars(ReadOnlySpan<byte> bytes, Span<char> chars, out int charsWritten) 685internal sealed override OperationStatus DecodeFirstRune(ReadOnlySpan<byte> bytes, out Rune value, out int bytesConsumed)
src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (10)
54private static ReadOnlySpan<byte> AsciiCharInfo => 322public static OperationStatus DecodeFromUtf16(ReadOnlySpan<char> source, out Rune result, out int charsConsumed) 406public static OperationStatus DecodeFromUtf8(ReadOnlySpan<byte> source, out Rune result, out int bytesConsumed) 569/// This method is very similar to <see cref="DecodeFromUtf16(ReadOnlySpan{char}, out Rune, out int)"/>, but it allows 574public static OperationStatus DecodeLastFromUtf16(ReadOnlySpan<char> source, out Rune result, out int charsConsumed) 629/// This method is very similar to <see cref="DecodeFromUtf8(ReadOnlySpan{byte}, out Rune, out int)"/>, but it allows 634public static OperationStatus DecodeLastFromUtf8(ReadOnlySpan<byte> source, out Rune value, out int bytesConsumed) 817internal static int ReadFirstRuneFromUtf16Buffer(ReadOnlySpan<char> input) 931bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) => 934bool IUtf8SpanFormattable.TryFormat(Span<byte> utf8Destination, out int bytesWritten, ReadOnlySpan<char> format, IFormatProvider? provider) =>
src\libraries\System.Private.CoreLib\src\System\Text\SpanLineEnumerator.cs (7)
7/// Enumerates the lines of a <see cref="ReadOnlySpan{Char}"/>. 10/// To get an instance of this type, use <see cref="MemoryExtensions.EnumerateLines(ReadOnlySpan{char})"/>. 14private ReadOnlySpan<char> _remaining; 15private ReadOnlySpan<char> _current; 18internal SpanLineEnumerator(ReadOnlySpan<char> buffer) 28public ReadOnlySpan<char> Current => _current; 49ReadOnlySpan<char> remaining = _remaining;
src\libraries\System.Private.CoreLib\src\System\Text\SpanRuneEnumerator.cs (2)
10private ReadOnlySpan<char> _remaining; 13internal SpanRuneEnumerator(ReadOnlySpan<char> buffer)
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (36)
935private StringBuilder Insert(int index, ReadOnlySpan<char> value, int count) 1094public StringBuilder Append(ReadOnlySpan<char> value) 1144public StringBuilder AppendJoin(string? separator, params ReadOnlySpan<object?> values) 1179public StringBuilder AppendJoin(string? separator, params ReadOnlySpan<string?> values) 1192return AppendJoinCore(ref separator, 1, (ReadOnlySpan<object?>)values); 1202public StringBuilder AppendJoin(char separator, params ReadOnlySpan<object?> values) => 1222return AppendJoinCore(ref separator, 1, (ReadOnlySpan<string?>)values); 1232public StringBuilder AppendJoin(char separator, params ReadOnlySpan<string?> values) => 1267private StringBuilder AppendJoinCore<T>(ref char separator, int separatorLength, ReadOnlySpan<T> values) 1397public StringBuilder Insert(int index, ReadOnlySpan<char> value) 1435return AppendFormat(null, format, (ReadOnlySpan<object?>)two); 1441return AppendFormat(null, format, (ReadOnlySpan<object?>)three); 1470public StringBuilder AppendFormat([StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> args) 1483return AppendFormat(provider, format, (ReadOnlySpan<object?>)two); 1489return AppendFormat(provider, format, (ReadOnlySpan<object?>)three); 1501return AppendFormat(provider, format, (ReadOnlySpan<object?>)args); 1519public StringBuilder AppendFormat(IFormatProvider? provider, [StringSyntax(StringSyntaxAttribute.CompositeFormat)] string format, params ReadOnlySpan<object?> args) 1546ReadOnlySpan<char> remainder = format.AsSpan(pos); 1584ReadOnlySpan<char> itemFormatSpan = default; // used if itemFormat is null 1866return AppendFormat(provider, format, (ReadOnlySpan<object?>)args); 1879public StringBuilder AppendFormat(IFormatProvider? provider, CompositeFormat format, params ReadOnlySpan<object?> args) 1892private StringBuilder AppendFormat<TArg0, TArg1, TArg2>(IFormatProvider? provider, CompositeFormat format, TArg0 arg0, TArg1 arg1, TArg2 arg2, ReadOnlySpan<object?> args) 1953public StringBuilder Replace(ReadOnlySpan<char> oldValue, ReadOnlySpan<char> newValue) => Replace(oldValue, newValue, 0, Length); 2020/// Determines if the contents of this builder are equal to the contents of <see cref="ReadOnlySpan{Char}"/>. 2022/// <param name="span">The <see cref="ReadOnlySpan{Char}"/>.</param> 2023public bool Equals(ReadOnlySpan<char> span) 2038ReadOnlySpan<char> chunk = new ReadOnlySpan<char>(sbChunk.m_ChunkChars, 0, chunk_length); 2080public StringBuilder Replace(ReadOnlySpan<char> oldValue, ReadOnlySpan<char> newValue, int startIndex, int count) 2109ReadOnlySpan<char> remainingChunk = chunk.m_ChunkChars.AsSpan(indexInChunk, Math.Min(chunk.m_ChunkLength - indexInChunk, count)); 2357private void ReplaceAllInChunk(ReadOnlySpan<int> replacements, StringBuilder sourceChunk, int removeCount, ReadOnlySpan<char> value) 2421private bool StartsWith(StringBuilder chunk, int indexInChunk, int count, ReadOnlySpan<char> value) 3045public void AppendFormatted(ReadOnlySpan<char> value) => _stringBuilder.Append(value); 3051public void AppendFormatted(ReadOnlySpan<char> value, int alignment = 0, string? format = null)
src\libraries\System.Private.CoreLib\src\System\Text\TranscodingStream.cs (1)
475public override void Write(ReadOnlySpan<byte> buffer)
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\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8.cs (5)
47public static unsafe OperationStatus FromUtf16(ReadOnlySpan<char> source, Span<byte> destination, out int charsRead, out int bytesWritten, bool replaceInvalidSequences = true, bool isFinalBlock = true) 133public static unsafe OperationStatus ToUtf16(ReadOnlySpan<byte> source, Span<char> destination, out int bytesRead, out int charsWritten, bool replaceInvalidSequences = true, bool isFinalBlock = true) 219internal static unsafe OperationStatus ToUtf16PreservingReplacement(ReadOnlySpan<byte> source, Span<char> destination, out int bytesRead, out int charsWritten, bool replaceInvalidSequences = true, bool isFinalBlock = true) 814/// <param name="value">The <see cref="ReadOnlySpan{T}"/> string.</param> 816public static bool IsValid(ReadOnlySpan<byte> value) =>
src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8Utility.cs (1)
26public static unsafe int GetIndexOfFirstInvalidUtf8Sequence(ReadOnlySpan<byte> utf8Data, out bool isAscii)
src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (1)
1739public override ReadOnlySpan<byte> Preamble =>
src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (1)
1131public override ReadOnlySpan<byte> Preamble =>
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\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (10)
64internal static ReadOnlySpan<byte> PreambleSpan => [0xEF, 0xBB, 0xBF]; 190public override unsafe int GetByteCount(ReadOnlySpan<char> chars) 361public override unsafe int GetBytes(ReadOnlySpan<char> chars, Span<byte> bytes) 373public override unsafe bool TryGetBytes(ReadOnlySpan<char> chars, Span<byte> bytes, out int bytesWritten) 483public override unsafe int GetCharCount(ReadOnlySpan<byte> bytes) 556public override unsafe int GetChars(ReadOnlySpan<byte> bytes, Span<char> chars) 568public override unsafe bool TryGetChars(ReadOnlySpan<byte> bytes, Span<char> chars, out int charsWritten) 634private protected sealed override int GetCharsWithFallback(ReadOnlySpan<byte> bytes, int originalBytesLength, Span<char> chars, int originalCharsLength, DecoderNLS? decoder, bool throwForDestinationOverflow = true) 785internal sealed override OperationStatus DecodeFirstRune(ReadOnlySpan<byte> bytes, out Rune value, out int bytesConsumed) 872public override ReadOnlySpan<byte> Preamble =>
src\libraries\System.Private.CoreLib\src\System\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\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\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (3)
875return CreateLinkedTokenSource((ReadOnlySpan<CancellationToken>)tokens); 884public static CancellationTokenSource CreateLinkedTokenSource(params ReadOnlySpan<CancellationToken> tokens) 952internal LinkedNCancellationTokenSource(ReadOnlySpan<CancellationToken> tokens)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (23)
4735public static void WaitAll(params ReadOnlySpan<Task> tasks) 4943ReadOnlySpan<Task> span = 4954private static bool WaitAllCore(ReadOnlySpan<Task> tasks, int millisecondsTimeout, CancellationToken cancellationToken) 5945return WhenAll((ReadOnlySpan<Task>)taskArray); 6006return WhenAll((ReadOnlySpan<Task>)tasks); 6031public static Task WhenAll(params ReadOnlySpan<Task> tasks) => 6040internal WhenAllPromise(ReadOnlySpan<Task> tasks) 6329return WhenAll((ReadOnlySpan<Task<TResult>>)tasks); 6360public static Task<TResult[]> WhenAll<TResult>(params ReadOnlySpan<Task<TResult>> tasks) 6516return WhenAnyCore((ReadOnlySpan<Task>)tasks); 6531public static Task<Task> WhenAny(params ReadOnlySpan<Task> tasks) => 6546private static Task<TTask> WhenAnyCore<TTask>(ReadOnlySpan<TTask> tasks) where TTask : Task 6729return WhenAnyCore((ReadOnlySpan<TTask>)CollectionsMarshal.AsSpan(Unsafe.As<List<TTask>>(tasks))); 6733return WhenAnyCore((ReadOnlySpan<TTask>)tasksAsArray); 6802return WhenAnyCore((ReadOnlySpan<Task<TResult>>)tasks); 6818public static Task<Task<TResult>> WhenAny<TResult>(params ReadOnlySpan<Task<TResult>> tasks) => 6869return WhenEach((ReadOnlySpan<Task>)tasks); 6874public static IAsyncEnumerable<Task> WhenEach(params ReadOnlySpan<Task> tasks) => // TODO https://github.com/dotnet/runtime/issues/77873: Add params 6888return WhenEach((ReadOnlySpan<Task<TResult>>)tasks); 6894public static IAsyncEnumerable<Task<TResult>> WhenEach<TResult>(params ReadOnlySpan<Task<TResult>> tasks) => // TODO https://github.com/dotnet/runtime/issues/77873: Add params 6895WhenEachState.Iterate<Task<TResult>>(WhenEachState.Create(ReadOnlySpan<Task>.CastUp(tasks))); 6944public static WhenEachState? Create(ReadOnlySpan<Task> tasks) 6966/// <inheritdoc cref="Create(ReadOnlySpan{Task})"/>
src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandle.cs (6)
238ReadOnlySpan<WaitHandle> waitHandles, 297private static int WaitMultiple(ReadOnlySpan<WaitHandle> waitHandles, bool waitAll, int millisecondsTimeout) 360private static int WaitAnyMultiple(ReadOnlySpan<SafeWaitHandle> safeWaitHandles, int millisecondsTimeout) 399internal static int WaitMultipleIgnoringSyncContext(ReadOnlySpan<IntPtr> handles, bool waitAll, int millisecondsTimeout) 520internal static int WaitAny(ReadOnlySpan<SafeWaitHandle> safeWaitHandles, int millisecondsTimeout) => 522internal static int WaitAny(ReadOnlySpan<WaitHandle> waitHandles, int millisecondsTimeout) =>
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
618internal static void ThrowFormatException_BadBoolean(ReadOnlySpan<char> value)
src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (27)
455/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 456public static TimeOnly Parse(ReadOnlySpan<char> s, IFormatProvider? provider = default, DateTimeStyles style = DateTimeStyles.None) 479public static TimeOnly ParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] ReadOnlySpan<char> format, IFormatProvider? provider = default, DateTimeStyles style = DateTimeStyles.None) 497public static TimeOnly ParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] string[] formats) => ParseExact(s, formats, null, DateTimeStyles.None); 508public static TimeOnly ParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] string[] formats, IFormatProvider? provider, DateTimeStyles style = DateTimeStyles.None) 594public static bool TryParse(ReadOnlySpan<char> s, out TimeOnly result) => TryParse(s, null, DateTimeStyles.None, out result); 604/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 605public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, DateTimeStyles style, out TimeOnly result) => 607private static ParseFailureKind TryParseInternal(ReadOnlySpan<char> s, IFormatProvider? provider, DateTimeStyles style, out TimeOnly result) 643public static bool TryParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] ReadOnlySpan<char> format, out TimeOnly result) => TryParseExact(s, format, null, DateTimeStyles.None, out result); 655public static bool TryParseExact(ReadOnlySpan<char> s, [StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] ReadOnlySpan<char> format, IFormatProvider? provider, DateTimeStyles style, out TimeOnly result) => 658private static ParseFailureKind TryParseExactInternal(ReadOnlySpan<char> s, ReadOnlySpan<char> format, IFormatProvider? provider, DateTimeStyles style, out TimeOnly result) 708public static bool TryParseExact(ReadOnlySpan<char> s, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] string?[]? formats, out TimeOnly result) => TryParseExact(s, formats, null, DateTimeStyles.None, out result); 719public static bool TryParseExact(ReadOnlySpan<char> s, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] string?[]? formats, IFormatProvider? provider, DateTimeStyles style, out TimeOnly result) => 722private static ParseFailureKind TryParseExactInternal(ReadOnlySpan<char> s, string?[]? formats, IFormatProvider? provider, DateTimeStyles style, out TimeOnly result) 860private static void ThrowOnError(ParseFailureKind result, ReadOnlySpan<char> s) 957public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) => 961public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) => 964private bool TryFormatCore<TChar>(Span<TChar> destination, out int written, [StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] ReadOnlySpan<char> format, IFormatProvider? provider) where TChar : unmanaged, IUtfChar<TChar> 1012/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1013public static TimeOnly Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, provider, DateTimeStyles.None); 1015/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1016public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out TimeOnly result) => TryParse(s, provider, DateTimeStyles.None, out result);
src\libraries\System.Private.CoreLib\src\System\TimeSpan.cs (14)
742public static TimeSpan Parse(ReadOnlySpan<char> input, IFormatProvider? formatProvider = null) => TimeSpanParse.Parse(input, formatProvider); 765public static TimeSpan ParseExact(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.TimeSpanFormat)] ReadOnlySpan<char> format, IFormatProvider? formatProvider, TimeSpanStyles styles = TimeSpanStyles.None) 776public static TimeSpan ParseExact(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.TimeSpanFormat)] string[] formats, IFormatProvider? formatProvider, TimeSpanStyles styles = TimeSpanStyles.None) 790public static bool TryParse(ReadOnlySpan<char> s, out TimeSpan result) => TimeSpanParse.TryParse(s, null, out result); 801public static bool TryParse(ReadOnlySpan<char> input, IFormatProvider? formatProvider, out TimeSpan result) => TimeSpanParse.TryParse(input, formatProvider, out result); 812public static bool TryParseExact(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.TimeSpanFormat)] ReadOnlySpan<char> format, IFormatProvider? formatProvider, out TimeSpan result) 824public static bool TryParseExact(ReadOnlySpan<char> input, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.TimeSpanFormat)] string?[]? formats, IFormatProvider? formatProvider, out TimeSpan result) 839public static bool TryParseExact(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.TimeSpanFormat)] ReadOnlySpan<char> format, IFormatProvider? formatProvider, TimeSpanStyles styles, out TimeSpan result) 856public static bool TryParseExact(ReadOnlySpan<char> input, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.TimeSpanFormat)] string?[]? formats, IFormatProvider? formatProvider, TimeSpanStyles styles, out TimeSpan result) 865public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.TimeSpanFormat)] ReadOnlySpan<char> format = default, IFormatProvider? formatProvider = null) 869public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.TimeSpanFormat)] ReadOnlySpan<char> format = default, IFormatProvider? formatProvider = null)
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (40)
703out ReadOnlySpan<char> standardOffset, 704out ReadOnlySpan<char> daylightSavingsName, 705out ReadOnlySpan<char> daylightSavingsOffset, 706out ReadOnlySpan<char> start, 707out ReadOnlySpan<char> startTime, 708out ReadOnlySpan<char> end, 709out ReadOnlySpan<char> endTime)) 771private static TimeSpan? TZif_ParseOffsetString(ReadOnlySpan<char> offset) 809private static DateTime ParseTimeOfDay(ReadOnlySpan<char> time) 840private static TransitionTime? TZif_CreateTransitionTimeFromPosixRule(ReadOnlySpan<char> date, ReadOnlySpan<char> time) 921private static void TZif_ParseJulianDay(ReadOnlySpan<char> date, out int month, out int day) 944ReadOnlySpan<int> days = GregorianCalendar.DaysToMonth365; 969private static bool TZif_ParseMDateRule(ReadOnlySpan<char> dateRule, out int month, out int week, out DayOfWeek dayOfWeek) 976ReadOnlySpan<char> weekDaySpan = dateRule.Slice(monthWeekDotIndex + 1); 998ReadOnlySpan<char> posixFormat, 999out ReadOnlySpan<char> standardName, 1000out ReadOnlySpan<char> standardOffset, 1001out ReadOnlySpan<char> daylightSavingsName, 1002out ReadOnlySpan<char> daylightSavingsOffset, 1003out ReadOnlySpan<char> start, 1004out ReadOnlySpan<char> startTime, 1005out ReadOnlySpan<char> end, 1006out ReadOnlySpan<char> endTime) 1039private static ReadOnlySpan<char> TZif_ParsePosixName(ReadOnlySpan<char> posixFormat, scoped ref int index) 1047ReadOnlySpan<char> result = TZif_ParsePosixString(posixFormat, ref index, c => c == '>'); 1066private static ReadOnlySpan<char> TZif_ParsePosixOffset(ReadOnlySpan<char> posixFormat, scoped ref int index) => 1069private static void TZif_ParsePosixDateTime(ReadOnlySpan<char> posixFormat, scoped ref int index, out ReadOnlySpan<char> date, out ReadOnlySpan<char> time) 1081private static ReadOnlySpan<char> TZif_ParsePosixDate(ReadOnlySpan<char> posixFormat, scoped ref int index) => 1084private static ReadOnlySpan<char> TZif_ParsePosixTime(ReadOnlySpan<char> posixFormat, scoped ref int index) => 1087private static ReadOnlySpan<char> TZif_ParsePosixString(ReadOnlySpan<char> posixFormat, scoped ref int index, Func<char, bool> breakCondition) 1114private static short TZif_ToInt16(ReadOnlySpan<byte> value) 1124private static int TZif_ToInt32(ReadOnlySpan<byte> value)
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (2)
54private static ReadOnlySpan<byte> AsciiBitmap => [0x00, 0x00, 0x00, 0x00, 0x00, 0xA8, 0xFF, 0x03, 0xFE, 0xFF, 0xFF, 0x87, 0xFE, 0xFF, 0xFF, 0x07]; 265ReadOnlySpan<char> direntName = dirent.GetName(stackalloc char[Interop.Sys.DirectoryEntry.NameBufferSize]);
src\libraries\System.Private.CoreLib\src\System\Type.Helpers.cs (2)
501ReadOnlySpan<char> str = filterCriteriaString.AsSpan().Trim(); 502ReadOnlySpan<char> name = m.Name;
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (6)
120public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 126public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 143public static UInt128 Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 151public static bool TryParse(ReadOnlySpan<char> s, out UInt128 result) => TryParse(s, NumberStyles.Integer, provider: null, out result); 157public static bool TryParse(ReadOnlySpan<byte> utf8Text, out UInt128 result) => TryParse(utf8Text, NumberStyles.Integer, provider: null, out result); 171public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out UInt128 result)
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (22)
113public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 119public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 136public static ushort Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 144public static bool TryParse(ReadOnlySpan<char> s, out ushort result) => TryParse(s, NumberStyles.Integer, provider: null, out result); 150public static bool TryParse(ReadOnlySpan<byte> utf8Text, out ushort result) => TryParse(utf8Text, NumberStyles.Integer, provider: null, out result); 164public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out ushort result) 293/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 294static bool IBinaryInteger<ushort>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out ushort value) 343/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 344static bool IBinaryInteger<ushort>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out ushort value) 1149/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1150public static ushort Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Integer, provider); 1152/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1153public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out ushort result) => TryParse(s, NumberStyles.Integer, provider, out result); 1186/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1187public static ushort Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 1193/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 1194public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out ushort result) 1200/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 1201public static ushort Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Integer, provider); 1203/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 1204public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out ushort result) => TryParse(utf8Text, NumberStyles.Integer, provider, out result);
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (22)
129public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 135public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 152public static uint Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 160public static bool TryParse(ReadOnlySpan<char> s, out uint result) => TryParse(s, NumberStyles.Integer, provider: null, out result); 166public static bool TryParse(ReadOnlySpan<byte> utf8Text, out uint result) => TryParse(utf8Text, NumberStyles.Integer, provider: null, out result); 180public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out uint result) 314/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 315static bool IBinaryInteger<uint>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out uint value) 371/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 372static bool IBinaryInteger<uint>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out uint value) 1194/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1195public static uint Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Integer, provider); 1197/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1198public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out uint result) => TryParse(s, NumberStyles.Integer, provider, out result); 1231/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1232public static uint Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 1238/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 1239public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out uint result) 1245/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 1246public static uint Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Integer, provider); 1248/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 1249public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out uint result) => TryParse(utf8Text, NumberStyles.Integer, provider, out result);
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (22)
128public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 134public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 151public static ulong Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 159public static bool TryParse(ReadOnlySpan<char> s, out ulong result) => TryParse(s, NumberStyles.Integer, provider: null, out result); 165public static bool TryParse(ReadOnlySpan<byte> utf8Text, out ulong result) => TryParse(utf8Text, NumberStyles.Integer, provider: null, out result); 179public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out ulong result) 313/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 314static bool IBinaryInteger<ulong>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out ulong value) 370/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 371static bool IBinaryInteger<ulong>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out ulong value) 1187/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 1188public static ulong Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, NumberStyles.Integer, provider); 1190/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 1191public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out ulong result) => TryParse(s, NumberStyles.Integer, provider, out result); 1224/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1225public static ulong Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 1231/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 1232public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out ulong result) 1238/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 1239public static ulong Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => Parse(utf8Text, NumberStyles.Integer, provider); 1241/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 1242public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out ulong result) => TryParse(utf8Text, NumberStyles.Integer, provider, out result);
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (20)
207public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) => 211public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) => 218public static nuint Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => (nuint)nuint_t.Parse(s, provider); 219public static nuint Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) => (nuint)nuint_t.Parse(s, style, provider); 232public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out nuint result) 244public static bool TryParse(ReadOnlySpan<char> s, out nuint result) 254public static bool TryParse(ReadOnlySpan<byte> utf8Text, out nuint result) 267public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out nuint result) 317/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 318static bool IBinaryInteger<nuint>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out nuint value) 374/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 375static bool IBinaryInteger<nuint>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out nuint value) 1210/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?)" /> 1211public static nuint Parse(ReadOnlySpan<byte> utf8Text, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) => (nuint)nuint_t.Parse(utf8Text, style, provider); 1213/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{byte}, NumberStyles, IFormatProvider?, out TSelf)" /> 1214public static bool TryParse(ReadOnlySpan<byte> utf8Text, NumberStyles style, IFormatProvider? provider, out nuint result) 1220/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)" /> 1221public static nuint Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) => (nuint)nuint_t.Parse(utf8Text, provider); 1223/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)" /> 1224public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out nuint result)
src\libraries\System.Private.CoreLib\src\System\Version.cs (12)
269bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) => 274bool IUtf8SpanFormattable.TryFormat(Span<byte> utf8Destination, out int bytesWritten, ReadOnlySpan<char> format, IFormatProvider? provider) => 290public static Version Parse(ReadOnlySpan<char> input) => 293/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.Parse(ReadOnlySpan{byte}, IFormatProvider?)"/> 294static Version IUtf8SpanParsable<Version>.Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider) 314public static Version Parse(ReadOnlySpan<byte> utf8Text) => 329public static bool TryParse(ReadOnlySpan<char> input, [NotNullWhen(true)] out Version? result) 344public static bool TryParse(ReadOnlySpan<byte> utf8Text, [NotNullWhen(true)] out Version? result) 350/// <inheritdoc cref="IUtf8SpanParsable{TSelf}.TryParse(ReadOnlySpan{byte}, IFormatProvider?, out TSelf)"/> 351static bool IUtf8SpanParsable<Version>.TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, [NotNullWhen(true)] out Version? result) 357private static Version? ParseVersion<TChar>(ReadOnlySpan<TChar> input, bool throwOnFailure) 429private static bool TryParseComponent<TChar>(ReadOnlySpan<TChar> component, string componentName, bool throwOnFailure, out int parsedComponent)
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\AssemblyNameInfo.cs (2)
190public static AssemblyNameInfo Parse(ReadOnlySpan<char> assemblyName) 201public static bool TryParse(ReadOnlySpan<char> assemblyName, [NotNullWhen(true)] out AssemblyNameInfo? result)
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeName.cs (3)
388public static TypeName Parse(ReadOnlySpan<char> typeName, TypeNameParseOptions? options = default) 398public static bool TryParse(ReadOnlySpan<char> typeName, [NotNullWhen(true)] out TypeName? result, TypeNameParseOptions? options = default) 429ReadOnlySpan<TypeName> GetGenericArguments() => CollectionsMarshal.AsSpan(_genericArguments);
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; 230ReadOnlySpan<char> capturedBeforeProcessing = _inputString; 239ReadOnlySpan<char> candidate = GetAssemblyNameCandidate(_inputString);
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (16)
23internal static string GetGenericTypeFullName(ReadOnlySpan<char> fullTypeName, ReadOnlySpan<TypeName> genericArgs) 44internal static int GetFullTypeNameLength(ReadOnlySpan<char> input, out bool isNestedType) 77static int GetUnescapedOffset(ReadOnlySpan<char> input, int startOffset) 105internal static ReadOnlySpan<char> GetName(ReadOnlySpan<char> fullName) 120static int GetUnescapedOffset(ReadOnlySpan<char> fullName, int startIndex) 139internal static ReadOnlySpan<char> GetAssemblyNameCandidate(ReadOnlySpan<char> input) 152static int GetUnescapedOffset(ReadOnlySpan<char> input, int startIndex) 209internal static bool IsBeginningOfGenericArgs(ref ReadOnlySpan<char> span, out bool doubleBrackets) 216ReadOnlySpan<char> trimmed = span.Slice(1).TrimStart(); 236internal static bool TryGetTypeNameInfo(TypeNameParseOptions options, ref ReadOnlySpan<char> input, 279internal static bool TryParseNextDecorator(ref ReadOnlySpan<char> input, out int rankOrModifier) 284ReadOnlySpan<char> originalInput = input; // so we can restore on 'false' return 343internal static bool TryStripFirstCharAndTrailingSpaces(ref ReadOnlySpan<char> span, char value)
src\System\Array.CoreCLR.cs (1)
440private unsafe nint GetFlattenedIndex(ReadOnlySpan<int> indices)
src\System\Reflection\Emit\DynamicILGenerator.cs (1)
405ReadOnlySpan<ParameterInfo> paramInfo = methodInfo.GetParametersAsSpan();
src\System\Reflection\Emit\RuntimeAssemblyBuilder.cs (1)
286protected override void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute)
src\System\Reflection\Emit\RuntimeConstructorBuilder.cs (1)
160protected override void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute)
src\System\Reflection\Emit\RuntimeEnumBuilder.cs (1)
277protected override void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute)
src\System\Reflection\Emit\RuntimeEventBuilder.cs (1)
83protected override void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute)
src\System\Reflection\Emit\RuntimeFieldBuilder.cs (1)
153protected override void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute)
src\System\Reflection\Emit\RuntimeGenericTypeParameterBuilder.cs (1)
218protected override void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute)
src\System\Reflection\Emit\RuntimeMethodBuilder.cs (1)
699protected override void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute)
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (2)
458ReadOnlySpan<ParameterInfo> parameters = method.GetParametersAsSpan(); 1284protected override void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute)
src\System\Reflection\Emit\RuntimeParameterBuilder.cs (1)
20protected override void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute)
src\System\Reflection\Emit\RuntimePropertyBuilder.cs (1)
100protected override void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute)
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (6)
28public CustAttr(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute) 89ReadOnlySpan<byte> attr, int attrLength); 92ReadOnlySpan<byte> attr) 575internal void SetGenParamCustomAttribute(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute) 1735internal void SetCustomAttribute(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute) 1740protected override void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute)
src\System\Reflection\Metadata\MetadataUpdater.cs (3)
37public static void ApplyUpdate(Assembly assembly, ReadOnlySpan<byte> metadataDelta, ReadOnlySpan<byte> ilDelta, ReadOnlySpan<byte> pdbDelta)
src\System\Reflection\MethodBase.CoreCLR.cs (1)
56internal virtual ReadOnlySpan<ParameterInfo> GetParametersAsSpan() { return GetParameters(); }
src\System\Reflection\RuntimeAssembly.cs (3)
192ReadOnlySpan<string> nestedTypeNames, 199ReadOnlySpan<string> nestedTypeNames, 203internal Type? GetTypeCore(string typeName, ReadOnlySpan<string> nestedTypeNames, bool throwOnFileNotFound, bool ignoreCase)
src\System\Reflection\RuntimeConstructorInfo.CoreCLR.cs (1)
183internal override ReadOnlySpan<ParameterInfo> GetParametersAsSpan() =>
src\System\Reflection\RuntimeCustomAttributeData.cs (13)
263ReadOnlySpan<ParameterInfo> parameters = m_ctor.GetParametersAsSpan(); 914private ReadOnlySpan<byte> _blob; 925private ReadOnlySpan<byte> PeekData(int size) => _blob.Slice(_curr, size); 927private ReadOnlySpan<byte> ReadData(int size) 929ReadOnlySpan<byte> tmp = PeekData(size); 937ReadOnlySpan<byte> tmp = ReadData(sizeof(byte)); 945ReadOnlySpan<byte> tmp = ReadData(sizeof(ushort)); 953ReadOnlySpan<byte> tmp = ReadData(sizeof(uint)); 961ReadOnlySpan<byte> tmp = ReadData(sizeof(ulong)); 969ReadOnlySpan<byte> tmp = ReadData(sizeof(float)); 980ReadOnlySpan<byte> tmp = ReadData(sizeof(double)); 1012ReadOnlySpan<byte> utf8ByteSpan = ReadData(length); 1026ReadOnlySpan<byte> data;
src\System\Reflection\RuntimeEventInfo.cs (1)
66ReadOnlySpan<ParameterInfo> parameters;
src\System\Reflection\RuntimeMethodInfo.CoreCLR.cs (1)
243internal override ReadOnlySpan<ParameterInfo> GetParametersAsSpan() =>
src\System\Reflection\RuntimePropertyInfo.cs (2)
270internal ReadOnlySpan<ParameterInfo> GetIndexParametersSpan() 278ReadOnlySpan<ParameterInfo> methParams = default;
src\System\Reflection\TypeNameResolver.CoreCLR.cs (3)
133ReadOnlySpan<char> typeName = MemoryMarshal.CreateReadOnlySpanFromNullTerminated(pTypeName); 188private Type? GetType(string escapedTypeName, ReadOnlySpan<string> nestedTypeNames, TypeName parsedName) 295private Type? GetTypeFromDefaultAssemblies(string typeName, ReadOnlySpan<string> nestedTypeNames, TypeName parsedName)
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (1)
212ReadOnlySpan<IntPtr> instantiationHandles = RuntimeTypeHandle.CopyRuntimeTypeHandles(instantiation, stackScratch: stackalloc IntPtr[8]);
src\System\Runtime\Loader\AssemblyLoadContext.CoreCLR.cs (2)
72internal unsafe Assembly InternalLoad(ReadOnlySpan<byte> arrAssembly, ReadOnlySpan<byte> arrSymbols)
src\System\RuntimeHandles.cs (5)
183internal static ReadOnlySpan<IntPtr> CopyRuntimeTypeHandles(RuntimeTypeHandle[]? inHandles, Span<IntPtr> stackScratch) 1874ReadOnlySpan<IntPtr> typeInstantiationContextHandles = RuntimeTypeHandle.CopyRuntimeTypeHandles(typeInstantiationContext, stackScratch: stackalloc IntPtr[8]); 1875ReadOnlySpan<IntPtr> methodInstantiationContextHandles = RuntimeTypeHandle.CopyRuntimeTypeHandles(methodInstantiationContext, stackScratch: stackalloc IntPtr[8]); 1884internal static RuntimeMethodHandleInternal ResolveMethodHandleInternal(RuntimeModule module, int methodToken, ReadOnlySpan<IntPtr> typeInstantiationContext, ReadOnlySpan<IntPtr> methodInstantiationContext)
src\System\RuntimeType.CoreCLR.cs (2)
856ReadOnlySpan<IntPtr> fieldHandles, RuntimeType declaringType, ref ListBuilder<RuntimeFieldInfo> list) 2279ReadOnlySpan<ParameterInfo> parameterInfos = methodBase.GetParametersAsSpan();
src\System\StubHelpers.cs (2)
45var bytes = new ReadOnlySpan<byte>(in nativeChar); 449ReadOnlySpan<char> managed = strManaged;
src\System\Text\StringBuilder.CoreCLR.cs (1)
42internal void ReplaceBufferUtf8Internal(ReadOnlySpan<byte> source)
src\System\Threading\WaitHandle.CoreCLR.cs (2)
14private static int WaitMultipleIgnoringSyncContextCore(ReadOnlySpan<IntPtr> waitHandles, bool waitAll, int millisecondsTimeout) 18private static partial int WaitMultipleIgnoringSyncContext(ReadOnlySpan<IntPtr> waitHandles, int numHandles, [MarshalAs(UnmanagedType.Bool)] bool waitAll, int millisecondsTimeout);
System.Private.CoreLib.Generators (2)
EventSourceGenerator.Parser.cs (1)
101ReadOnlySpan<byte> namespaceBytes = new byte[] // rely on C# compiler optimization to remove byte[] allocation
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.cs (1)
144public ReadOnlySpan<T> AsSpan()
System.Private.DataContractSerialization (46)
src\libraries\Common\src\System\HexConverter.cs (6)
164public static void EncodeToUtf16(ReadOnlySpan<byte> bytes, Span<char> chars, Casing casing = Casing.Upper) 181public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 197EncodeToUtf16(*(ReadOnlySpan<byte>*)args.RosPtr, chars, args.casing)); 229public static bool TryDecodeFromUtf16(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 335private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 433public static ReadOnlySpan<byte> CharToHexLookup =>
System\Runtime\Serialization\DataContract.cs (1)
1548ReadOnlySpan<char> tempLocalName = typeName.AsSpan(startIndex, endIndex - startIndex);
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (1)
252public override void Write(ReadOnlySpan<byte> buffer)
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)
165ReadOnlySpan<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 (1)
16private static ReadOnlySpan<short> Char2val =>
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 (5)
398ReadOnlySpan<byte> bytes = buffer.AsSpan(offset, sizeof(decimal)); 399ReadOnlySpan<int> span = 940ReadOnlySpan<byte> buffer = GetBuffer(sizeof(T), out int offset) 977ReadOnlySpan<byte> bytes = _buffer.AsSpan(offset, sizeof(decimal)); 978ReadOnlySpan<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 749ReadOnlySpan<byte> charTypeMap = XmlUTF8TextReader.CharTypeMap; 1127ReadOnlySpan<byte> charTypeMap = XmlUTF8TextReader.CharTypeMap; 1136ReadOnlySpan<byte> charTypeMap = XmlUTF8TextReader.CharTypeMap; 1146ReadOnlySpan<byte> charTypeMap = XmlUTF8TextReader.CharTypeMap;
System\Xml\XmlUTF8TextWriter.cs (1)
61private static ReadOnlySpan<byte> Digits => "0123456789ABCDEF"u8;
System.Private.Uri (43)
src\libraries\Common\src\System\HexConverter.cs (6)
164public static void EncodeToUtf16(ReadOnlySpan<byte> bytes, Span<char> chars, Casing casing = Casing.Upper) 181public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 197EncodeToUtf16(*(ReadOnlySpan<byte>*)args.RosPtr, chars, args.casing)); 229public static bool TryDecodeFromUtf16(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 335private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 433public static ReadOnlySpan<byte> CharToHexLookup =>
src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (1)
34internal static int ParseHostNumber<TChar>(ReadOnlySpan<TChar> str, int start, int end)
src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (5)
17internal static (int longestSequenceStart, int longestSequenceLength) FindCompressionRange(ReadOnlySpan<ushort> numbers) 45internal static bool ShouldHaveIpv4Embedded(ReadOnlySpan<ushort> numbers) 311internal static void Parse<TChar>(ReadOnlySpan<TChar> address, scoped Span<ushort> numbers, out ReadOnlySpan<TChar> scopeId) 322scopeId = ReadOnlySpan<TChar>.Empty;
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
104public ReadOnlySpan<char> AsSpan(bool terminate) 114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
System\DomainNameHelper.cs (4)
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); 234ReadOnlySpan<char> label = hostname.AsSpan(i);
System\IPv6AddressHelper.cs (3)
12internal static string ParseCanonicalName(ReadOnlySpan<char> str, ref bool isLoopback, out ReadOnlySpan<char> scopeId) 90private static unsafe bool IsLoopback(ReadOnlySpan<ushort> numbers)
System\IriHelper.cs (1)
183ReadOnlySpan<byte> encodedBytes = maxUtf8EncodedSpan.Slice(0, bytesWritten);
System\Uri.cs (10)
1575ReadOnlySpan<char> result; 1641bool ISpanFormattable.TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) => 2521host = IPv6AddressHelper.ParseCanonicalName(str.AsSpan(idx), ref loopback, out ReadOnlySpan<char> scopeIdSpan); 2770private ReadOnlySpan<char> RecreateParts(scoped ref ValueStringBuilder dest, string str, UriComponents parts, ushort nonCanonical, UriFormat formatAs) 2790ReadOnlySpan<char> slice = str.AsSpan(_info.Offset.User, _info.Offset.Host - _info.Offset.User); 3351ReadOnlySpan<char> span = _originalUnicodeString.AsSpan(origIdx); 3715private static UriParser? CheckSchemeSyntax(ReadOnlySpan<char> scheme, ref ParsingError error) 4335ReadOnlySpan<char> str = _string; 4733ReadOnlySpan<char> share = basePart.GetParts(UriComponents.Path | UriComponents.KeepDelimiter, UriFormat.Unescaped); 4816ReadOnlySpan<char> extra = string.Empty;
System\UriExt.cs (5)
588public static string UnescapeDataString(ReadOnlySpan<char> charsToUnescape) 593private static string UnescapeDataString(ReadOnlySpan<char> charsToUnescape, string? backingString = null) 625public static bool TryUnescapeDataString(ReadOnlySpan<char> charsToUnescape, Span<char> destination, out int charsWritten) 711public static string EscapeDataString(ReadOnlySpan<char> charsToEscape) => 719public static bool TryEscapeDataString(ReadOnlySpan<char> charsToEscape, Span<char> destination, out int charsWritten) =>
System\UriHelper.cs (4)
13public static unsafe string SpanToLowerInvariantString(ReadOnlySpan<char> span) 119public static bool TryEscapeDataString(ReadOnlySpan<char> charsToEscape, Span<char> destination, out int charsWritten) 189public static string EscapeString(ReadOnlySpan<char> charsToEscape, bool checkExistingEscaped, SearchValues<char> noEscape, string? backingString) 594internal static unsafe string StripBidiControlCharacters(ReadOnlySpan<char> strToClean, string? backingString = null)
System.Private.Windows.Core (37)
System\BufferScope.cs (1)
118public static implicit operator ReadOnlySpan<T>(BufferScope<T> scope) => scope._span;
System\IO\BinaryReaderExtensions.cs (1)
231ReadOnlySpan<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\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)
11/// Fast stack based <see cref="ReadOnlySpan{T}"/> reader. 23internal unsafe ref struct SpanReader<T>(ReadOnlySpan<T> span) where T : unmanaged, IEquatable<T> 25private ReadOnlySpan<T> _unread = span; 26public ReadOnlySpan<T> Span { get; } = span; 38/// <inheritdoc cref="TryReadTo(T, bool, out ReadOnlySpan{T})"/> 39public bool TryReadTo(T delimiter, out ReadOnlySpan<T> span) => 49public bool TryReadTo(T delimiter, bool advancePastDelimiter, out ReadOnlySpan<T> span) 99public bool TryRead(int count, out ReadOnlySpan<T> span) 161/// This effectively does a <see cref="MemoryMarshal.Cast{TFrom, TTo}(ReadOnlySpan{TFrom})"/> and the same 165public bool TryRead<TValue>(int count, out ReadOnlySpan<TValue> value) where TValue : unmanaged 193public readonly bool IsNext(params ReadOnlySpan<T> next) => _unread.StartsWith(next); 200public bool TryAdvancePast(params ReadOnlySpan<T> next) 267private static void UncheckedSliceTo(ref ReadOnlySpan<T> span, int length) 277private static void UncheckedSlice(ref ReadOnlySpan<T> span, int start, int length)
System\SpanWriter.cs (1)
45public bool TryWrite(params ReadOnlySpan<T> values)
System\Text\ValueStringBuilder.cs (5)
124public ReadOnlySpan<char> AsSpan(bool terminate) 135public readonly ReadOnlySpan<char> AsSpan() => _chars[.._pos]; 136public readonly ReadOnlySpan<char> AsSpan(int start) => _chars[start.._pos]; 137public readonly ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length); 293public void Append(ReadOnlySpan<char> value)
Windows\Win32\Graphics\Gdi\ARGB.cs (2)
47public static Color[] ToColorArray(params ReadOnlySpan<ARGB> argbColors) 58public static Color[] ToColorArray(params ReadOnlySpan<uint> argbColors) => ToColorArray(
Windows\Win32\Graphics\Gdi\LOGFONTW.cs (1)
9public ReadOnlySpan<char> FaceName
Windows\Win32\System\Com\ComManagedStream.cs (1)
237ReadOnlySpan<byte> buffer = new(pv, checked((int)cb));
Windows\Win32\System\Com\IComCallableWrapper.cs (1)
22ReadOnlySpan<byte> data =
Windows\Win32\System\Com\IID.cs (1)
16ReadOnlySpan<byte> data =
Windows\Win32\System\Com\SAFEARRAY.cs (1)
81ReadOnlySpan<SAFEARRAYBOUND> bounds = new(b, cDims);
System.Private.Windows.GdiPlus (1)
System\Drawing\ImageCodecInfoHelper.cs (1)
51ReadOnlySpan<ImageCodecInfo> codecInfo = new((ImageCodecInfo*)b, (int)numEncoders);
System.Private.Xml (62)
src\libraries\Common\src\System\HexConverter.cs (6)
164public static void EncodeToUtf16(ReadOnlySpan<byte> bytes, Span<char> chars, Casing casing = Casing.Upper) 181public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 197EncodeToUtf16(*(ReadOnlySpan<byte>*)args.RosPtr, chars, args.casing)); 229public static bool TryDecodeFromUtf16(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 335private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 433public static ReadOnlySpan<byte> CharToHexLookup =>
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
104public ReadOnlySpan<char> AsSpan(bool terminate) 114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
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))); 3493ReadOnlySpan<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)
3196ReadOnlySpan<byte> preamble = _ps.encoding.Preamble; 9578private 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]; 598ReadOnlySpan<int> days = leapYear ? DaysToMonth366 : DaysToMonth365; 916private static ReadOnlySpan<int> Power10 => [-1, 10, 100, 1000, 10000, 100000, 1000000];
System\Xml\Serialization\XmlSerializationReader.cs (1)
1004ReadOnlySpan<char> lengthStringSpan = value.AsSpan(pos + 1, len);
System\Xml\Serialization\XmlSerializationWriter.cs (3)
415ReadOnlySpan<char> span = _primitivesBuffer; 4466ReadOnlySpan<char> choiceNs = colon < 0 ? choiceMapping.Namespace : xmlName.AsSpan(0, colon); 4467ReadOnlySpan<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)
170internal void SetCustomAttribute(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute) => 173protected override void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute)
System\Reflection\Emit\ModuleBuilderImpl.cs (1)
1336protected 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)
472protected override void SetCustomAttributeCore(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute) 503internal void SetCustomAttribute(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute) 508private void ParseStructLayoutAttribute(ConstructorInfo con, ReadOnlySpan<byte> binaryAttribute)
System.Reflection.Metadata (67)
src\libraries\Common\src\System\HexConverter.cs (6)
164public static void EncodeToUtf16(ReadOnlySpan<byte> bytes, Span<char> chars, Casing casing = Casing.Upper) 181public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 197EncodeToUtf16(*(ReadOnlySpan<byte>*)args.RosPtr, chars, args.casing)); 229public static bool TryDecodeFromUtf16(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 335private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 433public static ReadOnlySpan<byte> CharToHexLookup =>
src\libraries\Common\src\System\Reflection\AssemblyNameFormatter.cs (1)
103ReadOnlySpan<char> span = s.AsSpan();
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\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
104public ReadOnlySpan<char> AsSpan(bool terminate) 114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
System\Reflection\Internal\Utilities\Hash.cs (1)
43internal 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)
190public static AssemblyNameInfo Parse(ReadOnlySpan<char> assemblyName) 201public static bool TryParse(ReadOnlySpan<char> assemblyName, [NotNullWhen(true)] out AssemblyNameInfo? result)
System\Reflection\Metadata\BlobBuilder.cs (5)
321internal bool TryGetSpan(out ReadOnlySpan<byte> buffer) 672private void WriteBytesUnchecked(ReadOnlySpan<byte> buffer) 680ReadOnlySpan<byte> remaining = buffer.Slice(bytesToCurrent); 792internal void WriteBytes(ReadOnlySpan<byte> buffer) 994private 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)
150internal void WriteBytes(ReadOnlySpan<byte> buffer) 396private 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.Heaps.cs (3)
119_blobs.GetOrAdd(ReadOnlySpan<byte>.Empty, ImmutableArray<byte>.Empty, default, out _); 194if (value.TryGetSpan(out ReadOnlySpan<byte> buffer)) 218private BlobHandle GetOrAddBlob(ReadOnlySpan<byte> value, ImmutableArray<byte> immutableValue = default)
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 (2)
388public static TypeName Parse(ReadOnlySpan<char> typeName, TypeNameParseOptions? options = default) 398public 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; 230ReadOnlySpan<char> capturedBeforeProcessing = _inputString; 239ReadOnlySpan<char> candidate = GetAssemblyNameCandidate(_inputString);
System\Reflection\Metadata\TypeNameParserHelpers.cs (16)
23internal static string GetGenericTypeFullName(ReadOnlySpan<char> fullTypeName, ReadOnlySpan<TypeName> genericArgs) 44internal static int GetFullTypeNameLength(ReadOnlySpan<char> input, out bool isNestedType) 77static int GetUnescapedOffset(ReadOnlySpan<char> input, int startOffset) 105internal static ReadOnlySpan<char> GetName(ReadOnlySpan<char> fullName) 120static int GetUnescapedOffset(ReadOnlySpan<char> fullName, int startIndex) 139internal static ReadOnlySpan<char> GetAssemblyNameCandidate(ReadOnlySpan<char> input) 152static int GetUnescapedOffset(ReadOnlySpan<char> input, int startIndex) 209internal static bool IsBeginningOfGenericArgs(ref ReadOnlySpan<char> span, out bool doubleBrackets) 216ReadOnlySpan<char> trimmed = span.Slice(1).TrimStart(); 236internal static bool TryGetTypeNameInfo(TypeNameParseOptions options, ref ReadOnlySpan<char> input, 279internal static bool TryParseNextDecorator(ref ReadOnlySpan<char> input, out int rankOrModifier) 284ReadOnlySpan<char> originalInput = input; // so we can restore on 'false' return 343internal static bool TryStripFirstCharAndTrailingSpaces(ref ReadOnlySpan<char> span, char value)
System\Reflection\PortableExecutable\ManagedTextSection.cs (2)
99private static ReadOnlySpan<byte> CorEntryPointDll => "mscoree.dll"u8; 100private ReadOnlySpan<byte> CorEntryPointName => (ImageCharacteristics & Characteristics.Dll) != 0 ? "_CorDllMain"u8 : "_CorExeMain"u8;
System\Reflection\PortableExecutable\PEBuilder.cs (2)
156ReadOnlySpan<byte> header = DosHeader; 169private static ReadOnlySpan<byte> DosHeader => // DosHeaderSize
System.Reflection.MetadataLoadContext (152)
System\Reflection\PathAssemblyResolver.cs (2)
62ReadOnlySpan<byte> pktFromName = assemblyName.GetPublicKeyToken(); 70ReadOnlySpan<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)
124internal 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)
29((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\HashHelpers.cs (1)
23public static ReadOnlySpan<int> Primes =>
System\Reflection\TypeLoading\General\Helpers.cs (1)
371public 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)
21public bool TryGet(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, int hashCode, [NotNullWhen(true)] out RoDefinitionType? type) 26public RoDefinitionType GetOrAdd(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, int hashCode, RoDefinitionType type) 47public static int ComputeHashCode(ReadOnlySpan<byte> name) 79public 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)
247internal abstract bool IsTypeNameEqual(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name); 248internal 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)
155internal abstract bool IsCustomAttributeDefined(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name); 156internal 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)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
420[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ReadOnlySpan<>))]
System.Runtime.InteropServices.JavaScript (2)
artifacts\obj\System.Runtime.InteropServices.JavaScript\Debug\net10.0\System.Runtime.InteropServices.JavaScript.notsupported.cs (2)
157public static JSFunctionBinding BindJSFunction(string functionName, string moduleName, ReadOnlySpan<JSMarshalerType> signatures) { throw new System.PlatformNotSupportedException(System.SR.SystemRuntimeInteropServicesJavaScript_PlatformNotSupported); } 158public static JSFunctionBinding BindManagedFunction(string fullyQualifiedName, int signatureHash, ReadOnlySpan<JSMarshalerType> signatures) { throw new System.PlatformNotSupportedException(System.SR.SystemRuntimeInteropServicesJavaScript_PlatformNotSupported); }
System.Runtime.Numerics (188)
src\libraries\Common\src\System\HexConverter.cs (6)
164public static void EncodeToUtf16(ReadOnlySpan<byte> bytes, Span<char> chars, Casing casing = Casing.Upper) 181public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 197EncodeToUtf16(*(ReadOnlySpan<byte>*)args.RosPtr, chars, args.casing)); 229public static bool TryDecodeFromUtf16(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 335private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 433public static ReadOnlySpan<byte> CharToHexLookup =>
src\libraries\Common\src\System\Number.Formatting.Common.cs (5)
55internal static char ParseFormatSpecifier(ReadOnlySpan<char> format, out int digits) 291internal static unsafe void NumberToStringFormat<TChar>(ref ValueListBuilder<TChar> vlb, ref NumberBuffer number, ReadOnlySpan<char> format, NumberFormatInfo info) where TChar : unmanaged, IUtfChar<TChar> 748ReadOnlySpan<TChar> sDecimal, ReadOnlySpan<TChar> sGroup) where TChar : unmanaged, IUtfChar<TChar> 1125private static unsafe int FindSection(ReadOnlySpan<char> format, int section)
src\libraries\Common\src\System\Number.Parsing.Common.cs (9)
35ReadOnlySpan<TChar> decSep; // decimal separator from NumberFormatInfo. 36ReadOnlySpan<TChar> groupSep; // group separator from NumberFormatInfo. 37ReadOnlySpan<TChar> currSymbol = ReadOnlySpan<TChar>.Empty; // currency symbol from NumberFormatInfo. 80currSymbol = ReadOnlySpan<TChar>.Empty; 249currSymbol = ReadOnlySpan<TChar>.Empty; 280internal static unsafe bool TryStringToNumber<TChar>(ReadOnlySpan<TChar> value, NumberStyles styles, ref NumberBuffer number, NumberFormatInfo info) 302private static bool TrailingZeros<TChar>(ReadOnlySpan<TChar> value, int index) 336private static unsafe TChar* MatchChars<TChar>(TChar* p, TChar* pEnd, ReadOnlySpan<TChar> value)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
104public ReadOnlySpan<char> AsSpan(bool terminate) 114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\FormattingHelpers.CountDigits.cs (3)
18ReadOnlySpan<byte> log2ToPow10 = 31ReadOnlySpan<ulong> powersOf10 = 68ReadOnlySpan<long> table =
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.cs (1)
144public ReadOnlySpan<T> AsSpan()
System\Number.BigInteger.cs (30)
28private static ReadOnlySpan<uint> UInt32PowersOfTen => [1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000]; 60internal static unsafe ParsingStatus TryParseBigInteger(ReadOnlySpan<char> value, NumberStyles style, NumberFormatInfo info, out BigInteger result) 80internal static unsafe ParsingStatus TryParseBigIntegerNumber(ReadOnlySpan<char> value, NumberStyles style, NumberFormatInfo info, out BigInteger result) 124internal static BigInteger ParseBigInteger(ReadOnlySpan<char> value, NumberStyles style, NumberFormatInfo info) 140internal static ParsingStatus TryParseBigIntegerHexOrBinaryNumberStyle<TParser, TChar>(ReadOnlySpan<TChar> value, NumberStyles style, out BigInteger result) 326ReadOnlySpan<byte> intDigits = number.Digits.Slice(0, Math.Min(number.Scale, number.DigitsCount)); 331ReadOnlySpan<byte> fracDigitsSpan = number.Digits.Slice(intDigits.Length); 355ReadOnlySpan<byte> leadingDigits = intDigits[..(intDigits.Length % PowersOf1e9.MaxPartialDigits)]; 402static void DivideAndConquer(ReadOnlySpan<uint> base1E9, int trailingZeroCount, scoped Span<uint> bits) 443static void Recursive(in PowersOf1e9 powersOf1e9, int powersOf1e9Index, ReadOnlySpan<uint> base1E9, Span<uint> bits) 460ReadOnlySpan<uint> multiplier = powersOf1e9.GetSpan(powersOf1e9Index); 475ReadOnlySpan<uint> buffer2 = buffer.Slice(0, BigIntegerCalculator.ActualLength(buffer)); 492static void Naive(ReadOnlySpan<uint> base1E9, int trailingZeroCount, scoped Span<uint> bits) 520static int NaiveBase1E9ToBits(ReadOnlySpan<uint> base1E9, Span<uint> bits) 738internal static bool TryFormatBigInteger(BigInteger value, ReadOnlySpan<char> format, NumberFormatInfo info, Span<char> destination, out int charsWritten) 746string? formatString, ReadOnlySpan<char> formatSpan, 821ReadOnlySpan<uint> base1E9Value = base1E9Buffer[..cuDst]; 923private static unsafe TChar* BigIntegerToDecChars<TChar>(TChar* bufferEnd, ReadOnlySpan<uint> base1E9Value, int digits) 941private readonly ReadOnlySpan<uint> pow1E9; 958private static ReadOnlySpan<int> Indexes => 999private static ReadOnlySpan<uint> LeadingPowers1E9 => 1065ReadOnlySpan<uint> src = pow1E9.Slice(Indexes[5], Indexes[6] - Indexes[5]); 1098public ReadOnlySpan<uint> GetSpan(int index) 1112public void MultiplyPowerOfTen(ReadOnlySpan<uint> left, int trailingZeroCount, Span<uint> bits) 1135ReadOnlySpan<uint> first = GetSpan(fi); 1156ReadOnlySpan<uint> power = GetSpan(fi); 1221static virtual bool TryParseUnalignedBlock(ReadOnlySpan<TChar> input, out uint result) 1232static virtual bool TryParseSingleBlock(ReadOnlySpan<TChar> input, out uint result) 1235static virtual bool TryParseWholeBlocks(ReadOnlySpan<TChar> input, Span<uint> destination) 1265public static bool TryParseWholeBlocks(ReadOnlySpan<TChar> input, Span<uint> destination)
System\Numerics\BigInteger.cs (18)
276public BigInteger(ReadOnlySpan<byte> value, bool isUnsigned = false, bool isBigEndian = false) 497internal BigInteger(ReadOnlySpan<uint> value, bool negative) 696public static BigInteger Parse(ReadOnlySpan<char> value, NumberStyles style = NumberStyles.Integer, IFormatProvider? provider = null) 701public static bool TryParse(ReadOnlySpan<char> value, out BigInteger result) 706public static bool TryParse(ReadOnlySpan<char> value, NumberStyles style, IFormatProvider? provider, out BigInteger result) 915private static BigInteger GreatestCommonDivisor(ReadOnlySpan<uint> leftBits, ReadOnlySpan<uint> rightBits) 1639public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) 1644private static BigInteger Add(ReadOnlySpan<uint> leftBits, int leftSign, ReadOnlySpan<uint> rightBits, int rightSign) 1722private static BigInteger Subtract(ReadOnlySpan<uint> leftBits, int leftSign, ReadOnlySpan<uint> rightBits, int rightSign) 2697private static BigInteger Multiply(ReadOnlySpan<uint> left, int leftSign, ReadOnlySpan<uint> right, int rightSign) 3535/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadBigEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 3536static bool IBinaryInteger<BigInteger>.TryReadBigEndian(ReadOnlySpan<byte> source, bool isUnsigned, out BigInteger value) 3542/// <inheritdoc cref="IBinaryInteger{TSelf}.TryReadLittleEndian(ReadOnlySpan{byte}, bool, out TSelf)" /> 3543static bool IBinaryInteger<BigInteger>.TryReadLittleEndian(ReadOnlySpan<byte> source, bool isUnsigned, out BigInteger value)
System\Numerics\BigIntegerCalculator.AddSub.cs (11)
14private static void CopyTail(ReadOnlySpan<uint> source, Span<uint> dest, int start) 19public static void Add(ReadOnlySpan<uint> left, uint right, Span<uint> bits) 27public static void Add(ReadOnlySpan<uint> left, ReadOnlySpan<uint> right, Span<uint> bits) 59public static void AddSelf(Span<uint> left, ReadOnlySpan<uint> right) 90public static void Subtract(ReadOnlySpan<uint> left, uint right, Span<uint> bits) 99public static void Subtract(ReadOnlySpan<uint> left, ReadOnlySpan<uint> right, Span<uint> bits) 132public static void SubtractSelf(Span<uint> left, ReadOnlySpan<uint> right) 168private static void Add(ReadOnlySpan<uint> left, Span<uint> bits, ref uint resultPtr, int startIndex, long initialCarry) 215private static void Subtract(ReadOnlySpan<uint> left, Span<uint> bits, ref uint resultPtr, int startIndex, long initialCarry)
System\Numerics\BigIntegerCalculator.DivRem.cs (30)
19public static void Divide(ReadOnlySpan<uint> left, uint right, Span<uint> quotient, out uint remainder) 27public static void Divide(ReadOnlySpan<uint> left, uint right, Span<uint> quotient) 34private static void Divide(ReadOnlySpan<uint> left, uint right, Span<uint> quotient, ref ulong carry) 53public static uint Remainder(ReadOnlySpan<uint> left, uint right) 68public static void Divide(ReadOnlySpan<uint> left, ReadOnlySpan<uint> right, Span<uint> quotient, Span<uint> remainder) 89public static void Divide(ReadOnlySpan<uint> left, ReadOnlySpan<uint> right, Span<uint> quotient) 121public static void Remainder(ReadOnlySpan<uint> left, ReadOnlySpan<uint> right, Span<uint> remainder) 159private static void DivRem(Span<uint> left, ReadOnlySpan<uint> right, Span<uint> quotient) 208private static void DivideGrammarSchool(Span<uint> left, ReadOnlySpan<uint> right, Span<uint> quotient) 293private static uint AddDivisor(Span<uint> left, ReadOnlySpan<uint> right) 312private static uint SubtractDivisor(Span<uint> left, ReadOnlySpan<uint> right, ulong q) 355private static void DivideBurnikelZiegler(ReadOnlySpan<uint> left, ReadOnlySpan<uint> right, Span<uint> quotient, Span<uint> remainder) 403static void Normalize(ReadOnlySpan<uint> src, int sigmaDigit, int sigmaSmall, Span<uint> bits) 518private static void BurnikelZieglerFallback(ReadOnlySpan<uint> left, ReadOnlySpan<uint> right, Span<uint> quotient, Span<uint> remainder) 592private static void BurnikelZieglerD2n1n(ReadOnlySpan<uint> left, ReadOnlySpan<uint> right, Span<uint> quotient, Span<uint> remainder) 621private static void BurnikelZieglerD3n2n(ReadOnlySpan<uint> left12, ReadOnlySpan<uint> left3, ReadOnlySpan<uint> right, Span<uint> quotient, Span<uint> remainder) 634ReadOnlySpan<uint> a1 = left12.Slice(n); 635ReadOnlySpan<uint> b1 = right.Slice(n); 636ReadOnlySpan<uint> b2 = right.Slice(0, n); 655ReadOnlySpan<uint> a2 = left12.Slice(0, n); 683static void MultiplyActual(ReadOnlySpan<uint> left, ReadOnlySpan<uint> right, Span<uint> bits)
System\Numerics\BigIntegerCalculator.FastReducer.cs (7)
18private readonly ReadOnlySpan<uint> _modulus; 19private readonly ReadOnlySpan<uint> _mu; 23public FastReducer(ReadOnlySpan<uint> modulus, Span<uint> r, Span<uint> mu, Span<uint> q1, Span<uint> q2) 68private static int DivMul(ReadOnlySpan<uint> left, ReadOnlySpan<uint> right, Span<uint> bits, int k) 102private static int SubMod(Span<uint> left, ReadOnlySpan<uint> right, ReadOnlySpan<uint> modulus, int k)
System\Numerics\BigIntegerCalculator.GcdInv.cs (5)
44public static uint Gcd(ReadOnlySpan<uint> left, uint right) 57public static void Gcd(ReadOnlySpan<uint> left, ReadOnlySpan<uint> right, Span<uint> result) 221private static void ExtractDigits(ReadOnlySpan<uint> xBuffer, 222ReadOnlySpan<uint> yBuffer,
System\Numerics\BigIntegerCalculator.PowMod.cs (22)
21public static void Pow(ReadOnlySpan<uint> value, uint power, Span<uint> bits) 70private static int MultiplySelf(ref Span<uint> left, int leftLength, ReadOnlySpan<uint> right, ref Span<uint> temp) 139public static uint Pow(ReadOnlySpan<uint> value, uint power, uint modulus) 148public static uint Pow(uint value, ReadOnlySpan<uint> power, uint modulus) 156public static uint Pow(ReadOnlySpan<uint> value, ReadOnlySpan<uint> power, uint modulus) 165private static uint PowCore(ulong value, ReadOnlySpan<uint> power, uint modulus, ulong result) 203ReadOnlySpan<uint> modulus, Span<uint> bits) 208public static void Pow(ReadOnlySpan<uint> value, uint power, 209ReadOnlySpan<uint> modulus, Span<uint> bits) 251public static void Pow(uint value, ReadOnlySpan<uint> power, 252ReadOnlySpan<uint> modulus, Span<uint> bits) 257public static void Pow(ReadOnlySpan<uint> value, ReadOnlySpan<uint> power, 258ReadOnlySpan<uint> modulus, Span<uint> bits) 309ReadOnlySpan<uint> power, ReadOnlySpan<uint> modulus, 370uint power, ReadOnlySpan<uint> modulus, 430ReadOnlySpan<uint> power, ReadOnlySpan<uint> modulus, 460uint power, ReadOnlySpan<uint> modulus, 489ReadOnlySpan<uint> power, in FastReducer reducer,
System\Numerics\BigIntegerCalculator.SquMul.cs (18)
21public static void Square(ReadOnlySpan<uint> value, Span<uint> bits) 85ReadOnlySpan<uint> valueLow = value.Slice(0, n); 86ReadOnlySpan<uint> valueHigh = value.Slice(n); 131public static void Multiply(ReadOnlySpan<uint> left, uint right, Span<uint> bits) 159public static void Multiply(ReadOnlySpan<uint> left, ReadOnlySpan<uint> right, Span<uint> bits) 212ReadOnlySpan<uint> leftLow = left.Slice(0, n); 213ReadOnlySpan<uint> leftHigh = left.Slice(n); 247static void MultiplyKaratsuba(ReadOnlySpan<uint> left, ReadOnlySpan<uint> right, Span<uint> bits, int n) 261ReadOnlySpan<uint> leftLow = left.Slice(0, n); 262ReadOnlySpan<uint> leftHigh = left.Slice(n); 265ReadOnlySpan<uint> rightLow = right.Slice(0, n); 266ReadOnlySpan<uint> rightHigh = right.Slice(n); 331static void Naive(ReadOnlySpan<uint> left, ReadOnlySpan<uint> right, Span<uint> bits) 362private static void SubtractCore(ReadOnlySpan<uint> left, ReadOnlySpan<uint> right, Span<uint> core)
System\Numerics\BigIntegerCalculator.Utils.cs (6)
18public static int Compare(ReadOnlySpan<uint> left, ReadOnlySpan<uint> right) 34private static int CompareActual(ReadOnlySpan<uint> left, ReadOnlySpan<uint> right) 54public static int ActualLength(ReadOnlySpan<uint> value) 66private static int Reduce(Span<uint> bits, ReadOnlySpan<uint> modulus)
System\Numerics\Complex.cs (13)
1457/// <inheritdoc cref="INumberBase{TSelf}.Parse(ReadOnlySpan{char}, NumberStyles, IFormatProvider?)" /> 1458public static Complex Parse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider) 2089/// <inheritdoc cref="INumberBase{TSelf}.TryParse(ReadOnlySpan{char}, NumberStyles, IFormatProvider?, out TSelf)" /> 2090public static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out Complex result) 2199/// <inheritdoc cref="ISpanFormattable.TryFormat(Span{char}, out int, ReadOnlySpan{char}, IFormatProvider?)" /> 2200public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) => 2203/// <inheritdoc cref="IUtf8SpanFormattable.TryFormat(Span{byte}, out int, ReadOnlySpan{char}, IFormatProvider?)" /> 2204public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.NumericFormat)] ReadOnlySpan<char> format = default, IFormatProvider? provider = null) => 2207private bool TryFormatCore<TChar>(Span<TChar> destination, out int charsWritten, ReadOnlySpan<char> format, IFormatProvider? provider) where TChar : unmanaged, IBinaryInteger<TChar> 2253/// <inheritdoc cref="ISpanParsable{TSelf}.Parse(ReadOnlySpan{char}, IFormatProvider?)" /> 2254public static Complex Parse(ReadOnlySpan<char> s, IFormatProvider? provider) => Parse(s, DefaultNumberStyle, provider); 2256/// <inheritdoc cref="ISpanParsable{TSelf}.TryParse(ReadOnlySpan{char}, IFormatProvider?, out TSelf)" /> 2257public static bool TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, out Complex result) => TryParse(s, DefaultNumberStyle, provider, out result);
System.Runtime.Serialization.Formatters (1)
src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
31internal static ReadOnlySpan<int> Primes =>
System.Security.Cryptography (1531)
Microsoft\Win32\SafeHandles\SafePasswordHandle.cs (2)
36public SafePasswordHandle(ReadOnlySpan<char> password, bool passwordProvided) 93internal ReadOnlySpan<char> DangerousGetSpan()
src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (3)
65public static void EnsureSingleBerValue(ReadOnlySpan<byte> source) 102public static string DecodeOid(ReadOnlySpan<byte> encodedOid) 330public static Pkcs9AttributeObject CreateBestPkcs9AttributeObjectAvailable(Oid oid, ReadOnlySpan<byte> encodedAttribute)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.ReadLink.cs (1)
31internal static string? ReadLink(ReadOnlySpan<char> path)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Bignum.cs (2)
17private static unsafe partial SafeBignumHandle BigNumFromBinary(ReadOnlySpan<byte> bigEndianValue, int len); 25internal static SafeBignumHandle CreateBignum(ReadOnlySpan<byte> bigEndianValue)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.BIO.cs (1)
43internal static int BioWrite(SafeBioHandle b, ReadOnlySpan<byte> data) =>
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Dsa.cs (3)
65internal static bool DsaSign(SafeDsaHandle dsa, ReadOnlySpan<byte> hash, Span<byte> refSignature, out int outSignatureLength) => 72internal static bool DsaVerify(SafeDsaHandle dsa, ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.Cipher.cs (7)
35ReadOnlySpan<byte> key, 36ReadOnlySpan<byte> iv, 82internal static unsafe bool EvpCipherReset(SafeEvpCipherCtxHandle ctx, ReadOnlySpan<byte> iv) 107ReadOnlySpan<byte> input) 182internal static void EvpCipherSetGcmTag(SafeEvpCipherCtxHandle ctx, ReadOnlySpan<byte> tag) 197internal static void EvpCipherSetAeadTag(SafeEvpCipherCtxHandle ctx, ReadOnlySpan<byte> tag) 227internal static void EvpCipherSetCcmTag(SafeEvpCipherCtxHandle ctx, ReadOnlySpan<byte> tag)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.cs (7)
32internal static partial int EvpDigestUpdate(SafeEvpMdCtxHandle ctx, ReadOnlySpan<byte> d, int cnt); 50private static unsafe partial int EvpDigestXOFOneShot(IntPtr type, ReadOnlySpan<byte> source, int sourceSize, Span<byte> md, uint len); 60ReadOnlySpan<byte> pPassword, 62ReadOnlySpan<byte> pSalt, 70ReadOnlySpan<byte> password, 71ReadOnlySpan<byte> salt, 97internal static unsafe int EvpDigestXOFOneShot(IntPtr type, ReadOnlySpan<byte> source, Span<byte> destination)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.Kdf.cs (20)
19ReadOnlySpan<byte> ikm, 22ReadOnlySpan<byte> salt, 24ReadOnlySpan<byte> info, 32ReadOnlySpan<byte> prk, 35ReadOnlySpan<byte> info, 43ReadOnlySpan<byte> ikm, 46ReadOnlySpan<byte> salt, 54ReadOnlySpan<byte> key, 57ReadOnlySpan<byte> label, 59ReadOnlySpan<byte> context, 66ReadOnlySpan<byte> ikm, 68ReadOnlySpan<byte> salt, 69ReadOnlySpan<byte> info, 94ReadOnlySpan<byte> prk, 96ReadOnlySpan<byte> info, 119ReadOnlySpan<byte> ikm, 121ReadOnlySpan<byte> salt, 144ReadOnlySpan<byte> key, 146ReadOnlySpan<byte> label, 147ReadOnlySpan<byte> context,
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.Mac.cs (12)
25ReadOnlySpan<byte> key, 27ReadOnlySpan<byte> customizationString, 32private static partial int CryptoNative_EvpMacUpdate(SafeEvpMacCtxHandle ctx, ReadOnlySpan<byte> data, int dataLength); 49ReadOnlySpan<byte> key, 51ReadOnlySpan<byte> customizationString, 53ReadOnlySpan<byte> data, 61ReadOnlySpan<byte> key, 62ReadOnlySpan<byte> customizationString, 63ReadOnlySpan<byte> data, 127ReadOnlySpan<byte> key, 128ReadOnlySpan<byte> customizationString, 141internal static void EvpMacUpdate(SafeEvpMacCtxHandle ctx, ReadOnlySpan<byte> data)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.cs (2)
63ReadOnlySpan<byte> source, 86ReadOnlySpan<byte> source,
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.EcDsa.cs (3)
25ReadOnlySpan<byte> hash, 56ReadOnlySpan<byte> hash, 57ReadOnlySpan<byte> signature)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Rsa.cs (5)
61ReadOnlySpan<byte> source, 98ReadOnlySpan<byte> source, 137ReadOnlySpan<byte> hash, 178ReadOnlySpan<byte> hash, 179ReadOnlySpan<byte> signature)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Hmac.cs (3)
23internal static partial int HmacUpdate(SafeHmacCtxHandle ctx, ReadOnlySpan<byte> data, int len); 37internal static unsafe int HmacOneShot(IntPtr type, ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination)
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\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Pkcs7.cs (1)
15internal static SafePkcs7Handle DecodePkcs7(ReadOnlySpan<byte> buf) =>
src\libraries\Common\src\System\HexConverter.cs (6)
164public static void EncodeToUtf16(ReadOnlySpan<byte> bytes, Span<char> chars, Casing casing = Casing.Upper) 181public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 197EncodeToUtf16(*(ReadOnlySpan<byte>*)args.RosPtr, chars, args.casing)); 229public static bool TryDecodeFromUtf16(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 335private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 433public static ReadOnlySpan<byte> CharToHexLookup =>
src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.manual.cs (1)
47ReadOnlySpan<byte> span = parameters.Value.Span;
src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs (2)
92ReadOnlySpan<byte> rebindSpan = rebind.Span; 94ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (2)
96ReadOnlySpan<byte> rebindSpan = rebind.Span; 98ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\CurveAsn.xml.cs (2)
80ReadOnlySpan<byte> rebindSpan = rebind.Span; 82ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs (2)
73ReadOnlySpan<byte> rebindSpan = rebind.Span; 75ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (2)
145ReadOnlySpan<byte> rebindSpan = rebind.Span; 147ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\ECPrivateKey.xml.cs (2)
92ReadOnlySpan<byte> rebindSpan = rebind.Span; 94ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\EncryptedPrivateKeyInfoAsn.xml.cs (2)
73ReadOnlySpan<byte> rebindSpan = rebind.Span; 75ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\FieldID.xml.cs (2)
87ReadOnlySpan<byte> rebindSpan = rebind.Span; 89ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (2)
206ReadOnlySpan<byte> rebindSpan = rebind.Span; 208ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\OtherNameAsn.xml.cs (2)
90ReadOnlySpan<byte> rebindSpan = rebind.Span; 92ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\PBEParameter.xml.cs (2)
73ReadOnlySpan<byte> rebindSpan = rebind.Span; 75ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2Params.xml.cs (1)
14private static ReadOnlySpan<byte> DefaultPrf => [0x30, 0x0C, 0x06, 0x08, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x07, 0x05, 0x00];
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (2)
96ReadOnlySpan<byte> rebindSpan = rebind.Span; 98ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs (2)
90ReadOnlySpan<byte> rebindSpan = rebind.Span; 92ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs (3)
14private static ReadOnlySpan<byte> DefaultIterationCount => [0x02, 0x01, 0x01]; 107ReadOnlySpan<byte> rebindSpan = rebind.Span; 109ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs (2)
16ReadOnlySpan<char> macPassword, 17ReadOnlySpan<byte> authSafeContents)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs (2)
106ReadOnlySpan<byte> rebindSpan = rebind.Span; 108ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SecretBagAsn.xml.cs (2)
90ReadOnlySpan<byte> rebindSpan = rebind.Span; 92ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs (2)
90ReadOnlySpan<byte> rebindSpan = rebind.Span; 92ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs (2)
87ReadOnlySpan<byte> rebindSpan = rebind.Span; 89ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (2)
91ReadOnlySpan<byte> rebindSpan = rebind.Span; 93ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs (4)
14private static ReadOnlySpan<byte> DefaultHashAlgorithm => [0x30, 0x09, 0x06, 0x05, 0x2B, 0x0E, 0x03, 0x02, 0x1A, 0x05, 0x00]; 16private static ReadOnlySpan<byte> DefaultMaskGenAlgorithm => [0x30, 0x16, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x08, 0x30, 0x09, 0x06, 0x05, 0x2B, 0x0E, 0x03, 0x02, 0x1A, 0x05, 0x00]; 18private static ReadOnlySpan<byte> DefaultSaltLength => [0x02, 0x01, 0x14]; 20private static ReadOnlySpan<byte> DefaultTrailerField => [0x02, 0x01, 0x01];
src\libraries\Common\src\System\Security\Cryptography\Asn1\Rc2CbcParameters.manual.cs (1)
15private static ReadOnlySpan<byte> Rc2EkbEncoding =>
src\libraries\Common\src\System\Security\Cryptography\Asn1\Rc2CbcParameters.xml.cs (2)
73ReadOnlySpan<byte> rebindSpan = rebind.Span; 75ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\SpecifiedECDomain.xml.cs (2)
100ReadOnlySpan<byte> rebindSpan = rebind.Span; 102ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\SubjectPublicKeyInfoAsn.xml.cs (2)
73ReadOnlySpan<byte> rebindSpan = rebind.Span; 75ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml.cs (3)
14private static ReadOnlySpan<byte> DefaultCritical => [0x01, 0x01, 0x00]; 109ReadOnlySpan<byte> rebindSpan = rebind.Span; 111ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (13)
13private ReadOnlySpan<byte> _span; 16internal AsnValueReader(ReadOnlySpan<byte> span, AsnEncodingRules ruleSet) 37internal ReadOnlySpan<byte> PeekContentBytes() 49internal ReadOnlySpan<byte> PeekEncodedValue() 55internal ReadOnlySpan<byte> ReadEncodedValue() 57ReadOnlySpan<byte> value = PeekEncodedValue(); 83internal ReadOnlySpan<byte> ReadIntegerBytes(Asn1Tag? expectedTag = default) 85ReadOnlySpan<byte> ret = AsnDecoder.ReadIntegerBytes(_span, _ruleSet, out int consumed, expectedTag); 92out ReadOnlySpan<byte> value, 128out ReadOnlySpan<byte> value, 171ReadOnlySpan<byte> content = _span.Slice(contentOffset, contentLength); 187ReadOnlySpan<byte> content = _span.Slice(contentOffset, contentLength); 225ReadOnlySpan<byte> value)
src\libraries\Common\src\System\Security\Cryptography\DSAKeyFormatHelper.cs (7)
32ReadOnlySpan<byte> xSpan = AsnDecoder.ReadIntegerBytes( 163ReadOnlySpan<byte> source, 186ReadOnlySpan<byte> source, 199ReadOnlySpan<byte> source, 200ReadOnlySpan<char> password, 214ReadOnlySpan<byte> source, 215ReadOnlySpan<byte> passwordBytes,
src\libraries\Common\src\System\Security\Cryptography\DSAOpenSsl.cs (17)
138ReadOnlySpan<byte> passwordBytes, 139ReadOnlySpan<byte> source, 147ReadOnlySpan<char> password, 148ReadOnlySpan<byte> source, 205ReadOnlySpan<byte> derSignature = SignHash(rgbHash, signDestination, signatureSize, key); 210ReadOnlySpan<byte> hash, 222ReadOnlySpan<byte> hash, 244ReadOnlySpan<byte> derSignature = SignHash(hash, signDestination, maxSignatureSize, key); 262ReadOnlySpan<byte> derSignature = SignHash(hash, signDestination, maxSignatureSize, key); 281private static ReadOnlySpan<byte> SignHash( 282ReadOnlySpan<byte> hash, 313return VerifySignature((ReadOnlySpan<byte>)rgbHash, (ReadOnlySpan<byte>)rgbSignature); 316public override bool VerifySignature(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature) => 320ReadOnlySpan<byte> hash, 321ReadOnlySpan<byte> signature,
src\libraries\Common\src\System\Security\Cryptography\EccKeyFormatHelper.cs (11)
26ReadOnlySpan<byte> source, 49ReadOnlySpan<byte> source, 50ReadOnlySpan<char> password, 64ReadOnlySpan<byte> source, 65ReadOnlySpan<byte> passwordBytes, 78internal static unsafe ECParameters FromECPrivateKey(ReadOnlySpan<byte> key, out int bytesRead) 132ReadOnlySpan<byte> publicKeyBytes = key.PublicKey.Value.Span; 193ReadOnlySpan<byte> publicKeyBytes = key.Span; 243ReadOnlySpan<byte> algIdParameters = algId.Parameters.Value.Span; 317ReadOnlySpan<byte> primeValue = primeReader.ReadIntegerBytes().Span; 435ReadOnlySpan<byte> baseSpan = specifiedParameters.Base.Span;
src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanDerivation.cs (9)
19ReadOnlySpan<byte> secretPrepend, 20ReadOnlySpan<byte> secretAppend, 44ReadOnlySpan<byte> secretPrepend, 45ReadOnlySpan<byte> secretAppend, 105ReadOnlySpan<byte> prfLabel, 106ReadOnlySpan<byte> prfSeed, 178ReadOnlySpan<byte> secret, 179ReadOnlySpan<byte> prfLabel, 180ReadOnlySpan<byte> prfSeed,
src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanOpenSsl.cs (4)
132ReadOnlySpan<byte> passwordBytes, 133ReadOnlySpan<byte> source, 141ReadOnlySpan<char> password, 142ReadOnlySpan<byte> source,
src\libraries\Common\src\System\Security\Cryptography\ECDsaOpenSsl.cs (13)
97public override bool TrySignHash(ReadOnlySpan<byte> hash, Span<byte> destination, out int bytesWritten) 107ReadOnlySpan<byte> hash, 160return VerifyHash((ReadOnlySpan<byte>)hash, (ReadOnlySpan<byte>)signature); 163public override bool VerifyHash(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature) => 167ReadOnlySpan<byte> hash, 168ReadOnlySpan<byte> signature, 174ReadOnlySpan<byte> toVerify = derSignature; 313ReadOnlySpan<byte> passwordBytes, 314ReadOnlySpan<byte> source, 322ReadOnlySpan<char> password, 323ReadOnlySpan<byte> source,
src\libraries\Common\src\System\Security\Cryptography\Helpers.cs (2)
65internal static bool ContainsNull<T>(this ReadOnlySpan<T> span) 89internal static bool TryCopyToDestination(this ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)
src\libraries\Common\src\System\Security\Cryptography\KeyBlobHelpers.cs (3)
19ReadOnlySpan<byte> span = memory.Span; 41ReadOnlySpan<byte> span = memory.Span; 69internal static void WriteKeyParameterInteger(this AsnWriter writer, ReadOnlySpan<byte> integer)
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.cs (2)
18ReadOnlySpan<byte> source, 94ReadOnlySpan<byte> source,
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (26)
17ReadOnlySpan<byte> source, 18ReadOnlySpan<char> password, 34ReadOnlySpan<byte> source, 35ReadOnlySpan<byte> passwordBytes, 58ReadOnlySpan<char> password, 67ReadOnlySpan<byte>.Empty, 76ReadOnlySpan<byte> passwordBytes, 84ReadOnlySpan<char>.Empty, 94ReadOnlySpan<char> password, 95ReadOnlySpan<byte> passwordBytes, 157ReadOnlySpan<char> password, 163ReadOnlySpan<byte>.Empty, 169ReadOnlySpan<byte> passwordBytes, 174ReadOnlySpan<char>.Empty, 181ReadOnlySpan<char> password, 182ReadOnlySpan<byte> passwordBytes, 252ReadOnlySpan<char> inputPassword, 258ReadOnlySpan<byte>.Empty, 264ReadOnlySpan<byte> inputPasswordBytes, 269ReadOnlySpan<char>.Empty, 276ReadOnlySpan<char> inputPassword, 277ReadOnlySpan<byte> inputPasswordBytes, 320ReadOnlySpan<char> inputPassword, 322ReadOnlySpan<char> newPassword, 356ReadOnlySpan<char> inputPassword, 358ReadOnlySpan<byte> newPasswordBytes,
src\libraries\Common\src\System\Security\Cryptography\Oids.Shared.cs (1)
130ReadOnlySpan<byte> contentBytes = asnValueReader.PeekContentBytes();
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (26)
25ReadOnlySpan<char> password, 26ReadOnlySpan<byte> passwordBytes) 70ReadOnlySpan<char> password, 71ReadOnlySpan<byte> passwordBytes, 72ReadOnlySpan<byte> encryptedData, 310ReadOnlySpan<char> password, 311ReadOnlySpan<byte> passwordBytes, 316ReadOnlySpan<byte> salt, 451ReadOnlySpan<char> password, 452ReadOnlySpan<byte> passwordBytes, 453ReadOnlySpan<byte> encryptedData, 511ReadOnlySpan<byte> password, 512ReadOnlySpan<byte> encryptedData, 697ReadOnlySpan<byte> source = encryptionSchemeParameters.Value.Span; 721ReadOnlySpan<byte> password, 805ReadOnlySpan<byte> password, 808ReadOnlySpan<byte> encryptedData, 857ReadOnlySpan<char> password, 860ReadOnlySpan<byte> encryptedData, 887ReadOnlySpan<byte> saltSpan = pbeParameters.Salt.Span; 916ReadOnlySpan<byte> key, 917ReadOnlySpan<byte> iv, 918ReadOnlySpan<byte> encryptedData, 978ReadOnlySpan<byte> password, 979ReadOnlySpan<byte> salt, 1114ReadOnlySpan<byte> salt,
src\libraries\Common\src\System\Security\Cryptography\PemLabels.cs (2)
19internal static ReadOnlySpan<byte> X509CertificateUtf8 => "CERTIFICATE"u8; 20internal static ReadOnlySpan<byte> Pkcs7CertificateUtf8 => "PKCS7"u8;
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (7)
40ReadOnlySpan<byte> passwordBytes, 61ReadOnlySpan<char>.Empty, 64byte[] encrypted = safeContents.Encrypt(ReadOnlySpan<char>.Empty, passwordBytes, pbeParameters); 90ReadOnlySpan<char> password, 112ReadOnlySpan<byte>.Empty); 114byte[] encrypted = safeContents.Encrypt(password, ReadOnlySpan<byte>.Empty, pbeParameters); 164ReadOnlySpan<char> password,
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (10)
140ReadOnlySpan<byte> passwordBytes, 171ReadOnlySpan<char> password, 209public void Decrypt(ReadOnlySpan<byte> passwordBytes) 211Decrypt(ReadOnlySpan<char>.Empty, passwordBytes); 220public void Decrypt(ReadOnlySpan<char> password) 222Decrypt(password, ReadOnlySpan<byte>.Empty); 225private void Decrypt(ReadOnlySpan<char> password, ReadOnlySpan<byte> passwordBytes) 375ReadOnlySpan<char> password, 376ReadOnlySpan<byte> passwordBytes,
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9AttributeObject.cs (1)
48internal Pkcs9AttributeObject(Oid oid, ReadOnlySpan<byte> encodedData)
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9ContentType.cs (1)
28internal Pkcs9ContentType(ReadOnlySpan<byte> rawData)
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9DocumentDescription.cs (1)
39internal Pkcs9DocumentDescription(ReadOnlySpan<byte> encodedDocumentDescription)
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9DocumentName.cs (1)
39internal Pkcs9DocumentName(ReadOnlySpan<byte> encodedDocumentName)
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9LocalKeyId.cs (1)
31public Pkcs9LocalKeyId(ReadOnlySpan<byte> keyId)
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9MessageDigest.cs (1)
27internal Pkcs9MessageDigest(ReadOnlySpan<byte> rawData)
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9SigningTime.cs (1)
40internal Pkcs9SigningTime(ReadOnlySpan<byte> encodedSigningTime)
src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (12)
30ReadOnlySpan<char> password, 33ReadOnlySpan<byte> salt, 46ReadOnlySpan<char> password, 49ReadOnlySpan<byte> salt, 62ReadOnlySpan<char> password, 65ReadOnlySpan<byte> salt, 78ReadOnlySpan<char> password, 82ReadOnlySpan<byte> salt, 236private static void AddPlusOne(Span<byte> into, ReadOnlySpan<byte> addend) 250private static void CircularCopy(ReadOnlySpan<byte> bytes, Span<byte> destination) 269private static void CircularCopyUtf16BE(ReadOnlySpan<char> password, Span<byte> destination) 294ReadOnlySpan<char> trimmed = password.Slice(0, destination.Length / 2);
src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.cs (7)
93ReadOnlySpan<byte> source, 119internal static unsafe int CheckSubjectPublicKeyInfo(ReadOnlySpan<byte> source) 135ReadOnlySpan<byte> source, 161internal static unsafe int CheckPkcs8(ReadOnlySpan<byte> source) 176internal static AsnWriter WriteSubjectPublicKeyInfo(ReadOnlySpan<byte> pkcs1PublicKey) 207ReadOnlySpan<byte> pkcs1PrivateKey, 239return WritePkcs8PrivateKey(ReadOnlySpan<byte>.Empty, pkcs1PrivateKey);
src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.Encrypted.cs (4)
9ReadOnlySpan<byte> source, 10ReadOnlySpan<char> password, 24ReadOnlySpan<byte> source, 25ReadOnlySpan<byte> passwordBytes,
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (17)
108ReadOnlySpan<byte> data, 169ReadOnlySpan<byte> data, 231public override bool TryEncrypt(ReadOnlySpan<byte> data, Span<byte> destination, RSAEncryptionPadding padding, out int bytesWritten) 243ReadOnlySpan<byte> data, 483public override void ImportRSAPublicKey(ReadOnlySpan<byte> source, out int bytesRead) 519ReadOnlySpan<byte> source, 528ReadOnlySpan<byte> source, 553ReadOnlySpan<byte> passwordBytes, 554ReadOnlySpan<byte> source, 562ReadOnlySpan<char> password, 563ReadOnlySpan<byte> source, 570public override void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead) 577private void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, bool checkAlgorithm, out int bytesRead) 599public override void ImportRSAPrivateKey(ReadOnlySpan<byte> source, out int bytesRead) 750ReadOnlySpan<byte> hash, 786public override bool VerifyHash(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (27)
14private static ReadOnlySpan<byte> DigestInfoMD5 => 21private static ReadOnlySpan<byte> DigestInfoSha1 => 27private static ReadOnlySpan<byte> DigestInfoSha256 => 34private static ReadOnlySpan<byte> DigestInfoSha384 => 41private static ReadOnlySpan<byte> DigestInfoSha512 => 48private static ReadOnlySpan<byte> DigestInfoSha3_256 => 55private static ReadOnlySpan<byte> DigestInfoSha3_384 => 62private static ReadOnlySpan<byte> DigestInfoSha3_512 => 69private static ReadOnlySpan<byte> EightZeros => [0, 0, 0, 0, 0, 0, 0, 0]; 71private static ReadOnlySpan<byte> GetDigestInfoForAlgorithm( 119ReadOnlySpan<byte> source, 147ReadOnlySpan<byte> source, 180private static int DepadPkcs1Encryption(ReadOnlySpan<byte> source) 183ReadOnlySpan<byte> afterPadding = source.Slice(10); 184ReadOnlySpan<byte> noZeros = source.Slice(2, 8); 210private static int BlindFindFirstZero(ReadOnlySpan<byte> source) 251ReadOnlySpan<byte> source, 260ReadOnlySpan<byte> digestInfoPrefix = GetDigestInfoForAlgorithm(hashAlgorithmName, out _); 290ReadOnlySpan<byte> source, 383internal static void EncodePss(HashAlgorithmName hashAlgorithmName, ReadOnlySpan<byte> mHash, Span<byte> destination, int keySize) 472internal static bool VerifyPss(HashAlgorithmName hashAlgorithmName, ReadOnlySpan<byte> mHash, ReadOnlySpan<byte> em, int keySize) 506ReadOnlySpan<byte> maskedDb = em.Slice(0, dbLen); 507ReadOnlySpan<byte> h = em.Slice(dbLen, hLen); 557ReadOnlySpan<byte> salt = dbMask.Slice(dbMask.Length - sLen); 588private static void Mgf1(IncrementalHash hasher, ReadOnlySpan<byte> mgfSeed, Span<byte> mask) 635private static void Xor(Span<byte> a, ReadOnlySpan<byte> b)
src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdf.cs (32)
41ReadOnlySpan<byte> key, 61public SP800108HmacCounterKdf(ReadOnlySpan<byte> key, HashAlgorithmName hashAlgorithm) 251public static byte[] DeriveBytes(ReadOnlySpan<byte> key, HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> label, ReadOnlySpan<byte> context, int derivedKeyLengthInBytes) 283public static void DeriveBytes(ReadOnlySpan<byte> key, HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> label, ReadOnlySpan<byte> context, Span<byte> destination) 323public static byte[] DeriveBytes(ReadOnlySpan<byte> key, HashAlgorithmName hashAlgorithm, ReadOnlySpan<char> label, ReadOnlySpan<char> context, int derivedKeyLengthInBytes) 363public static void DeriveBytes(ReadOnlySpan<byte> key, HashAlgorithmName hashAlgorithm, ReadOnlySpan<char> label, ReadOnlySpan<char> context, Span<byte> destination) 416public byte[] DeriveKey(ReadOnlySpan<byte> label, ReadOnlySpan<byte> context, int derivedKeyLengthInBytes) 443public void DeriveKey(ReadOnlySpan<byte> label, ReadOnlySpan<byte> context, Span<byte> destination) 468public byte[] DeriveKey(ReadOnlySpan<char> label, ReadOnlySpan<char> context, int derivedKeyLengthInBytes) 494public void DeriveKey(ReadOnlySpan<char> label, ReadOnlySpan<char> context, Span<byte> destination) 595ReadOnlySpan<byte> key, 597ReadOnlySpan<byte> label, 598ReadOnlySpan<byte> context, 602ReadOnlySpan<byte> key, 604ReadOnlySpan<char> label, 605ReadOnlySpan<char> context, 608private void DeriveKeyCore(ReadOnlySpan<byte> label, ReadOnlySpan<byte> context, Span<byte> destination) 613private void DeriveKeyCore(ReadOnlySpan<char> label, ReadOnlySpan<char> context, Span<byte> destination)
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\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdfImplementationManaged.cs (4)
20internal override void DeriveBytes(ReadOnlySpan<byte> label, ReadOnlySpan<byte> context, Span<byte> destination) 34internal override void DeriveBytes(ReadOnlySpan<char> label, ReadOnlySpan<char> context, Span<byte> destination)
src\libraries\Common\src\System\Security\Cryptography\Utf8DataEncoding.cs (2)
15internal Utf8DataEncoding(ReadOnlySpan<char> data, Span<byte> stackBuffer) 26internal ReadOnlySpan<byte> Utf8Bytes => _buffer;
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.cs (13)
39public static partial X509Certificate2 LoadCertificate(ReadOnlySpan<byte> data); 120/// <see cref="LoadPkcs12Collection(ReadOnlySpan{byte},ReadOnlySpan{char},X509KeyStorageFlags,Pkcs12LoaderLimits?)" />, 189ReadOnlySpan<byte> data, 190ReadOnlySpan<char> password, 312/// <see cref="LoadPkcs12CollectionFromFile(string, ReadOnlySpan{char}, X509KeyStorageFlags,Pkcs12LoaderLimits?)" />, 323ReadOnlySpan<char> password, 419ReadOnlySpan<byte> data, 420ReadOnlySpan<char> password, 535ReadOnlySpan<char> password, 552ReadOnlySpan<char> password, 558ReadOnlySpan<char> password, 634ReadOnlySpan<byte> lengthPart = earlyBuf.Slice(1, read - 1);
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (13)
36ReadOnlySpan<char> password, 42ReadOnlySpan<char> password, 48ReadOnlySpan<char> password, 53ReadOnlySpan<char> password, 58ReadOnlySpan<char> password, 96ReadOnlySpan<char> password, 135ref ReadOnlySpan<char> password, 152ReadOnlySpan<byte> authSafeContents = authSafeMemory.Span; 456ReadOnlySpan<char> passwordSpan, 670ReadOnlySpan<char> passwordSpan, 671ReadOnlySpan<byte> encryptedContent) 767internal void UnshroudKeys(ref ReadOnlySpan<char> password) 884ArraySegment<byte> ToPfx(ReadOnlySpan<char> password)
src\libraries\Common\src\System\Text\UrlBase64Encoding.cs (2)
14internal static ArraySegment<char> RentEncode(ReadOnlySpan<byte> input) 32ReadOnlySpan<char> source = base64.AsSpan(0, base64Len);
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
104public ReadOnlySpan<char> AsSpan(bool terminate) 114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
src\libraries\Common\src\System\Text\ValueUtf8Converter.cs (1)
24public Span<byte> ConvertAndTerminateString(ReadOnlySpan<char> value)
System\Security\Cryptography\AesCcm.cs (14)
17public AesCcm(ReadOnlySpan<byte> key) 42Encrypt((ReadOnlySpan<byte>)nonce, plaintext, ciphertext, tag, associatedData); 46ReadOnlySpan<byte> nonce, 47ReadOnlySpan<byte> plaintext, 50ReadOnlySpan<byte> associatedData = default) 63Decrypt((ReadOnlySpan<byte>)nonce, ciphertext, tag, plaintext, associatedData); 67ReadOnlySpan<byte> nonce, 68ReadOnlySpan<byte> ciphertext, 69ReadOnlySpan<byte> tag, 71ReadOnlySpan<byte> associatedData = default) 78ReadOnlySpan<byte> plaintext, 79ReadOnlySpan<byte> ciphertext, 80ReadOnlySpan<byte> nonce, 81ReadOnlySpan<byte> tag)
System\Security\Cryptography\AesCcm.OpenSsl.cs (12)
17private void ImportKey(ReadOnlySpan<byte> key) 27ReadOnlySpan<byte> nonce, 28ReadOnlySpan<byte> plaintext, 31ReadOnlySpan<byte> associatedData = default) 38ReadOnlySpan<byte> key = _keyBox.DangerousKeySpan; 46Interop.Crypto.EvpCipherSetKeyAndIV(ctx, ReadOnlySpan<byte>.Empty, ReadOnlySpan<byte>.Empty, Interop.Crypto.EvpCipherDirection.Encrypt); 96ReadOnlySpan<byte> nonce, 97ReadOnlySpan<byte> ciphertext, 98ReadOnlySpan<byte> tag, 100ReadOnlySpan<byte> associatedData) 107ReadOnlySpan<byte> key = _keyBox.DangerousKeySpan;
System\Security\Cryptography\AesGcm.cs (15)
21public AesGcm(ReadOnlySpan<byte> key) 55public AesGcm(ReadOnlySpan<byte> key, int tagSizeInBytes) 112Encrypt((ReadOnlySpan<byte>)nonce, plaintext, ciphertext, tag, associatedData); 116ReadOnlySpan<byte> nonce, 117ReadOnlySpan<byte> plaintext, 120ReadOnlySpan<byte> associatedData = default) 133Decrypt((ReadOnlySpan<byte>)nonce, ciphertext, tag, plaintext, associatedData); 137ReadOnlySpan<byte> nonce, 138ReadOnlySpan<byte> ciphertext, 139ReadOnlySpan<byte> tag, 141ReadOnlySpan<byte> associatedData = default) 148ReadOnlySpan<byte> plaintext, 149ReadOnlySpan<byte> ciphertext, 150ReadOnlySpan<byte> nonce, 151ReadOnlySpan<byte> tag)
System\Security\Cryptography\AesGcm.OpenSsl.cs (11)
18private void ImportKey(ReadOnlySpan<byte> key) 26ReadOnlySpan<byte>.Empty, 32ReadOnlySpan<byte> nonce, 33ReadOnlySpan<byte> plaintext, 36ReadOnlySpan<byte> associatedData = default) 40ReadOnlySpan<byte>.Empty, 77ReadOnlySpan<byte> nonce, 78ReadOnlySpan<byte> ciphertext, 79ReadOnlySpan<byte> tag, 81ReadOnlySpan<byte> associatedData) 85ReadOnlySpan<byte>.Empty,
System\Security\Cryptography\AesImplementation.cs (10)
46ReadOnlySpan<byte> ciphertext, 67ReadOnlySpan<byte> plaintext, 88ReadOnlySpan<byte> plaintext, 89ReadOnlySpan<byte> iv, 110ReadOnlySpan<byte> ciphertext, 111ReadOnlySpan<byte> iv, 132ReadOnlySpan<byte> ciphertext, 133ReadOnlySpan<byte> iv, 157ReadOnlySpan<byte> plaintext, 158ReadOnlySpan<byte> iv,
System\Security\Cryptography\AesImplementation.OpenSsl.cs (2)
29ReadOnlySpan<byte> key, 30ReadOnlySpan<byte> iv,
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) 141private 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.Der.cs (11)
18public static byte[] ConvertIeee1363ToDer(ReadOnlySpan<byte> input) 25ReadOnlySpan<byte> input, 33private static AsnWriter WriteIeee1363ToDer(ReadOnlySpan<byte> input) 53public static byte[] ConvertDerToIeee1363(ReadOnlySpan<byte> input, int fieldSizeBits) 63internal static int ConvertDerToIeee1363(ReadOnlySpan<byte> input, int fieldSizeBits, Span<byte> destination) 75ReadOnlySpan<byte> rDer = sequenceReader.ReadIntegerBytes(); 76ReadOnlySpan<byte> sDer = sequenceReader.ReadIntegerBytes(); 168ReadOnlySpan<byte> signature, 190private static void CopySignatureField(ReadOnlySpan<byte> signatureField, Span<byte> response) 217ReadOnlySpan<byte> signature, 245ReadOnlySpan<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); 195ReadOnlySpan<byte> inputBufferSpan = inputBuffer.AsSpan(inputOffset, inputCount); 236private 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\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.OpenSsl.cs (11)
18private void ImportKey(ReadOnlySpan<byte> key) 26ReadOnlySpan<byte>.Empty, 31ReadOnlySpan<byte> nonce, 32ReadOnlySpan<byte> plaintext, 35ReadOnlySpan<byte> associatedData = default) 39ReadOnlySpan<byte>.Empty, 76ReadOnlySpan<byte> nonce, 77ReadOnlySpan<byte> ciphertext, 78ReadOnlySpan<byte> tag, 80ReadOnlySpan<byte> associatedData) 84ReadOnlySpan<byte>.Empty,
System\Security\Cryptography\CngProperty.cs (1)
30internal CngProperty(string name, ReadOnlySpan<byte> value, CngPropertyOptions options)
System\Security\Cryptography\ConcurrentSafeKmac.cs (3)
13internal ConcurrentSafeKmac(string algorithmId, ReadOnlySpan<byte> key, ReadOnlySpan<byte> customizationString, bool xof) 23public void Append(ReadOnlySpan<byte> data)
System\Security\Cryptography\CryptographicOperations.cs (14)
24/// values for <see cref="ReadOnlySpan{T}.Length"/> and the same contents, <c>false</c> 37public static bool FixedTimeEquals(ReadOnlySpan<byte> left, ReadOnlySpan<byte> right) 116public static byte[] HashData(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> source) 149public static int HashData(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> source, Span<byte> destination) 185public static bool TryHashData(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 420public static byte[] HmacData(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> key, ReadOnlySpan<byte> source) 456ReadOnlySpan<byte> key, 457ReadOnlySpan<byte> source, 497ReadOnlySpan<byte> key, 498ReadOnlySpan<byte> source, 574public static byte[] HmacData(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> key, Stream source) 612public static int HmacData(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> key, Stream source, Span<byte> destination)
System\Security\Cryptography\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.OpenSsl.cs (2)
31ReadOnlySpan<byte> key, 32ReadOnlySpan<byte> iv,
System\Security\Cryptography\DSA.cs (42)
223ReadOnlySpan<byte> data, 432protected virtual byte[] CreateSignatureCore(ReadOnlySpan<byte> hash, DSASignatureFormat signatureFormat) 446public virtual bool TryCreateSignature(ReadOnlySpan<byte> hash, Span<byte> destination, out int bytesWritten) 471ReadOnlySpan<byte> hash, 501ReadOnlySpan<byte> hash, 520ReadOnlySpan<byte> data, 538ReadOnlySpan<byte> data, 581ReadOnlySpan<byte> data, 614ReadOnlySpan<byte> data, 621ReadOnlySpan<byte> hash = HashSpanToTmp(data, hashAlgorithm, tmp); 627ReadOnlySpan<byte> data, 628ReadOnlySpan<byte> signature, 725ReadOnlySpan<byte> signature, 750ReadOnlySpan<byte> data, 751ReadOnlySpan<byte> signature, 776ReadOnlySpan<byte> data, 777ReadOnlySpan<byte> signature, 782ReadOnlySpan<byte> hash = HashSpanToTmp(data, hashAlgorithm, tmp); 816public virtual bool VerifySignature(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature) => 835ReadOnlySpan<byte> hash, 836ReadOnlySpan<byte> signature, 858ReadOnlySpan<byte> hash, 859ReadOnlySpan<byte> signature, 878private ReadOnlySpan<byte> HashSpanToTmp( 879ReadOnlySpan<byte> data, 895private byte[] HashSpanToArray(ReadOnlySpan<byte> data, HashAlgorithmName hashAlgorithm) 922ReadOnlySpan<byte> passwordBytes, 931ReadOnlySpan<char>.Empty, 945ReadOnlySpan<char> password, 955ReadOnlySpan<byte>.Empty); 1006ReadOnlySpan<byte> passwordBytes, 1007ReadOnlySpan<byte> source, 1032ReadOnlySpan<char> password, 1033ReadOnlySpan<byte> source, 1058ReadOnlySpan<byte> source, 1082ReadOnlySpan<byte> source, 1155public override void ImportFromPem(ReadOnlySpan<char> input) 1226public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<char> password) 1298public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<byte> passwordBytes)
System\Security\Cryptography\DSACryptoServiceProvider.Unix.cs (11)
72public override bool TryCreateSignature(ReadOnlySpan<byte> hash, Span<byte> destination, out int bytesWritten) => 117protected override bool TryHashData(ReadOnlySpan<byte> data, Span<byte> destination, HashAlgorithmName hashAlgorithm, out int bytesWritten) 143ReadOnlySpan<byte> passwordBytes, 144ReadOnlySpan<byte> source, 151ReadOnlySpan<char> password, 152ReadOnlySpan<byte> source, 219public override bool TrySignData(ReadOnlySpan<byte> data, Span<byte> destination, HashAlgorithmName hashAlgorithm, out int bytesWritten) 277public override bool VerifyData(ReadOnlySpan<byte> data, ReadOnlySpan<byte> signature, HashAlgorithmName hashAlgorithm) 288public override bool VerifySignature(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature) =>
System\Security\Cryptography\DSAWrapper.cs (21)
49public override bool TryCreateSignature(ReadOnlySpan<byte> hash, Span<byte> destination, out int bytesWritten) => 53ReadOnlySpan<byte> data, 60ReadOnlySpan<byte> data, 61ReadOnlySpan<byte> signature, 65public override bool VerifySignature(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature) => 69ReadOnlySpan<byte> passwordBytes, 76ReadOnlySpan<char> password, 89ReadOnlySpan<byte> passwordBytes, 90ReadOnlySpan<byte> source, 95ReadOnlySpan<char> password, 96ReadOnlySpan<byte> source, 100public override unsafe void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead) => 103public override void ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source, out int bytesRead) => 106public override void ImportFromPem(ReadOnlySpan<char> input) => _wrapped.ImportFromPem(input); 108public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<char> password) => 111public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<byte> passwordBytes) => 140ReadOnlySpan<byte> passwordBytes, 145ReadOnlySpan<char> password,
System\Security\Cryptography\ECAlgorithm.cs (20)
129ReadOnlySpan<byte> passwordBytes, 138ReadOnlySpan<char>.Empty, 201ReadOnlySpan<char> password, 211ReadOnlySpan<byte>.Empty); 356/// If the contents are PEM-encoded, <see cref="ImportFromEncryptedPem(ReadOnlySpan{char}, ReadOnlySpan{byte})" /> 361ReadOnlySpan<byte> passwordBytes, 362ReadOnlySpan<byte> source, 430/// If the contents are PEM-encoded, <see cref="ImportFromEncryptedPem(ReadOnlySpan{char}, ReadOnlySpan{char})" /> 435ReadOnlySpan<char> password, 436ReadOnlySpan<byte> source, 496ReadOnlySpan<byte> source, 555ReadOnlySpan<byte> source, 594public virtual unsafe void ImportECPrivateKey(ReadOnlySpan<byte> source, out int bytesRead) 705public override void ImportFromPem(ReadOnlySpan<char> input) 781public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<char> password) 853public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<byte> passwordBytes)
System\Security\Cryptography\ECDiffieHellmanWrapper.cs (16)
66ReadOnlySpan<byte> passwordBytes, 73ReadOnlySpan<char> password, 89ReadOnlySpan<byte> passwordBytes, 90ReadOnlySpan<byte> source, 95ReadOnlySpan<char> password, 96ReadOnlySpan<byte> source, 100public override void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead) => 103public override void ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source, out int bytesRead) => 106public override void ImportECPrivateKey(ReadOnlySpan<byte> source, out int bytesRead) => 114public override void ImportFromPem(ReadOnlySpan<char> input) => _wrapped.ImportFromPem(input); 116public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<char> password) => 119public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<byte> passwordBytes) => 139ReadOnlySpan<byte> passwordBytes, 144ReadOnlySpan<char> password,
System\Security\Cryptography\ECDsa.cs (48)
137ReadOnlySpan<byte> data, 308/// <seealso cref="SignHash(ReadOnlySpan{byte})" />. 309public byte[] SignHash(ReadOnlySpan<byte> hash, DSASignatureFormat signatureFormat) 331/// the signature. To use a different signature format, use <see cref="SignHash(ReadOnlySpan{byte}, DSASignatureFormat)" />. 333/// <seealso cref="SignHash(ReadOnlySpan{byte}, DSASignatureFormat)" />. 334public byte[] SignHash(ReadOnlySpan<byte> hash) 363/// <seealso cref="SignHash(ReadOnlySpan{byte}, Span{byte})" />. 364public int SignHash(ReadOnlySpan<byte> hash, Span<byte> destination, DSASignatureFormat signatureFormat) 397/// the signature. To use a different signature format, use <see cref="SignHash(ReadOnlySpan{byte}, Span{byte}, DSASignatureFormat)" />. 399/// <seealso cref="SignHash(ReadOnlySpan{byte}, Span{byte}, DSASignatureFormat)" />. 400public int SignHash(ReadOnlySpan<byte> hash, Span<byte> destination) 421protected virtual byte[] SignHashCore(ReadOnlySpan<byte> hash, DSASignatureFormat signatureFormat) 463ReadOnlySpan<byte> data, 471ReadOnlySpan<byte> hash = HashSpanToTmp(data, hashAlgorithm, hashTmp); 501ReadOnlySpan<byte> data, 534ReadOnlySpan<byte> data, 541ReadOnlySpan<byte> hash = HashSpanToTmp(data, hashAlgorithm, hashTmp); 576/// <see cref="SignData(ReadOnlySpan{byte}, HashAlgorithmName, DSASignatureFormat)" />. 578/// <seealso cref="SignData(ReadOnlySpan{byte}, HashAlgorithmName, DSASignatureFormat)" /> 579public byte[] SignData(ReadOnlySpan<byte> data, HashAlgorithmName hashAlgorithm) 610/// <seealso cref="SignData(ReadOnlySpan{byte}, HashAlgorithmName)" /> 611public byte[] SignData(ReadOnlySpan<byte> data, HashAlgorithmName hashAlgorithm, DSASignatureFormat signatureFormat) 654/// <seealso cref="SignData(ReadOnlySpan{byte}, Span{byte}, HashAlgorithmName)" /> 656ReadOnlySpan<byte> data, 704/// <see cref="SignData(ReadOnlySpan{byte}, Span{byte}, HashAlgorithmName, DSASignatureFormat)" />. 706/// <seealso cref="SignData(ReadOnlySpan{byte}, Span{byte}, HashAlgorithmName, DSASignatureFormat)" /> 707public int SignData(ReadOnlySpan<byte> data, Span<byte> destination, HashAlgorithmName hashAlgorithm) 841public virtual bool VerifyData(ReadOnlySpan<byte> data, ReadOnlySpan<byte> signature, HashAlgorithmName hashAlgorithm) 846ReadOnlySpan<byte> hash = HashSpanToTmp(data, hashAlgorithm, hashTmp); 867ReadOnlySpan<byte> data, 868ReadOnlySpan<byte> signature, 893ReadOnlySpan<byte> data, 894ReadOnlySpan<byte> signature, 978ReadOnlySpan<byte> signature, 998protected virtual bool TryHashData(ReadOnlySpan<byte> data, Span<byte> destination, HashAlgorithmName hashAlgorithm, out int bytesWritten) 1041public virtual bool TrySignHash(ReadOnlySpan<byte> hash, Span<byte> destination, out int bytesWritten) 1066ReadOnlySpan<byte> hash, 1096ReadOnlySpan<byte> hash, 1109public virtual bool VerifyHash(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature) => 1157ReadOnlySpan<byte> hash, 1158ReadOnlySpan<byte> signature, 1180ReadOnlySpan<byte> hash, 1181ReadOnlySpan<byte> signature, 1198private ReadOnlySpan<byte> HashSpanToTmp( 1199ReadOnlySpan<byte> data, 1215private byte[] HashSpanToArray(ReadOnlySpan<byte> data, HashAlgorithmName hashAlgorithm)
System\Security\Cryptography\ECDsaWrapper.cs (22)
27ReadOnlySpan<byte> data, 45ReadOnlySpan<byte> data, 46ReadOnlySpan<byte> signature, 70ReadOnlySpan<byte> passwordBytes, 71ReadOnlySpan<byte> source, 76ReadOnlySpan<char> password, 77ReadOnlySpan<byte> source, 82ReadOnlySpan<byte> source, 87ReadOnlySpan<byte> source, 92ReadOnlySpan<byte> source, 104ReadOnlySpan<byte> passwordBytes, 109ReadOnlySpan<char> password, 132ReadOnlySpan<byte> passwordBytes, 139ReadOnlySpan<char> password, 154public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<char> password) => 157public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<byte> passwordBytes) => 160public override void ImportFromPem(ReadOnlySpan<char> input) => _wrapped.ImportFromPem(input); 172public override bool TrySignHash(ReadOnlySpan<byte> hash, Span<byte> destination, out int bytesWritten) => 175public override bool VerifyHash(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature) =>
System\Security\Cryptography\FixedMemoryKeyBox.cs (2)
12internal FixedMemoryKeyBox(ReadOnlySpan<byte> key) : base(IntPtr.Zero, ownsHandle: true) 20internal ReadOnlySpan<byte> DangerousKeySpan => new ReadOnlySpan<byte>((void*)handle, _length);
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\HashProviderDispenser.OpenSsl.cs (4)
28ReadOnlySpan<byte> key, 29ReadOnlySpan<byte> source, 31ReadOnlySpan<byte> customizationString, 45public static unsafe void HashDataXof(string hashAlgorithmId, ReadOnlySpan<byte> source, Span<byte> destination)
System\Security\Cryptography\HashProviderDispenser.Unix.cs (7)
20internal static HashProvider CreateMacProvider(string hashAlgorithmId, ReadOnlySpan<byte> key) 36ReadOnlySpan<byte> key, 37ReadOnlySpan<byte> source, 56public static unsafe int HashData(string hashAlgorithmId, ReadOnlySpan<byte> source, Span<byte> destination) 111public override void AppendHashData(ReadOnlySpan<byte> data) 168public HmacHashProvider(string hashAlgorithmId, ReadOnlySpan<byte> key) 187public override void AppendHashData(ReadOnlySpan<byte> data)
System\Security\Cryptography\Helpers.cs (6)
85ReadOnlySpan<char> s = hexString; 157ReadOnlySpan<byte> input = encodedOctetString.Span; 162out ReadOnlySpan<byte> primitive, 268internal static void ValidateDer(ReadOnlySpan<byte> encodedValue) 329internal static unsafe ref readonly byte GetNonNullPinnableReference(ReadOnlySpan<byte> buffer) 342internal static ReadOnlySpan<byte> ArrayToSpanOrThrow(
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.OpenSsl.cs (7)
15ReadOnlySpan<byte> ikm, 16ReadOnlySpan<byte> salt, 35ReadOnlySpan<byte> prk, 37ReadOnlySpan<byte> info) 55ReadOnlySpan<byte> ikm, 57ReadOnlySpan<byte> salt, 58ReadOnlySpan<byte> info)
System\Security\Cryptography\HKDFManagedImplementation.cs (7)
12internal static void Extract(HashAlgorithmName hashAlgorithmName, int hashLength, ReadOnlySpan<byte> ikm, ReadOnlySpan<byte> salt, Span<byte> prk) 19internal static void Expand(HashAlgorithmName hashAlgorithmName, int hashLength, ReadOnlySpan<byte> prk, Span<byte> output, ReadOnlySpan<byte> info) 86internal static 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 (9)
68protected override void HashCore(ReadOnlySpan<byte> source) => 104public static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source) 126public static int HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination) 150public static bool TryHashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 185public static int HashData(ReadOnlySpan<byte> key, Stream source, Span<byte> destination) 211public static byte[] HashData(ReadOnlySpan<byte> key, Stream source)
System\Security\Cryptography\HMACSHA1.cs (9)
74protected override void HashCore(ReadOnlySpan<byte> source) => 108public static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source) 129public 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) 186public static int HashData(ReadOnlySpan<byte> key, Stream source, Span<byte> destination) 211public static byte[] HashData(ReadOnlySpan<byte> key, Stream source)
System\Security\Cryptography\HMACSHA256.cs (9)
66protected override void HashCore(ReadOnlySpan<byte> source) => 100public static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source) 121public static int HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination) 144public static bool TryHashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 178public static int HashData(ReadOnlySpan<byte> key, Stream source, Span<byte> destination) 203public static byte[] HashData(ReadOnlySpan<byte> key, Stream source)
System\Security\Cryptography\HMACSHA3_256.cs (9)
99protected override void HashCore(ReadOnlySpan<byte> source) => 136public static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source) 157public static int HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination) 180public static bool TryHashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 216public static int HashData(ReadOnlySpan<byte> key, Stream source, Span<byte> destination) 242public static byte[] HashData(ReadOnlySpan<byte> key, Stream source)
System\Security\Cryptography\HMACSHA3_384.cs (9)
99protected override void HashCore(ReadOnlySpan<byte> source) => 136public static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source) 157public static int HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination) 180public static bool TryHashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 216public static int HashData(ReadOnlySpan<byte> key, Stream source, Span<byte> destination) 242public static byte[] HashData(ReadOnlySpan<byte> key, Stream source)
System\Security\Cryptography\HMACSHA3_512.cs (9)
99protected override void HashCore(ReadOnlySpan<byte> source) => 136public static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source) 157public static int HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination) 180public static bool TryHashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 216public static int HashData(ReadOnlySpan<byte> key, Stream source, Span<byte> destination) 242public static byte[] HashData(ReadOnlySpan<byte> key, Stream source)
System\Security\Cryptography\HMACSHA384.cs (9)
83protected override void HashCore(ReadOnlySpan<byte> source) => 117public static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source) 138public static int HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination) 161public static bool TryHashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 195public static int HashData(ReadOnlySpan<byte> key, Stream source, Span<byte> destination) 220public static byte[] HashData(ReadOnlySpan<byte> key, Stream source)
System\Security\Cryptography\HMACSHA512.cs (9)
80protected override void HashCore(ReadOnlySpan<byte> source) => 114public static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source) 135public static int HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination) 158public static bool TryHashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 192public static int HashData(ReadOnlySpan<byte> key, Stream source, Span<byte> destination) 217public static byte[] HashData(ReadOnlySpan<byte> key, Stream source)
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 (7)
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})" /> 357return CreateHMAC(hashAlgorithm, (ReadOnlySpan<byte>)key); 382public static IncrementalHash CreateHMAC(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> key)
System\Security\Cryptography\Kmac128.cs (16)
53public Kmac128(ReadOnlySpan<byte> key, ReadOnlySpan<byte> customizationString = default) 87public void AppendData(ReadOnlySpan<byte> data) 247ReadOnlySpan<byte> key, 248ReadOnlySpan<byte> source, 250ReadOnlySpan<byte> customizationString = default) 273ReadOnlySpan<byte> key, 274ReadOnlySpan<byte> source, 276ReadOnlySpan<byte> customizationString = default) 342ReadOnlySpan<byte> key, 345ReadOnlySpan<byte> customizationString = default) 374ReadOnlySpan<byte> key, 377ReadOnlySpan<byte> customizationString = default) 520ReadOnlySpan<byte> key, 521ReadOnlySpan<byte> source, 523ReadOnlySpan<byte> customizationString)
System\Security\Cryptography\Kmac256.cs (16)
53public Kmac256(ReadOnlySpan<byte> key, ReadOnlySpan<byte> customizationString = default) 87public void AppendData(ReadOnlySpan<byte> data) 247ReadOnlySpan<byte> key, 248ReadOnlySpan<byte> source, 250ReadOnlySpan<byte> customizationString = default) 273ReadOnlySpan<byte> key, 274ReadOnlySpan<byte> source, 276ReadOnlySpan<byte> customizationString = default) 342ReadOnlySpan<byte> key, 345ReadOnlySpan<byte> customizationString = default) 374ReadOnlySpan<byte> key, 377ReadOnlySpan<byte> customizationString = default) 520ReadOnlySpan<byte> key, 521ReadOnlySpan<byte> source, 523ReadOnlySpan<byte> customizationString)
System\Security\Cryptography\KmacXof128.cs (16)
53public KmacXof128(ReadOnlySpan<byte> key, ReadOnlySpan<byte> customizationString = default) 87public void AppendData(ReadOnlySpan<byte> data) 247ReadOnlySpan<byte> key, 248ReadOnlySpan<byte> source, 250ReadOnlySpan<byte> customizationString = default) 273ReadOnlySpan<byte> key, 274ReadOnlySpan<byte> source, 276ReadOnlySpan<byte> customizationString = default) 342ReadOnlySpan<byte> key, 345ReadOnlySpan<byte> customizationString = default) 374ReadOnlySpan<byte> key, 377ReadOnlySpan<byte> customizationString = default) 520ReadOnlySpan<byte> key, 521ReadOnlySpan<byte> source, 523ReadOnlySpan<byte> customizationString)
System\Security\Cryptography\KmacXof256.cs (16)
53public KmacXof256(ReadOnlySpan<byte> key, ReadOnlySpan<byte> customizationString = default) 87public void AppendData(ReadOnlySpan<byte> data) 247ReadOnlySpan<byte> key, 248ReadOnlySpan<byte> source, 250ReadOnlySpan<byte> customizationString = default) 273ReadOnlySpan<byte> key, 274ReadOnlySpan<byte> source, 276ReadOnlySpan<byte> customizationString = default) 342ReadOnlySpan<byte> key, 345ReadOnlySpan<byte> customizationString = default) 374ReadOnlySpan<byte> key, 377ReadOnlySpan<byte> customizationString = default) 520ReadOnlySpan<byte> key, 521ReadOnlySpan<byte> source, 523ReadOnlySpan<byte> customizationString)
System\Security\Cryptography\LiteHash.OpenSsl.cs (5)
12internal static LiteKmac CreateKmac(string algorithmId, ReadOnlySpan<byte> key, ReadOnlySpan<byte> customizationString, bool xof) 38internal LiteKmac(SafeEvpMacHandle algorithm, ReadOnlySpan<byte> key, ReadOnlySpan<byte> customizationString, bool xof) 50public void Append(ReadOnlySpan<byte> data)
System\Security\Cryptography\LiteHash.Unix.cs (5)
18internal static LiteHmac CreateHmac(string hashAlgorithmId, ReadOnlySpan<byte> key) 53public void Append(ReadOnlySpan<byte> data) 147public void Append(ReadOnlySpan<byte> data) 212internal LiteHmac(IntPtr algorithm, ReadOnlySpan<byte> key) 233public 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)
66public static byte[] HashData(ReadOnlySpan<byte> source) 87public static int HashData(ReadOnlySpan<byte> source, Span<byte> destination) 108public static bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 260protected sealed override void HashCore(ReadOnlySpan<byte> source) =>
System\Security\Cryptography\MD5CryptoServiceProvider.cs (1)
44protected override void HashCore(ReadOnlySpan<byte> source)
System\Security\Cryptography\OidLookup.cs (1)
136static void AddEntry(string oid, string primaryFriendlyName, ReadOnlySpan<string> additionalFriendlyNames = default)
System\Security\Cryptography\OpenSslCipher.cs (2)
35public override unsafe int Transform(ReadOnlySpan<byte> input, Span<byte> output) 42public override int TransformFinal(ReadOnlySpan<byte> input, Span<byte> output)
System\Security\Cryptography\OpenSslCipherLite.cs (6)
28ReadOnlySpan<byte> key, 29ReadOnlySpan<byte> iv, 50public int TransformFinal(ReadOnlySpan<byte> input, Span<byte> output) 93public unsafe int Transform(ReadOnlySpan<byte> input, Span<byte> output) 125public void Reset(ReadOnlySpan<byte> iv) 140private int CipherUpdate(ReadOnlySpan<byte> input, Span<byte> output)
System\Security\Cryptography\Pbkdf2Implementation.OpenSsl.cs (2)
11ReadOnlySpan<byte> password, 12ReadOnlySpan<byte> salt,
System\Security\Cryptography\PemEncoding.cs (53)
39public static PemFields Find(ReadOnlySpan<char> pemData) 69public static PemFields FindUtf8(ReadOnlySpan<byte> pemData) 98public static bool TryFind(ReadOnlySpan<char> pemData, out PemFields fields) 125public static bool TryFindUtf8(ReadOnlySpan<byte> pemData, out PemFields fields) 130private static bool TryFindCore<TChar, T>(ReadOnlySpan<TChar> pemData, out PemFields fields) 171ReadOnlySpan<TChar> label = pemData[labelRange]; 186ReadOnlySpan<TChar> posteb = WritePostEB(label, postebBuffer); 232static ReadOnlySpan<TChar> WritePostEB(ReadOnlySpan<TChar> label, Span<TChar> destination) 243private static int IndexOfByOffset<TChar>(this ReadOnlySpan<TChar> str, ReadOnlySpan<TChar> value, int startPosition) 251private static bool IsValidLabel<TChar>(ReadOnlySpan<TChar> data) 302ReadOnlySpan<TChar> str, 327private static bool IsWhiteSpaceCharacter<TChar>(TChar ch, ReadOnlySpan<TChar> whitespace) 458public static bool TryWrite(ReadOnlySpan<char> label, ReadOnlySpan<byte> data, Span<char> destination, out int charsWritten) 518ReadOnlySpan<byte> utf8Label, 519ReadOnlySpan<byte> data, 575public static byte[] WriteUtf8(ReadOnlySpan<byte> utf8Label, ReadOnlySpan<byte> data) 588private static int WriteCore<TChar, T>(ReadOnlySpan<TChar> label, ReadOnlySpan<byte> data, Span<TChar> destination) 592static int Write(ReadOnlySpan<TChar> str, Span<TChar> dest, int offset) 606ReadOnlySpan<byte> remainingData = data; 659public static char[] Write(ReadOnlySpan<char> label, ReadOnlySpan<byte> data) 702public static unsafe string WriteString(ReadOnlySpan<char> label, ReadOnlySpan<byte> data) 714ReadOnlySpan<char> label = *(ReadOnlySpan<char>*)state.LabelPointer; 715ReadOnlySpan<byte> data = *(ReadOnlySpan<byte>*)state.DataPointer; 729static abstract ReadOnlySpan<TChar> PreEBPrefix { get; } 730static abstract ReadOnlySpan<TChar> PostEBPrefix { get; } 731static abstract ReadOnlySpan<TChar> Ending { get; } 732static abstract ReadOnlySpan<TChar> Whitespace { get; } 733static abstract ReadOnlySpan<TChar> NewLine { get; } 734static abstract bool IsValidBase64(ReadOnlySpan<TChar> base64Text, out int decodedLength); 735static abstract int WriteBase64(ReadOnlySpan<byte> bytes, Span<TChar> destination, int offset); 740public static ReadOnlySpan<char> PreEBPrefix => "-----BEGIN "; 741public static ReadOnlySpan<char> PostEBPrefix => "-----END "; 742public static ReadOnlySpan<char> Ending => "-----"; 743public static ReadOnlySpan<char> Whitespace => " \t\n\r"; 744public static ReadOnlySpan<char> NewLine => "\n"; 746public static bool IsValidBase64(ReadOnlySpan<char> base64Text, out int decodedLength) 751public static int WriteBase64(ReadOnlySpan<byte> bytes, Span<char> destination, int offset) 767public static ReadOnlySpan<byte> PreEBPrefix => "-----BEGIN "u8; 768public static ReadOnlySpan<byte> PostEBPrefix => "-----END "u8; 769public static ReadOnlySpan<byte> Ending => "-----"u8; 770public static ReadOnlySpan<byte> Whitespace => " \t\n\r"u8; 771public static ReadOnlySpan<byte> NewLine => "\n"u8; 773public static bool IsValidBase64(ReadOnlySpan<byte> base64Text, out int decodedLength) 778public static int WriteBase64(ReadOnlySpan<byte> bytes, Span<byte> destination, int offset)
System\Security\Cryptography\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 unsafe 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 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.OpenSsl.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 (44)
102public virtual bool TryDecrypt(ReadOnlySpan<byte> data, Span<byte> destination, RSAEncryptionPadding padding, out int bytesWritten) 117public virtual bool TryEncrypt(ReadOnlySpan<byte> data, Span<byte> destination, RSAEncryptionPadding padding, out int bytesWritten) 159/// <seealso cref="Encrypt(ReadOnlySpan{byte}, Span{byte}, RSAEncryptionPadding)" /> 161public byte[] Encrypt(ReadOnlySpan<byte> data, RSAEncryptionPadding padding) 167ReadOnlySpan<byte> input, 209/// <seealso cref="Encrypt(ReadOnlySpan{byte}, RSAEncryptionPadding)" /> 211public int Encrypt(ReadOnlySpan<byte> data, Span<byte> destination, RSAEncryptionPadding padding) 246/// <seealso cref="Decrypt(ReadOnlySpan{byte}, Span{byte}, RSAEncryptionPadding)" /> 248public byte[] Decrypt(ReadOnlySpan<byte> data, RSAEncryptionPadding padding) 254ReadOnlySpan<byte> input, 292/// <seealso cref="Decrypt(ReadOnlySpan{byte}, RSAEncryptionPadding)" /> 294public int Decrypt(ReadOnlySpan<byte> data, Span<byte> destination, RSAEncryptionPadding padding) 306protected virtual bool TryHashData(ReadOnlySpan<byte> data, Span<byte> destination, HashAlgorithmName hashAlgorithm, out int bytesWritten) 341public virtual bool TrySignHash(ReadOnlySpan<byte> hash, Span<byte> destination, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding, out int bytesWritten) 356public virtual bool VerifyHash(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding) => 411public virtual bool TrySignData(ReadOnlySpan<byte> data, Span<byte> destination, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding, out int bytesWritten) 456public byte[] SignData(ReadOnlySpan<byte> data, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding) 463ReadOnlySpan<byte> input, 516ReadOnlySpan<byte> data, 562public byte[] SignHash(ReadOnlySpan<byte> hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding) 569ReadOnlySpan<byte> input, 618ReadOnlySpan<byte> hash, 676public virtual bool VerifyData(ReadOnlySpan<byte> data, ReadOnlySpan<byte> signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding) 802ReadOnlySpan<char> password, 812ReadOnlySpan<byte>.Empty); 825ReadOnlySpan<byte> passwordBytes, 834ReadOnlySpan<char>.Empty, 875public override unsafe void ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source, out int bytesRead) 891public virtual unsafe void ImportRSAPublicKey(ReadOnlySpan<byte> source, out int bytesRead) 921public virtual unsafe void ImportRSAPrivateKey(ReadOnlySpan<byte> source, out int bytesRead) 969public override unsafe void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead) 986ReadOnlySpan<byte> passwordBytes, 987ReadOnlySpan<byte> source, 1017ReadOnlySpan<char> password, 1018ReadOnlySpan<byte> source, 1084public override void ImportFromPem(ReadOnlySpan<char> input) 1161public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<char> password) 1233public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<byte> passwordBytes) 1403private delegate bool TryFunc<TState>(RSA rsa, ReadOnlySpan<byte> input, byte[] destination, TState state, out int bytesWritten); 1406ReadOnlySpan<byte> input,
System\Security\Cryptography\RSACryptoServiceProvider.Unix.cs (16)
64public override bool TryDecrypt(ReadOnlySpan<byte> data, Span<byte> destination, RSAEncryptionPadding padding, out int bytesWritten) 103public override bool TryEncrypt(ReadOnlySpan<byte> data, Span<byte> destination, RSAEncryptionPadding padding, out int bytesWritten) 143ReadOnlySpan<byte> passwordBytes, 144ReadOnlySpan<byte> source, 151ReadOnlySpan<char> password, 152ReadOnlySpan<byte> source, 205public override bool TrySignData(ReadOnlySpan<byte> data, Span<byte> destination, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding, out int bytesWritten) 242public override bool TrySignHash(ReadOnlySpan<byte> hash, Span<byte> destination, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding, out int bytesWritten) 286public override bool VerifyData(ReadOnlySpan<byte> data, ReadOnlySpan<byte> signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding) 305return VerifyHash((ReadOnlySpan<byte>)hash, (ReadOnlySpan<byte>)signature, hashAlgorithm, padding); 308public override bool VerifyHash(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding) 328(ReadOnlySpan<byte>)rgbHash, (ReadOnlySpan<byte>)rgbSignature,
System\Security\Cryptography\RSAWrapper.cs (25)
29ReadOnlySpan<byte> passwordBytes, 34ReadOnlySpan<char> password, 70ReadOnlySpan<byte> data, 77ReadOnlySpan<byte> data, 84ReadOnlySpan<byte> hash, 92ReadOnlySpan<byte> hash, 93ReadOnlySpan<byte> signature, 118ReadOnlySpan<byte> data, 135ReadOnlySpan<byte> data, 136ReadOnlySpan<byte> signature, 158ReadOnlySpan<char> password, 165ReadOnlySpan<byte> passwordBytes, 171public override void ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source, out int bytesRead) => 174public override void ImportRSAPublicKey(ReadOnlySpan<byte> source, out int bytesRead) => 177public override void ImportRSAPrivateKey(ReadOnlySpan<byte> source, out int bytesRead) => 180public override void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead) => 184ReadOnlySpan<byte> passwordBytes, 185ReadOnlySpan<byte> source, 190ReadOnlySpan<char> password, 191ReadOnlySpan<byte> source, 195public override void ImportFromPem(ReadOnlySpan<char> input) => 198public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<char> password) => 201public override void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<byte> passwordBytes) =>
System\Security\Cryptography\SHA1.cs (4)
63public static byte[] HashData(ReadOnlySpan<byte> source) 83public static int HashData(ReadOnlySpan<byte> source, Span<byte> destination) 103public static bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 251protected 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)
62public static byte[] HashData(ReadOnlySpan<byte> source) 82public static int HashData(ReadOnlySpan<byte> source, Span<byte> destination) 103public static bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 251protected 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)
88public static byte[] HashData(ReadOnlySpan<byte> source) 111public static int HashData(ReadOnlySpan<byte> source, Span<byte> destination) 134public static bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 306protected sealed override void HashCore(ReadOnlySpan<byte> source) =>
System\Security\Cryptography\SHA3_384.cs (4)
88public static byte[] HashData(ReadOnlySpan<byte> source) 111public static int HashData(ReadOnlySpan<byte> source, Span<byte> destination) 135public static bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 307protected sealed override void HashCore(ReadOnlySpan<byte> source) =>
System\Security\Cryptography\SHA3_512.cs (4)
88public static byte[] HashData(ReadOnlySpan<byte> source) 111public static int HashData(ReadOnlySpan<byte> source, Span<byte> destination) 134public static bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 306protected sealed override void HashCore(ReadOnlySpan<byte> source) =>
System\Security\Cryptography\SHA384.cs (4)
62public static byte[] HashData(ReadOnlySpan<byte> source) 82public static int HashData(ReadOnlySpan<byte> source, Span<byte> destination) 102public static bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 250protected 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)
62public static byte[] HashData(ReadOnlySpan<byte> source) 82public static int HashData(ReadOnlySpan<byte> source, Span<byte> destination) 102public static bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) 250protected 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\SP800108HmacCounterKdf.OpenSsl.cs (7)
11ReadOnlySpan<byte> key, 46ReadOnlySpan<byte> key, 48ReadOnlySpan<byte> label, 49ReadOnlySpan<byte> context, 63ReadOnlySpan<byte> key, 65ReadOnlySpan<char> label, 66ReadOnlySpan<char> context,
System\Security\Cryptography\SP800108HmacCounterKdfImplementationManaged.cs (8)
13public SP800108HmacCounterKdfImplementationManaged(ReadOnlySpan<byte> key, HashAlgorithmName hashAlgorithm) 22ReadOnlySpan<byte> key, 24ReadOnlySpan<byte> label, 25ReadOnlySpan<byte> context, 45ReadOnlySpan<byte> zero = [0]; 81ReadOnlySpan<byte> key, 83ReadOnlySpan<char> label, 84ReadOnlySpan<char> context,
System\Security\Cryptography\SP800108HmacCounterKdfImplementationOpenSsl.cs (11)
16internal unsafe SP800108HmacCounterKdfImplementationOpenSsl(ReadOnlySpan<byte> key, HashAlgorithmName hashAlgorithm) 27internal override unsafe void DeriveBytes(ReadOnlySpan<byte> label, ReadOnlySpan<byte> context, Span<byte> destination) 63internal override void DeriveBytes(ReadOnlySpan<char> label, ReadOnlySpan<char> context, Span<byte> destination) 73ReadOnlySpan<byte> key, 75ReadOnlySpan<byte> label, 76ReadOnlySpan<byte> context, 96ReadOnlySpan<byte> key, 98ReadOnlySpan<char> label, 99ReadOnlySpan<char> context,
System\Security\Cryptography\SymmetricAlgorithm.cs (41)
467public byte[] DecryptEcb(ReadOnlySpan<byte> ciphertext, PaddingMode paddingMode) 509public int DecryptEcb(ReadOnlySpan<byte> ciphertext, Span<byte> destination, PaddingMode paddingMode) 538public bool TryDecryptEcb(ReadOnlySpan<byte> ciphertext, Span<byte> destination, PaddingMode paddingMode, out int bytesWritten) 585public byte[] EncryptEcb(ReadOnlySpan<byte> plaintext, PaddingMode paddingMode) 627public int EncryptEcb(ReadOnlySpan<byte> plaintext, Span<byte> destination, PaddingMode paddingMode) 656public bool TryEncryptEcb(ReadOnlySpan<byte> plaintext, Span<byte> destination, PaddingMode paddingMode, out int bytesWritten) 713public byte[] DecryptCbc(ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> iv, PaddingMode paddingMode = PaddingMode.PKCS7) 767ReadOnlySpan<byte> ciphertext, 768ReadOnlySpan<byte> iv, 806ReadOnlySpan<byte> ciphertext, 807ReadOnlySpan<byte> iv, 869ReadOnlySpan<byte> plaintext, 870ReadOnlySpan<byte> iv, 920ReadOnlySpan<byte> plaintext, 921ReadOnlySpan<byte> iv, 959ReadOnlySpan<byte> plaintext, 960ReadOnlySpan<byte> iv, 1063ReadOnlySpan<byte> ciphertext, 1064ReadOnlySpan<byte> iv, 1139ReadOnlySpan<byte> ciphertext, 1140ReadOnlySpan<byte> iv, 1198ReadOnlySpan<byte> ciphertext, 1199ReadOnlySpan<byte> iv, 1303ReadOnlySpan<byte> plaintext, 1304ReadOnlySpan<byte> iv, 1371ReadOnlySpan<byte> plaintext, 1372ReadOnlySpan<byte> iv, 1430ReadOnlySpan<byte> plaintext, 1431ReadOnlySpan<byte> iv, 1465ReadOnlySpan<byte> plaintext, 1489ReadOnlySpan<byte> ciphertext, 1519ReadOnlySpan<byte> plaintext, 1520ReadOnlySpan<byte> iv, 1545ReadOnlySpan<byte> ciphertext, 1546ReadOnlySpan<byte> iv, 1573ReadOnlySpan<byte> ciphertext, 1574ReadOnlySpan<byte> iv, 1606ReadOnlySpan<byte> plaintext, 1607ReadOnlySpan<byte> iv, 1622private 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\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.OpenSsl.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\X509Certificates\Asn1\BasicConstraintsAsn.xml.cs (1)
14private 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 (2)
102ReadOnlySpan<byte> rebindSpan = rebind.Span; 104ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\X509Certificates\Asn1\DistributionPointNameAsn.xml.cs (2)
121ReadOnlySpan<byte> rebindSpan = rebind.Span; 123ReadOnlySpan<byte> tmpSpan;
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)
15private static ReadOnlySpan<byte> DefaultVersion => [0x02, 0x01, 0x00]; 182ReadOnlySpan<byte> rebindSpan = rebind.Span; 184ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\X509Certificates\CertificatePal.cs (1)
15ReadOnlySpan<byte> rawData,
System\Security\Cryptography\X509Certificates\CertificatePal.OpenSsl.cs (1)
23internal static partial ICertificatePal FromBlob(ReadOnlySpan<byte> rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (3)
629ReadOnlySpan<byte> serialNumber) 808ReadOnlySpan<byte> serialNumber) 898private static ArraySegment<byte> NormalizeSerialNumber(ReadOnlySpan<byte> serialNumber)
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (8)
34ReadOnlySpan<char> pkcs10Pem, 46foreach ((ReadOnlySpan<char> contents, PemFields fields) in PemEnumerator.Utf16(pkcs10Pem)) 98ReadOnlySpan<byte> pkcs10, 114ReadOnlySpan<byte> pkcs10, 152ReadOnlySpan<byte> encodedRequestInfo = pkcs10Asn.PeekEncodedValue(); 155ReadOnlySpan<byte> signature; 290ReadOnlySpan<byte> toBeSigned, 291ReadOnlySpan<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\IX509Pal.cs (1)
14X509ContentType GetCertContentType(ReadOnlySpan<byte> rawData);
System\Security\Cryptography\X509Certificates\OpenSslCrlCache.cs (1)
282ReadOnlySpan<byte> utf16Url = MemoryMarshal.AsBytes(crlUrl.AsSpan());
System\Security\Cryptography\X509Certificates\OpenSslExportProvider.cs (1)
23ReadOnlySpan<char> password)
System\Security\Cryptography\X509Certificates\OpenSslPkcsFormatReader.cs (7)
13internal static bool IsPkcs7(ReadOnlySpan<byte> rawData) 78internal static bool TryReadPkcs7Der(ReadOnlySpan<byte> rawData, out ICertificatePal? certPal) 88internal static bool TryReadPkcs7Der(ReadOnlySpan<byte> rawData, [NotNullWhen(true)] out List<ICertificatePal>? certPals) 99ReadOnlySpan<byte> rawData, 138internal static bool TryReadPkcs7Pem(ReadOnlySpan<byte> rawData, out ICertificatePal? certPal) 148internal static bool TryReadPkcs7Pem(ReadOnlySpan<byte> rawData, [NotNullWhen(true)] out List<ICertificatePal>? certPals) 159ReadOnlySpan<byte> rawData,
System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs (3)
42public static ICertificatePal FromBlob(ReadOnlySpan<byte> rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags) 155internal static bool TryReadX509Der(ReadOnlySpan<byte> rawData, [NotNullWhen(true)] out ICertificatePal? certPal) 205internal static bool TryReadX509Pem(ReadOnlySpan<byte> rawData, [NotNullWhen(true)] out ICertificatePal? certPal)
System\Security\Cryptography\X509Certificates\OpenSslX509Encoder.cs (1)
64public X509ContentType GetCertContentType(ReadOnlySpan<byte> rawData)
System\Security\Cryptography\X509Certificates\PublicKey.cs (2)
144public static PublicKey CreateFromSubjectPublicKeyInfo(ReadOnlySpan<byte> source, out int bytesRead) 293ReadOnlySpan<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.OpenSsl.cs (1)
19internal static partial ILoaderPal FromBlob(ReadOnlySpan<byte> rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
System\Security\Cryptography\X509Certificates\UnixExportProvider.cs (3)
43protected abstract byte[] ExportPkcs8(ICertificatePalCore certificatePal, ReadOnlySpan<char> password); 90ReadOnlySpan<char> passwordSpan = password.DangerousGetSpan(); 140ReadOnlySpan<char> password,
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\X500NameEncoder.cs (12)
136private static bool NeedsQuoting(ReadOnlySpan<char> rdnValue) => 204ReadOnlySpan<char> chars = stringForm; 211ReadOnlySpan<char> tagOid = default; 477private static ReadOnlySpan<char> ParseOid(ReadOnlySpan<char> str) 492private static byte[] ParseRdn(ReadOnlySpan<char> tagOid, ReadOnlySpan<char> chars, bool hadEscapedQuote, bool forceUtf8Encoding) 560private static int ExtractValue(ReadOnlySpan<char> chars, Span<char> destination) 645private static void WriteCryptoCharacterString(AsnWriter writer, UniversalTagNumber tagNumber, ReadOnlySpan<char> data) 664private static EncodingRules LookupEncodingRules(ReadOnlySpan<char> oid) 667Dictionary<string, EncodingRules>.AlternateLookup<ReadOnlySpan<char>> alternateLookup = 668lookup.GetAlternateLookup<ReadOnlySpan<char>>();
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)
64private protected X509Certificate(ReadOnlySpan<byte> data) 119private protected X509Certificate(ReadOnlySpan<byte> rawData, ReadOnlySpan<char> password, X509KeyStorageFlags keyStorageFlags) 180private protected X509Certificate(string fileName, ReadOnlySpan<char> password, X509KeyStorageFlags keyStorageFlags) 310ReadOnlySpan<byte> thisSerialNumber = GetRawSerialNumber(); 311ReadOnlySpan<byte> otherSerialNumber = other.GetRawSerialNumber(); 388internal static string GetCertHashString(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> rawData)
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (32)
96public X509Certificate2(ReadOnlySpan<byte> rawData) 117public X509Certificate2(ReadOnlySpan<byte> rawData, ReadOnlySpan<char> password, X509KeyStorageFlags keyStorageFlags = 0) 172public X509Certificate2(string fileName, ReadOnlySpan<char> password, X509KeyStorageFlags keyStorageFlags = 0) 405public static X509ContentType GetCertContentType(ReadOnlySpan<byte> rawData) 833ReadOnlySpan<char> certContents = File.ReadAllText(certPemFilePath); 834ReadOnlySpan<char> keyContents = keyPemFilePath is null ? certContents : File.ReadAllText(keyPemFilePath); 895public static X509Certificate2 CreateFromEncryptedPemFile(string certPemFilePath, ReadOnlySpan<char> password, string? keyPemFilePath = default) 899ReadOnlySpan<char> certContents = File.ReadAllText(certPemFilePath); 900ReadOnlySpan<char> keyContents = keyPemFilePath is null ? certContents : File.ReadAllText(keyPemFilePath); 945public static X509Certificate2 CreateFromPem(ReadOnlySpan<char> certPem, ReadOnlySpan<char> keyPem) 1012/// For PEM-encoded keys without a password, use <see cref="CreateFromPem(ReadOnlySpan{char}, ReadOnlySpan{char})" />. 1016public static X509Certificate2 CreateFromEncryptedPem(ReadOnlySpan<char> certPem, ReadOnlySpan<char> keyPem, ReadOnlySpan<char> password) 1074/// <see cref="CreateFromPem(ReadOnlySpan{char}, ReadOnlySpan{char})" />. 1081public static X509Certificate2 CreateFromPem(ReadOnlySpan<char> certPem) 1083foreach ((ReadOnlySpan<char> contents, PemFields fields) in PemEnumerator.Utf16(certPem)) 1085ReadOnlySpan<char> label = contents[fields.Label]; 1321ReadOnlySpan<char> match = hostname; 1334ReadOnlySpan<char> afterFirstDot = default; 1352ReadOnlySpan<char> embeddedSpan = embedded; 1430ReadOnlySpan<char> keyPem, 1435foreach ((ReadOnlySpan<char> contents, PemFields fields) in PemEnumerator.Utf16(keyPem)) 1437ReadOnlySpan<char> label = contents[fields.Label]; 1464ReadOnlySpan<char> keyPem, 1465ReadOnlySpan<char> password, 1469foreach ((ReadOnlySpan<char> contents, PemFields fields) in PemEnumerator.Utf16(keyPem)) 1471ReadOnlySpan<char> label = contents[fields.Label];
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (12)
154public void Import(ReadOnlySpan<byte> rawData) 183public void Import(ReadOnlySpan<byte> rawData, string? password, X509KeyStorageFlags keyStorageFlags = 0) 201public void Import(ReadOnlySpan<byte> rawData, ReadOnlySpan<char> password, X509KeyStorageFlags keyStorageFlags = 0) 250public void Import(string fileName, ReadOnlySpan<char> password, X509KeyStorageFlags keyStorageFlags = 0) 350ReadOnlySpan<char> contents = System.IO.File.ReadAllText(certPemFilePath); 372public void ImportFromPem(ReadOnlySpan<char> certPem) 378foreach ((ReadOnlySpan<char> contents, PemFields fields) in PemEnumerator.Utf16(certPem)) 380ReadOnlySpan<char> label = contents[fields.Label]; 659public X509Certificate2Collection FindByThumbprint(HashAlgorithmName hashAlgorithm, ReadOnlySpan<char> thumbprintHex) 709public X509Certificate2Collection FindByThumbprint(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> thumbprintBytes) 715private 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.OpenSsl.cs (1)
11private static partial ICertificatePal LoadCertificatePal(ReadOnlySpan<byte> data)
System\Security\Cryptography\X509Certificates\X509CertificateLoader.Unix.cs (10)
25ReadOnlySpan<char> password, 79ReadOnlySpan<char> password, 120internal static unsafe bool IsPkcs12(ReadOnlySpan<byte> data) 185internal ReadOnlySpan<SafeBagAsn> GetCertsSpan() 190internal ReadOnlySpan<SafeBagAsn> GetKeysSpan() 312ReadOnlySpan<SafeBagAsn> certBags = bagState.GetCertsSpan(); 313ReadOnlySpan<SafeBagAsn> keyBags = bagState.GetKeysSpan(); 412ReadOnlySpan<SafeBagAsn> keyBags, 413ReadOnlySpan<byte> localKeyId) 565private static void ImportPrivateKey(AsymmetricAlgorithm key, ReadOnlySpan<byte> pkcs8)
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\X509SubjectAlternativeNameExtension.cs (3)
27public X509SubjectAlternativeNameExtension(ReadOnlySpan<byte> rawData, bool critical = false) 70ReadOnlySpan<byte> value = item.IPAddress.GetValueOrDefault().Span; 78private 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 void WriteCryptoBinary(string name, ReadOnlySpan<byte> value, StringBuilder builder)
System.Security.Cryptography.Cose (81)
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) 104/// <seealso cref="FromEncodedValue(ReadOnlySpan{byte})"/> 105public static CoseHeaderValue FromBytes(ReadOnlySpan<byte> value)
System\Security\Cryptography\Cose\CoseHelpers.cs (2)
324ReadOnlySpan<byte> encodedValue = buffer.Slice(0, bytesWritten); 338internal static void WriteContent(CborWriter writer, ReadOnlySpan<byte> content, bool isDetached)
System\Security\Cryptography\Cose\CoseMessage.cs (12)
107public static CoseSign1Message DecodeSign1(ReadOnlySpan<byte> cborPayload) 193public static CoseMultiSignMessage DecodeMultiSign(ReadOnlySpan<byte> cborPayload) 412ReadOnlySpan<byte> bodyProtected, 413ReadOnlySpan<byte> signProtected, 414ReadOnlySpan<byte> associatedData, 415ReadOnlySpan<byte> contentBytes, 418int bytesWritten = CreateToBeSigned(buffer, context, bodyProtected, signProtected, associatedData, ReadOnlySpan<byte>.Empty); 464int bytesWritten = CreateToBeSigned(buffer, context, bodyProtected.Span, signProtected.Span, associatedData.Span, ReadOnlySpan<byte>.Empty); 487internal 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)
129public static byte[] SignDetached(ReadOnlySpan<byte> detachedContent, CoseSigner signer, CoseHeaderMap? protectedHeaders = null, CoseHeaderMap? unprotectedHeaders = null, ReadOnlySpan<byte> associatedData = default) 156public static byte[] SignEmbedded(ReadOnlySpan<byte> embeddedContent, CoseSigner signer, CoseHeaderMap? protectedHeaders = null, CoseHeaderMap? unprotectedHeaders = null, ReadOnlySpan<byte> associatedData = default) 187public static byte[] SignDetached(Stream detachedContent, CoseSigner signer, CoseHeaderMap? protectedHeaders = null, CoseHeaderMap? unprotectedHeaders = null, ReadOnlySpan<byte> associatedData = default) 202ReadOnlySpan<byte> content, 207ReadOnlySpan<byte> associatedData, 319public static bool TrySignDetached(ReadOnlySpan<byte> detachedContent, Span<byte> destination, CoseSigner signer, out int bytesWritten, CoseHeaderMap? protectedHeaders = null, CoseHeaderMap? unprotectedHeaders = null, ReadOnlySpan<byte> associatedData = default) 347public static bool TrySignEmbedded(ReadOnlySpan<byte> embeddedContent, Span<byte> destination, CoseSigner signer, out int bytesWritten, CoseHeaderMap? protectedHeaders = null, CoseHeaderMap? unprotectedHeaders = null, ReadOnlySpan<byte> associatedData = default) 350private static bool TrySign(ReadOnlySpan<byte> content, Span<byte> destination, CoseSigner signer, CoseHeaderMap? protectedHeaders, CoseHeaderMap? unprotectedHeaders, out int bytesWritten, ReadOnlySpan<byte> associatedData, bool isDetached) 371ReadOnlySpan<byte> content, 377ReadOnlySpan<byte> associatedData, 449ReadOnlySpan<byte> bodyProtected, 450ReadOnlySpan<byte> associatedData, 451ReadOnlySpan<byte> content, 668public void AddSignatureForEmbedded(CoseSigner signer, ReadOnlySpan<byte> associatedData) 727public void AddSignatureForDetached(ReadOnlySpan<byte> detachedContent, CoseSigner signer, ReadOnlySpan<byte> associatedData = default) 763public void AddSignatureForDetached(Stream detachedContent, CoseSigner signer, ReadOnlySpan<byte> associatedData = default) 778private void AddSignatureCore(ReadOnlySpan<byte> contentBytes, Stream? contentStream, CoseSigner signer, ReadOnlySpan<byte> associatedData)
System\Security\Cryptography\Cose\CoseSign1Message.cs (27)
107public static byte[] SignDetached(ReadOnlySpan<byte> detachedContent, CoseSigner signer, ReadOnlySpan<byte> associatedData = default) 132public static byte[] SignEmbedded(ReadOnlySpan<byte> embeddedContent, CoseSigner signer, ReadOnlySpan<byte> associatedData = default) 161public static byte[] SignDetached(Stream detachedContent, CoseSigner signer, ReadOnlySpan<byte> associatedData = default) 178internal static byte[] SignCore(ReadOnlySpan<byte> contentBytes, Stream? contentStream, CoseSigner signer, ReadOnlySpan<byte> associatedData, bool isDetached) 263public static bool TrySignDetached(ReadOnlySpan<byte> detachedContent, Span<byte> destination, CoseSigner signer, out int bytesWritten, ReadOnlySpan<byte> associatedData = default) 285public static bool TrySignEmbedded(ReadOnlySpan<byte> embeddedContent, Span<byte> destination, CoseSigner signer, out int bytesWritten, ReadOnlySpan<byte> associatedData = default) 288private static bool TrySign(ReadOnlySpan<byte> content, Span<byte> destination, CoseSigner signer, out int bytesWritten, ReadOnlySpan<byte> associatedData, bool isDetached) 321private static int CreateCoseSign1Message(ReadOnlySpan<byte> contentBytes, Stream? contentStream, Span<byte> buffer, CoseSigner signer, ReadOnlySpan<byte> associatedData, bool isDetached) 336AppendToBeSigned(buffer, hasher, SigStructureContext.Signature1, buffer.Slice(0, protectedMapBytesWritten), ReadOnlySpan<byte>.Empty, associatedData, contentBytes, contentStream); 434/// <seealso cref="VerifyDetached(AsymmetricAlgorithm, ReadOnlySpan{byte}, ReadOnlySpan{byte})"/> 436public bool VerifyEmbedded(AsymmetricAlgorithm key, ReadOnlySpan<byte> associatedData) 526/// <seealso cref="VerifyEmbedded(AsymmetricAlgorithm, ReadOnlySpan{byte})"/> 528public bool VerifyDetached(AsymmetricAlgorithm key, ReadOnlySpan<byte> detachedContent, ReadOnlySpan<byte> associatedData = default) 580public bool VerifyDetached(AsymmetricAlgorithm key, Stream detachedContent, ReadOnlySpan<byte> associatedData = default) 609private bool VerifyCore(AsymmetricAlgorithm key, ReadOnlySpan<byte> contentBytes, Stream? contentStream, ReadOnlySpan<byte> associatedData, KeyType keyType) 633AppendToBeSigned(buffer, hasher, SigStructureContext.Signature1, _protectedHeaderAsBstr, ReadOnlySpan<byte>.Empty, associatedData, contentBytes, contentStream); 679/// <seealso cref="VerifyDetached(AsymmetricAlgorithm, Stream, ReadOnlySpan{byte})"/>
System\Security\Cryptography\Cose\CoseSignature.cs (10)
98/// <seealso cref="VerifyDetached(AsymmetricAlgorithm, ReadOnlySpan{byte}, ReadOnlySpan{byte})"/> 100public bool VerifyEmbedded(AsymmetricAlgorithm key, ReadOnlySpan<byte> associatedData) 234/// <seealso cref="VerifyEmbedded(AsymmetricAlgorithm, ReadOnlySpan{byte})"/> 236public bool VerifyDetached(AsymmetricAlgorithm key, ReadOnlySpan<byte> detachedContent, ReadOnlySpan<byte> associatedData = default) 288public bool VerifyDetached(AsymmetricAlgorithm key, Stream detachedContent, ReadOnlySpan<byte> associatedData = default) 354/// <seealso cref="VerifyDetached(AsymmetricAlgorithm, Stream, ReadOnlySpan{byte})"/> 419private bool VerifyCore(AsymmetricAlgorithm key, ReadOnlySpan<byte> contentBytes, Stream? contentStream, ReadOnlySpan<byte> associatedData, KeyType keyType)
System.Security.Cryptography.Pkcs (287)
Internal\Cryptography\Pal\AnyOS\ManagedPal.Asn.cs (1)
14public override unsafe 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, 81private static byte[] CopyContent(ReadOnlySpan<byte> encodedMessage)
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decrypt.cs (1)
126private static byte[] GetAsnSequenceWithContentNoValidation(ReadOnlySpan<byte> content)
Internal\Cryptography\Pal\AnyOS\ManagedPal.Encrypt.cs (2)
189ReadOnlySpan<byte> content = contentInfo.Content.AsSpan(contentOffset, contentLength); 199static byte[] EncryptOneShot(SymmetricAlgorithm alg, ReadOnlySpan<byte> plaintext)
Internal\Cryptography\Pal\AnyOS\ManagedPal.KeyAgree.cs (2)
79ReadOnlySpan<byte> rawData = ReadOnlySpan<byte>.Empty;
Internal\Cryptography\Pal\AnyOS\ManagedPal.KeyTrans.cs (2)
66ReadOnlySpan<byte> encryptedKey, 183ReadOnlySpan<byte> encryptedKey,
Internal\Cryptography\PkcsHelpers.cs (4)
273public static string ToBigEndianHex(this ReadOnlySpan<byte> bytes) 298private static string ToUpperHexString(ReadOnlySpan<byte> ba) 377public static int FirstBerValueLength(ReadOnlySpan<byte> source) 422ReadOnlySpan<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\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (5)
65public static void EnsureSingleBerValue(ReadOnlySpan<byte> source) 102public static string DecodeOid(ReadOnlySpan<byte> encodedOid) 165ReadOnlySpan<byte> input = encodedOctetString.Span; 170out ReadOnlySpan<byte> primitive, 330public static Pkcs9AttributeObject CreateBestPkcs9AttributeObjectAvailable(Oid oid, ReadOnlySpan<byte> encodedAttribute)
src\libraries\Common\src\System\HexConverter.cs (6)
164public static void EncodeToUtf16(ReadOnlySpan<byte> bytes, Span<char> chars, Casing casing = Casing.Upper) 181public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 197EncodeToUtf16(*(ReadOnlySpan<byte>*)args.RosPtr, chars, args.casing)); 229public static bool TryDecodeFromUtf16(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 335private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 433public static ReadOnlySpan<byte> CharToHexLookup =>
src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.manual.cs (1)
47ReadOnlySpan<byte> span = parameters.Value.Span;
src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs (2)
92ReadOnlySpan<byte> rebindSpan = rebind.Span; 94ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (2)
96ReadOnlySpan<byte> rebindSpan = rebind.Span; 98ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\DigestInfoAsn.xml.cs (2)
73ReadOnlySpan<byte> rebindSpan = rebind.Span; 75ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (2)
145ReadOnlySpan<byte> rebindSpan = rebind.Span; 147ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\EncryptedPrivateKeyInfoAsn.xml.cs (2)
73ReadOnlySpan<byte> rebindSpan = rebind.Span; 75ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (2)
206ReadOnlySpan<byte> rebindSpan = rebind.Span; 208ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\OaepParamsAsn.xml.cs (3)
14private static ReadOnlySpan<byte> DefaultHashFunc => [0x30, 0x09, 0x06, 0x05, 0x2B, 0x0E, 0x03, 0x02, 0x1A, 0x05, 0x00]; 16private static ReadOnlySpan<byte> DefaultMaskGenFunc => [0x30, 0x16, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x08, 0x30, 0x09, 0x06, 0x05, 0x2B, 0x0E, 0x03, 0x02, 0x1A, 0x05, 0x00]; 18private static ReadOnlySpan<byte> DefaultPSourceFunc => [0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x09, 0x04, 0x00];
src\libraries\Common\src\System\Security\Cryptography\Asn1\OtherNameAsn.xml.cs (2)
90ReadOnlySpan<byte> rebindSpan = rebind.Span; 92ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\PBEParameter.xml.cs (2)
73ReadOnlySpan<byte> rebindSpan = rebind.Span; 75ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2Params.xml.cs (1)
14private static ReadOnlySpan<byte> DefaultPrf => [0x30, 0x0C, 0x06, 0x08, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x07, 0x05, 0x00];
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (2)
96ReadOnlySpan<byte> rebindSpan = rebind.Span; 98ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs (2)
90ReadOnlySpan<byte> rebindSpan = rebind.Span; 92ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\MacData.xml.cs (3)
14private static ReadOnlySpan<byte> DefaultIterationCount => [0x02, 0x01, 0x01]; 107ReadOnlySpan<byte> rebindSpan = rebind.Span; 109ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs (2)
16ReadOnlySpan<char> macPassword, 17ReadOnlySpan<byte> authSafeContents)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs (2)
106ReadOnlySpan<byte> rebindSpan = rebind.Span; 108ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SecretBagAsn.xml.cs (2)
90ReadOnlySpan<byte> rebindSpan = rebind.Span; 92ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs (2)
90ReadOnlySpan<byte> rebindSpan = rebind.Span; 92ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs (2)
87ReadOnlySpan<byte> rebindSpan = rebind.Span; 89ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\PrivateKeyInfoAsn.xml.cs (2)
91ReadOnlySpan<byte> rebindSpan = rebind.Span; 93ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\PssParamsAsn.xml.cs (4)
14private static ReadOnlySpan<byte> DefaultHashAlgorithm => [0x30, 0x09, 0x06, 0x05, 0x2B, 0x0E, 0x03, 0x02, 0x1A, 0x05, 0x00]; 16private static ReadOnlySpan<byte> DefaultMaskGenAlgorithm => [0x30, 0x16, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x08, 0x30, 0x09, 0x06, 0x05, 0x2B, 0x0E, 0x03, 0x02, 0x1A, 0x05, 0x00]; 18private static ReadOnlySpan<byte> DefaultSaltLength => [0x02, 0x01, 0x14]; 20private static ReadOnlySpan<byte> DefaultTrailerField => [0x02, 0x01, 0x01];
src\libraries\Common\src\System\Security\Cryptography\Asn1\Rc2CbcParameters.manual.cs (1)
15private static ReadOnlySpan<byte> Rc2EkbEncoding =>
src\libraries\Common\src\System\Security\Cryptography\Asn1\Rc2CbcParameters.xml.cs (2)
73ReadOnlySpan<byte> rebindSpan = rebind.Span; 75ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\SubjectPublicKeyInfoAsn.xml.cs (2)
73ReadOnlySpan<byte> rebindSpan = rebind.Span; 75ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml.cs (3)
14private static ReadOnlySpan<byte> DefaultCritical => [0x01, 0x01, 0x00]; 109ReadOnlySpan<byte> rebindSpan = rebind.Span; 111ReadOnlySpan<byte> tmpSpan;
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (13)
13private ReadOnlySpan<byte> _span; 16internal AsnValueReader(ReadOnlySpan<byte> span, AsnEncodingRules ruleSet) 37internal ReadOnlySpan<byte> PeekContentBytes() 49internal ReadOnlySpan<byte> PeekEncodedValue() 55internal ReadOnlySpan<byte> ReadEncodedValue() 57ReadOnlySpan<byte> value = PeekEncodedValue(); 83internal ReadOnlySpan<byte> ReadIntegerBytes(Asn1Tag? expectedTag = default) 85ReadOnlySpan<byte> ret = AsnDecoder.ReadIntegerBytes(_span, _ruleSet, out int consumed, expectedTag); 92out ReadOnlySpan<byte> value, 128out ReadOnlySpan<byte> value, 171ReadOnlySpan<byte> content = _span.Slice(contentOffset, contentLength); 187ReadOnlySpan<byte> content = _span.Slice(contentOffset, contentLength); 225ReadOnlySpan<byte> value)
src\libraries\Common\src\System\Security\Cryptography\Helpers.cs (2)
65internal static bool ContainsNull<T>(this ReadOnlySpan<T> span) 89internal static bool TryCopyToDestination(this ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.cs (2)
18ReadOnlySpan<byte> source, 94ReadOnlySpan<byte> source,
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (26)
17ReadOnlySpan<byte> source, 18ReadOnlySpan<char> password, 34ReadOnlySpan<byte> source, 35ReadOnlySpan<byte> passwordBytes, 58ReadOnlySpan<char> password, 67ReadOnlySpan<byte>.Empty, 76ReadOnlySpan<byte> passwordBytes, 84ReadOnlySpan<char>.Empty, 94ReadOnlySpan<char> password, 95ReadOnlySpan<byte> passwordBytes, 157ReadOnlySpan<char> password, 163ReadOnlySpan<byte>.Empty, 169ReadOnlySpan<byte> passwordBytes, 174ReadOnlySpan<char>.Empty, 181ReadOnlySpan<char> password, 182ReadOnlySpan<byte> passwordBytes, 252ReadOnlySpan<char> inputPassword, 258ReadOnlySpan<byte>.Empty, 264ReadOnlySpan<byte> inputPasswordBytes, 269ReadOnlySpan<char>.Empty, 276ReadOnlySpan<char> inputPassword, 277ReadOnlySpan<byte> inputPasswordBytes, 320ReadOnlySpan<char> inputPassword, 322ReadOnlySpan<char> newPassword, 356ReadOnlySpan<char> inputPassword, 358ReadOnlySpan<byte> newPasswordBytes,
src\libraries\Common\src\System\Security\Cryptography\Oids.Shared.cs (1)
130ReadOnlySpan<byte> contentBytes = asnValueReader.PeekContentBytes();
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (26)
25ReadOnlySpan<char> password, 26ReadOnlySpan<byte> passwordBytes) 70ReadOnlySpan<char> password, 71ReadOnlySpan<byte> passwordBytes, 72ReadOnlySpan<byte> encryptedData, 310ReadOnlySpan<char> password, 311ReadOnlySpan<byte> passwordBytes, 316ReadOnlySpan<byte> salt, 451ReadOnlySpan<char> password, 452ReadOnlySpan<byte> passwordBytes, 453ReadOnlySpan<byte> encryptedData, 511ReadOnlySpan<byte> password, 512ReadOnlySpan<byte> encryptedData, 697ReadOnlySpan<byte> source = encryptionSchemeParameters.Value.Span; 721ReadOnlySpan<byte> password, 805ReadOnlySpan<byte> password, 808ReadOnlySpan<byte> encryptedData, 857ReadOnlySpan<char> password, 860ReadOnlySpan<byte> encryptedData, 887ReadOnlySpan<byte> saltSpan = pbeParameters.Salt.Span; 916ReadOnlySpan<byte> key, 917ReadOnlySpan<byte> iv, 918ReadOnlySpan<byte> encryptedData, 978ReadOnlySpan<byte> password, 979ReadOnlySpan<byte> salt, 1114ReadOnlySpan<byte> salt,
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (7)
40ReadOnlySpan<byte> passwordBytes, 61ReadOnlySpan<char>.Empty, 64byte[] encrypted = safeContents.Encrypt(ReadOnlySpan<char>.Empty, passwordBytes, pbeParameters); 90ReadOnlySpan<char> password, 112ReadOnlySpan<byte>.Empty); 114byte[] encrypted = safeContents.Encrypt(password, ReadOnlySpan<byte>.Empty, pbeParameters); 164ReadOnlySpan<char> password,
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (10)
140ReadOnlySpan<byte> passwordBytes, 171ReadOnlySpan<char> password, 209public void Decrypt(ReadOnlySpan<byte> passwordBytes) 211Decrypt(ReadOnlySpan<char>.Empty, passwordBytes); 220public void Decrypt(ReadOnlySpan<char> password) 222Decrypt(password, ReadOnlySpan<byte>.Empty); 225private void Decrypt(ReadOnlySpan<char> password, ReadOnlySpan<byte> passwordBytes) 375ReadOnlySpan<char> password, 376ReadOnlySpan<byte> passwordBytes,
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9AttributeObject.cs (1)
48internal Pkcs9AttributeObject(Oid oid, ReadOnlySpan<byte> encodedData)
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9ContentType.cs (1)
28internal Pkcs9ContentType(ReadOnlySpan<byte> rawData)
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9DocumentDescription.cs (1)
39internal Pkcs9DocumentDescription(ReadOnlySpan<byte> encodedDocumentDescription)
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9DocumentName.cs (1)
39internal Pkcs9DocumentName(ReadOnlySpan<byte> encodedDocumentName)
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9LocalKeyId.cs (1)
31public Pkcs9LocalKeyId(ReadOnlySpan<byte> keyId)
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9MessageDigest.cs (1)
27internal Pkcs9MessageDigest(ReadOnlySpan<byte> rawData)
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9SigningTime.cs (1)
40internal Pkcs9SigningTime(ReadOnlySpan<byte> encodedSigningTime)
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\CertificateChoiceAsn.xml.cs (2)
193ReadOnlySpan<byte> rebindSpan = rebind.Span; 195ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\Pkcs\Asn1\EncapsulatedContentInfoAsn.xml.cs (2)
95ReadOnlySpan<byte> rebindSpan = rebind.Span; 97ReadOnlySpan<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)
14private static ReadOnlySpan<byte> DefaultHashAlgorithm => [0x30, 0x0B, 0x06, 0x09, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x01]; 107ReadOnlySpan<byte> rebindSpan = rebind.Span; 109ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\Pkcs\Asn1\IssuerAndSerialNumberAsn.xml.cs (2)
89ReadOnlySpan<byte> rebindSpan = rebind.Span; 91ReadOnlySpan<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 (2)
73ReadOnlySpan<byte> rebindSpan = rebind.Span; 75ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\Pkcs\Asn1\OriginatorIdentifierOrKeyAsn.xml.cs (2)
107ReadOnlySpan<byte> rebindSpan = rebind.Span; 109ReadOnlySpan<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\OtherCertificateFormat.xml.cs (2)
87ReadOnlySpan<byte> rebindSpan = rebind.Span; 89ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\Pkcs\Asn1\OtherKeyAttributeAsn.xml.cs (2)
92ReadOnlySpan<byte> rebindSpan = rebind.Span; 94ReadOnlySpan<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)
96ReadOnlySpan<byte> rebindSpan = rebind.Span; 98ReadOnlySpan<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)
15private static ReadOnlySpan<byte> DefaultCertReq => [0x01, 0x01, 0x00]; 139ReadOnlySpan<byte> rebindSpan = rebind.Span; 141ReadOnlySpan<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 (3)
15private static ReadOnlySpan<byte> DefaultOrdering => [0x01, 0x01, 0x00]; 155ReadOnlySpan<byte> rebindSpan = rebind.Span; 157ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\Pkcs\Asn1\SignedDataAsn.xml.cs (2)
128ReadOnlySpan<byte> rebindSpan = rebind.Span; 130ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\Pkcs\Asn1\SignerIdentifierAsn.xml.cs (2)
96ReadOnlySpan<byte> rebindSpan = rebind.Span; 98ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\Pkcs\Asn1\SignerInfoAsn.xml.cs (2)
118ReadOnlySpan<byte> rebindSpan = rebind.Span; 120ReadOnlySpan<byte> tmpSpan;
System\Security\Cryptography\Pkcs\CmsSignature.cs (5)
34ReadOnlySpan<byte> valueHash, 47ReadOnlySpan<byte> dataHash, 116ReadOnlySpan<byte> dataHash, 179ReadOnlySpan<byte> val = sequence.ReadIntegerBytes().Span; 215private static byte[] DsaIeeeToDer(ReadOnlySpan<byte> ieeeSignature)
System\Security\Cryptography\Pkcs\CmsSignature.DSA.cs (3)
47ReadOnlySpan<byte> valueHash, 105ReadOnlySpan<byte> dataHash, 157var signature = new ReadOnlySpan<byte>(rented, 0, bytesWritten);
System\Security\Cryptography\Pkcs\CmsSignature.ECDsa.cs (3)
48ReadOnlySpan<byte> valueHash, 109ReadOnlySpan<byte> dataHash, 171var signedHash = new ReadOnlySpan<byte>(rented, 0, bytesWritten);
System\Security\Cryptography\Pkcs\CmsSignature.RSA.cs (5)
49ReadOnlySpan<byte> valueHash, 101ReadOnlySpan<byte> dataHash, 189ReadOnlySpan<byte> expectedParameters = [0x05, 0x00]; 201ReadOnlySpan<byte> dataHash, 321ReadOnlySpan<byte> dataHash,
System\Security\Cryptography\Pkcs\ContentInfo.cs (1)
51public static Oid GetContentType(ReadOnlySpan<byte> encodedMessage)
System\Security\Cryptography\Pkcs\EnvelopedCms.cs (1)
154public void Decode(ReadOnlySpan<byte> encodedMessage)
System\Security\Cryptography\Pkcs\Pkcs12Info.cs (1)
32public bool VerifyMac(ReadOnlySpan<char> password)
System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (10)
101public byte[] Encrypt(ReadOnlySpan<char> password, PbeParameters pbeParameters) 111ReadOnlySpan<byte>.Empty); 120public byte[] Encrypt(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters) 129ReadOnlySpan<char>.Empty, 144ReadOnlySpan<char> password, 157ReadOnlySpan<byte>.Empty); 165ReadOnlySpan<byte> passwordBytes, 177ReadOnlySpan<char>.Empty, 186ReadOnlySpan<char> password, 217ReadOnlySpan<byte> passwordBytes,
System\Security\Cryptography\Pkcs\Rfc3161TimestampRequest.cs (3)
192ReadOnlySpan<byte> data, 270ReadOnlySpan<byte> nonceSpan = nonceMemory.Span; 360ReadOnlySpan<byte> firstElement = reader.PeekEncodedValue();
System\Security\Cryptography\Pkcs\Rfc3161TimestampToken.cs (7)
75ReadOnlySpan<byte> data, 98ReadOnlySpan<byte> hash, 122ReadOnlySpan<byte> hash, 170internal bool VerifyHash(ReadOnlySpan<byte> hash, string? hashAlgorithmId) 177private bool VerifyData(ReadOnlySpan<byte> data) 459ReadOnlySpan<byte> issuerDirectoryName, 460ReadOnlySpan<byte> serialNumber)
System\Security\Cryptography\Pkcs\SignedCms.cs (4)
169public void Decode(ReadOnlySpan<byte> encodedMessage) 212static byte[] CopyContent(ReadOnlySpan<byte> encodedMessage) 428internal ReadOnlySpan<byte> GetHashableContentSpan() 432ReadOnlySpan<byte> contentSpan = content.Span;
System\Security\Cryptography\Pkcs\SignerInfo.cs (3)
772ReadOnlySpan<byte> digest = digestValue; 819private static int FindAttributeValueIndexByEncodedData(ReadOnlyMemory<byte>[] attributeValues, ReadOnlySpan<byte> asnEncodedData, out bool isOnlyValue) 825ReadOnlySpan<byte> data = attributeValues[i].Span;
System\Security\Cryptography\Pkcs\SubjectIdentifier.cs (2)
55ReadOnlySpan<byte> issuerNameSpan = issuerAndSerialNumber.Value.Issuer.Span; 56ReadOnlySpan<byte> serial = issuerAndSerialNumber.Value.SerialNumber.Span;
System.Security.Cryptography.ProtectedData (17)
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\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
77private static string GetAndTrimString(ReadOnlySpan<char> buffer)
System\Security\Cryptography\ProtectedData.cs (15)
55ReadOnlySpan<byte> userData, 57ReadOnlySpan<byte> optionalEntropy = default) 103ReadOnlySpan<byte> userData, 107ReadOnlySpan<byte> optionalEntropy = default) 143ReadOnlySpan<byte> userData, 146ReadOnlySpan<byte> optionalEntropy = default) 208ReadOnlySpan<byte> encryptedData, 210ReadOnlySpan<byte> optionalEntropy = default) 257ReadOnlySpan<byte> encryptedData, 261ReadOnlySpan<byte> optionalEntropy = default) 297ReadOnlySpan<byte> encryptedData, 300ReadOnlySpan<byte> optionalEntropy = default) 323ReadOnlySpan<byte> inputData, 324ReadOnlySpan<byte> optionalEntropy, 337ReadOnlySpan<byte> relevantData = inputData.IsEmpty ? s_nonEmpty : inputData;
System.Security.Cryptography.Xml (6)
src\libraries\Common\src\System\HexConverter.cs (6)
164public static void EncodeToUtf16(ReadOnlySpan<byte> bytes, Span<char> chars, Casing casing = Casing.Upper) 181public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 197EncodeToUtf16(*(ReadOnlySpan<byte>*)args.RosPtr, chars, args.casing)); 229public static bool TryDecodeFromUtf16(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 335private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 433public static ReadOnlySpan<byte> CharToHexLookup =>
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\Connection.cs (1)
201public override void Write(ReadOnlySpan<byte> buffer)
System.Text.Encoding.CodePages (12)
System\Text\EncodingTable.cs (2)
64ReadOnlySpan<int> encodingNameIndices = EncodingNameIndices; 141private static string? GetNameFromCodePage(int codePage, string names, ReadOnlySpan<int> indices, Dictionary<int, string> cache)
System\Text\EncodingTable.Data.cs (5)
391private static ReadOnlySpan<int> EncodingNameIndices => 764private static ReadOnlySpan<ushort> CodePagesByName => 1138private static ReadOnlySpan<ushort> MappedCodePages => 1417private static ReadOnlySpan<int> WebNameIndices => 1696private 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 (42)
src\libraries\Common\src\System\HexConverter.cs (6)
164public static void EncodeToUtf16(ReadOnlySpan<byte> bytes, Span<char> chars, Casing casing = Casing.Upper) 181public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 197EncodeToUtf16(*(ReadOnlySpan<byte>*)args.RosPtr, chars, args.casing)); 229public static bool TryDecodeFromUtf16(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 335private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 433public static ReadOnlySpan<byte> CharToHexLookup =>
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
104public ReadOnlySpan<char> AsSpan(bool terminate) 114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
System\IO\TextWriterExtensions.cs (1)
31ReadOnlySpan<char> sliced = value.AsSpan(offset, count);
System\Text\Encodings\Web\AllowedBmpCodePointsBitmap.cs (1)
68ReadOnlySpan<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)
38ReadOnlySpan<char> extraCharactersToEscape = default) 118public OperationStatus Encode(ReadOnlySpan<char> source, Span<char> destination, out int charsConsumed, out int charsWritten, bool isFinalBlock) 237public OperationStatus EncodeUtf8(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesConsumed, out int bytesWritten, bool isFinalBlock) 344public int GetIndexOfFirstByteToEncode(ReadOnlySpan<byte> data) 410public unsafe 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 (731)
src\libraries\Common\src\System\HexConverter.cs (6)
164public static void EncodeToUtf16(ReadOnlySpan<byte> bytes, Span<char> chars, Casing casing = Casing.Upper) 181public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 197EncodeToUtf16(*(ReadOnlySpan<byte>*)args.RosPtr, chars, args.casing)); 229public static bool TryDecodeFromUtf16(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 335private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 433public static ReadOnlySpan<byte> CharToHexLookup =>
src\libraries\Common\src\System\Net\ArrayBuffer.cs (1)
90public ReadOnlySpan<byte> ActiveReadOnlySpan => new ReadOnlySpan<byte>(_bytes, _activeStart, _availableStart - _activeStart);
src\libraries\Common\src\System\Text\Json\PooledByteBufferWriter.cs (1)
30public ReadOnlySpan<byte> WrittenSpan => _buffer.ActiveSpan;
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
104public ReadOnlySpan<char> AsSpan(bool terminate) 114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
src\libraries\System.Text.Json\Common\JsonSeparatorNamingPolicy.cs (1)
34private static string ConvertNameCore(char separator, bool lowercase, ReadOnlySpan<char> chars)
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)
300ReadOnlySpan<byte> data = _utf8Json.Span; 301ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength); 308internal bool TextEquals(int index, ReadOnlySpan<char> otherText, bool isPropertyName) 341internal bool TextEquals(int index, ReadOnlySpan<byte> otherUtf8Text, bool isPropertyName, bool shouldUnescape) 353ReadOnlySpan<byte> data = _utf8Json.Span; 354ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength); 388internal ReadOnlySpan<byte> GetPropertyNameRaw(int index) 406ReadOnlySpan<byte> data = _utf8Json.Span; 407ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength); 427ReadOnlySpan<byte> data = _utf8Json.Span; 428ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength); 449ReadOnlySpan<byte> data = _utf8Json.Span; 450ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength); 471ReadOnlySpan<byte> data = _utf8Json.Span; 472ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength); 493ReadOnlySpan<byte> data = _utf8Json.Span; 494ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength); 515ReadOnlySpan<byte> data = _utf8Json.Span; 516ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength); 537ReadOnlySpan<byte> data = _utf8Json.Span; 538ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength); 559ReadOnlySpan<byte> data = _utf8Json.Span; 560ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength); 581ReadOnlySpan<byte> data = _utf8Json.Span; 582ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength); 603ReadOnlySpan<byte> data = _utf8Json.Span; 604ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength); 625ReadOnlySpan<byte> data = _utf8Json.Span; 626ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength); 647ReadOnlySpan<byte> data = _utf8Json.Span; 648ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength); 669ReadOnlySpan<byte> data = _utf8Json.Span; 670ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength); 704ReadOnlySpan<byte> data = _utf8Json.Span; 705ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength); 739ReadOnlySpan<byte> data = _utf8Json.Span; 740ReadOnlySpan<byte> segment = data.Slice(row.Location, row.SizeOrLength); 881private ReadOnlySpan<byte> UnescapeString(in DbRow row, out ArraySegment<byte> rented) 886ReadOnlySpan<byte> text = _utf8Json.Slice(loc, length).Span; 947ReadOnlySpan<byte> utf8JsonSpan,
System\Text\Json\Document\JsonDocument.Parse.cs (8)
166internal static JsonDocument ParseValue(ReadOnlySpan<byte> utf8Json, JsonDocumentOptions options) 268ReadOnlySpan<char> jsonChars = json.Span; 293ReadOnlySpan<char> jsonChars = json.Span; 439ReadOnlySpan<byte> valueSpan = default; 561ReadOnlySpan<byte> readerSpan = reader.OriginalSpan; 702ReadOnlySpan<byte> utf8JsonSpan = utf8Json.Span; 734ReadOnlySpan<byte> utf8JsonSpan = utf8Json.Span; 766ReadOnlySpan<byte> utf8Bom = JsonConstants.Utf8Bom;
System\Text\Json\Document\JsonDocument.TryGetProperty.cs (5)
11internal 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)
176public JsonElement GetProperty(ReadOnlySpan<char> propertyName) 216public JsonElement GetProperty(ReadOnlySpan<byte> utf8PropertyName) 293public bool TryGetProperty(ReadOnlySpan<char> propertyName, out JsonElement value) 329public bool TryGetProperty(ReadOnlySpan<byte> utf8PropertyName, out JsonElement value) 1185internal ReadOnlySpan<byte> GetPropertyNameRaw() 1232internal ReadOnlySpan<byte> ValueSpan 1472public bool ValueEquals(ReadOnlySpan<byte> utf8Text) 1500public bool ValueEquals(ReadOnlySpan<char> text) 1513internal bool TextEqualsHelper(ReadOnlySpan<byte> utf8Text, bool isPropertyName, bool shouldUnescape) 1520internal bool TextEqualsHelper(ReadOnlySpan<char> text, bool isPropertyName)
System\Text\Json\Document\JsonElement.Parse.cs (1)
62internal static JsonElement ParseValue(ReadOnlySpan<byte> utf8Json, JsonDocumentOptions options)
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; 48public static ReadOnlySpan<byte> Delimiters => ",}] \n\r\t/"u8; 51public static ReadOnlySpan<byte> EscapableChars => "\"nrt/ubf"u8;
System\Text\Json\JsonEncodedText.cs (5)
25public ReadOnlySpan<byte> EncodedUtf8Bytes => _utf8Value; 69public static JsonEncodedText Encode(ReadOnlySpan<char> value, JavaScriptEncoder? encoder = null) 79private static JsonEncodedText TranscodeAndEncode(ReadOnlySpan<char> value, JavaScriptEncoder? encoder) 116public static JsonEncodedText Encode(ReadOnlySpan<byte> utf8Value, JavaScriptEncoder? encoder = null) 127private static JsonEncodedText EncodeHelper(ReadOnlySpan<byte> utf8Value, JavaScriptEncoder? encoder)
System\Text\Json\JsonHelpers.cs (26)
21public static ReadOnlySpan<byte> GetUnescapedSpan(this scoped ref Utf8JsonReader reader) 24ReadOnlySpan<byte> span = reader.HasValueSequence ? reader.ValueSequence.ToArray() : reader.ValueSpan; 197public static string Utf8GetString(ReadOnlySpan<byte> bytes) 219ReadOnlySpan<byte> utf8Key, 223Debug.Assert(dictionary.Comparer is IAlternateEqualityComparer<ReadOnlySpan<char>, string>); 225Dictionary<string, TValue>.AlternateLookup<ReadOnlySpan<char>> spanLookup = 226dictionary.GetAlternateLookup<ReadOnlySpan<char>>(); 333public static bool AreEqualJsonNumbers(ReadOnlySpan<byte> left, ReadOnlySpan<byte> right) 339out ReadOnlySpan<byte> leftIntegral, 340out ReadOnlySpan<byte> leftFractional, 345out ReadOnlySpan<byte> rightIntegral, 346out ReadOnlySpan<byte> rightFractional, 360ReadOnlySpan<byte> leftFirst; 361ReadOnlySpan<byte> leftMiddle; 362ReadOnlySpan<byte> leftLast; 364ReadOnlySpan<byte> rightFirst; 365ReadOnlySpan<byte> rightMiddle; 366ReadOnlySpan<byte> rightLast; 409ReadOnlySpan<byte> span, 411out ReadOnlySpan<byte> integral, 412out ReadOnlySpan<byte> fractional, 426ReadOnlySpan<byte> intg; 427ReadOnlySpan<byte> frac; 531static int IndexOfLastLeadingZero(ReadOnlySpan<byte> span) 549static int IndexOfFirstTrailingZero(ReadOnlySpan<byte> span)
System\Text\Json\JsonHelpers.Date.cs (9)
47public static bool TryParseAsISO(ReadOnlySpan<byte> source, out DateTime value) 80public static bool TryParseAsISO(ReadOnlySpan<byte> source, out DateTimeOffset value) 99public static bool TryParseAsIso(ReadOnlySpan<byte> source, out DateOnly value) 141private static bool TryParseDateTimeOffset(ReadOnlySpan<byte> source, out DateTimeParseData parseData) 354static bool ParseOffset(ref DateTimeParseData parseData, ReadOnlySpan<byte> offsetData) 384private static bool TryGetNextTwoDigits(ReadOnlySpan<byte> source, ref int value) 541ReadOnlySpan<int> days = DateTime.IsLeapYear(parseData.Year) ? DaysToMonth366 : DaysToMonth365; 552private static ReadOnlySpan<int> DaysToMonth365 => [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365]; 553private static ReadOnlySpan<int> DaysToMonth366 => [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366];
System\Text\Json\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)
97ReadOnlySpan<byte> utf8Json,
System\Text\Json\Reader\JsonReaderHelper.cs (8)
18public static bool ContainsSpecialCharacters(this ReadOnlySpan<char> text) => 25public static (int, int) CountNewLines(ReadOnlySpan<byte> data) 82public static bool TryGetEscapedDateTime(ReadOnlySpan<byte> source, out DateTime value) 104public static bool TryGetEscapedDateTimeOffset(ReadOnlySpan<byte> source, out DateTimeOffset value) 126public static bool TryGetEscapedGuid(ReadOnlySpan<byte> source, out Guid value) 149public static bool TryGetFloatingPointConstant(ReadOnlySpan<byte> span, out Half value) 181public static bool TryGetFloatingPointConstant(ReadOnlySpan<byte> span, out float value) 212public static bool TryGetFloatingPointConstant(ReadOnlySpan<byte> span, out double value)
System\Text\Json\Reader\JsonReaderHelper.net8.cs (1)
22public static int IndexOfQuoteOrAnyControlOrBackSlash(this ReadOnlySpan<byte> span) =>
System\Text\Json\Reader\JsonReaderHelper.Unescaping.cs (22)
14public static bool TryGetUnescapedBase64Bytes(ReadOnlySpan<byte> utf8Source, [NotNullWhen(true)] out byte[]? bytes) 42public static string GetUnescapedString(ReadOnlySpan<byte> utf8Source) 69public static ReadOnlySpan<byte> GetUnescapedSpan(ReadOnlySpan<byte> utf8Source) 82ReadOnlySpan<byte> propertyName = utf8Unescaped.Slice(0, written).ToArray(); 94public static bool UnescapeAndCompare(ReadOnlySpan<byte> utf8Source, ReadOnlySpan<byte> other) 121public static bool UnescapeAndCompare(ReadOnlySequence<byte> utf8Source, ReadOnlySpan<byte> other) 162public static bool UnescapeAndCompareBothInputs(ReadOnlySpan<byte> utf8Source1, ReadOnlySpan<byte> utf8Source2) 218public static bool TryDecodeBase64(ReadOnlySpan<byte> utf8Unescaped, [NotNullWhen(true)] out byte[]? bytes) 253public static string TranscodeHelper(ReadOnlySpan<byte> utf8Unescaped) 284public static int TranscodeHelper(ReadOnlySpan<byte> utf8Unescaped, Span<char> destination) 322public static void ValidateUtf8(ReadOnlySpan<byte> utf8Buffer) 360internal static int GetUtf8ByteCount(ReadOnlySpan<char> text) 391internal static int GetUtf8FromText(ReadOnlySpan<char> text, Span<byte> dest) 424internal static string GetTextFromUtf8(ReadOnlySpan<byte> utf8Text) 444internal static void Unescape(ReadOnlySpan<byte> source, Span<byte> destination, out int written) 455internal static void Unescape(ReadOnlySpan<byte> source, Span<byte> destination, int idx, out int written) 468internal static bool TryUnescape(ReadOnlySpan<byte> source, Span<byte> destination, out int written) 479private static bool TryUnescape(ReadOnlySpan<byte> source, Span<byte> destination, int idx, out int written) 594ReadOnlySpan<byte> remaining = source.Slice(idx);
System\Text\Json\Reader\Utf8JsonReader.cs (41)
23private ReadOnlySpan<byte> _buffer; 53internal readonly ReadOnlySpan<byte> OriginalSpan => _sequence.IsEmpty ? _buffer : default; 71public ReadOnlySpan<byte> ValueSpan { get; private set; } 213public Utf8JsonReader(ReadOnlySpan<byte> jsonData, bool isFinalBlock, JsonReaderState state) 241ValueSpan = ReadOnlySpan<byte>.Empty; 265public Utf8JsonReader(ReadOnlySpan<byte> jsonData, JsonReaderOptions options = default) 453public readonly bool ValueTextEquals(ReadOnlySpan<byte> utf8Text) 489private readonly bool TextEqualsHelper(ReadOnlySpan<byte> otherUtf8Text) 524public readonly bool ValueTextEquals(ReadOnlySpan<char> text) 574private readonly bool CompareToSequence(ReadOnlySpan<byte> other) 596ReadOnlySpan<byte> span = memory.Span; 610private readonly bool UnescapeAndCompare(ReadOnlySpan<byte> other) 613ReadOnlySpan<byte> localSpan = ValueSpan; 631private readonly bool UnescapeSequenceAndCompare(ReadOnlySpan<byte> other) 652ReadOnlySpan<byte> span = memory.Span; 984ReadOnlySpan<byte> localBuffer = _buffer; 1010ReadOnlySpan<byte> localBuffer = _buffer; 1133private bool ConsumeLiteral(ReadOnlySpan<byte> literal, JsonTokenType tokenType) 1135ReadOnlySpan<byte> span = _buffer.Slice(_consumed); 1151private bool CheckLiteral(ReadOnlySpan<byte> span, ReadOnlySpan<byte> literal) 1184private void ThrowInvalidLiteral(ReadOnlySpan<byte> span) 1285ReadOnlySpan<byte> localBuffer = _buffer.Slice(_consumed + 1); 1324private bool ConsumeStringAndValidate(ReadOnlySpan<byte> data, int idx) 1405private bool ValidateHexDigits(ReadOnlySpan<byte> data, int idx) 1425private bool TryGetNumber(ReadOnlySpan<byte> data, out int consumed) 1538private ConsumeNumberResult ConsumeNegativeSign(ref ReadOnlySpan<byte> data, scoped ref int i) 1565private ConsumeNumberResult ConsumeZero(ref ReadOnlySpan<byte> data, scoped ref int i) 1604private ConsumeNumberResult ConsumeIntegerDigits(ref ReadOnlySpan<byte> data, scoped ref int i) 1637private ConsumeNumberResult ConsumeDecimalDigits(ref ReadOnlySpan<byte> data, scoped ref int i) 1659private ConsumeNumberResult ConsumeSign(ref ReadOnlySpan<byte> data, scoped ref int i) 2317ReadOnlySpan<byte> localBuffer = _buffer.Slice(_consumed + 1); 2343private bool SkipSingleLineComment(ReadOnlySpan<byte> localBuffer, out int idx) 2402private int FindLineSeparator(ReadOnlySpan<byte> localBuffer) 2429private void ThrowOnDangerousLineSeparator(ReadOnlySpan<byte> localBuffer) 2447private bool SkipMultiLineComment(ReadOnlySpan<byte> localBuffer, out int idx) 2494ReadOnlySpan<byte> localBuffer = _buffer.Slice(_consumed + 1); 2520private bool ConsumeSingleLineComment(ReadOnlySpan<byte> localBuffer, int previousConsumed) 2538private bool ConsumeMultiLineComment(ReadOnlySpan<byte> localBuffer, int previousConsumed) 2580private ReadOnlySpan<byte> GetUnescapedSpan() 2582ReadOnlySpan<byte> span = HasValueSequence ? ValueSequence.ToArray() : ValueSpan;
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (24)
50ValueSpan = ReadOnlySpan<byte>.Empty; 510private bool ConsumeLiteralMultiSegment(ReadOnlySpan<byte> literal, JsonTokenType tokenType) 512ReadOnlySpan<byte> span = _buffer.Slice(_consumed); 538private bool CheckLiteralMultiSegment(ReadOnlySpan<byte> span, ReadOnlySpan<byte> literal, out int consumed) 567ReadOnlySpan<byte> leftToMatch = literal.Slice(span.Length); 626private static int FindMismatch(ReadOnlySpan<byte> span, ReadOnlySpan<byte> literal) 650private JsonException GetInvalidLiteralMultiSegment(ReadOnlySpan<byte> span) 750ReadOnlySpan<byte> localBuffer = _buffer.Slice(_consumed + 1); 810ReadOnlySpan<byte> localBuffer = _buffer; 953private bool ConsumeStringAndValidateMultiSegment(ReadOnlySpan<byte> data, int idx) 1117private bool TryGetNumberMultiSegment(ReadOnlySpan<byte> data, out int consumed) 1250private ConsumeNumberResult ConsumeNegativeSignMultiSegment(ref ReadOnlySpan<byte> data, scoped ref int i, scoped in PartialStateForRollback rollBackState) 1292private ConsumeNumberResult ConsumeZeroMultiSegment(ref ReadOnlySpan<byte> data, scoped ref int i, scoped in PartialStateForRollback rollBackState) 1348private ConsumeNumberResult ConsumeIntegerDigitsMultiSegment(ref ReadOnlySpan<byte> data, scoped ref int i) 1426private ConsumeNumberResult ConsumeDecimalDigitsMultiSegment(ref ReadOnlySpan<byte> data, scoped ref int i, scoped in PartialStateForRollback rollBackState) 1460private ConsumeNumberResult ConsumeSignMultiSegment(ref ReadOnlySpan<byte> data, scoped ref int i, scoped in PartialStateForRollback rollBackState) 2236ReadOnlySpan<byte> localBuffer = _buffer.Slice(_consumed); 2316private bool SkipSingleLineCommentMultiSegment(ReadOnlySpan<byte> localBuffer, out int tailBytesToSkip) 2408private int FindLineSeparatorMultiSegment(ReadOnlySpan<byte> localBuffer, scoped ref int dangerousLineSeparatorBytesConsumed) 2458private void ThrowOnDangerousLineSeparatorMultiSegment(ReadOnlySpan<byte> localBuffer, scoped ref int dangerousLineSeparatorBytesConsumed) 2507private bool SkipMultiLineCommentMultiSegment(ReadOnlySpan<byte> localBuffer) 2571localBuffer = ReadOnlySpan<byte>.Empty;
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (37)
39ReadOnlySpan<byte> span = HasValueSequence ? ValueSequence.ToArray() : ValueSpan; 104ReadOnlySpan<byte> valueSpan = ValueSpan; 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)
System\Text\Json\Schema\JsonSchema.cs (1)
290private static ReadOnlySpan<JsonSchemaType> s_schemaValues =>
System\Text\Json\Schema\JsonSchemaExporter.cs (2)
463private static string FormatJsonPointer(ReadOnlySpan<string> path) 475ReadOnlySpan<char> span = segment.AsSpan();
System\Text\Json\Schema\JsonSchemaExporterContext.cs (1)
45public ReadOnlySpan<string> Path => _path;
System\Text\Json\Serialization\Converters\Collection\JsonDictionaryConverter.cs (1)
252ReadOnlySpan<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)
175ReadOnlySpan<byte> unescapedPropertyName = JsonSerializer.GetPropertyName(ref state, ref reader, options, out bool isAlreadyReadMetadataProperty); 292ReadOnlySpan<byte> unescapedPropertyName = JsonSerializer.GetPropertyName(ref state, ref reader, options, out bool isAlreadyReadMetadataProperty); 386ReadOnlySpan<JsonPropertyInfo> propertyCache = jsonTypeInfo.PropertyCache;
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (3)
56ReadOnlySpan<byte> originalSpan = reader.OriginalSpan; 302ReadOnlySpan<byte> unescapedPropertyName = JsonSerializer.GetPropertyName(ref state, ref reader, options, out bool isAlreadyReadMetadataProperty); 412ReadOnlySpan<byte> unescapedPropertyName = JsonSerializer.GetPropertyName(ref state, ref reader, options, out bool isAlreadyReadMetadataProperty);
System\Text\Json\Serialization\Converters\Value\BooleanConverter.cs (1)
26ReadOnlySpan<byte> propertyName = reader.GetUnescapedSpan();
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; 644public EnumFieldInfo? GetMatchingField(ReadOnlySpan<char> input)
System\Text\Json\Serialization\Converters\Value\HalfConverter.cs (1)
166private static bool TryParse(ReadOnlySpan<byte> buffer, out Half result)
System\Text\Json\Serialization\Converters\Value\VersionConverter.cs (1)
47ReadOnlySpan<char> source = charBuffer.Slice(0, bytesWritten);
System\Text\Json\Serialization\JsonSerializer.Read.Document.cs (5)
39ReadOnlySpan<byte> utf8Json = document.GetRootRawValue().Span; 74ReadOnlySpan<byte> utf8Json = document.GetRootRawValue().Span; 107ReadOnlySpan<byte> utf8Json = document.GetRootRawValue().Span; 136ReadOnlySpan<byte> utf8Json = document.GetRootRawValue().Span; 192ReadOnlySpan<byte> utf8Json = document.GetRootRawValue().Span;
System\Text\Json\Serialization\JsonSerializer.Read.Element.cs (5)
31ReadOnlySpan<byte> utf8Json = element.GetRawValue().Span; 62ReadOnlySpan<byte> utf8Json = element.GetRawValue().Span; 91ReadOnlySpan<byte> utf8Json = element.GetRawValue().Span; 112ReadOnlySpan<byte> utf8Json = element.GetRawValue().Span; 160ReadOnlySpan<byte> utf8Json = element.GetRawValue().Span;
System\Text\Json\Serialization\JsonSerializer.Read.HandleMetadata.cs (3)
82ReadOnlySpan<byte> propertyName = reader.GetUnescapedSpan(); 313internal static bool IsMetadataPropertyName(ReadOnlySpan<byte> propertyName, PolymorphicTypeResolver? resolver) 320internal 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) 81public static TValue? Deserialize<TValue>(ReadOnlySpan<byte> utf8Json, JsonTypeInfo<TValue> jsonTypeInfo) 102public static object? Deserialize(ReadOnlySpan<byte> utf8Json, JsonTypeInfo jsonTypeInfo) 136public static object? Deserialize(ReadOnlySpan<byte> utf8Json, Type returnType, JsonSerializerContext context) 150private static TValue? ReadFromSpan<TValue>(ReadOnlySpan<byte> utf8Json, JsonTypeInfo<TValue> jsonTypeInfo, int? actualByteCount = null) 167private static object? ReadFromSpanAsObject(ReadOnlySpan<byte> utf8Json, JsonTypeInfo jsonTypeInfo, int? actualByteCount = null)
System\Text\Json\Serialization\JsonSerializer.Read.String.cs (7)
84public static TValue? Deserialize<TValue>([StringSyntax(StringSyntaxAttribute.Json)] ReadOnlySpan<char> json, JsonSerializerOptions? options = null) 163public static object? Deserialize([StringSyntax(StringSyntaxAttribute.Json)] ReadOnlySpan<char> json, Type returnType, JsonSerializerOptions? options = null) 245public static TValue? Deserialize<TValue>([StringSyntax(StringSyntaxAttribute.Json)] ReadOnlySpan<char> json, JsonTypeInfo<TValue> jsonTypeInfo) 311public static object? Deserialize([StringSyntax(StringSyntaxAttribute.Json)] ReadOnlySpan<char> json, JsonTypeInfo jsonTypeInfo) 411public static object? Deserialize([StringSyntax(StringSyntaxAttribute.Json)] ReadOnlySpan<char> json, Type returnType, JsonSerializerContext context) 426private static TValue? ReadFromSpan<TValue>(ReadOnlySpan<char> json, JsonTypeInfo<TValue> jsonTypeInfo) 457private static object? ReadFromSpanAsObject(ReadOnlySpan<char> json, JsonTypeInfo jsonTypeInfo)
System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs (2)
340ReadOnlySpan<byte> valueSpan = default; 419ReadOnlySpan<byte> readerSpan = reader.OriginalSpan;
System\Text\Json\Serialization\Metadata\JsonTypeInfo.Cache.cs (4)
22internal ReadOnlySpan<JsonParameterInfo> ParameterCache 43internal ReadOnlySpan<JsonPropertyInfo> PropertyCache 77internal JsonPropertyInfo? GetProperty(ReadOnlySpan<byte> propertyName, ref ReadStackFrame frame, out byte[] utf8PropertyName) 87ReadOnlySpan<PropertyRef> utf8PropertyCacheSpan = utf8PropertyCache;
System\Text\Json\Serialization\Metadata\JsonTypeInfoResolver.cs (2)
33return Combine((ReadOnlySpan<IJsonTypeInfoResolver?>)resolvers); 50public static IJsonTypeInfoResolver Combine(params ReadOnlySpan<IJsonTypeInfoResolver?> resolvers)
System\Text\Json\Serialization\Metadata\PropertyRef.cs (2)
42public bool Equals(ReadOnlySpan<byte> propertyName, ulong key) 53public static ulong GetKey(ReadOnlySpan<byte> name)
System\Text\Json\Serialization\ReadBufferState.cs (1)
54public readonly ReadOnlySpan<byte> Bytes => _buffer.AsSpan(_offset, _count);
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)
399ReadOnlySpan<byte> propertyName, 680public static void ThrowJsonException_MetadataReferenceObjectCannotContainOtherProperties(ReadOnlySpan<byte> propertyName, scoped ref ReadStack state) 687public static void ThrowJsonException_MetadataUnexpectedProperty(ReadOnlySpan<byte> propertyName, scoped ref ReadStack state) 706public static void ThrowJsonException_MetadataIdCannotBeCombinedWithRef(ReadOnlySpan<byte> propertyName, scoped ref ReadStack state) 713public static void ThrowJsonException_MetadataStandaloneValuesProperty(scoped ref ReadStack state, ReadOnlySpan<byte> propertyName) 720public static void ThrowJsonException_MetadataInvalidPropertyWithLeadingDollarSign(ReadOnlySpan<byte> propertyName, scoped ref ReadStack state, in Utf8JsonReader reader) 742public static void ThrowJsonException_DuplicateMetadataProperty(ReadOnlySpan<byte> utf8PropertyName) 796ReadOnlySpan<byte> propertyName,
System\Text\Json\Writer\JsonWriterHelper.cs (17)
64public static void ValidateProperty(ReadOnlySpan<byte> propertyName) 71public static void ValidateValue(ReadOnlySpan<byte> value) 96public static void ValidateProperty(ReadOnlySpan<char> propertyName) 103public static void ValidateValue(ReadOnlySpan<char> value) 110public static void ValidatePropertyAndValue(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> value) 117public static void ValidatePropertyAndValue(ReadOnlySpan<byte> propertyName, ReadOnlySpan<char> value) 124public static void ValidatePropertyAndValue(ReadOnlySpan<byte> propertyName, ReadOnlySpan<byte> value) 131public static void ValidatePropertyAndValue(ReadOnlySpan<char> propertyName, ReadOnlySpan<char> value) 138public static void ValidatePropertyNameLength(ReadOnlySpan<char> propertyName) 145public static void ValidatePropertyNameLength(ReadOnlySpan<byte> propertyName) 151internal static void ValidateNumber(ReadOnlySpan<byte> utf8FormattedNumber) 260public static unsafe bool IsValidUtf8String(ReadOnlySpan<byte> bytes) 287internal static unsafe OperationStatus ToUtf8(ReadOnlySpan<char> source, Span<byte> destination, out int written)
System\Text\Json\Writer\JsonWriterHelper.Escaping.cs (9)
23private static ReadOnlySpan<byte> AllowList => // byte.MaxValue + 1 55public static int NeedsEscaping(ReadOnlySpan<byte> value, JavaScriptEncoder? encoder) 60public static unsafe int NeedsEscaping(ReadOnlySpan<char> value, JavaScriptEncoder? encoder) 82private static void EscapeString(ReadOnlySpan<byte> value, Span<byte> destination, JavaScriptEncoder encoder, ref int consumed, ref int written, bool isFinalBlock) 102public static void EscapeString(ReadOnlySpan<byte> value, Span<byte> destination, int indexOfFirstByteToEscape, JavaScriptEncoder? encoder, out int written) 105public static void EscapeString(ReadOnlySpan<byte> value, Span<byte> destination, int indexOfFirstByteToEscape, JavaScriptEncoder? encoder, out int consumed, out int written, bool isFinalBlock = true) 200private static void EscapeString(ReadOnlySpan<char> value, Span<char> destination, JavaScriptEncoder encoder, ref int consumed, ref int written, bool isFinalBlock) 220public static void EscapeString(ReadOnlySpan<char> value, Span<char> destination, int indexOfFirstByteToEscape, JavaScriptEncoder? encoder, out int written) 223public 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; 726private void WriteStartHelper(ReadOnlySpan<byte> utf8PropertyName, byte token) 752public void WriteStartArray(ReadOnlySpan<byte> utf8PropertyName) 777public void WriteStartObject(ReadOnlySpan<byte> utf8PropertyName) 788private void WriteStartEscape(ReadOnlySpan<byte> utf8PropertyName, byte token) 804private void WriteStartByOptions(ReadOnlySpan<byte> utf8PropertyName, byte token) 818private void WriteStartEscapeProperty(ReadOnlySpan<byte> utf8PropertyName, byte token, int firstEscapeIndexProp) 907public void WriteStartArray(ReadOnlySpan<char> propertyName) 932public void WriteStartObject(ReadOnlySpan<char> propertyName) 943private void WriteStartEscape(ReadOnlySpan<char> propertyName, byte token) 959private void WriteStartByOptions(ReadOnlySpan<char> propertyName, byte token) 973private 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) 71public void WriteBase64String(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> bytes) 95public void WriteBase64String(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> bytes) 105private void WriteBase64Escape(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> bytes) 121private void WriteBase64Escape(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> bytes) 137private void WriteBase64EscapeProperty(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> bytes, int firstEscapeIndexProp) 160private void WriteBase64EscapeProperty(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> bytes, int firstEscapeIndexProp) 183private void WriteBase64ByOptions(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> bytes) 196private void WriteBase64ByOptions(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> bytes) 209private void WriteBase64Minimized(ReadOnlySpan<char> escapedPropertyName, ReadOnlySpan<byte> bytes) 244private void WriteBase64Minimized(ReadOnlySpan<byte> escapedPropertyName, ReadOnlySpan<byte> bytes) 280private void WriteBase64Indented(ReadOnlySpan<char> escapedPropertyName, ReadOnlySpan<byte> bytes) 330private void WriteBase64Indented(ReadOnlySpan<byte> escapedPropertyName, ReadOnlySpan<byte> bytes)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTime.cs (13)
26ReadOnlySpan<byte> utf8PropertyName = propertyName.EncodedUtf8Bytes; 77public void WriteString(ReadOnlySpan<char> propertyName, DateTime value) 102public void WriteString(ReadOnlySpan<byte> utf8PropertyName, DateTime value) 112private void WriteStringEscape(ReadOnlySpan<char> propertyName, DateTime value) 128private void WriteStringEscape(ReadOnlySpan<byte> utf8PropertyName, DateTime value) 144private void WriteStringEscapeProperty(ReadOnlySpan<char> propertyName, DateTime value, int firstEscapeIndexProp) 167private void WriteStringEscapeProperty(ReadOnlySpan<byte> utf8PropertyName, DateTime value, int firstEscapeIndexProp) 190private void WriteStringByOptions(ReadOnlySpan<char> propertyName, DateTime value) 203private void WriteStringByOptions(ReadOnlySpan<byte> utf8PropertyName, DateTime value) 216private void WriteStringMinimized(ReadOnlySpan<char> escapedPropertyName, DateTime value) 250private void WriteStringMinimized(ReadOnlySpan<byte> escapedPropertyName, DateTime value) 284private void WriteStringIndented(ReadOnlySpan<char> escapedPropertyName, DateTime value) 333private void WriteStringIndented(ReadOnlySpan<byte> escapedPropertyName, DateTime value)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTimeOffset.cs (13)
25ReadOnlySpan<byte> utf8PropertyName = propertyName.EncodedUtf8Bytes; 76public void WriteString(ReadOnlySpan<char> propertyName, DateTimeOffset value) 101public void WriteString(ReadOnlySpan<byte> utf8PropertyName, DateTimeOffset value) 111private void WriteStringEscape(ReadOnlySpan<char> propertyName, DateTimeOffset value) 127private void WriteStringEscape(ReadOnlySpan<byte> utf8PropertyName, DateTimeOffset value) 143private void WriteStringEscapeProperty(ReadOnlySpan<char> propertyName, DateTimeOffset value, int firstEscapeIndexProp) 166private void WriteStringEscapeProperty(ReadOnlySpan<byte> utf8PropertyName, DateTimeOffset value, int firstEscapeIndexProp) 189private void WriteStringByOptions(ReadOnlySpan<char> propertyName, DateTimeOffset value) 202private void WriteStringByOptions(ReadOnlySpan<byte> utf8PropertyName, DateTimeOffset value) 215private void WriteStringMinimized(ReadOnlySpan<char> escapedPropertyName, DateTimeOffset value) 249private void WriteStringMinimized(ReadOnlySpan<byte> escapedPropertyName, DateTimeOffset value) 283private void WriteStringIndented(ReadOnlySpan<char> escapedPropertyName, DateTimeOffset value) 332private void WriteStringIndented(ReadOnlySpan<byte> escapedPropertyName, DateTimeOffset value)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Decimal.cs (13)
25ReadOnlySpan<byte> utf8PropertyName = propertyName.EncodedUtf8Bytes; 76public void WriteNumber(ReadOnlySpan<char> propertyName, decimal value) 101public void WriteNumber(ReadOnlySpan<byte> utf8PropertyName, decimal value) 111private void WriteNumberEscape(ReadOnlySpan<char> propertyName, decimal value) 127private void WriteNumberEscape(ReadOnlySpan<byte> utf8PropertyName, decimal value) 143private void WriteNumberEscapeProperty(ReadOnlySpan<char> propertyName, decimal value, int firstEscapeIndexProp) 166private void WriteNumberEscapeProperty(ReadOnlySpan<byte> utf8PropertyName, decimal value, int firstEscapeIndexProp) 189private void WriteNumberByOptions(ReadOnlySpan<char> propertyName, decimal value) 202private void WriteNumberByOptions(ReadOnlySpan<byte> utf8PropertyName, decimal value) 215private void WriteNumberMinimized(ReadOnlySpan<char> escapedPropertyName, decimal value) 246private void WriteNumberMinimized(ReadOnlySpan<byte> escapedPropertyName, decimal value) 277private void WriteNumberIndented(ReadOnlySpan<char> escapedPropertyName, decimal value) 323private void WriteNumberIndented(ReadOnlySpan<byte> escapedPropertyName, decimal value)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Double.cs (13)
25ReadOnlySpan<byte> utf8PropertyName = propertyName.EncodedUtf8Bytes; 78public void WriteNumber(ReadOnlySpan<char> propertyName, double value) 104public void WriteNumber(ReadOnlySpan<byte> utf8PropertyName, double value) 115private void WriteNumberEscape(ReadOnlySpan<char> propertyName, double value) 131private void WriteNumberEscape(ReadOnlySpan<byte> utf8PropertyName, double value) 147private void WriteNumberEscapeProperty(ReadOnlySpan<char> propertyName, double value, int firstEscapeIndexProp) 170private void WriteNumberEscapeProperty(ReadOnlySpan<byte> utf8PropertyName, double value, int firstEscapeIndexProp) 193private void WriteNumberByOptions(ReadOnlySpan<char> propertyName, double value) 206private void WriteNumberByOptions(ReadOnlySpan<byte> utf8PropertyName, double value) 219private void WriteNumberMinimized(ReadOnlySpan<char> escapedPropertyName, double value) 250private void WriteNumberMinimized(ReadOnlySpan<byte> escapedPropertyName, double value) 281private void WriteNumberIndented(ReadOnlySpan<char> escapedPropertyName, double value) 327private void WriteNumberIndented(ReadOnlySpan<byte> escapedPropertyName, double value)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Float.cs (13)
25ReadOnlySpan<byte> utf8PropertyName = propertyName.EncodedUtf8Bytes; 78public void WriteNumber(ReadOnlySpan<char> propertyName, float value) 104public void WriteNumber(ReadOnlySpan<byte> utf8PropertyName, float value) 115private void WriteNumberEscape(ReadOnlySpan<char> propertyName, float value) 131private void WriteNumberEscape(ReadOnlySpan<byte> utf8PropertyName, float value) 147private void WriteNumberEscapeProperty(ReadOnlySpan<char> propertyName, float value, int firstEscapeIndexProp) 170private void WriteNumberEscapeProperty(ReadOnlySpan<byte> utf8PropertyName, float value, int firstEscapeIndexProp) 193private void WriteNumberByOptions(ReadOnlySpan<char> propertyName, float value) 206private void WriteNumberByOptions(ReadOnlySpan<byte> utf8PropertyName, float value) 219private void WriteNumberMinimized(ReadOnlySpan<char> escapedPropertyName, float value) 250private void WriteNumberMinimized(ReadOnlySpan<byte> escapedPropertyName, float value) 281private void WriteNumberIndented(ReadOnlySpan<char> escapedPropertyName, float value) 327private void WriteNumberIndented(ReadOnlySpan<byte> escapedPropertyName, float value)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.FormattedNumber.cs (17)
29internal void WriteNumber(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> utf8FormattedNumber) 59internal void WriteNumber(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> utf8FormattedNumber) 71internal void WriteNumber(JsonEncodedText propertyName, ReadOnlySpan<byte> utf8FormattedNumber) 82private void WriteNumberEscape(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> value) 98private void WriteNumberEscape(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> value) 114private void WriteNumberEscapeProperty(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> value, int firstEscapeIndexProp) 137private void WriteNumberEscapeProperty(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> value, int firstEscapeIndexProp) 160private void WriteNumberByOptions(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> value) 173private void WriteNumberByOptions(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> value)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Guid.cs (13)
25ReadOnlySpan<byte> utf8PropertyName = propertyName.EncodedUtf8Bytes; 76public void WriteString(ReadOnlySpan<char> propertyName, Guid value) 101public void WriteString(ReadOnlySpan<byte> utf8PropertyName, Guid value) 111private void WriteStringEscape(ReadOnlySpan<char> propertyName, Guid value) 127private void WriteStringEscape(ReadOnlySpan<byte> utf8PropertyName, Guid value) 143private void WriteStringEscapeProperty(ReadOnlySpan<char> propertyName, Guid value, int firstEscapeIndexProp) 166private void WriteStringEscapeProperty(ReadOnlySpan<byte> utf8PropertyName, Guid value, int firstEscapeIndexProp) 189private void WriteStringByOptions(ReadOnlySpan<char> propertyName, Guid value) 202private void WriteStringByOptions(ReadOnlySpan<byte> utf8PropertyName, Guid value) 215private void WriteStringMinimized(ReadOnlySpan<char> escapedPropertyName, Guid value) 250private void WriteStringMinimized(ReadOnlySpan<byte> escapedPropertyName, Guid value) 285private void WriteStringIndented(ReadOnlySpan<char> escapedPropertyName, Guid value) 335private 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) 96public void WriteNull(ReadOnlySpan<char> propertyName) 100ReadOnlySpan<byte> span = JsonConstants.NullValue; 121public void WriteNull(ReadOnlySpan<byte> utf8PropertyName) 125ReadOnlySpan<byte> span = JsonConstants.NullValue; 195public void WriteBoolean(ReadOnlySpan<char> propertyName, bool value) 199ReadOnlySpan<byte> span = value ? JsonConstants.TrueValue : JsonConstants.FalseValue; 221public void WriteBoolean(ReadOnlySpan<byte> utf8PropertyName, bool value) 225ReadOnlySpan<byte> span = value ? JsonConstants.TrueValue : JsonConstants.FalseValue; 233private void WriteLiteralEscape(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> value) 249private void WriteLiteralEscape(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> value) 265private void WriteLiteralEscapeProperty(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> value, int firstEscapeIndexProp) 288private void WriteLiteralEscapeProperty(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> value, int firstEscapeIndexProp) 311private void WriteLiteralByOptions(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> value) 324private void WriteLiteralByOptions(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> value) 337private void WriteLiteralMinimized(ReadOnlySpan<char> escapedPropertyName, ReadOnlySpan<byte> value) 368private void WriteLiteralMinimized(ReadOnlySpan<byte> escapedPropertyName, ReadOnlySpan<byte> value) 401private void WriteLiteralSection(ReadOnlySpan<byte> escapedPropertyNameSection, ReadOnlySpan<byte> value) 427private void WriteLiteralIndented(ReadOnlySpan<char> escapedPropertyName, ReadOnlySpan<byte> value) 473private void WriteLiteralIndented(ReadOnlySpan<byte> escapedPropertyName, ReadOnlySpan<byte> value)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.SignedNumber.cs (15)
25ReadOnlySpan<byte> utf8PropertyName = propertyName.EncodedUtf8Bytes; 76public void WriteNumber(ReadOnlySpan<char> propertyName, long value) 101public void WriteNumber(ReadOnlySpan<byte> utf8PropertyName, long value) 166public void WriteNumber(ReadOnlySpan<char> propertyName, int value) 184public void WriteNumber(ReadOnlySpan<byte> utf8PropertyName, int value) 187private void WriteNumberEscape(ReadOnlySpan<char> propertyName, long value) 203private void WriteNumberEscape(ReadOnlySpan<byte> utf8PropertyName, long value) 219private void WriteNumberEscapeProperty(ReadOnlySpan<char> propertyName, long value, int firstEscapeIndexProp) 242private void WriteNumberEscapeProperty(ReadOnlySpan<byte> utf8PropertyName, long value, int firstEscapeIndexProp) 265private void WriteNumberByOptions(ReadOnlySpan<char> propertyName, long value) 278private void WriteNumberByOptions(ReadOnlySpan<byte> utf8PropertyName, long value) 291private void WriteNumberMinimized(ReadOnlySpan<char> escapedPropertyName, long value) 322private void WriteNumberMinimized(ReadOnlySpan<byte> escapedPropertyName, long value) 353private void WriteNumberIndented(ReadOnlySpan<char> escapedPropertyName, long value) 399private void WriteNumberIndented(ReadOnlySpan<byte> escapedPropertyName, long value)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.String.cs (82)
22internal void WritePropertyNameSection(ReadOnlySpan<byte> escapedPropertyNameSection) 26ReadOnlySpan<byte> escapedPropertyName = 43private void WritePropertyNameHelper(ReadOnlySpan<byte> utf8PropertyName) 92public void WritePropertyName(ReadOnlySpan<char> propertyName) 146private void WriteStringByOptionsPropertyName(ReadOnlySpan<char> propertyName) 159private void WriteStringMinimizedPropertyName(ReadOnlySpan<char> escapedPropertyName) 187private void WriteStringIndentedPropertyName(ReadOnlySpan<char> escapedPropertyName) 241public void WritePropertyName(ReadOnlySpan<byte> utf8PropertyName) 262private void WritePropertyNameUnescaped(ReadOnlySpan<byte> utf8PropertyName) 305private void WriteStringByOptionsPropertyName(ReadOnlySpan<byte> utf8PropertyName) 320private void WriteStringMinimizedPropertyName(ReadOnlySpan<byte> escapedPropertyName) 350private void WriteStringPropertyNameSection(ReadOnlySpan<byte> escapedPropertyNameSection) 375private void WriteStringIndentedPropertyName(ReadOnlySpan<byte> escapedPropertyName) 429private void WriteStringHelper(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> utf8Value) 485/// as if <see cref="WriteNull(System.ReadOnlySpan{byte})"/> were called. 519public void WriteString(ReadOnlySpan<char> propertyName, ReadOnlySpan<char> value) 543public void WriteString(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> utf8Value) 599public void WriteString(JsonEncodedText propertyName, ReadOnlySpan<char> value) 602private void WriteStringHelperEscapeValue(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<char> value) 642public void WriteString(string propertyName, ReadOnlySpan<char> value) 665public void WriteString(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<char> value) 689public void WriteString(JsonEncodedText propertyName, ReadOnlySpan<byte> utf8Value) 692private void WriteStringHelperEscapeValue(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> utf8Value) 732public void WriteString(string propertyName, ReadOnlySpan<byte> utf8Value) 755public void WriteString(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> utf8Value) 779public void WriteString(ReadOnlySpan<char> propertyName, JsonEncodedText value) 782private void WriteStringHelperEscapeProperty(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> utf8Value) 822/// as if <see cref="WriteNull(System.ReadOnlySpan{char})"/> was called. 825public void WriteString(ReadOnlySpan<char> propertyName, string? value) 851public void WriteString(ReadOnlySpan<byte> utf8PropertyName, JsonEncodedText value) 854private void WriteStringHelperEscapeProperty(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> utf8Value) 894/// as if <see cref="WriteNull(System.ReadOnlySpan{byte})"/> was called. 897public void WriteString(ReadOnlySpan<byte> utf8PropertyName, string? value) 909private void WriteStringEscapeValueOnly(ReadOnlySpan<byte> escapedPropertyName, ReadOnlySpan<byte> utf8Value, int firstEscapeIndex) 932private void WriteStringEscapeValueOnly(ReadOnlySpan<byte> escapedPropertyName, ReadOnlySpan<char> value, int firstEscapeIndex) 955private void WriteStringEscapePropertyOnly(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> escapedValue, int firstEscapeIndex) 978private void WriteStringEscapePropertyOnly(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> escapedValue, int firstEscapeIndex) 1001private void WriteStringEscape(ReadOnlySpan<char> propertyName, ReadOnlySpan<char> value) 1020private void WriteStringEscape(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> utf8Value) 1039private void WriteStringEscape(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> utf8Value) 1058private void WriteStringEscape(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<char> value) 1317private void WriteStringByOptions(ReadOnlySpan<char> propertyName, ReadOnlySpan<char> value) 1330private void WriteStringByOptions(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> utf8Value) 1343private void WriteStringByOptions(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> utf8Value) 1356private void WriteStringByOptions(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<char> value) 1370private void WriteStringMinimized(ReadOnlySpan<char> escapedPropertyName, ReadOnlySpan<char> escapedValue) 1405private void WriteStringMinimized(ReadOnlySpan<byte> escapedPropertyName, ReadOnlySpan<byte> escapedValue) 1441private void WriteStringMinimized(ReadOnlySpan<char> escapedPropertyName, ReadOnlySpan<byte> escapedValue) 1477private void WriteStringMinimized(ReadOnlySpan<byte> escapedPropertyName, ReadOnlySpan<char> escapedValue) 1513private void WriteStringIndented(ReadOnlySpan<char> escapedPropertyName, ReadOnlySpan<char> escapedValue) 1563private void WriteStringIndented(ReadOnlySpan<byte> escapedPropertyName, ReadOnlySpan<byte> escapedValue) 1614private void WriteStringIndented(ReadOnlySpan<char> escapedPropertyName, ReadOnlySpan<byte> escapedValue) 1665private void WriteStringIndented(ReadOnlySpan<byte> escapedPropertyName, ReadOnlySpan<char> escapedValue)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.UnsignedNumber.cs (15)
26ReadOnlySpan<byte> utf8PropertyName = propertyName.EncodedUtf8Bytes; 79public void WriteNumber(ReadOnlySpan<char> propertyName, ulong value) 105public void WriteNumber(ReadOnlySpan<byte> utf8PropertyName, ulong value) 174public void WriteNumber(ReadOnlySpan<char> propertyName, uint value) 193public void WriteNumber(ReadOnlySpan<byte> utf8PropertyName, uint value) 196private void WriteNumberEscape(ReadOnlySpan<char> propertyName, ulong value) 212private void WriteNumberEscape(ReadOnlySpan<byte> utf8PropertyName, ulong value) 228private void WriteNumberEscapeProperty(ReadOnlySpan<char> propertyName, ulong value, int firstEscapeIndexProp) 251private void WriteNumberEscapeProperty(ReadOnlySpan<byte> utf8PropertyName, ulong value, int firstEscapeIndexProp) 274private void WriteNumberByOptions(ReadOnlySpan<char> propertyName, ulong value) 287private void WriteNumberByOptions(ReadOnlySpan<byte> utf8PropertyName, ulong value) 300private void WriteNumberMinimized(ReadOnlySpan<char> escapedPropertyName, ulong value) 331private void WriteNumberMinimized(ReadOnlySpan<byte> escapedPropertyName, ulong value) 362private void WriteNumberIndented(ReadOnlySpan<char> escapedPropertyName, ulong value) 408private 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; 46public void WriteCommentValue(ReadOnlySpan<char> value) 62private void WriteCommentByOptions(ReadOnlySpan<char> value) 81private void WriteCommentMinimized(ReadOnlySpan<char> value) 112private void WriteCommentIndented(ReadOnlySpan<char> value) 163public void WriteCommentValue(ReadOnlySpan<byte> utf8Value) 184private void WriteCommentByOptions(ReadOnlySpan<byte> utf8Value) 196private void WriteCommentMinimized(ReadOnlySpan<byte> utf8Value) 219private 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)
70public void WriteRawValue([StringSyntax(StringSyntaxAttribute.Json)] ReadOnlySpan<char> json, bool skipInputValidation = false) 101public void WriteRawValue(ReadOnlySpan<byte> utf8Json, bool skipInputValidation = false) 196private void TranscodeAndWriteRawValue(ReadOnlySpan<char> json, bool skipInputValidation) 231private 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) 98private void WriteStringByOptions(ReadOnlySpan<char> value) 116private void WriteStringMinimized(ReadOnlySpan<char> escapedValue) 143private void WriteStringIndented(ReadOnlySpan<char> escapedValue) 183private void WriteStringEscapeValue(ReadOnlySpan<char> value, int firstEscapeIndexVal) 219public void WriteStringValue(ReadOnlySpan<byte> utf8Value) 229private void WriteStringEscape(ReadOnlySpan<byte> utf8Value) 245private void WriteStringByOptions(ReadOnlySpan<byte> utf8Value) 263private void WriteStringMinimized(ReadOnlySpan<byte> escapedValue) 290private void WriteStringIndented(ReadOnlySpan<byte> escapedValue) 330private void WriteStringEscapeValue(ReadOnlySpan<byte> utf8Value, int firstEscapeIndexVal) 357internal void WriteNumberValueAsStringUnescaped(ReadOnlySpan<byte> utf8Value)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.StringSegment.cs (12)
27public void WriteStringValueSegment(ReadOnlySpan<char> value, bool isFinalSegment) 118private void WriteStringSegmentEscape(ReadOnlySpan<char> value, bool isFinalSegment) 133private void WriteStringSegmentEscapeValue(ReadOnlySpan<char> value, int firstEscapeIndexVal, bool isFinalSegment) 164private void WriteStringSegmentData(ReadOnlySpan<char> escapedValue) 195public void WriteStringValueSegment(ReadOnlySpan<byte> value, bool isFinalSegment) 287private void WriteStringSegmentEscape(ReadOnlySpan<byte> utf8Value, bool isFinalSegment) 302private void WriteStringSegmentEscapeValue(ReadOnlySpan<byte> utf8Value, int firstEscapeIndexVal, bool isFinalSegment) 330private void WriteStringSegmentData(ReadOnlySpan<byte> escapedValue) 359public void WriteBase64StringSegment(ReadOnlySpan<byte> value, bool isFinalSegment) 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 (11)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
160public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span)
src\libraries\Common\src\SourceGenerators\ImmutableEquatableArray.cs (1)
28=> other != null && ((ReadOnlySpan<T>)_values).SequenceEqual(other._values);
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\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.cs (1)
144public ReadOnlySpan<T> AsSpan()
src\libraries\System.Text.Json\Common\JsonSeparatorNamingPolicy.cs (1)
34private static string ConvertNameCore(char separator, bool lowercase, ReadOnlySpan<char> chars)
System.Text.RegularExpressions (223)
src\libraries\Common\src\System\HexConverter.cs (6)
164public static void EncodeToUtf16(ReadOnlySpan<byte> bytes, Span<char> chars, Casing casing = Casing.Upper) 181public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 197EncodeToUtf16(*(ReadOnlySpan<byte>*)args.RosPtr, chars, args.casing)); 229public static bool TryDecodeFromUtf16(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 335private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 433public static ReadOnlySpan<byte> CharToHexLookup =>
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
104public ReadOnlySpan<char> AsSpan(bool terminate) 114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.cs (1)
144public ReadOnlySpan<T> AsSpan()
System\Text\RegularExpressions\Capture.cs (1)
34public 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)
429ReadOnlySpan<char> span = input.AsSpan(beginning, length); 461internal (bool Success, int Index, int Length, int TextPosition) RunSingleMatch(RegexRunnerMode mode, int prevlen, ReadOnlySpan<char> input, int startat) 522RunAllMatchesWithCallback(input, (ReadOnlySpan<char>)input, startat, ref state, callback, mode, reuseMatchObject); 524internal void RunAllMatchesWithCallback<TState>(ReadOnlySpan<char> input, int startat, ref TState state, MatchCallback<TState> callback, RegexRunnerMode mode, bool reuseMatchObject) => 527private void RunAllMatchesWithCallback<TState>(string? inputString, ReadOnlySpan<char> inputSpan, int startat, ref TState state, MatchCallback<TState> callback, RegexRunnerMode mode, bool reuseMatchObject) 607private 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)
24public static ValueMatchEnumerator EnumerateMatches(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.Regex)] string pattern) => 43public static ValueMatchEnumerator EnumerateMatches(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.Regex, nameof(options))] string pattern, RegexOptions options) => 63public static ValueMatchEnumerator EnumerateMatches(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.Regex, nameof(options))] string pattern, RegexOptions options, TimeSpan matchTimeout) => 77public ValueMatchEnumerator EnumerateMatches(ReadOnlySpan<char> input) => 92public ValueMatchEnumerator EnumerateMatches(ReadOnlySpan<char> input, int startat) => 99/// The enumerator has no public constructor. The <see cref="Regex.EnumerateMatches(ReadOnlySpan{char})"/> method returns a <see cref="Regex.ValueMatchEnumerator"/> 109private readonly ReadOnlySpan<char> _input; 120internal ValueMatchEnumerator(Regex regex, ReadOnlySpan<char> input, int startAt)
System\Text\RegularExpressions\Regex.EnumerateSplits.cs (26)
16/// The behavior of <see cref="EnumerateSplits(ReadOnlySpan{char}, string)"/> is similar to the behavior of <see cref="Split(string, string)"/>, producing the splits 18/// <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. 20/// <see cref="EnumerateSplits(ReadOnlySpan{char}, string)"/> will yield the splits in the order they're found right-to-left. 33public static ValueSplitEnumerator EnumerateSplits(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.Regex)] string pattern) => 41/// 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 43/// <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. 45/// <see cref="EnumerateSplits(ReadOnlySpan{char}, string, RegexOptions)"/> will yield the splits in the order they're found right-to-left. 60public static ValueSplitEnumerator EnumerateSplits(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.Regex, nameof(options))] string pattern, RegexOptions options) => 68/// 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 70/// <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. 72/// <see cref="EnumerateSplits(ReadOnlySpan{char}, string, RegexOptions, TimeSpan)"/> will yield the splits in the order they're found right-to-left. 88public static ValueSplitEnumerator EnumerateSplits(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.Regex, nameof(options))] string pattern, RegexOptions options, TimeSpan matchTimeout) => 96/// The behavior of <see cref="EnumerateSplits(ReadOnlySpan{char})"/> is similar to the behavior of <see cref="Split(string)"/>, producing the splits 98/// <see cref="Split(string)"/> will include the contents of capture groups in the resulting splits, while <see cref="EnumerateSplits(ReadOnlySpan{char})"/> will not. 100/// <see cref="EnumerateSplits(ReadOnlySpan{char})"/> will yield the splits in the order they're found right-to-left. 110public ValueSplitEnumerator EnumerateSplits(ReadOnlySpan<char> input) => 118/// The behavior of <see cref="EnumerateSplits(ReadOnlySpan{char}, int)"/> is similar to the behavior of <see cref="Split(string, int)"/>, producing the splits 120/// <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. 122/// <see cref="EnumerateSplits(ReadOnlySpan{char}, int)"/> will yield the splits in the order they're found right-to-left. 133public ValueSplitEnumerator EnumerateSplits(ReadOnlySpan<char> input, int count) => 141/// 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 143/// <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. 145/// <see cref="EnumerateSplits(ReadOnlySpan{char}, int, int)"/> will yield the splits in the order they're found right-to-left. 157public ValueSplitEnumerator EnumerateSplits(ReadOnlySpan<char> input, int count, int startat) 179private readonly ReadOnlySpan<char> _input; 194internal ValueSplitEnumerator(Regex regex, ReadOnlySpan<char> input, int count, int startAt, bool rtl)
System\Text\RegularExpressions\Regex.Match.cs (5)
25public static bool IsMatch(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.Regex)] string pattern) => 47public static bool IsMatch(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.Regex, nameof(options))] string pattern, RegexOptions options) => 66public static bool IsMatch(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.Regex, nameof(options))] string pattern, RegexOptions options, TimeSpan matchTimeout) => 103public bool IsMatch(ReadOnlySpan<char> input) => 113public bool IsMatch(ReadOnlySpan<char> input, int startat) =>
System\Text\RegularExpressions\Regex.Replace.cs (1)
233ReadOnlySpan<char> segment = span[i].Span;
System\Text\RegularExpressions\RegexAssemblyCompiler.cs (3)
57_ilg = DefineMethod(regexRunnerTypeBuilder, "TryFindNextPossibleStartingPosition", [typeof(ReadOnlySpan<char>)], typeof(bool), out MethodBuilder tryFindNextPossibleStartingPositionMethod); 60_ilg = DefineMethod(regexRunnerTypeBuilder, "TryMatchAtCurrentPosition", [typeof(ReadOnlySpan<char>)], typeof(bool), out MethodBuilder tryMatchAtCurrentPositionMethod); 63_ilg = DefineMethod(regexRunnerTypeBuilder, "Scan", [typeof(ReadOnlySpan<char>)], null, out _);
System\Text\RegularExpressions\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 => // 2346 163private static ReadOnlySpan<ushort> EquivalenceFirstLevelLookup => // 64 171private static ReadOnlySpan<ushort> EquivalenceCasingMap => // 10240
System\Text\RegularExpressions\RegexCharClass.cs (16)
407private void AddRanges(ReadOnlySpan<char> set) 486if (RegexCaseEquivalences.TryFindCaseEquivalencesForCharWithIBehavior(range.First, culture, ref _caseBehavior, out ReadOnlySpan<char> equivalences)) 510if (RegexCaseEquivalences.TryFindCaseEquivalencesForCharWithIBehavior((char)i, culture, ref _caseBehavior, out ReadOnlySpan<char> equivalences)) 1029public static bool ParticipatesInCaseConversion(ReadOnlySpan<char> s) 1043public static bool IsAscii(ReadOnlySpan<char> s) 1197private static ReadOnlySpan<byte> WordCharAsciiLookup => 1221ReadOnlySpan<byte> ascii = WordCharAsciiLookup; 1240ReadOnlySpan<byte> ascii = WordCharAsciiLookup; 1391private static bool CharInCategory(char ch, ReadOnlySpan<char> categorySetSegment) 1447private static bool CharInCategoryGroup(UnicodeCategory chcategory, ReadOnlySpan<char> category, ref int i) 1510public static List<(char First, char Last)>? ComputeRanges(ReadOnlySpan<char> set) 1546internal static unsafe string CharsToStringClass(ReadOnlySpan<char> chars) 1594ReadOnlySpan<char> tmpChars = chars; // avoid address exposing the span and impacting the other code in the method that uses it 1608foreach (char c in *(ReadOnlySpan<char>*)charsPtr) 1821private static ReadOnlySpan<char> RangesFromProperty(string capname, bool invert, string pattern, int currentPos) 1957ReadOnlySpan<char> group = set.AsSpan(index, lastindex - index + 1);
System\Text\RegularExpressions\RegexCompiler.cs (46)
38private static MethodInfo IsBoundaryMethod => field ??= typeof(RegexRunner).GetMethod("IsBoundary", BindingFlags.NonPublic | BindingFlags.Static, [typeof(ReadOnlySpan<char>), typeof(int)])!; 40private static MethodInfo IsECMABoundaryMethod => field ??= typeof(RegexRunner).GetMethod("IsECMABoundary", BindingFlags.NonPublic | BindingFlags.Static, [typeof(ReadOnlySpan<char>), typeof(int)])!; 66private static MethodInfo SpanGetItemMethod => field ??= typeof(ReadOnlySpan<char>).GetMethod("get_Item", [typeof(int)])!; 67private static MethodInfo SpanGetLengthMethod => field ??= typeof(ReadOnlySpan<char>).GetMethod("get_Length")!; 68private static MethodInfo SpanIndexOfCharMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOf", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 69private static MethodInfo SpanIndexOfSpanMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOf", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 70private static MethodInfo SpanIndexOfSpanStringComparisonMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOf", [typeof(ReadOnlySpan<char>), typeof(ReadOnlySpan<char>), typeof(StringComparison)])!; 71private static MethodInfo SpanIndexOfAnyCharCharMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 72private 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)); 73private static MethodInfo SpanIndexOfAnySpanMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 74private static MethodInfo SpanIndexOfAnySearchValuesMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(SearchValues<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 75private static MethodInfo SpanIndexOfAnySearchValuesStringMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAny", [typeof(ReadOnlySpan<char>), typeof(SearchValues<string>)])!; 76private static MethodInfo SpanIndexOfAnyExceptCharMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 77private static MethodInfo SpanIndexOfAnyExceptCharCharMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 78private 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)); 79private static MethodInfo SpanIndexOfAnyExceptSpanMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 80private static MethodInfo SpanIndexOfAnyExceptSearchValuesMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(SearchValues<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 81private static MethodInfo SpanIndexOfAnyInRangeMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAnyInRange", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 82private static MethodInfo SpanIndexOfAnyExceptInRangeMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAnyExceptInRange", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 83private static MethodInfo SpanLastIndexOfCharMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOf", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 84private static MethodInfo SpanLastIndexOfAnyCharCharMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 85private 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)); 86private static MethodInfo SpanLastIndexOfAnySpanMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 87private static MethodInfo SpanLastIndexOfAnySearchValuesMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(SearchValues<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 88private static MethodInfo SpanLastIndexOfSpanMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOf", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 89private static MethodInfo SpanLastIndexOfAnyExceptCharMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 90private static MethodInfo SpanLastIndexOfAnyExceptCharCharMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 91private 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)); 92private static MethodInfo SpanLastIndexOfAnyExceptSpanMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 93private static MethodInfo SpanLastIndexOfAnyExceptSearchValuesMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(SearchValues<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 94private static MethodInfo SpanLastIndexOfAnyInRangeMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAnyInRange", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 95private static MethodInfo SpanLastIndexOfAnyExceptInRangeMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAnyExceptInRange", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 96private static MethodInfo SpanSliceIntMethod => field ??= typeof(ReadOnlySpan<char>).GetMethod("Slice", [typeof(int)])!; 97private static MethodInfo SpanSliceIntIntMethod => field ??= typeof(ReadOnlySpan<char>).GetMethod("Slice", [typeof(int), typeof(int)])!; 98private static MethodInfo SpanStartsWithSpanMethod => field ??= typeof(MemoryExtensions).GetMethod("StartsWith", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 99private static MethodInfo SpanStartsWithSpanComparisonMethod => field ??= typeof(MemoryExtensions).GetMethod("StartsWith", [typeof(ReadOnlySpan<char>), typeof(ReadOnlySpan<char>), typeof(StringComparison)])!; 344private LocalBuilder DeclareReadOnlySpanChar() => _ilg!.DeclareLocal(typeof(ReadOnlySpan<char>));
System\Text\RegularExpressions\RegexFindOptimizations.cs (6)
370public bool TryFindNextStartingPositionRightToLeft(ReadOnlySpan<char> textSpan, ref int pos, int start) 465ReadOnlySpan<char> span = textSpan.Slice(0, pos); 492public bool TryFindNextStartingPositionLeftToRight(ReadOnlySpan<char> textSpan, ref int pos, int start) 621ReadOnlySpan<char> span = textSpan.Slice(pos); 722ReadOnlySpan<char> textSpanAtOffset = textSpan.Slice(offset); 798ReadOnlySpan<char> slice = textSpan.Slice(startingPos);
System\Text\RegularExpressions\RegexLWCGCompiler.cs (2)
28private 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 (2)
117if (!RegexCaseEquivalences.TryFindCaseEquivalencesForCharWithIBehavior(ch, culture, ref caseBehavior, out ReadOnlySpan<char> equivalences)) 1319static void ProcessOneOrMulti(RegexNode node, ReadOnlySpan<char> startingSpan)
System\Text\RegularExpressions\RegexParser.cs (3)
159private static string EscapeImpl(ReadOnlySpan<char> input, int indexOfMetachar) 1929private static ReadOnlySpan<byte> Category => 1945private static int IndexOfMetachar(ReadOnlySpan<char> input) =>
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
1342private 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 (5)
118/// <see cref="ReadOnlySpan{T}"/>-based <see cref="Regex"/> methods are not supported from <see cref="Regex"/>-derived types 121protected internal virtual void Scan(ReadOnlySpan<char> text) 276internal void InitializeForScan(Regex regex, ReadOnlySpan<char> text, int textstart, RegexRunnerMode mode) 414internal static bool IsBoundary(ReadOnlySpan<char> inputSpan, int index) 430internal static bool IsECMABoundary(ReadOnlySpan<char> inputSpan, int index)
System\Text\RegularExpressions\Symbolic\BDD.cs (2)
342public static BDD Deserialize(ReadOnlySpan<byte> bytes) 392static 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)
160public BDD Or(ReadOnlySpan<BDD> sets) 179public 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) 488ReadOnlySpan<char> input, int pos, long timeoutOccursAt, RegexRunnerMode mode, PerThreadData perThreadData) 557private int FindEndPositionFallback<TInitialStateHandler, TNullabilityHandler>(ReadOnlySpan<char> input, int pos, long timeoutOccursAt, RegexRunnerMode mode, PerThreadData perThreadData) 628ReadOnlySpan<char> input, int lengthMinus1, RegexRunnerMode mode, 734private bool FindEndPositionDeltasDFA<TInitialStateHandler, TNullabilityHandler>(ReadOnlySpan<char> input, int length, RegexRunnerMode mode, 801ReadOnlySpan<char> input, int length, RegexRunnerMode mode, 859private int FindStartPosition<TInputReader, TNullabilityHandler>(CurrentState startState, int initialLastStart, ReadOnlySpan<char> input, int i, int matchStartBoundary, PerThreadData perThreadData) 902ReadOnlySpan<char> input, ref int i, int startThreshold, ref CurrentState stateRef, ref int lastStart) 951private bool FindStartPositionDeltasNFA<TInputReader, TNullabilityHandler>(ReadOnlySpan<char> input, ref int i, int startThreshold, ref CurrentState state, ref int lastStart) 1004private Registers FindSubcaptures<TInputReader>(ReadOnlySpan<char> input, int i, int iEnd, PerThreadData perThreadData) 1470public static abstract int GetPositionId(SymbolicRegexMatcher<TSet> matcher, ReadOnlySpan<char> input, int pos); 1480public static int GetPositionId(SymbolicRegexMatcher<TSet> matcher, ReadOnlySpan<char> input, int pos) 1499public static int GetPositionId(SymbolicRegexMatcher<TSet> matcher, ReadOnlySpan<char> input, int pos) => 1519SymbolicRegexMatcher<TSet> matcher, ReadOnlySpan<char> input, ref int currentStateId, ref int pos, byte[]? lookup); 1530SymbolicRegexMatcher<TSet> matcher, ReadOnlySpan<char> input, ref int currentStateId, ref int pos, byte[]? lookup) => 1544SymbolicRegexMatcher<TSet> matcher, ReadOnlySpan<char> input, ref int currentStateId, ref int pos, byte[]? lookup) 1575SymbolicRegexMatcher<TSet> matcher, ReadOnlySpan<char> input, ref int currentStateId, ref int pos, byte[]? lookup) 1606SymbolicRegexMatcher<TSet> matcher, ReadOnlySpan<char> input, ref int currentStateId, ref int pos, byte[]? lookup)
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Dgml.cs (2)
150ReadOnlySpan<int> deltas = matcher.GetDeltasFor(source); 151ReadOnlySpan<int[]?> nfaDeltas = matcher.GetNfaDeltasFor(source);
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 => [0x3, 0x4, 0x0, 0x0, 0x7, 0x0, 0x0, 0x0, 0x8, 0x0, 0x10, 0x0, 0x0, 0x1, 0x10, 0x0, 0x31, 0x0, 0x0, 0x1, 0x8, 0x0, 0x21, 0x8, 0x0, 0x1, 0x18, 0x0, 0x1, 0x10, 0x0, 0x11, 0x18, 0x0, 0x2, 0x20, 0x0, 0x52, 0x0, 0x0, 0x52, 0x30, 0x0, 0x2, 0x38, 0x0, 0x82, 0x0, 0x0, 0x2, 0x48, 0x0, 0x62, 0x50, 0x0, 0x3, 0x58, 0x0, 0xC3, 0x0, 0x0, 0xD3, 0x0, 0x0, 0xE3, 0x8, 0x0, 0x3, 0x78, 0x0, 0x3, 0x80, 0x0, 0x13, 0x1, 0x0, 0x4, 0x90, 0x0, 0x34, 0x1, 0x0, 0x4, 0xA0, 0x0, 0x4, 0xA8, 0x0, 0x4, 0xB0, 0x0, 0x4, 0xB8, 0x0, 0x4, 0xC0, 0x0, 0x5, 0xC8, 0x0, 0x5, 0xD0, 0x0, 0xB5, 0xE1, 0x0, 0x95, 0xE9, 0x0, 0xE5, 0xF9, 0x0, 0x6, 0x0, 0x1, 0x16, 0x12, 0x1, 0x6, 0x18, 0x1, 0x6, 0x20, 0x1, 0x7, 0x28, 0x1, 0x7, 0x30, 0x1, 0x57, 0x2, 0x0, 0x77, 0x42, 0x1, 0x8, 0x48, 0x1, 0x8, 0x50, 0x1, 0x8, 0x58, 0x1, 0x8, 0x60, 0x1, 0x9, 0x68, 0x1, 0x9, 0x70, 0x1, 0xF9, 0x2, 0x0, 0x9, 0x80, 0x1, 0xA, 0x88, 0x1, 0xA, 0x90, 0x1, 0x3A, 0x3, 0x0, 0xA, 0xA0, 0x1, 0xB, 0xA8, 0x1, 0xB, 0xB0, 0x1, 0xB, 0xB8, 0x1, 0xB, 0xC0, 0x1, 0x9C, 0xD3, 0x1, 0xBC, 0xE3, 0x1, 0xDD, 0xF3, 0x1, 0xE, 0xF8, 0x1, 0xF, 0x0, 0x2]; 17public static ReadOnlySpan<byte> GetSerializedCategory(UnicodeCategory category) => 54private static ReadOnlySpan<byte> SerializedCategory0_UppercaseLetter => [0x3, 0x4, 0x0, 0x0, 0x9, 0x0, 0x0, 0x0, 0x20, 0x0, 0x10, 0x0, 0x0, 0x21, 0x20, 0x0, 0x11, 0x60, 0x0, 0x1, 0x60, 0x0, 0x1, 0x40, 0x0, 0x21, 0x0, 0x0, 0x11, 0x40, 0x0, 0x31, 0x0, 0x0, 0x21, 0x60, 0x0, 0x11, 0x0, 0x0, 0x31, 0x40, 0x0, 0x1, 0x20, 0x0, 0x31, 0x20, 0x0, 0x2, 0x80, 0x0, 0x12, 0xA0, 0x0, 0x62, 0x0, 0x0, 0x72, 0x40, 0x0, 0x82, 0xE0, 0x0, 0x72, 0x60, 0x0, 0x12, 0x40, 0x0, 0x22, 0x20, 0x0, 0x42, 0x20, 0x1, 0x82, 0x40, 0x0, 0x62, 0x40, 0x1, 0xB2, 0x60, 0x0, 0x22, 0x0, 0x1, 0x2, 0x40, 0x0, 0x2, 0x0, 0x1, 0xC2, 0x0, 0x0, 0x62, 0x40, 0x0, 0x52, 0x60, 0x0, 0xD2, 0x20, 0x1, 0x2, 0x40, 0x1, 0x2, 0x20, 0x0, 0xE2, 0x20, 0x1, 0x22, 0x0, 0x0, 0xE2, 0xA0, 0x0, 0x62, 0x80, 0x0, 0xE2, 0x40, 0x1, 0xA2, 0x0, 0x1, 0x72, 0x20, 0x0, 0xE2, 0x20, 0x0, 0x82, 0x0, 0x0, 0x52, 0x80, 0x0, 0x2, 0xC0, 0x0, 0xF2, 0x20, 0x0,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C, 0x37, 0x8E, 0x1C, 0x57, 0xCE, 0x1C, 0x78, 0xE, 0x0, 0x88, 0x2E, 0x1D, 0x8, 0x40, 0x1D, 0xB8, 0xE, 0x0, 0xC8, 0xAE, 0x1D, 0x8, 0xC0, 0x1D, 0xF8, 0xE, 0x0, 0x8, 0x0, 0x1E, 0x18, 0x4F, 0x1E, 0x38, 0x8F, 0x1E, 0x58, 0xCF, 0x1E, 0x79, 0xF, 0x0, 0x89, 0xF, 0x0, 0x9, 0x20, 0x1F, 0x9, 0x40, 0x1F, 0xB9, 0x8F, 0x1F, 0xD9, 0xCF, 0x1F, 0x9, 0xE0, 0x1F, 0x9, 0x30, 0x20, 0x2A, 0x10, 0x0, 0x3A, 0x10, 0x0, 0x4A, 0x10, 0x0, 0xA, 0xA0, 0x20, 0x6A, 0x10, 0x0, 0xA, 0xE0, 0x20, 0x8A, 0x30, 0x21, 0xAB, 0x10, 0x0, 0xB, 0x60, 0x21, 0xCB, 0xB0, 0x21, 0xEB, 0xF0, 0x21, 0xB, 0x0, 0x22, 0x1C, 0x11, 0x0, 0xC, 0x40, 0x22, 0xC, 0x60, 0x22, 0x4C, 0xB1, 0x22, 0x6D, 0x11, 0x0, 0x7D, 0x11, 0x0, 0x8D, 0x31, 0x23, 0xAE, 0x71, 0x23, 0xE, 0x80, 0x23, 0xDF, 0xD1, 0x23]; 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, 0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 0x8F, 0x1F, 0xD7, 0xCF, 0x1F, 0xF7, 0x6F, 0x0, 0x7, 0x30, 0x20, 0x27, 0x10, 0x0, 0x37, 0x10, 0x0, 0x47, 0x10, 0x0, 0x57, 0xD0, 0x20, 0x77, 0x10, 0x21, 0x97, 0x50, 0x21, 0xB7, 0x90, 0x21, 0xD7, 0xD0, 0x21, 0xF7, 0x10, 0x22, 0x18, 0x11, 0x0, 0x28, 0x11, 0x0, 0x38, 0x11, 0x0, 0x48, 0xB1, 0x22, 0x68, 0xF1, 0x22, 0x88, 0x11, 0x0, 0x98, 0x51, 0x23, 0xB8, 0x91, 0x23, 0xD8, 0x11, 0x0, 0x8, 0xC0, 0x23, 0xF8, 0x11, 0x24, 0x18, 0x52, 0x24, 0x38, 0x92, 0x24, 0x59, 0x12, 0x0, 0x69, 0x12, 0x0, 0x79, 0x12, 0x0, 0x89, 0x12, 0x0, 0x9, 0x20, 0x25, 0x9, 0x40, 0x25, 0xB9, 0x92, 0x25, 0xD9, 0xD2, 0x25, 0x9, 0xE0, 0x25, 0x9, 0x33, 0x26, 0x2A, 0x73, 0x26, 0xA, 0x80, 0x26, 0x5A, 0x13, 0x0, 0x6A, 0x13, 0x0, 0xA, 0xE0, 0x26, 0x8A, 0x13, 0x0, 0xA, 0x20, 0x27, 0xAA, 0x73, 0x27, 0xCB, 0x13, 0x0, 0xDB, 0xD3, 0x27, 0xFB, 0x13, 0x28, 0x1B, 0x54, 0x28, 0xB, 0x60, 0x28, 0x4C, 0x14, 0x0, 0xC, 0xA0, 0x28, 0xC, 0xC0, 0x28, 0x7C, 0x14, 0x29, 0x9D, 0x14, 0x0, 0xAD, 0x14, 0x0, 0xBD, 0x94, 0x29, 0xDE, 0xD4, 0x29, 0xE, 0xE0, 0x29, 0xF, 0x35, 0x2A]; 60private static ReadOnlySpan<byte> SerializedCategory2_TitlecaseLetter => [0x2, 0x4, 0x0, 0x6, 0x0, 0x0, 0x4, 0x10, 0x0, 0x1, 0x8, 0x21, 0x0, 0x31, 0x8, 0x1, 0xC, 0x42, 0x0, 0x2, 0x14, 0x2, 0x18, 0x72, 0x0, 0x83, 0x0, 0x13, 0x0, 0x3, 0x24, 0xA3, 0x2C, 0xC4, 0x0, 0x4, 0x30, 0xC4, 0x34, 0xE4, 0x0, 0x4, 0x3C, 0x5, 0x45, 0x25, 0x35, 0x35, 0x51, 0x56, 0x59, 0x76, 0x1, 0x87, 0x1, 0x97, 0x1, 0xA8, 0x1, 0xB8, 0x1, 0xC9, 0x1, 0x9, 0x74, 0xEA, 0x1, 0xA, 0x7C, 0xB, 0x2, 0xB, 0x84, 0x2C, 0x8E, 0xD, 0x90, 0xE, 0x94, 0xF, 0x98]; 63private static ReadOnlySpan<byte> SerializedCategory3_ModifierLetter => [0x3, 0x4, 0x0, 0x0, 0x9, 0x0, 0x0, 0x0, 0x20, 0x0, 0x10, 0x0, 0x0, 0x11, 0x0, 0x0, 0x1, 0x40, 0x0, 0x1, 0x60, 0x0, 0x31, 0x0, 0x0, 0x21, 0x0, 0x0, 0x1, 0x20, 0x0, 0x21, 0x20, 0x0, 0x21, 0x60, 0x0, 0x11, 0x60, 0x0, 0x42, 0x0, 0x0, 0x2, 0xA0, 0x0, 0x2, 0xC0, 0x0, 0x12, 0x0, 0x0, 0x52, 0xE0, 0x0, 0x62, 0x0, 0x0, 0x82, 0x0, 0x0, 0x72, 0x0, 0x0, 0x2, 0x20, 0x1, 0x52, 0x80, 0x0, 0x92, 0x0, 0x0, 0x52, 0x0, 0x0, 0x92, 0x20, 0x0, 0xA2, 0x0, 0x0, 0xB2, 0x0, 0x0, 0x2, 0xE0, 0x0, 0x92, 0x80, 0x1, 0x52, 0x20, 0x0, 0x12, 0xE0, 0x0, 0x2, 0x40, 0x1, 0x2, 0x0, 0x1, 0x22, 0x0, 0x0, 0x42, 0x20, 0x1, 0xD3, 0x0, 0x0, 0x3, 0xC0, 0x1, 0xF3, 0x0, 0x0, 0x3, 0x1, 0x0, 0x3, 0x20, 0x2, 0x23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, 0x0, 0x14, 0x40, 0x16, 0x14, 0x0, 0x1D, 0x54, 0x7, 0x0, 0x4, 0x80, 0x1D, 0x4, 0x40, 0x1C, 0x4, 0xC0, 0x1D, 0x4, 0x0, 0x1E, 0x14, 0xC0, 0x15, 0x84, 0x45, 0x0, 0x4, 0x40, 0x15, 0x64, 0x45, 0x0, 0x4, 0x40, 0x14, 0x34, 0x45, 0x0, 0x14, 0x40, 0x1E, 0xA4, 0x47, 0x0, 0x14, 0xC0, 0x14, 0xB4, 0x47, 0x0, 0xC4, 0x7, 0x0, 0x4, 0x40, 0x1F, 0x4, 0x47, 0x0, 0xE4, 0x7, 0x0, 0xF4, 0x7, 0x20, 0x24, 0x47, 0x20, 0x4, 0x80, 0x18, 0x24, 0x87, 0x20, 0x14, 0x80, 0x16, 0x4, 0xC0, 0x20, 0x44, 0x48, 0x0, 0x4, 0x0, 0x18, 0x44, 0x88, 0x14, 0x14, 0x47, 0x0, 0x14, 0x40, 0x21, 0x14, 0x80, 0x1B, 0xC4, 0x46, 0x0, 0x14, 0x80, 0x21, 0x74, 0x8, 0x22, 0x94, 0x48, 0x0, 0xA4, 0x88, 0x19, 0x64, 0xC6, 0x14, 0x14, 0xC0, 0x22, 0x4, 0x40, 0x0, 0x64, 0x46, 0x0, 0xC4, 0x48, 0x0, 0xD4, 0x8, 0x23, 0xE4, 0x48, 0x0, 0x14, 0xC0, 0x23, 0x4, 0xC9, 0x23, 0x4, 0x40, 0x24, 0x24, 0xC9, 0x24, 0x44, 0x9, 0x0, 0x64, 0x87, 0x19, 0x4, 0x40, 0x25, 0x14, 0x80, 0x25, 0x4, 0xC0, 0x21, 0x74, 0x9, 0x21, 0x84, 0x49, 0x26, 0x14, 0x80, 0x26, 0xB4, 0x49, 0x0, 0xC4, 0x49, 0x0, 0xD4, 0x49, 0x1E, 0x24, 0xC7, 0x16, 0xE4, 0xC9, 0x1D, 0xF4, 0x49, 0x0, 0x4, 0x4A, 0x28, 0x24, 0xCA, 0x16, 0x34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 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,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xB5, 0xCB, 0x40, 0x45, 0x50, 0x41, 0x65, 0x10, 0x3E, 0xB5, 0x4B, 0x2E, 0x75, 0xCF, 0x41, 0x85, 0x10, 0x30, 0x95, 0x90, 0x42, 0x5, 0xC0, 0x42, 0x5, 0x0, 0x43, 0xD5, 0x90, 0x43, 0xF5, 0x10, 0x0, 0x5, 0x11, 0x0, 0x5, 0x40, 0x44, 0x25, 0xD1, 0x44, 0x45, 0x51, 0x45, 0x65, 0xD1, 0x45, 0x5, 0x0, 0x46, 0x5, 0x40, 0x46, 0xA5, 0xD1, 0x46, 0x5, 0x0, 0x47, 0x55, 0x4B, 0x0, 0x6, 0x40, 0x2D, 0x6, 0x40, 0x47, 0xE6, 0x11, 0x0, 0xF6, 0x11, 0x48, 0x16, 0x92, 0x48, 0x36, 0x12, 0x49, 0x56, 0x92, 0x49, 0x76, 0x12, 0x0, 0x6, 0x0, 0x4A, 0x96, 0x92, 0x4A, 0xB6, 0x12, 0x0, 0x6, 0x0, 0x4B, 0x6, 0x40, 0x4B, 0xE6, 0x12, 0x0, 0xF6, 0x12, 0x0, 0x6, 0x13, 0x0, 0x16, 0x13, 0x0, 0x16, 0x0, 0x0, 0x26, 0x13, 0x0, 0x6, 0xC0, 0x4C, 0x46, 0x53, 0x4D, 0x66, 0xD3, 0x4D, 0x86, 0x53, 0x4E, 0xA6, 0xD3, 0x4E, 0x6, 0x0, 0x4F, 0x6, 0x40, 0x4F, 0x6, 0x80, 0x4F, 0xF6, 0x13, 0x50, 0x56, 0x4E, 0x50, 0x26, 0x14, 0x0, 0x6, 0xC0, 0x50, 0x46, 0x54, 0x51, 0x66, 0xD4, 0x51, 0x86, 0x54, 0x52, 0xA6, 0xD4, 0x52, 0xC6, 0x54, 0x53, 0xE6, 0xD4, 0x53, 0x6, 0x55, 0x54, 0x26, 0xD5, 0x54, 0x46, 0x55, 0x55, 0x66, 0xD5, 0x55, 0x86, 0xD5, 0x54, 0x96, 0x95, 0x56, 0xB6, 0x95, 0x56, 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 0x71, 0x68, 0x1C, 0x0, 0x79, 0x1C, 0x0, 0x89, 0x1C, 0x0, 0x99, 0x9C, 0x72, 0xB9, 0x1C, 0x0, 0x9, 0x0, 0x73, 0x9, 0x40, 0x73, 0x9, 0x80, 0x73, 0x9, 0xC0, 0x73, 0x9, 0x5D, 0x74, 0x29, 0x1D, 0x0, 0x39, 0x1D, 0x75, 0x59, 0x9D, 0x75, 0x79, 0x1D, 0x76, 0x99, 0x9D, 0x76, 0xB9, 0x1D, 0x0, 0xCA, 0x5D, 0x77, 0xA, 0x80, 0x77, 0xFA, 0x1D, 0x0, 0xA, 0x0, 0x78, 0x1A, 0x1E, 0x0, 0xA, 0x80, 0x78, 0x3A, 0x1E, 0x79, 0x5A, 0x9E, 0x79, 0x7A, 0x1E, 0x7A, 0x9A, 0x9E, 0x7A, 0xBB, 0x1E, 0x0, 0xCB, 0x5E, 0x7B, 0xB, 0x80, 0x7B, 0xFB, 0x1E, 0x7C, 0x1B, 0x9F, 0x7C, 0x3B, 0x1F, 0x7D, 0x5C, 0x1F, 0x0, 0xC, 0x80, 0x7D, 0x7C, 0x1F, 0x7E, 0x9C, 0x9F, 0x7E, 0xBD, 0x1F, 0x0, 0xCD, 0x1F, 0x0, 0xDD, 0x9F, 0x7F, 0xFE, 0x1F, 0x80, 0xE, 0x40, 0x80, 0x2F, 0xE0, 0x80]; 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, 0x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xC, 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,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xB, 0x1D, 0xB, 0x0, 0x2D, 0x3B, 0xB, 0xE, 0x40, 0xB, 0xE, 0x50, 0xB, 0x6F, 0x7B, 0xB]; 87private static ReadOnlySpan<byte> SerializedCategory11_SpaceSeparator => [0x2, 0x4, 0x0, 0x6, 0x0, 0x0, 0x4, 0x10, 0x0, 0x1, 0x8, 0x31, 0x0, 0x21, 0x4, 0x1, 0x8, 0x2, 0x10, 0x52, 0x0, 0x2, 0x18, 0x2, 0x1C, 0x3, 0x20, 0x93, 0x0, 0xA3, 0x4, 0x3, 0x2C, 0x4, 0x30, 0xD4, 0x0, 0x4, 0x34, 0x4, 0x38, 0x4, 0x3C, 0x5, 0x40, 0x5, 0x44, 0x25, 0x4D, 0x5, 0x1, 0x45, 0x1, 0x6, 0x54, 0x66, 0x5D, 0x6, 0x60, 0x6, 0x64, 0x7, 0x68, 0x7, 0x6C, 0xA7, 0x1, 0xC7, 0x75, 0x8, 0x78, 0x8, 0x7C, 0x8, 0x80, 0x8, 0x84, 0x9, 0x88, 0x9, 0x8C, 0x49, 0x2, 0x9, 0x94, 0xA, 0x98, 0xA, 0x9C, 0x8A, 0x2, 0xA, 0xA4, 0xB, 0xA8, 0xB, 0xAC, 0xB, 0xB0, 0xB, 0xB4, 0xEC, 0xBE, 0xC, 0xC7, 0x2D, 0xCF, 0xE, 0xD0, 0xF, 0xD4]; 90private static ReadOnlySpan<byte> SerializedCategory12_LineSeparator => [0x2, 0x4, 0x0, 0x5, 0x0, 0x0, 0x2, 0x1, 0x4, 0x2, 0x6, 0x43, 0x0, 0x4, 0xA, 0x65, 0x0, 0x6, 0xE, 0x7, 0x10, 0x8, 0x12, 0x9, 0x14, 0xA, 0x16, 0xB, 0x18, 0xC, 0x1A, 0xED, 0x0, 0xE, 0x1E, 0xF, 0x20]; 93private static ReadOnlySpan<byte> SerializedCategory13_ParagraphSeparator => [0x2, 0x4, 0x0, 0x5, 0x0, 0x10, 0x0, 0x1, 0x4, 0x2, 0x6, 0x43, 0x0, 0x4, 0xA, 0x65, 0x0, 0x6, 0xE, 0x7, 0x10, 0x8, 0x12, 0x9, 0x14, 0xA, 0x16, 0xB, 0x18, 0xC, 0x1A, 0xED, 0x0, 0xE, 0x1E, 0xF, 0x20]; 96private static ReadOnlySpan<byte> SerializedCategory14_Control => [0x2, 0x4, 0x0, 0x5, 0x0, 0x10, 0x0, 0x21, 0x0, 0x32, 0x0, 0x43, 0x0, 0x54, 0x0, 0x5, 0x2, 0x65, 0x0, 0x6, 0xE, 0x86, 0xE, 0x97, 0x14, 0x8, 0x16, 0x9, 0x18, 0xA, 0x1A, 0xB, 0x1C, 0xC, 0x1E, 0xD, 0x20, 0xE, 0x22, 0xF, 0x24]; 99private static ReadOnlySpan<byte> SerializedCategory15_Format => [0x3, 0x4, 0x0, 0x0, 0x7, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0, 0x8, 0x0, 0x11, 0x10, 0x0, 0x21, 0x0, 0x0, 0x11, 0x18, 0x0, 0x31, 0x8, 0x0, 0x11, 0x0, 0x0, 0x31, 0x0, 0x0, 0x1, 0x8, 0x0, 0x1, 0x10, 0x0, 0x1, 0x18, 0x0, 0x2, 0x20, 0x0, 0x52, 0x0, 0x0, 0x62, 0x8, 0x0, 0x72, 0x40, 0x0, 0x12, 0x28, 0x0, 0x92, 0x0, 0x0, 0x2, 0x48, 0x0, 0x2, 0x50, 0x0, 0xB2, 0x0, 0x0, 0xC2, 0x0, 0x0, 0xA2, 0x8, 0x0, 0xD3, 0x0, 0x0, 0xE3, 0x0, 0x0, 0x13, 0x78, 0x0, 0x3, 0x1, 0x0, 0x13, 0x1, 0x0, 0x23, 0x1, 0x0, 0x3, 0x98, 0x0, 0x3, 0xA0, 0x0, 0x53, 0x1, 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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 0x3, 0x0, 0x1B, 0x0, 0x2C, 0x0, 0x8D, 0x1, 0x4E, 0x0, 0x5F, 0x0]; 105private static ReadOnlySpan<byte> SerializedCategory17_PrivateUse => [0x2, 0x4, 0x0, 0x4, 0x0, 0x8, 0x1, 0x9, 0x2, 0xA, 0x3, 0x4B, 0x1, 0x5C, 0x1, 0x6D, 0x0, 0x7E, 0x0, 0x8F, 0x0]; 108private static ReadOnlySpan<byte> SerializedCategory18_ConnectorPunctuation => [0x2, 0x4, 0x0, 0x6, 0x0, 0x10, 0x0, 0x0, 0x4, 0x21, 0x0, 0x11, 0x8, 0x1, 0xC, 0x21, 0x0, 0x42, 0x0, 0x52, 0x0, 0x62, 0x10, 0x62, 0x0, 0x2, 0x18, 0x72, 0x0, 0x83, 0x0, 0x93, 0x0, 0x3, 0x28, 0x3, 0x2C, 0x3, 0x30, 0xD3, 0x0, 0xE4, 0x0, 0x4, 0x3C, 0x4, 0x1, 0x14, 0x49, 0x34, 0x1, 0x45, 0x1, 0x5, 0x54, 0x65, 0x1, 0x5, 0x5C, 0x5, 0x60, 0x6, 0x64, 0xA6, 0x6D, 0xC6, 0x65, 0xD6, 0x1, 0x7, 0x78, 0x7, 0x7C, 0x7, 0x80, 0x7, 0x84, 0x28, 0x8E, 0x8, 0x90, 0x8, 0x94, 0x69, 0x2, 0x9, 0x9C, 0x9, 0xA0, 0x9A, 0x2, 0xA, 0xA8, 0xA, 0xAC, 0xCB, 0x2, 0xB, 0xB4, 0xB, 0xB8, 0xFC, 0x2, 0xC, 0xC0, 0xC, 0xC4, 0x2D, 0x3, 0x3D, 0xD3, 0x5E, 0x3, 0xE, 0xD8, 0x7F, 0xE3]; 111private static ReadOnlySpan<byte> SerializedCategory19_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, 0x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2, 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,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x58, 0x30, 0x3B, 0x18, 0x0, 0x4B, 0xB8, 0x30, 0xB, 0xC0, 0x30, 0x7B, 0x18, 0x31, 0x9B, 0x58, 0x31, 0xBB, 0x98, 0x31, 0xDC, 0x18, 0x0, 0xC, 0xC0, 0x31, 0xFC, 0x18, 0x32, 0x1C, 0x59, 0x32, 0x3D, 0x19, 0x0, 0x4D, 0x19, 0x0, 0x5D, 0xD9, 0x32, 0x7E, 0x19, 0x33, 0xE, 0x20, 0x33, 0xAF, 0x79, 0x33]; 129private static ReadOnlySpan<byte> SerializedCategory25_MathSymbol => [0x3, 0x4, 0x0, 0x0, 0x8, 0x0, 0x0, 0x0, 0x10, 0x0, 0x10, 0x0, 0x0, 0x1, 0x20, 0x0, 0x11, 0x30, 0x0, 0x21, 0x0, 0x0, 0x21, 0x10, 0x0, 0x31, 0x0, 0x0, 0x1, 0x30, 0x0, 0x31, 0x20, 0x0, 0x11, 0x0, 0x0, 0x1, 0x10, 0x0, 0x21, 0x20, 0x0, 0x31, 0x0, 0x0, 0x42, 0x50, 0x0, 0x2, 0x60, 0x0, 0x22, 0x0, 0x0, 0x72, 0x0, 0x0, 0x2, 0x80, 0x0, 0x72, 0x60, 0x0, 0x2, 0x90, 0x0, 0x42, 0x10, 0x0, 0xA2, 0x10, 0x0, 0xB2, 0x10, 0x0, 0x12, 0x0, 0x0, 0x12, 0x50, 0x0, 0x2, 0x70, 0x0, 0xC2, 0x10, 0x0, 0x82, 0x0, 0x0, 0x2, 0xC0, 0x0, 0x2, 0x10, 0x0, 0x12, 0x80, 0x0, 0x42, 0x0, 0x0, 0x42, 0x60, 0x0, 0xB2, 0x0, 0x0, 0x62, 0x0, 0x0, 0x62, 0xA0, 0x0, 0x2, 0xB0, 0x0, 0x2, 0x40, 0x0, 0x42, 0xB0, 0x0, 0xD2, 0x0, 0x0, 0x2, 0xE0, 0x0, 0xF3, 0x0, 0x1, 0x13, 0x1, 0x0, 0x23, 0x1, 0x0, 0x33, 0x1, 0x0, 0x3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x9, 0xE, 0xE0, 0x9, 0xFF, 0x9, 0xA]; 138private static ReadOnlySpan<byte> SerializedCategory28_OtherSymbol => [0x3, 0x4, 0x0, 0x0, 0x9, 0x0, 0x0, 0x0, 0x20, 0x0, 0x10, 0x0, 0x0, 0x1, 0x20, 0x0, 0x21, 0x60, 0x0, 0x1, 0x40, 0x0, 0x11, 0x60, 0x0, 0x31, 0x0, 0x0, 0x1, 0x60, 0x0, 0x11, 0x0, 0x0, 0x21, 0x20, 0x0, 0x31, 0x20, 0x0, 0x11, 0x40, 0x0, 0x31, 0x40, 0x0, 0x21, 0x0, 0x0, 0x42, 0x0, 0x0, 0x52, 0xC0, 0x0, 0x62, 0x0, 0x0, 0x72, 0x0, 0x0, 0x82, 0x0, 0x0, 0x2, 0x80, 0x0, 0x2, 0x20, 0x1, 0xA2, 0x0, 0x0, 0x2, 0x20, 0x0, 0xB2, 0x20, 0x0, 0x2, 0xC0, 0x0, 0x12, 0x40, 0x1, 0x42, 0x20, 0x0, 0xA2, 0x80, 0x0, 0x2, 0x40, 0x1, 0x12, 0x80, 0x1, 0x2, 0x60, 0x1, 0xC2, 0x20, 0x0, 0xA2, 0x20, 0x0, 0x52, 0x0, 0x0, 0x12, 0x0, 0x0, 0x12, 0xA0, 0x1, 0x72, 0x20, 0x0, 0x12, 0xC0, 0x1, 0x72, 0x80, 0x1, 0xC2, 0xA0, 0x0, 0x12, 0x80, 0x0, 0xC2, 0xE0, 0x1, 0xF2, 0x20, 0x1, 0x32, 0x20, 0x0, 0xD2, 0x0, 0x0, 0xB2, 0x80, 0x1, 0x62, 0x20, 0x0, 0x12, 0xE0, 0x0, 0x92, 0x0, 0x0, 0xD2, 0x20, 0x0, 0x22, 0x0, 0x0, 0x72, 0x0, 0x1, 0x2, 0xE0, 0x0, 0x2, 0x40, 0x0, 0x12, 0x0, 0x1, 0x2, 0xE0, 0x1, 0xF2, 0x0, 0x0, 0x3, 0x1, 0x0, 0x13, 0x41, 0x2, 0x33, 0x1, 0x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EC, 0xF7, 0x2F, 0xD, 0x18, 0x0, 0x1D, 0x18, 0x0, 0xD, 0x40, 0x30, 0x3D, 0x98, 0x30, 0x5E, 0xD8, 0x30, 0x7E, 0x18, 0x31, 0x9F, 0x58, 0x31]; 141private static ReadOnlySpan<byte> SerializedCategory29_OtherNotAssigned => [0x3, 0x4, 0x0, 0x0, 0xA, 0x0, 0x0, 0x0, 0x40, 0x0, 0x10, 0x0, 0x0, 0x11, 0x0, 0x0, 0x1, 0x80, 0x0, 0x31, 0x0, 0x0, 0x11, 0xC0, 0x0, 0x1, 0x40, 0x0, 0x21, 0xC0, 0x0, 0x1, 0xC0, 0x0, 0x21, 0x40, 0x0, 0x21, 0x0, 0x0, 0x11, 0x80, 0x0, 0x31, 0x80, 0x0, 0x31, 0x40, 0x0, 0x42, 0x40, 0x1, 0x62, 0x0, 0x0, 0x72, 0x0, 0x2, 0x2, 0x0, 0x2, 0x2, 0x40, 0x1, 0x92, 0x0, 0x0, 0xA2, 0x0, 0x0, 0x12, 0x0, 0x0, 0x2, 0x80, 0x1, 0x12, 0x0, 0x1, 0xB2, 0x40, 0x0, 0x2, 0xC0, 0x2, 0x12, 0x80, 0x1, 0xA2, 0x0, 0x3, 0x32, 0x0, 0x0, 0x52, 0x40, 0x0, 0x42, 0x0, 0x0, 0x62, 0x40, 0x1, 0x2, 0x0, 0x1, 0x82, 0x0, 0x1, 0xC2, 0x0, 0x0, 0x72, 0x0, 0x0, 0x82, 0x40, 0x0, 0x52, 0x0, 0x3, 0x2, 0x0, 0x3, 0x12, 0xC0, 0x1, 0xD2, 0x40, 0x0, 0x82, 0x0, 0x0, 0xA2, 0x0, 0x2, 0x52, 0x0, 0x0, 0x52, 0x80, 0x1, 0x52, 0x0, 0x1, 0x2, 0x40, 0x0, 0x82, 0x80, 0x1, 0x2, 0xC0, 0x1, 0x12, 0x80, 0x2, 0x42, 0x80, 0x2, 0x22, 0x0, 0x0, 0xA2, 0x80, 0x3, 0xB2, 0x80, 0x1, 0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x0, 0x25, 0x10, 0x0, 0x5, 0xC0, 0x40, 0x15, 0x0, 0x41, 0xD5, 0xCC, 0x15, 0x25, 0xC, 0x30, 0x5, 0x40, 0x41, 0x5, 0x80, 0x41, 0x75, 0x10, 0x42, 0x15, 0x6, 0x30, 0x85, 0xE, 0x0, 0xF5, 0xF, 0x0, 0x95, 0x10, 0x0, 0x75, 0xC5, 0x3A, 0xA5, 0x50, 0x3A, 0x55, 0xCD, 0x42, 0x5, 0x40, 0x36, 0xB5, 0xF, 0x0, 0x95, 0x8D, 0x3F, 0x5, 0x0, 0x43, 0x5, 0x40, 0x43, 0xE5, 0xD0, 0x43, 0x5, 0x0, 0x44, 0x5, 0x40, 0x3B, 0x15, 0x40, 0x44, 0x25, 0xD1, 0x44, 0x45, 0x51, 0x45, 0x15, 0x80, 0x45, 0x75, 0x11, 0x46, 0x15, 0x80, 0x33, 0x95, 0x51, 0x30, 0xA5, 0xD1, 0x46, 0xC5, 0x51, 0x47, 0xE5, 0xD1, 0x47, 0x5, 0x0, 0x48, 0x15, 0x92, 0x48, 0x35, 0x12, 0x48, 0x45, 0x52, 0x49, 0x65, 0x12, 0x48, 0x75, 0x12, 0x4A, 0x95, 0x92, 0x4A, 0xB5, 0x12, 0x4B, 0xD5, 0x92, 0x4B, 0xF5, 0x12, 0x4C, 0xD5, 0x52, 0x4C, 0x25, 0xD3, 0x4C, 0x45, 0x53, 0x4D, 0x65, 0xD3, 0x4D, 0x85, 0x53, 0x4E, 0x5, 0x80, 0x4E, 0xF5, 0xCF, 0x4E, 0xC5, 0x13, 0x0, 0xE5, 0xF, 0x0, 0xD5, 0x13, 0x0, 0x5, 0x80, 0x4F, 0x5, 0xC0, 0x4F, 0x5, 0x54, 0x3F, 0x5, 0x40, 0x50, 0x55, 0xE, 0x0, 0x25, 0xD4, 0x50, 0x45, 0x14, 0x0, 0x56, 0x94, 0x51, 0x6, 0xC0, 0x51, 0x86, 0x14, 0x0, 0x96, 0x94, 0x52, 0xB6, 0x14, 0x53, 0xD6, 0x14, 0x0, 0xE6, 0xD4, 0x53, 0x6, 0x15, 0x0, 0x16, 0x15, 0x0, 0x26, 0xD5, 0x54, 0x46, 0x15, 0x0, 0x56, 0x95, 0x55, 0x76, 0x15, 0x0, 0x86, 0x55, 0x56, 0xA6, 0x15, 0x0, 0xB6, 0x15, 0x0, 0xC6, 0x15, 0x0, 0xD6, 0x95, 0x57, 0xF6, 0x15, 0x0, 0xD6, 0x15, 0x0, 0x6, 0x0, 0x58, 0x16, 0x96, 0x58, 0x6, 0xC0, 0x58, 0x46, 0x56, 0x59, 0x6, 0x80, 0x59, 0x6, 0xC0, 0x59, 0x76, 0x14, 0x0, 0x86, 0x16, 0x0, 0x96, 0x96, 0x5A, 0xB6, 0x16, 0x0, 0xC6, 0x56, 0x5B, 0xE6, 0xD6, 0x5B, 0x6, 0x17, 0x0, 0x6, 0x40, 0x5C, 0x26, 0x17, 0x0, 0x36, 0x17, 0x5D, 0x6, 0x40, 0x5D, 0x66, 0xD7, 0x5D, 0x86, 0x17, 0x0, 0x96, 0x97, 0x5E, 0xB6, 0x17, 0x5F, 0xD6, 0x97, 0x5F, 0xF6, 0x17, 0x60, 0x16, 0x18, 0x0, 0x26, 0x18, 0x0, 0x36, 0x18, 0x61, 0x56, 0x98, 0x61, 0x76, 0x58, 0x55, 0x86, 0x58, 0x62, 0xA6, 0xD8, 0x62, 0xC6, 0x98, 0x52, 0xD6, 0x18, 0x0, 0xE6, 0xD8, 0x63, 0xC6, 0x18, 0x64, 0x16, 0x99, 0x52, 0x26, 0xD9, 0x64, 0x46, 0x59, 0x65, 0x66, 0x19, 0x0, 0x76, 0x19, 0x0, 0x86, 0x59, 0x66, 0xA6, 0x19, 0x0, 0xB6, 0x19, 0x67, 0xD6, 0x99, 0x67, 0xF6, 0x19, 0x68, 0x16, 0x9A, 0x68, 0x36, 0x1A, 0x69, 0x56, 0x9A, 0x69, 0x76, 0x1A, 0x6A, 0x96, 0x9A, 0x6A, 0xB6, 0x1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 0xE7, 0x9E, 0xCD, 0x67, 0x9F, 0xED, 0x27, 0x0, 0xFD, 0x27, 0xA0, 0x1E, 0xA8, 0xA0, 0xE, 0xC0, 0xA0, 0x4F, 0x68, 0xA1];
System\Text\RegularExpressions\ValueMatch.cs (1)
11/// <see cref="Regex.ValueMatchEnumerator.Current"/> method when iterating over the results from calling <see cref="Regex.EnumerateMatches(ReadOnlySpan{char})"/>.
System.Text.RegularExpressions.Generator (43)
RegexGenerator.Emitter.cs (1)
397private static string EmitSearchValuesOrLiteral(ReadOnlySpan<char> chars, Dictionary<string, string[]> requiredHelpers)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
160public static ImmutableArray<T> ToImmutableArray<T>(this ReadOnlySpan<T> span)
src\libraries\Common\src\System\HexConverter.cs (5)
164public static void EncodeToUtf16(ReadOnlySpan<byte> bytes, Span<char> chars, Casing casing = Casing.Upper) 181public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 229public static bool TryDecodeFromUtf16(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 335private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 433public static ReadOnlySpan<byte> CharToHexLookup =>
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
104public ReadOnlySpan<char> AsSpan(bool terminate) 114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ValueListBuilder.cs (1)
144public ReadOnlySpan<T> AsSpan()
src\libraries\System.Text.RegularExpressions\src\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)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCaseEquivalences.Data.cs (3)
12private static ReadOnlySpan<char> EquivalenceCasingValues => // 2346 163private static ReadOnlySpan<ushort> EquivalenceFirstLevelLookup => // 64 171private static ReadOnlySpan<ushort> EquivalenceCasingMap => // 10240
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (16)
407private void AddRanges(ReadOnlySpan<char> set) 486if (RegexCaseEquivalences.TryFindCaseEquivalencesForCharWithIBehavior(range.First, culture, ref _caseBehavior, out ReadOnlySpan<char> equivalences)) 510if (RegexCaseEquivalences.TryFindCaseEquivalencesForCharWithIBehavior((char)i, culture, ref _caseBehavior, out ReadOnlySpan<char> equivalences)) 1029public static bool ParticipatesInCaseConversion(ReadOnlySpan<char> s) 1043public static bool IsAscii(ReadOnlySpan<char> s) 1197private static ReadOnlySpan<byte> WordCharAsciiLookup => 1221ReadOnlySpan<byte> ascii = WordCharAsciiLookup; 1240ReadOnlySpan<byte> ascii = WordCharAsciiLookup; 1391private static bool CharInCategory(char ch, ReadOnlySpan<char> categorySetSegment) 1447private static bool CharInCategoryGroup(UnicodeCategory chcategory, ReadOnlySpan<char> category, ref int i) 1510public static List<(char First, char Last)>? ComputeRanges(ReadOnlySpan<char> set) 1546internal static unsafe string CharsToStringClass(ReadOnlySpan<char> chars) 1594ReadOnlySpan<char> tmpChars = chars; // avoid address exposing the span and impacting the other code in the method that uses it 1608foreach (char c in *(ReadOnlySpan<char>*)charsPtr) 1821private static ReadOnlySpan<char> RangesFromProperty(string capname, bool invert, string pattern, int currentPos) 1957ReadOnlySpan<char> group = set.AsSpan(index, lastindex - index + 1);
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (2)
117if (!RegexCaseEquivalences.TryFindCaseEquivalencesForCharWithIBehavior(ch, culture, ref caseBehavior, out ReadOnlySpan<char> equivalences)) 1319static void ProcessOneOrMulti(RegexNode node, ReadOnlySpan<char> startingSpan)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexParser.cs (3)
159private static string EscapeImpl(ReadOnlySpan<char> input, int indexOfMetachar) 1929private static ReadOnlySpan<byte> Category => 1948private static int IndexOfMetachar(ReadOnlySpan<char> input)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
1342private static ReadOnlySpan<float> Frequency =>
Stubs.cs (3)
17public static unsafe StringBuilder Append(this StringBuilder stringBuilder, ReadOnlySpan<char> span) 45public static int CommonPrefixLength(this ReadOnlySpan<char> span, ReadOnlySpan<char> other)
System.Web.HttpUtility (28)
src\libraries\Common\src\System\HexConverter.cs (6)
164public static void EncodeToUtf16(ReadOnlySpan<byte> bytes, Span<char> chars, Casing casing = Casing.Upper) 181public static unsafe string ToString(ReadOnlySpan<byte> bytes, Casing casing = Casing.Upper) 197EncodeToUtf16(*(ReadOnlySpan<byte>*)args.RosPtr, chars, args.casing)); 229public static bool TryDecodeFromUtf16(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 335private static bool TryDecodeFromUtf16_Scalar(ReadOnlySpan<char> chars, Span<byte> bytes, out int charsProcessed) 433public static ReadOnlySpan<byte> CharToHexLookup =>
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (4)
104public ReadOnlySpan<char> AsSpan(bool terminate) 114public ReadOnlySpan<char> AsSpan() => _chars.Slice(0, _pos); 115public ReadOnlySpan<char> AsSpan(int start) => _chars.Slice(start, _pos - start); 116public ReadOnlySpan<char> AsSpan(int start, int length) => _chars.Slice(start, length);
System\Web\HttpUtility.cs (1)
231private static string UrlDecode(ReadOnlySpan<char> str, Encoding e) => HttpEncoder.UrlDecode(str, e);
System\Web\Util\HttpEncoder.cs (12)
74ReadOnlySpan<char> remaining = s.AsSpan(index); 139static string EncodeCore(ReadOnlySpan<char> value, int i, bool addDoubleQuotes) 147ReadOnlySpan<char> chars = value; 207internal static byte[] UrlDecode(ReadOnlySpan<byte> bytes) 316internal static string UrlDecode(ReadOnlySpan<char> value, Encoding encoding) 400private static byte[] UrlEncode(ReadOnlySpan<byte> bytes) 411private static byte[] UrlEncode(ReadOnlySpan<byte> bytes, int cUnsafe) 438private static bool NeedsEncoding(ReadOnlySpan<byte> bytes, out int cUnsafe) 529ReadOnlySpan<char> schemeAndAuthority; 531ReadOnlySpan<char> queryAndFragment; 565ReadOnlySpan<char> toEncode = indexOfQuery >= 0 591indexOfQuery >= 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)
237ReadOnlySpan<char> valueString = goodString.AsSpan(0, strLen - strLenUnit);
System.Windows.Forms (57)
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\Control.cs (3)
2187ReadOnlySpan<char> className = "#32770"; 12803static bool IsKeyDown(Keys key, ReadOnlySpan<byte> stateArray) 12806ReadOnlySpan<byte> stateArray = stackalloc byte[256];
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (3)
549ReadOnlySpan<int> lines = 573ReadOnlySpan<int> lightLines = 582ReadOnlySpan<int> darkLines =
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (2)
319ReadOnlySpan<int> darkLines = 331ReadOnlySpan<int> lightLines =
System\Windows\Forms\Controls\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\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)
2219ReadOnlySpan<char> txt = (z.Length > 40) ? z.AsSpan(0, 40) : z;
System\Windows\Forms\Controls\ListView\ListView.cs (3)
5566ReadOnlySpan<char> txt = (z.Length > 40) ? z.AsSpan(0, 40) : z; 5576ReadOnlySpan<char> txt = (z.Length > 40) ? z.AsSpan(0, 40) : z; 6757ReadOnlySpan<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)
95ReadOnlySpan<object?> objects,
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (2)
1811ReadOnlySpan<char> kashidaString = [kashida]; 1844unsafe int FindInternal(ReadOnlySpan<char> str, int start, int end, RichTextBoxFinds options)
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (3)
456private static string[] GetMultiselectFiles(ReadOnlySpan<char> fileBuffer) 459var fileNames = fileBuffer[(directory.Length + 1)..]; 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)
274ReadOnlySpan<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 (8)
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 (21)
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)
301ReadOnlySpan<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.Forms.Primitives.Tests (16)
Interop\ComCtl32\LVITEMWTests.cs (2)
65ReadOnlySpan<char> sText = new(lvi.pszText, lvi.cchTextMax); 87ReadOnlySpan<char> sText = new(lvi.pszText, lvi.cchTextMax);
System\IO\Compression\RunLengthEncoderTests.cs (2)
11ReadOnlySpan<byte> data = [1, 1, 1, 2, 2, 3, 3, 3, 3]; 35ReadOnlySpan<byte> data = [1, 1, 1, 2, 2, 3, 3, 3, 3];
System\SpanReaderTests.cs (11)
13ReadOnlySpan<byte> span = [1, 2, 3, 4, 5]; 28ReadOnlySpan<byte> span = [1, 2, 3, 4, 5]; 31reader.TryReadTo(3, advancePastDelimiter: false, out var read).Should().BeTrue(); 47ReadOnlySpan<byte> span = [1, 2, 3, 4, 5]; 73ReadOnlySpan<byte> span = [1, 2, 3, 4, 5]; 99ReadOnlySpan<uint> span = [1, 2, 3, 4, 5]; 116ReadOnlySpan<uint> span = [1, 2, 3, 4, 5]; 119reader.TryRead(2, out ReadOnlySpan<Point> value).Should().BeTrue(); 136ReadOnlySpan<float> span = new float[bufferSize]; 145ReadOnlySpan<uint> span = [1, 2, 3, 4, 5]; 148reader.TryRead(2, out var read).Should().BeTrue();
Windows\Win32\System\Com\ComScopeTests.cs (1)
57ReadOnlySpan<byte> data =
System.Windows.Forms.Primitives.TestUtilities (13)
Extensions\AssertExtensions.cs (5)
475public static void SequenceEqual<T>(ReadOnlySpan<T> expected, ReadOnlySpan<T> actual) where T : IEquatable<T> 512public static void FilledWith<T>(T expected, ReadOnlySpan<T> actual) 525public static void SequenceEqual<T>(Span<T> expected, Span<T> actual) where T : IEquatable<T> => SequenceEqual((ReadOnlySpan<T>)expected, (ReadOnlySpan<T>)actual);
Extensions\SpanExtensions.cs (1)
8public static T2[] Transform<T1, T2>(this ReadOnlySpan<T1> span, Func<T1, T2> transform)
Metafiles\EmfRecord.cs (2)
32public ReadOnlySpan<uint> Params => _lpmr->dParm.AsSpan((int)(_lpmr->nSize / sizeof(uint)) - 2); 33public ReadOnlySpan<HGDIOBJ> Handles => new(_lpht, _nHandles);
Metafiles\RecordTypes\EMRPOLY16.cs (1)
31public unsafe ReadOnlySpan<POINTS> points
Metafiles\RecordTypes\EMRPOLYPOLY16.cs (3)
56public unsafe ReadOnlySpan<uint> aPolyCounts 67public unsafe ReadOnlySpan<POINTS> GetPointsForPoly(int index) 76var counts = aPolyCounts;
Metafiles\RecordTypes\EMRTEXT.cs (1)
21public unsafe ReadOnlySpan<char> GetText()
System.Windows.Forms.Tests (5)
System\Windows\Forms\FileDialogTests.cs (3)
656ReadOnlySpan<char> filter = new(o.lpstrFilter.Value, o.lpstrFilter.StringListLength); 752ReadOnlySpan<char> filter = new(o.lpstrFilter.Value, o.lpstrFilter.StringListLength); 820private delegate string[] GetMultiselectFiles(ReadOnlySpan<char> fileBuffer);
TestAccessorTests.cs (2)
183public delegate int ToStringLength(ReadOnlySpan<char> value); 218private int ToStringLength(ReadOnlySpan<char> value) => value.Length;
System.Windows.Forms.UI.IntegrationTests (18)
Infra\ScreenRecordService.cs (18)
33private static ReadOnlySpan<byte> Ihdr => "IHDR"u8; 34private static ReadOnlySpan<byte> Idat => "IDAT"u8; 35private static ReadOnlySpan<byte> Iend => "IEND"u8; 36private static ReadOnlySpan<byte> Srgb => "sRGB"u8; 37private static ReadOnlySpan<byte> Gama => "gAMA"u8; 38private static ReadOnlySpan<byte> Phys => "pHYs"u8; 39private static ReadOnlySpan<byte> Actl => "acTL"u8; 40private static ReadOnlySpan<byte> Fctl => "fcTL"u8; 41private static ReadOnlySpan<byte> Fdat => "fdAT"u8; 270ReadOnlySpan<uint> previousImageData; 271ReadOnlySpan<uint> currentImageData; 284ReadOnlySpan<uint> previousFrameLine = previousImageData.Slice(line * stridePixels, width); 285ReadOnlySpan<uint> currentFrameLine = currentImageData.Slice(line * stridePixels, width); 378private static void WriteFdat(Stream stream, byte[] buffer, Crc32 crc, int sequenceNumber, ReadOnlySpan<byte> data) 391private static void WriteChunkHeader(Stream stream, byte[] buffer, Crc32 crc, ReadOnlySpan<byte> chunkType, uint dataLength) 536private static void Write(Stream stream, byte[] buffer, Crc32? crc, ReadOnlySpan<byte> bytes) 547for (ReadOnlySpan<byte> remaining = bytes; !remaining.IsEmpty; remaining = remaining[Math.Min(buffer.Length, remaining.Length)..]) 549ReadOnlySpan<byte> current = remaining[..Math.Min(buffer.Length, remaining.Length)];
System.Windows.Input.Manipulations (1)
System\Windows\Input\Manipulations\Exceptions.cs (1)
237private static string Format(string format, params ReadOnlySpan<object> args)
System.Xaml (16)
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)
67public static bool Eq(ReadOnlySpan<char> a, ReadOnlySpan<char> b)
System\Xaml\Schema\ClrNamespaceUriParser.cs (1)
33ReadOnlySpan<char> keyword = uriInput.AsSpan(0, colonIdx);
System\Xaml\XamlSchemaContext.cs (1)
182ReadOnlySpan<char> values = clrNs.AsSpan();
UIAutomationClientSideProviders (23)
MS\Internal\AutomationProxies\ProxyHwnd.cs (5)
72ReadOnlySpan<WinEventTracker.EvtIdProperty> aEvents; 101ReadOnlySpan<WinEventTracker.EvtIdProperty> aEvents; 400protected virtual ReadOnlySpan<WinEventTracker.EvtIdProperty> EventToWinEvent(AutomationEvent idEvent) 457return ReadOnlySpan<WinEventTracker.EvtIdProperty>.Empty; 509private ReadOnlySpan<WinEventTracker.EvtIdProperty> PropertyToWinEvent(AutomationProperty[] aProps)
MS\Internal\AutomationProxies\WindowsButton.cs (1)
285protected override ReadOnlySpan<WinEventTracker.EvtIdProperty> EventToWinEvent(AutomationEvent idEvent)
MS\Internal\AutomationProxies\WindowsComboBox.cs (4)
306ReadOnlySpan<WinEventTracker.EvtIdProperty> editPortionEvents = CreateEditPortionEvents(aidProps); 342ReadOnlySpan<WinEventTracker.EvtIdProperty> editPortionEvents = CreateEditPortionEvents(aidProps); 798private static ReadOnlySpan<WinEventTracker.EvtIdProperty> CreateEditPortionEvents(AutomationProperty[] aidProps) 812return ReadOnlySpan<WinEventTracker.EvtIdProperty>.Empty;
MS\Internal\AutomationProxies\WindowsEditBox.cs (1)
253protected override ReadOnlySpan<WinEventTracker.EvtIdProperty> EventToWinEvent(AutomationEvent idEvent)
MS\Internal\AutomationProxies\WindowsFormsLinkLabel.cs (1)
69protected override ReadOnlySpan<WinEventTracker.EvtIdProperty> EventToWinEvent(AutomationEvent idEvent)
MS\Internal\AutomationProxies\WindowsHyperlink.cs (1)
125protected override ReadOnlySpan<WinEventTracker.EvtIdProperty> EventToWinEvent(AutomationEvent idEvent)
MS\Internal\AutomationProxies\WindowsListBox.cs (1)
454ReadOnlySpan<WinEventTracker.EvtIdProperty> aEvtIdProperties = [new WinEventTracker.EvtIdProperty(NativeMethods.EventObjectSelection, SelectionPattern.IsSelectionRequiredProperty)];
MS\Internal\AutomationProxies\WindowsListView.cs (4)
499ReadOnlySpan<WinEventTracker.EvtIdProperty> aEvents = [new WinEventTracker.EvtIdProperty(NativeMethods.EventObjectCreate, TablePattern.ColumnHeadersProperty)]; 508ReadOnlySpan<WinEventTracker.EvtIdProperty> aEvents = [new WinEventTracker.EvtIdProperty(NativeMethods.EventObjectSelection, eventId)]; 528ReadOnlySpan<WinEventTracker.EvtIdProperty> aEvents = [new WinEventTracker.EvtIdProperty(NativeMethods.EventObjectCreate, TablePattern.ColumnHeadersProperty)]; 537ReadOnlySpan<WinEventTracker.EvtIdProperty> aEvents = [new WinEventTracker.EvtIdProperty(NativeMethods.EventObjectSelection, eventId)];
MS\Internal\AutomationProxies\WindowsTreeView.cs (1)
346protected override ReadOnlySpan<WinEventTracker.EvtIdProperty> EventToWinEvent(AutomationEvent idEvent)
MS\Internal\AutomationProxies\WinEventTracker.cs (4)
47static internal void AddToNotificationList(IntPtr hwnd, ProxyRaiseEvents raiseEvents, ReadOnlySpan<EvtIdProperty> aEvtIdProp) 76static internal void RemoveToNotificationList(IntPtr hwnd, ReadOnlySpan<EvtIdProperty> aEvtIdProp, ProxyRaiseEvents raiseEvents) 338private static void BuildEventsList(EventFlag eFlag, IntPtr hwnd, ProxyRaiseEvents raiseEvents, ReadOnlySpan<EvtIdProperty> aEvtIdProp) 523private static ReadOnlySpan<int> EventIdToIndex => [
xunit.assert (112)
EqualityAsserts.cs (1)
51 /// If <see cref="MemoryExtensions.SequenceEqual{T}(Span{T}, ReadOnlySpan{T})"/> fails, a call
MemoryAsserts.cs (2)
177 var expectedSpan = expectedSubMemory.Span; 178 var actualSpan = actualMemory.Span;
Sdk\CollectionTracker.cs (2)
581 ReadOnlySpan<T> span, 704 ReadOnlySpan<T> span,
SpanAsserts.cs (25)
47 Contains((ReadOnlySpan<T>)expectedSubSpan, (ReadOnlySpan<T>)actualSpan); 62 ReadOnlySpan<T> actualSpan) 64 Contains((ReadOnlySpan<T>)expectedSubSpan, actualSpan); 78 ReadOnlySpan<T> expectedSubSpan, 81 Contains(expectedSubSpan, (ReadOnlySpan<T>)actualSpan); 95 ReadOnlySpan<T> expectedSubSpan, 96 ReadOnlySpan<T> actualSpan) 121 DoesNotContain((ReadOnlySpan<T>)expectedSubSpan, (ReadOnlySpan<T>)actualSpan); 136 ReadOnlySpan<T> actualSpan) 138 DoesNotContain((ReadOnlySpan<T>)expectedSubSpan, actualSpan); 152 ReadOnlySpan<T> expectedSubSpan, 155 DoesNotContain(expectedSubSpan, (ReadOnlySpan<T>)actualSpan); 169 ReadOnlySpan<T> expectedSubSpan, 170 ReadOnlySpan<T> actualSpan) 197 ReadOnlySpan<T> expectedSpan, 212 Equal((ReadOnlySpan<T>)expectedSpan, (ReadOnlySpan<T>)actualSpan); 222 ReadOnlySpan<T> actualSpan) 224 Equal((ReadOnlySpan<T>)expectedSpan, actualSpan); 233 ReadOnlySpan<T> expectedSpan, 236 Equal(expectedSpan, (ReadOnlySpan<T>)actualSpan); 245 ReadOnlySpan<T> expectedSpan, 246 ReadOnlySpan<T> actualSpan)
StringAsserts.cs (82)
182 Contains((ReadOnlySpan<char>)expectedSubstring, (ReadOnlySpan<char>)actualString, comparisonType); 193 ReadOnlySpan<char> actualString, 195 Contains((ReadOnlySpan<char>)expectedSubstring, actualString, comparisonType); 205 ReadOnlySpan<char> expectedSubstring, 208 Contains(expectedSubstring, (ReadOnlySpan<char>)actualString, comparisonType); 218 ReadOnlySpan<char> expectedSubstring, 219 ReadOnlySpan<char> actualString, 238 Contains((ReadOnlySpan<char>)expectedSubstring, (ReadOnlySpan<char>)actualString, StringComparison.CurrentCulture); 248 ReadOnlySpan<char> actualString) => 249 Contains((ReadOnlySpan<char>)expectedSubstring, actualString, StringComparison.CurrentCulture); 258 ReadOnlySpan<char> expectedSubstring, 260 Contains(expectedSubstring, (ReadOnlySpan<char>)actualString, StringComparison.CurrentCulture); 269 ReadOnlySpan<char> expectedSubstring, 270 ReadOnlySpan<char> actualString) => 429 DoesNotContain((ReadOnlySpan<char>)expectedSubstring, (ReadOnlySpan<char>)actualString, comparisonType); 440 ReadOnlySpan<char> actualString, 442 DoesNotContain((ReadOnlySpan<char>)expectedSubstring, actualString, comparisonType); 452 ReadOnlySpan<char> expectedSubstring, 455 DoesNotContain(expectedSubstring, (ReadOnlySpan<char>)actualString, comparisonType); 465 ReadOnlySpan<char> expectedSubstring, 466 ReadOnlySpan<char> actualString, 483 DoesNotContain((ReadOnlySpan<char>)expectedSubstring, (ReadOnlySpan<char>)actualString, StringComparison.CurrentCulture); 493 ReadOnlySpan<char> actualString) => 494 DoesNotContain((ReadOnlySpan<char>)expectedSubstring, actualString, StringComparison.CurrentCulture); 503 ReadOnlySpan<char> expectedSubstring, 505 DoesNotContain(expectedSubstring, (ReadOnlySpan<char>)actualString, StringComparison.CurrentCulture); 514 ReadOnlySpan<char> expectedSubstring, 515 ReadOnlySpan<char> actualString) => 743 EndsWith((ReadOnlySpan<char>)expectedEndString, (ReadOnlySpan<char>)actualString, StringComparison.CurrentCulture); 753 ReadOnlySpan<char> actualString) => 754 EndsWith((ReadOnlySpan<char>)expectedEndString, actualString, StringComparison.CurrentCulture); 763 ReadOnlySpan<char> expectedEndString, 765 EndsWith(expectedEndString, (ReadOnlySpan<char>)actualString, StringComparison.CurrentCulture); 774 ReadOnlySpan<char> expectedEndString, 775 ReadOnlySpan<char> actualString) => 789 EndsWith((ReadOnlySpan<char>)expectedEndString, (ReadOnlySpan<char>)actualString, comparisonType); 800 ReadOnlySpan<char> actualString, 802 EndsWith((ReadOnlySpan<char>)expectedEndString, actualString, comparisonType); 812 ReadOnlySpan<char> expectedEndString, 815 EndsWith(expectedEndString, (ReadOnlySpan<char>)actualString, comparisonType); 825 ReadOnlySpan<char> expectedEndString, 826 ReadOnlySpan<char> actualString, 891 ReadOnlySpan<char> expected, 892 ReadOnlySpan<char> actual, 1110 Equal((ReadOnlySpan<char>)expected, (ReadOnlySpan<char>)actual, false, false, false, false); 1120 ReadOnlySpan<char> actual) => 1121 Equal((ReadOnlySpan<char>)expected, actual, false, false, false, false); 1130 ReadOnlySpan<char> expected, 1132 Equal(expected, (ReadOnlySpan<char>)actual, false, false, false, false); 1141 ReadOnlySpan<char> expected, 1142 ReadOnlySpan<char> actual) => 1189 Equal((ReadOnlySpan<char>)expected, (ReadOnlySpan<char>)actual, ignoreCase, ignoreLineEndingDifferences, ignoreWhiteSpaceDifferences, ignoreAllWhiteSpace); 1230 ReadOnlySpan<char> actual, 1235 Equal((ReadOnlySpan<char>)expected, actual, ignoreCase, ignoreLineEndingDifferences, ignoreWhiteSpaceDifferences, ignoreAllWhiteSpace); 1275 ReadOnlySpan<char> expected, 1281 Equal(expected, (ReadOnlySpan<char>)actual, ignoreCase, ignoreLineEndingDifferences, ignoreWhiteSpaceDifferences, ignoreAllWhiteSpace); 1536 StartsWith((ReadOnlySpan<char>)expectedStartString, (ReadOnlySpan<char>)actualString, StringComparison.CurrentCulture); 1546 ReadOnlySpan<char> actualString) => 1547 StartsWith((ReadOnlySpan<char>)expectedStartString, actualString, StringComparison.CurrentCulture); 1556 ReadOnlySpan<char> expectedStartString, 1558 StartsWith(expectedStartString, (ReadOnlySpan<char>)actualString, StringComparison.CurrentCulture); 1567 ReadOnlySpan<char> expectedStartString, 1568 ReadOnlySpan<char> actualString) => 1582 StartsWith((ReadOnlySpan<char>)expectedStartString, (ReadOnlySpan<char>)actualString, comparisonType); 1593 ReadOnlySpan<char> actualString, 1595 StartsWith((ReadOnlySpan<char>)expectedStartString, actualString, comparisonType); 1605 ReadOnlySpan<char> expectedStartString, 1608 StartsWith(expectedStartString, (ReadOnlySpan<char>)actualString, comparisonType); 1618 ReadOnlySpan<char> expectedStartString, 1619 ReadOnlySpan<char> actualString, 1660 ReadOnlySpan<char> value, 1677 ReadOnlySpan<char> value,