11 references to GetOffsetMask
Microsoft.CodeAnalysis.CodeStyle (11)
src\Dependencies\Collections\SegmentedArray.cs (8)
488
var offset = _firstOffset & SegmentedArrayHelper.
GetOffsetMask
<T>();
489
Debug.Assert(offset == (_secondOffset & SegmentedArrayHelper.
GetOffsetMask
<T>()), "Aligned views must start at the same segment offset");
591
var firstOffset = (_completed + _firstOffset) & SegmentedArrayHelper.
GetOffsetMask
<T>();
592
var secondOffset = (_completed + _secondOffset) & SegmentedArrayHelper.
GetOffsetMask
<T>();
639
var firstOffset = (_firstOffset + _length - _completed - 1) & SegmentedArrayHelper.
GetOffsetMask
<T>();
640
var secondOffset = (_secondOffset + _length - _completed - 1) & SegmentedArrayHelper.
GetOffsetMask
<T>();
732
var offset = _offset & SegmentedArrayHelper.
GetOffsetMask
<T>();
781
var offset = _offset & SegmentedArrayHelper.
GetOffsetMask
<T>();
src\Dependencies\Collections\SegmentedArray`1.cs (1)
59
return SegmentedArrayHelper.
GetOffsetMask
<T>();
src\Dependencies\Collections\SegmentedList`1.cs (2)
536
if (0 == (_items.Length & SegmentedArrayHelper.
GetOffsetMask
<T>()))
558
var lastSegmentLength = newCapacity & SegmentedArrayHelper.
GetOffsetMask
<T>();