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

◆ MoveNextSlowPath()

bool System.Linq.Parallel.PartitionedDataSource< T >.ArrayIndexRangeEnumerator.MoveNextSlowPath ( )
inlineprivate

Definition at line 68 of file PartitionedDataSource.cs.

69 {
70 Mutables mutables = _mutables;
71 int num = ++mutables._currentSection;
72 int num2 = _sectionCount - num;
73 if (num2 <= 0)
74 {
75 return false;
76 }
78 mutables._currentPositionInChunk = 0;
79 if (num2 > 1)
80 {
81 mutables._currentChunkSize = _maxChunkSize;
82 mutables._currentChunkOffset = num3 + _partitionIndex * _maxChunkSize;
83 }
84 else
85 {
86 int num4 = _elementCount - num3;
89 mutables._currentChunkSize = num5;
91 {
92 mutables._currentChunkSize++;
93 }
94 if (mutables._currentChunkSize == 0)
95 {
96 return false;
97 }
98 mutables._currentChunkOffset = num3 + _partitionIndex * num5 + ((_partitionIndex < num6) ? _partitionIndex : num6);
99 }
100 return true;
101 }

References System.Linq.Parallel.PartitionedDataSource< T >.ArrayIndexRangeEnumerator._elementCount, System.Linq.Parallel.PartitionedDataSource< T >.ArrayIndexRangeEnumerator._maxChunkSize, System.Linq.Parallel.PartitionedDataSource< T >.ArrayIndexRangeEnumerator._mutables, System.Linq.Parallel.PartitionedDataSource< T >.ArrayIndexRangeEnumerator._partitionCount, System.Linq.Parallel.PartitionedDataSource< T >.ArrayIndexRangeEnumerator._partitionIndex, and System.Linq.Parallel.PartitionedDataSource< T >.ArrayIndexRangeEnumerator._sectionCount.

Referenced by System.Linq.Parallel.PartitionedDataSource< T >.ArrayIndexRangeEnumerator.MoveNext().