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)
583if (_completed == _length) 589var initialFirstSegment = (_completed + _firstOffset) >> SegmentedArrayHelper.GetSegmentShift<T>(); 590var initialSecondSegment = (_completed + _secondOffset) >> SegmentedArrayHelper.GetSegmentShift<T>(); 591var firstOffset = (_completed + _firstOffset) & SegmentedArrayHelper.GetOffsetMask<T>(); 592var secondOffset = (_completed + _secondOffset) & SegmentedArrayHelper.GetOffsetMask<T>(); 598var currentSegmentLength = Math.Min(Math.Min(remainingInFirstSegment, remainingInSecondSegment), _length - _completed);