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