16 types derived from ReadOnlySequenceSegment
Microsoft.AspNetCore.Components.Forms (1)
src\Components\Shared\src\ExpressionFormatting\ReverseStringBuilder.cs (1)
120private sealed class SequenceSegment : ReadOnlySequenceSegment<char>, IDisposable
Microsoft.AspNetCore.Components.Server (1)
BlazorPack\SequenceOfT.cs (1)
294private sealed class SequenceSegment : ReadOnlySequenceSegment<T>
Microsoft.AspNetCore.Components.Web (1)
src\Components\Shared\src\ExpressionFormatting\ReverseStringBuilder.cs (1)
120private sealed class SequenceSegment : ReadOnlySequenceSegment<char>, IDisposable
Microsoft.AspNetCore.Http.Connections.Tests (1)
src\Shared\Buffers.Testing\BufferSegment.cs (1)
6internal sealed class BufferSegment : ReadOnlySequenceSegment<byte>
Microsoft.AspNetCore.HttpLogging (1)
src\Shared\Buffers\BufferSegment.cs (1)
11internal sealed class BufferSegment : ReadOnlySequenceSegment<byte>
Microsoft.AspNetCore.OutputCaching (1)
RecyclableReadOnlySequenceSegment.cs (1)
19internal sealed class RecyclableReadOnlySequenceSegment : ReadOnlySequenceSegment<byte>
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\Buffers\BufferSegment.cs (1)
11internal sealed class BufferSegment : ReadOnlySequenceSegment<byte>
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
src\Shared\Buffers.Testing\BufferSegment.cs (1)
6internal sealed class BufferSegment : ReadOnlySequenceSegment<byte>
src\Shared\test\Shared.Tests\runtime\Http3\VariableLengthIntegerHelperTests.cs (1)
152internal class MemorySegment<T> : ReadOnlySequenceSegment<T>
Microsoft.AspNetCore.Shared.Tests (1)
runtime\Http3\VariableLengthIntegerHelperTests.cs (1)
152internal class MemorySegment<T> : ReadOnlySequenceSegment<T>
Microsoft.AspNetCore.SignalR.Common.Tests (1)
src\Shared\Buffers.Testing\BufferSegment.cs (1)
6internal sealed class BufferSegment : ReadOnlySequenceSegment<byte>
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
src\Shared\Buffers.Testing\BufferSegment.cs (1)
6internal sealed class BufferSegment : ReadOnlySequenceSegment<byte>
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (1)
src\Shared\Buffers.Testing\BufferSegment.cs (1)
6internal sealed class BufferSegment : ReadOnlySequenceSegment<byte>
Microsoft.AspNetCore.WebUtilities.Tests (1)
src\Shared\Buffers.Testing\BufferSegment.cs (1)
6internal sealed class BufferSegment : ReadOnlySequenceSegment<byte>
Microsoft.Extensions.Caching.Hybrid.Tests (1)
DistributedCacheTests.cs (1)
355private class CustomSegment : ReadOnlySequenceSegment<byte>
System.IO.Pipelines (1)
System\IO\Pipelines\BufferSegment.cs (1)
10internal sealed class BufferSegment : ReadOnlySequenceSegment<byte>
58 references to ReadOnlySequenceSegment
Microsoft.AspNetCore.Components.Server (2)
BlazorPack\SequenceOfT.cs (2)
307/// Gets the position within <see cref="ReadOnlySequenceSegment{T}.Memory"/> where the data starts. 313/// Gets the position within <see cref="ReadOnlySequenceSegment{T}.Memory"/> where the data ends.
mscorlib (1)
mscorlib.cs (1)
42[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Buffers.ReadOnlySequenceSegment<>))]
netstandard (1)
netstandard.cs (1)
71[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Buffers.ReadOnlySequenceSegment<>))]
System.Memory (54)
System\Buffers\ReadOnlySequence.cs (16)
94public ReadOnlySequence(ReadOnlySequenceSegment<T> startSegment, int startIndex, ReadOnlySequenceSegment<T> endSegment, int endIndex) 206var startSegment = (ReadOnlySequenceSegment<T>)startObject; 231end = GetEndPosition((ReadOnlySequenceSegment<T>)beginObject, beginObject, beginIndex, endObject!, endIndex, length); 300var startSegment = (ReadOnlySequenceSegment<T>)startObject!; 302ulong sliceRange = (ulong)(((ReadOnlySequenceSegment<T>)sliceEndObject!).RunningIndex + sliceEndIndex); 309(ulong)(((ReadOnlySequenceSegment<T>)endObject!).RunningIndex + endIndex))) 381var sliceStartSegment = (ReadOnlySequenceSegment<T>)sliceStartObject!; 383ulong startRange = (ulong)(((ReadOnlySequenceSegment<T>)startObject!).RunningIndex + startIndex); 384ulong endRange = (ulong)(((ReadOnlySequenceSegment<T>)endObject!).RunningIndex + endIndex); 562if (((ReadOnlySequenceSegment<T>)positionSequenceObject).Memory.Length - positionIndex < 0) 566ReadOnlySequenceSegment<T>? currentSegment = (ReadOnlySequenceSegment<T>?)startObject;
System\Buffers\ReadOnlySequence.Helpers.cs (29)
32Debug.Assert(positionObject is ReadOnlySequenceSegment<T>); 34ReadOnlySequenceSegment<T> startSegment = (ReadOnlySequenceSegment<T>)positionObject; 38ReadOnlySequenceSegment<T>? nextSegment = startSegment.Next; 108ReadOnlyMemory<T> memory = ((ReadOnlySequenceSegment<T>)startObject).Memory; 184ReadOnlySpan<T> span = ((ReadOnlySequenceSegment<T>)startObject).Memory.Span; 245var startSegment = (ReadOnlySequenceSegment<T>)startObject; 281var startSegment = (ReadOnlySequenceSegment<T>)startObject; 307private static SequencePosition SeekMultiSegment(ReadOnlySequenceSegment<T>? currentSegment, object endObject, int endIndex, long offset, ExceptionArgument argument) 355ulong startRange = (ulong)(((ReadOnlySequenceSegment<T>)startObject!).RunningIndex + startIndex); 360runningIndex = ((ReadOnlySequenceSegment<T>)position.GetObject()!).RunningIndex; 366(ulong)(((ReadOnlySequenceSegment<T>)endObject!).RunningIndex + endIndex))) 404sliceStartRange += (ulong)((ReadOnlySequenceSegment<T>)sliceStartObject).RunningIndex; 409sliceEndRange += (ulong)((ReadOnlySequenceSegment<T>)sliceEndObject).RunningIndex; 415if (sliceStartRange < (ulong)(((ReadOnlySequenceSegment<T>)startObject!).RunningIndex + startIndex) 416|| sliceEndRange > (ulong)(((ReadOnlySequenceSegment<T>)endObject!).RunningIndex + endIndex)) 423private static SequencePosition GetEndPosition(ReadOnlySequenceSegment<T> startSegment, object startObject, int startIndex, object endObject, int endIndex, long length) 506var startSegment = (ReadOnlySequenceSegment<T>)startObject!; 507var endSegment = (ReadOnlySequenceSegment<T>)endObject!; 516internal bool TryGetReadOnlySequenceSegment([NotNullWhen(true)] out ReadOnlySequenceSegment<T>? startSegment, out int startIndex, [NotNullWhen(true)] out ReadOnlySequenceSegment<T>? endSegment, out int endIndex) 532startSegment = (ReadOnlySequenceSegment<T>)startObject; 534endSegment = (ReadOnlySequenceSegment<T>)_endObject; 647ReadOnlySequenceSegment<T> segment = (ReadOnlySequenceSegment<T>)startObject;
System\Buffers\ReadOnlySequenceSegment.cs (1)
19public ReadOnlySequenceSegment<T>? Next { get; protected set; }
System\Runtime\InteropServices\SequenceMarshal.cs (4)
15/// Get <see cref="ReadOnlySequenceSegment{T}"/> from the underlying <see cref="ReadOnlySequence{T}"/>. 16/// If unable to get the <see cref="ReadOnlySequenceSegment{T}"/>, return false. 19[NotNullWhen(true)] out ReadOnlySequenceSegment<T>? startSegment, 21[NotNullWhen(true)] out ReadOnlySequenceSegment<T>? endSegment,
System\ThrowHelper.cs (4)
61public static void ThrowArgumentValidationException<T>(ReadOnlySequenceSegment<T>? startSegment, int startIndex, ReadOnlySequenceSegment<T>? endSegment) 64private static Exception CreateArgumentValidationException<T>(ReadOnlySequenceSegment<T>? startSegment, int startIndex, ReadOnlySequenceSegment<T>? endSegment)