7 writes to CurrentSpan
System.Memory (7)
System\Buffers\SequenceReader.cs (6)
29CurrentSpan = first; 265CurrentSpan = default; 271CurrentSpan = memory.Span; 278CurrentSpan = default; 295CurrentSpan = memory.Span; 301CurrentSpan = default;
System\Buffers\SequenceReader.Search.cs (1)
752CurrentSpan = default;
33 references to CurrentSpan
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\runtime\Http3\Helpers\VariableLengthIntegerHelper.cs (1)
101ReadOnlySpan<byte> span = reader.CurrentSpan;
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\runtime\Http3\Helpers\VariableLengthIntegerHelper.cs (1)
101ReadOnlySpan<byte> span = reader.CurrentSpan;
System.Memory (30)
System\Buffers\SequenceReader.cs (13)
69/// The index in the <see cref="CurrentSpan"/>. 74/// The unread portion of the <see cref="CurrentSpan"/>. 79get => CurrentSpan.Slice(CurrentSpanIndex); 118value = CurrentSpan[CurrentSpanIndex]; 151if ((CurrentSpanIndex + offset) <= CurrentSpan.Length - 1) 155value = CurrentSpan[CurrentSpanIndex + (int)offset]; 160long remainingOffset = offset - (CurrentSpan.Length - CurrentSpanIndex); 200value = CurrentSpan[CurrentSpanIndex]; 204if (CurrentSpanIndex >= CurrentSpan.Length) 317if ((count & TooBigOrNegative) == 0 && CurrentSpan.Length - CurrentSpanIndex > (int)count) 339if (CurrentSpanIndex >= CurrentSpan.Length) 355Debug.Assert(CurrentSpanIndex < CurrentSpan.Length); 368int remaining = CurrentSpan.Length - CurrentSpanIndex;
System\Buffers\SequenceReader.Search.cs (17)
35if (!TryReadToInternal(out ReadOnlySequence<T> sequence, delimiter, advancePastDelimiter, CurrentSpan.Length - CurrentSpanIndex)) 169remaining = CurrentSpan; 221remaining = CurrentSpan; 311remaining = CurrentSpan; 347if (!TryReadToAnyInternal(out ReadOnlySequence<T> sequence, delimiters, advancePastDelimiter, CurrentSpan.Length - CurrentSpanIndex)) 399remaining = CurrentSpan; 581for (i = CurrentSpanIndex; i < CurrentSpan.Length && CurrentSpan[i].Equals(value); i++) 613for (i = CurrentSpanIndex; i < CurrentSpan.Length && values.IndexOf(CurrentSpan[i]) != -1; i++) 645for (i = CurrentSpanIndex; i < CurrentSpan.Length; i++) 647T value = CurrentSpan[i]; 682for (i = CurrentSpanIndex; i < CurrentSpan.Length; i++) 684T value = CurrentSpan[i]; 719for (i = CurrentSpanIndex; i < CurrentSpan.Length; i++) 721T value = CurrentSpan[i]; 771if (CurrentSpan[CurrentSpanIndex].Equals(next))
System.Net.Http (1)
src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\Helpers\VariableLengthIntegerHelper.cs (1)
101ReadOnlySpan<byte> span = reader.CurrentSpan;