MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / isInt64

Method isInt64

json/jsoncpp.cpp:3840–3858  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3838}
3839
3840bool Value::isInt64() const {
3841#if defined(JSON_HAS_INT64)
3842 switch (type_) {
3843 case intValue:
3844 return true;
3845 case uintValue:
3846 return value_.uint_ <= UInt64(maxInt64);
3847 case realValue:
3848 // Note that maxInt64 (= 2^63 - 1) is not exactly representable as a
3849 // double, so double(maxInt64) will be rounded up to 2^63. Therefore we
3850 // require the value to be strictly less than the limit.
3851 return value_.real_ >= double(minInt64) &&
3852 value_.real_ < double(maxInt64) && IsIntegral(value_.real_);
3853 default:
3854 break;
3855 }
3856#endif // JSON_HAS_INT64
3857 return false;
3858}
3859
3860bool Value::isUInt64() const {
3861#if defined(JSON_HAS_INT64)

Callers

nothing calls this directly

Calls 1

IsIntegralFunction · 0.85

Tested by

no test coverage detected