We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fafa7e commit 3ee60f6Copy full SHA for 3ee60f6
src/libraries/System.Memory/src/System/Buffers/SequenceReader.cs
@@ -91,6 +91,7 @@ private void SetCurrrentSpan(ReadOnlySpan<T> span)
91
private ref T CurrentSpanStart => ref Unsafe.AsRef(in current.GetPinnableReference());
92
private void SetCurrentSpan(ReadOnlySpan<T> span)
93
{
94
+ _consumedAtStartOfCurrentSpan += CurrentSpanLength; // account for previous
95
_currentSpan = span;
96
_currentSpanIndex = 0;
97
}
0 commit comments