2 writes to _completed
Microsoft.CodeAnalysis.Workspaces (2)
src\Dependencies\Collections\SegmentedArray.cs (2)
623_completed = 0; 648_completed += currentSegmentLength;
6 references to _completed
Microsoft.CodeAnalysis.Workspaces (6)
src\Dependencies\Collections\SegmentedArray.cs (6)
631if (_completed == _length) 637var initialFirstSegment = (_firstOffset + _length - _completed - 1) >> SegmentedArrayHelper.GetSegmentShift<T>(); 638var initialSecondSegment = (_secondOffset + _length - _completed - 1) >> SegmentedArrayHelper.GetSegmentShift<T>(); 639var firstOffset = (_firstOffset + _length - _completed - 1) & SegmentedArrayHelper.GetOffsetMask<T>(); 640var secondOffset = (_secondOffset + _length - _completed - 1) & SegmentedArrayHelper.GetOffsetMask<T>(); 646var currentSegmentLength = Math.Min(Math.Min(remainingInFirstSegment, remainingInSecondSegment), _length - _completed);