6 references to GetSegmentSize
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (6)
src\Dependencies\Collections\SegmentedArray.cs (3)
503var 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)
37return SegmentedArrayHelper.GetSegmentSize<T>();
src\Dependencies\Collections\SegmentedList`1.cs (2)
154var newSegmentCount = (value + SegmentedArrayHelper.GetSegmentSize<T>() - 1) >> SegmentedArrayHelper.GetSegmentShift<T>(); 162Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<T>());