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