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

Method isUInt64

json/jsoncpp.cpp:3860–3878  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3858}
3859
3860bool Value::isUInt64() const {
3861#if defined(JSON_HAS_INT64)
3862 switch (type_) {
3863 case intValue:
3864 return value_.int_ >= 0;
3865 case uintValue:
3866 return true;
3867 case realValue:
3868 // Note that maxUInt64 (= 2^64 - 1) is not exactly representable as a
3869 // double, so double(maxUInt64) will be rounded up to 2^64. Therefore we
3870 // require the value to be strictly less than the limit.
3871 return value_.real_ >= 0 && value_.real_ < maxUInt64AsDouble &&
3872 IsIntegral(value_.real_);
3873 default:
3874 break;
3875 }
3876#endif // JSON_HAS_INT64
3877 return false;
3878}
3879
3880bool Value::isIntegral() const {
3881 switch (type_) {

Callers

nothing calls this directly

Calls 1

IsIntegralFunction · 0.85

Tested by

no test coverage detected