Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
CreateRanges()
[1/2]
static
IEnumerable
<
Tuple
< int, int > >
System.Collections.Concurrent.Partitioner
< TSource >.CreateRanges
(
int
fromInclusive
,
int
toExclusive
,
int
rangeSize
)
inline
static
private
inherited
Definition at line
896
of file
Partitioner.cs
.
897
{
898
bool
shouldQuit
=
false
;
899
for
(
int
i =
fromInclusive
;
i
<
toExclusive
;
i
+=
rangeSize
)
900
{
901
if
(
shouldQuit
)
902
{
903
break
;
904
}
905
int
item
=
i
;
906
int
num;
907
try
908
{
909
num =
checked
(i +
rangeSize
);
910
}
911
catch
(OverflowException)
912
{
913
num =
toExclusive
;
914
shouldQuit
=
true
;
915
}
916
if
(num >
toExclusive
)
917
{
918
num =
toExclusive
;
919
}
920
yield
return
new
Tuple<int, int>
(
item
, num);
921
}
922
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Text.RegularExpressions.ExceptionArgument.i
@ i
System.ExceptionArgument.item
@ item
References
System.item
.
System
Collections
Concurrent
Partitioner
StaticIndexRangePartitioner
Generated by
1.10.0