MCPcopy Create free account
hub / github.com/ElementsProject/elements / get_int

Method get_int

src/univalue/lib/univalue_get.cpp:105–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105int UniValue::get_int() const
106{
107 if (typ != VNUM)
108 throw std::runtime_error("JSON value is not an integer as expected");
109 int32_t retval;
110 if (!ParseInt32(getValStr(), &retval))
111 throw std::runtime_error("JSON integer out of range");
112 return retval;
113}
114
115int64_t UniValue::get_int64() const
116{

Callers 15

CBanEntryMethod · 0.80
BanMapFromJsonFunction · 0.80
MutateTxSignFunction · 0.80
JSONErrorReplyFunction · 0.80
ProcessReplyMethod · 0.80
ConnectAndCallRPCFunction · 0.80
ParseErrorFunction · 0.80
MainchainRPCCheckFunction · 0.80
addmultisigaddressFunction · 0.80
keypoolrefillFunction · 0.80
dumpissuanceblindingkeyFunction · 0.80

Calls 1

ParseInt32Function · 0.70

Tested by 7

BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64