MCPcopy Create free account
hub / github.com/ValveSoftware/Proton / isInt64

Method isInt64

vrclient_x64/jsoncpp.cpp:3734–3752  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3732}
3733
3734bool Value::isInt64() const {
3735#if defined(JSON_HAS_INT64)
3736 switch (type_) {
3737 case intValue:
3738 return true;
3739 case uintValue:
3740 return value_.uint_ <= UInt64(maxInt64);
3741 case realValue:
3742 // Note that maxInt64 (= 2^63 - 1) is not exactly representable as a
3743 // double, so double(maxInt64) will be rounded up to 2^63. Therefore we
3744 // require the value to be strictly less than the limit.
3745 return value_.real_ >= double(minInt64) &&
3746 value_.real_ < double(maxInt64) && IsIntegral(value_.real_);
3747 default:
3748 break;
3749 }
3750#endif // JSON_HAS_INT64
3751 return false;
3752}
3753
3754bool Value::isUInt64() const {
3755#if defined(JSON_HAS_INT64)

Callers

nothing calls this directly

Calls 1

IsIntegralFunction · 0.85

Tested by

no test coverage detected