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