12 writes to CurrentSpanIndex
System.Memory (12)
System\Buffers\SequenceReader.cs (11)
22CurrentSpanIndex = 0; 201CurrentSpanIndex++; 235CurrentSpanIndex -= (int)count; 254CurrentSpanIndex = 0; 296CurrentSpanIndex = 0; 302CurrentSpanIndex = 0; 319CurrentSpanIndex += (int)count; 338CurrentSpanIndex += (int)count; 353CurrentSpanIndex += (int)count; 372CurrentSpanIndex += (int)count; 379CurrentSpanIndex += remaining;
System\Buffers\SequenceReader.Search.cs (1)
753CurrentSpanIndex = 0;
38 references to CurrentSpanIndex
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
src\Shared\test\Shared.Tests\runtime\Http3\VariableLengthIntegerHelperTests.cs (3)
149Assert.Equal(1, sequenceReader.CurrentSpanIndex); 185Assert.Equal(1, sequenceReader.CurrentSpanIndex); 201Assert.Equal(7, sequenceReader.CurrentSpanIndex);
Microsoft.AspNetCore.Shared.Tests (3)
runtime\Http3\VariableLengthIntegerHelperTests.cs (3)
149Assert.Equal(1, sequenceReader.CurrentSpanIndex); 185Assert.Equal(1, sequenceReader.CurrentSpanIndex); 201Assert.Equal(7, sequenceReader.CurrentSpanIndex);
System.Memory (32)
System\Buffers\SequenceReader.cs (14)
61=> Sequence.GetPosition(CurrentSpanIndex, _currentPosition); 79get => CurrentSpan.Slice(CurrentSpanIndex); 118value = CurrentSpan[CurrentSpanIndex]; 148Debug.Assert(CurrentSpanIndex + offset >= 0); 151if ((CurrentSpanIndex + offset) <= CurrentSpan.Length - 1) 155value = CurrentSpan[CurrentSpanIndex + (int)offset]; 160long remainingOffset = offset - (CurrentSpan.Length - CurrentSpanIndex); 200value = CurrentSpan[CurrentSpanIndex]; 204if (CurrentSpanIndex >= CurrentSpan.Length) 233if (CurrentSpanIndex >= count) 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 (18)
35if (!TryReadToInternal(out ReadOnlySequence<T> sequence, delimiter, advancePastDelimiter, CurrentSpan.Length - CurrentSpanIndex)) 347if (!TryReadToAnyInternal(out ReadOnlySequence<T> sequence, delimiters, advancePastDelimiter, CurrentSpan.Length - CurrentSpanIndex)) 581for (i = CurrentSpanIndex; i < CurrentSpan.Length && CurrentSpan[i].Equals(value); i++) 585int advanced = i - CurrentSpanIndex; 596} while (CurrentSpanIndex == 0 && !End); 613for (i = CurrentSpanIndex; i < CurrentSpan.Length && values.IndexOf(CurrentSpan[i]) != -1; i++) 617int advanced = i - CurrentSpanIndex; 628} while (CurrentSpanIndex == 0 && !End); 645for (i = CurrentSpanIndex; i < CurrentSpan.Length; i++) 654int advanced = i - CurrentSpanIndex; 665} while (CurrentSpanIndex == 0 && !End); 682for (i = CurrentSpanIndex; i < CurrentSpan.Length; i++) 691int advanced = i - CurrentSpanIndex; 702} while (CurrentSpanIndex == 0 && !End); 719for (i = CurrentSpanIndex; i < CurrentSpan.Length; i++) 728int advanced = i - CurrentSpanIndex; 739} while (CurrentSpanIndex == 0 && !End); 771if (CurrentSpan[CurrentSpanIndex].Equals(next))