14 references to SetCountAndGetSpan
System.Linq (14)
System\Linq\AppendPrepend.SpeedOpt.cs (2)
262_prepended?.Fill(SetCountAndGetSpan(list, _prependCount)); 266_appended?.FillReversed(SetCountAndGetSpan(list, list.Count + _appendCount));
System\Linq\Lookup.cs (1)
160Span<TResult> span = Enumerable.SetCountAndGetSpan(list, _count);
System\Linq\OrderedEnumerable.SpeedOpt.cs (2)
35Fill(buffer, SetCountAndGetSpan(list, buffer.Length)); 108Fill(minIdx, maxIdx, buffer, SetCountAndGetSpan(list, maxIdx - minIdx + 1));
System\Linq\Range.SpeedOpt.cs (1)
29FillIncrementing(SetCountAndGetSpan(list, end - start), start);
System\Linq\Repeat.SpeedOpt.cs (1)
27SetCountAndGetSpan(list, _count).Fill(_current);
System\Linq\Select.SpeedOpt.cs (6)
158Fill(source, SetCountAndGetSpan(results, source.Length), _selector); 284Fill(SetCountAndGetSpan(results, _end - _start), _start, _selector); 384Fill(source, SetCountAndGetSpan(results, source.Length), _selector); 487Fill(source, SetCountAndGetSpan(results, count), _selector); 738Fill(_source, SetCountAndGetSpan(list, count), _selector); 915Fill(_source, SetCountAndGetSpan(list, count), _selector, _minIndexInclusive);
System\Linq\SkipTake.SpeedOpt.cs (1)
140Fill(_source, SetCountAndGetSpan(list, count), _minIndexInclusive);