2 writes to _completed
Microsoft.CodeAnalysis.CodeStyle (2)
src\Dependencies\Collections\SegmentedArray.cs (2)
575
_completed
= 0;
600
_completed
+= currentSegmentLength;
6 references to _completed
Microsoft.CodeAnalysis.CodeStyle (6)
src\Dependencies\Collections\SegmentedArray.cs (6)
583
if (
_completed
== _length)
589
var initialFirstSegment = (
_completed
+ _firstOffset) >> SegmentedArrayHelper.GetSegmentShift<T>();
590
var initialSecondSegment = (
_completed
+ _secondOffset) >> SegmentedArrayHelper.GetSegmentShift<T>();
591
var firstOffset = (
_completed
+ _firstOffset) & SegmentedArrayHelper.GetOffsetMask<T>();
592
var secondOffset = (
_completed
+ _secondOffset) & SegmentedArrayHelper.GetOffsetMask<T>();
598
var currentSegmentLength = Math.Min(Math.Min(remainingInFirstSegment, remainingInSecondSegment), _length -
_completed
);