3 writes to _completed
Microsoft.CodeAnalysis.Collections.Package (3)
SegmentedArray.cs (3)
470_completed = 0; 496_completed = currentSegmentLength; 505_completed += currentSegmentLength;
5 references to _completed
Microsoft.CodeAnalysis.Collections.Package (5)
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);