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

◆ FitsInBucket()

static bool System.Linq.Expressions.Compiler.LambdaCompiler.FitsInBucket ( List< SwitchLabel > buckets,
decimal key,
int count )
inlinestaticprivate

Definition at line 3015 of file LambdaCompiler.cs.

3016 {
3017 decimal num = key - buckets[0].Key + 1m;
3018 if (num > 2147483647m)
3019 {
3020 return false;
3021 }
3022 return (decimal)((buckets.Count + count) * 2) > num;
3023 }

References System.Linq.count, and System.key.

Referenced by System.Linq.Expressions.Compiler.LambdaCompiler.AddToBuckets(), and System.Linq.Expressions.Compiler.LambdaCompiler.MergeBuckets().