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

Function uint256S

src/uint256.h:141–146  ·  view source on GitHub ↗

uint256 from const char *. * This is a separate function because the constructor uint256(const char*) can result * in dangerously catching uint256(0). */

Source from the content-addressed store, hash-verified

139 * in dangerously catching uint256(0).
140 */
141inline uint256 uint256S(const char *str)
142{
143 uint256 rv;
144 rv.SetHex(str);
145 return rv;
146}
147/* uint256 from std::string.
148 * This is a separate function because the constructor uint256(const std::string &str) can result
149 * in dangerously catching uint256(0) via std::string(const char*).

Callers 15

MutateTxAddOutAddrFunction · 0.85
ReadPAKListMethod · 0.85
WritePAKListMethod · 0.85
SetHexMethod · 0.85
GetAssetFromStringFunction · 0.85
AppInitMainFunction · 0.85
ConnectBlockMethod · 0.85
CMainParamsMethod · 0.85
CTestNetParamsMethod · 0.85
SigNetParamsMethod · 0.85
CRegTestParamsMethod · 0.85

Calls 1

SetHexMethod · 0.45

Tested by 15

BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
AssetTestFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
FUZZ_TARGETFunction · 0.68