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

◆ Compare()

override int System.Data.Common.BigIntegerStorage.Compare ( int recordNo1,
int recordNo2 )
inline

Definition at line 22 of file BigIntegerStorage.cs.

23 {
24 BigInteger bigInteger = _values[recordNo1];
25 BigInteger other = _values[recordNo2];
26 if (bigInteger.IsZero || other.IsZero)
27 {
28 int num = CompareBits(recordNo1, recordNo2);
29 if (num != 0)
30 {
31 return num;
32 }
33 }
34 return bigInteger.CompareTo(other);
35 }
int CompareBits(int recordNo1, int recordNo2)
int CompareTo(long other)

References System.Data.Common.BigIntegerStorage._values, System.Data.Common.DataStorage.CompareBits(), System.Numerics.BigInteger.CompareTo(), System.Numerics.BigInteger.IsZero, and System.other.