Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Create() [1/4]

static OrderablePartitioner< Tuple< int, int > > System.Collections.Concurrent.Partitioner< TSource >.Create ( int fromInclusive,
int toExclusive )
inlinestaticinherited

Definition at line 868 of file Partitioner.cs.

869 {
871 {
872 throw new ArgumentOutOfRangeException("toExclusive");
873 }
874 long num = (long)toExclusive - (long)fromInclusive;
875 int num2 = (int)(num / (Environment.ProcessorCount * 3));
876 if (num2 == 0)
877 {
878 num2 = 1;
879 }
881 }
static OrderablePartitioner< Tuple< long, long > > Create(long fromInclusive, long toExclusive)
static IEnumerable< Tuple< long, long > > CreateRanges(long fromInclusive, long toExclusive, long rangeSize)

References System.Collections.Concurrent.Partitioner< TSource >.Create(), System.Collections.Concurrent.Partitioner< TSource >.CreateRanges(), and System.Environment.ProcessorCount.