MCPcopy Create free account
hub / github.com/bcndev/bytecoin / get_integer

Method get_integer

src/common/JsonValue.cpp:533–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531 }
532}
533JsonValue::Integer JsonValue::get_integer() const {
534 if (type != NUMBER)
535 throw std::runtime_error("JsonValue type is not NUMBER");
536 const auto &s = reinterpret_cast<const String &>(value_string);
537 // return get_integer_impl<JsonValue::Integer>(s, -9223372036854775808.0, 9223372036854775808.0);
538 return get_integer_impl2<JsonValue::Integer>(s);
539}
540
541JsonValue::Unsigned JsonValue::get_unsigned() const {
542 if (type != NUMBER)

Callers 2

seria_vMethod · 0.80
test_jsonFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_jsonFunction · 0.64