6 references to GetSegmentSize
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (6)
src\Dependencies\Collections\SegmentedArray.cs (3)
503
var currentSegmentLength = Math.Min(SegmentedArrayHelper.
GetSegmentSize
<T>(), _length - _completed);
743
_current = segment.AsMemory().Slice(0, Math.Min(SegmentedArrayHelper.
GetSegmentSize
<T>(), _length - _completed));
792
_current = segment.AsMemory().Slice(0, Math.Min(SegmentedArrayHelper.
GetSegmentSize
<T>(), _length - _completed));
src\Dependencies\Collections\SegmentedArray`1.cs (1)
37
return SegmentedArrayHelper.
GetSegmentSize
<T>();
src\Dependencies\Collections\SegmentedList`1.cs (2)
154
var newSegmentCount = (value + SegmentedArrayHelper.
GetSegmentSize
<T>() - 1) >> SegmentedArrayHelper.GetSegmentShift<T>();
162
Array.Resize(ref segments[i], SegmentedArrayHelper.
GetSegmentSize
<T>());