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

Method isUInt64

vrclient_x64/jsoncpp.cpp:3754–3772  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3752}
3753
3754bool Value::isUInt64() const {
3755#if defined(JSON_HAS_INT64)
3756 switch (type_) {
3757 case intValue:
3758 return value_.int_ >= 0;
3759 case uintValue:
3760 return true;
3761 case realValue:
3762 // Note that maxUInt64 (= 2^64 - 1) is not exactly representable as a
3763 // double, so double(maxUInt64) will be rounded up to 2^64. Therefore we
3764 // require the value to be strictly less than the limit.
3765 return value_.real_ >= 0 && value_.real_ < maxUInt64AsDouble &&
3766 IsIntegral(value_.real_);
3767 default:
3768 break;
3769 }
3770#endif // JSON_HAS_INT64
3771 return false;
3772}
3773
3774bool Value::isIntegral() const {
3775#if defined(JSON_HAS_INT64)

Callers

nothing calls this directly

Calls 1

IsIntegralFunction · 0.85

Tested by

no test coverage detected