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

◆ Equals() [5/5]

bool System.Numerics.BigInteger.Equals ( ulong other)
inline

Definition at line 915 of file BigInteger.cs.

916 {
917 if (_sign < 0)
918 {
919 return false;
920 }
921 if (_bits == null)
922 {
923 return (ulong)_sign == other;
924 }
925 int num = _bits.Length;
926 if (num > 2)
927 {
928 return false;
929 }
930 if (num == 1)
931 {
932 return _bits[0] == other;
933 }
934 return NumericsHelpers.MakeUlong(_bits[1], _bits[0]) == other;
935 }
readonly uint[] _bits
Definition BigInteger.cs:20

References System.Numerics.BigInteger._bits, System.Numerics.BigInteger._sign, System.Numerics.NumericsHelpers.MakeUlong(), and System.other.