3 writes to _completed
Microsoft.CodeAnalysis.CodeStyle (3)
src\Dependencies\Collections\SegmentedArray.cs (3)
470_completed = 0; 496_completed = currentSegmentLength; 505_completed += currentSegmentLength;
5 references to _completed
Microsoft.CodeAnalysis.CodeStyle (5)
src\Dependencies\Collections\SegmentedArray.cs (5)
478if (_completed == _length) 484if (_completed == 0) 501var firstSegment = _firstSegments[(_completed + _firstOffset) >> SegmentedArrayHelper.GetSegmentShift<T>()]; 502var secondSegment = _secondSegments[(_completed + _secondOffset) >> SegmentedArrayHelper.GetSegmentShift<T>()]; 503var currentSegmentLength = Math.Min(SegmentedArrayHelper.GetSegmentSize<T>(), _length - _completed);