Skip to content

Commit

Permalink
net6-: don't forget to increment _consumedAtStartOfCurrentSpan
Browse files Browse the repository at this point in the history
  • Loading branch information
mgravell committed Feb 28, 2023
1 parent 1fafa7e commit 3ee60f6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ private void SetCurrrentSpan(ReadOnlySpan<T> span)
private ref T CurrentSpanStart => ref Unsafe.AsRef(in current.GetPinnableReference());
private void SetCurrentSpan(ReadOnlySpan<T> span)
{
_consumedAtStartOfCurrentSpan += CurrentSpanLength; // account for previous
_currentSpan = span;
_currentSpanIndex = 0;
}
Expand Down

0 comments on commit 3ee60f6

Please sign in to comment.