Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ListQueryResults.cs
Go to the documentation of this file.
2
4
5internal sealed class ListQueryResults<T> : QueryResults<T>
6{
7 private readonly IList<T> _source;
8
9 private readonly int _partitionCount;
10
11 private readonly bool _useStriping;
12
13 internal override bool IsIndexible => true;
14
15 internal override int ElementsCount => _source.Count;
16
23
29
30 internal override T GetElement(int index)
31 {
32 return _source[index];
33 }
34
39}
PartitionedStream< T, int > GetPartitionedStream()
override void GivePartitionedStream(IPartitionedStreamRecipient< T > recipient)
ListQueryResults(IList< T > source, int partitionCount, bool useStriping)