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

◆ CompareValueTo()

override int System.Data.Common.BigIntegerStorage.CompareValueTo ( int recordNo,
object value )
inline

Definition at line 37 of file BigIntegerStorage.cs.

38 {
39 if (_nullValue == value)
40 {
41 if (!HasValue(recordNo))
42 {
43 return 0;
44 }
45 return 1;
46 }
47 BigInteger bigInteger = _values[recordNo];
48 if (bigInteger.IsZero && !HasValue(recordNo))
49 {
50 return -1;
51 }
52 return bigInteger.CompareTo((BigInteger)value);
53 }
bool HasValue(int recordNo)
int CompareTo(long other)

References System.Data.Common.DataStorage._nullValue, System.Data.Common.BigIntegerStorage._values, System.Numerics.BigInteger.CompareTo(), System.Data.Common.DataStorage.HasValue(), System.Numerics.BigInteger.IsZero, and System.value.