MCPcopy Create free account
hub / github.com/ComodoSecurity/openedr / isInt64

Method isInt64

edrav2/eprj/jsoncpp/src/lib_json/json_value.cpp:1400–1418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1398}
1399
1400bool Value::isInt64() const {
1401#if defined(JSON_HAS_INT64)
1402 switch (type_) {
1403 case intValue:
1404 return true;
1405 case uintValue:
1406 return value_.uint_ <= UInt64(maxInt64);
1407 case realValue:
1408 // Note that maxInt64 (= 2^63 - 1) is not exactly representable as a
1409 // double, so double(maxInt64) will be rounded up to 2^63. Therefore we
1410 // require the value to be strictly less than the limit.
1411 return value_.real_ >= double(minInt64) &&
1412 value_.real_ < double(maxInt64) && IsIntegral(value_.real_);
1413 default:
1414 break;
1415 }
1416#endif // JSON_HAS_INT64
1417 return false;
1418}
1419
1420bool Value::isUInt64() const {
1421#if defined(JSON_HAS_INT64)

Callers 1

checkIsMethod · 0.80

Calls 1

IsIntegralFunction · 0.85

Tested by

no test coverage detected