17 references to GetSegmentSize
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (17)
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\SegmentedDictionary`2.cs (2)
675
var newSegmentCount = (newSize + SegmentedArrayHelper.
GetSegmentSize
<Entry>() - 1) >> SegmentedArrayHelper.GetSegmentShift<Entry>();
683
Array.Resize(ref segments[i], SegmentedArrayHelper.
GetSegmentSize
<Entry>());
src\Dependencies\Collections\SegmentedHashSet`1.cs (2)
929
var newSegmentCount = (newSize + SegmentedArrayHelper.
GetSegmentSize
<Entry>() - 1) >> SegmentedArrayHelper.GetSegmentShift<Entry>();
937
Array.Resize(ref segments[i], SegmentedArrayHelper.
GetSegmentSize
<Entry>());
src\Dependencies\Collections\SegmentedList`1.cs (9)
161
var newSegmentCount = (newSize + SegmentedArrayHelper.
GetSegmentSize
<T>() - 1) >> SegmentedArrayHelper.GetSegmentShift<T>();
169
Array.Resize(ref segments[i], SegmentedArrayHelper.
GetSegmentSize
<T>());
522
if (_items.Length < SegmentedArrayHelper.
GetSegmentSize
<T>() / 2)
528
else if (_items.Length < SegmentedArrayHelper.
GetSegmentSize
<T>())
531
newCapacity = SegmentedArrayHelper.
GetSegmentSize
<T>();
543
var oldSegmentCount = (_items.Length + SegmentedArrayHelper.
GetSegmentSize
<T>() - 1) >> SegmentedArrayHelper.GetSegmentShift<T>();
546
newCapacity = SegmentedArrayHelper.
GetSegmentSize
<T>() * newSegmentCount;
555
if (newCapacity > SegmentedArrayHelper.
GetSegmentSize
<T>())
560
newCapacity = (newCapacity - lastSegmentLength) + SegmentedArrayHelper.
GetSegmentSize
<T>();