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

Method isUInt

json/jsoncpp.cpp:3817–3838  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3815}
3816
3817bool Value::isUInt() const {
3818 switch (type_) {
3819 case intValue:
3820#if defined(JSON_HAS_INT64)
3821 return value_.int_ >= 0 && LargestUInt(value_.int_) <= LargestUInt(maxUInt);
3822#else
3823 return value_.int_ >= 0;
3824#endif
3825 case uintValue:
3826#if defined(JSON_HAS_INT64)
3827 return value_.uint_ <= maxUInt;
3828#else
3829 return true;
3830#endif
3831 case realValue:
3832 return value_.real_ >= 0 && value_.real_ <= maxUInt &&
3833 IsIntegral(value_.real_);
3834 default:
3835 break;
3836 }
3837 return false;
3838}
3839
3840bool Value::isInt64() const {
3841#if defined(JSON_HAS_INT64)

Callers

nothing calls this directly

Calls 1

IsIntegralFunction · 0.85

Tested by

no test coverage detected