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

Method get_int64

src/univalue/lib/univalue_get.cpp:115–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115int64_t UniValue::get_int64() const
116{
117 if (typ != VNUM)
118 throw std::runtime_error("JSON value is not an integer as expected");
119 int64_t retval;
120 if (!ParseInt64(getValStr(), &retval))
121 throw std::runtime_error("JSON integer out of range");
122 return retval;
123}
124
125double UniValue::get_real() const
126{

Callers 15

CBanEntryMethod · 0.80
ProcessReplyMethod · 0.80
IsConfirmedBitcoinBlockFunction · 0.80
GetImportTimestampFunction · 0.80
backup.cppFile · 0.80
walletpassphraseFunction · 0.80
listunspentFunction · 0.80
FundTransactionFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
AssetTestFunction · 0.80
TestFunction · 0.80

Calls 1

ParseInt64Function · 0.70

Tested by 5

BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
AssetTestFunction · 0.64
TestFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64