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