16 types derived from ReadOnlySequenceSegment
Microsoft.AspNetCore.Components.Forms (1)
Microsoft.AspNetCore.Components.Server (1)
Microsoft.AspNetCore.Components.Web (1)
Microsoft.AspNetCore.Http.Connections.Tests (1)
Microsoft.AspNetCore.HttpLogging (1)
Microsoft.AspNetCore.OutputCaching (1)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
Microsoft.AspNetCore.Shared.Tests (1)
Microsoft.AspNetCore.SignalR.Common.Tests (1)
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (1)
Microsoft.AspNetCore.WebUtilities.Tests (1)
Microsoft.Extensions.Caching.Hybrid.Tests (1)
System.IO.Pipelines (1)
58 references to ReadOnlySequenceSegment
Microsoft.AspNetCore.Components.Server (2)
mscorlib (1)
netstandard (1)
System.Memory (54)
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;