MCPcopy Create free account
hub / github.com/LUX-Core/lux / ValueString

Function ValueString

src/script/script.cpp:17–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15
16namespace {
17inline std::string ValueString(const std::vector<unsigned char>& vch)
18{
19 if (vch.size() <= 4)
20 return strprintf("%d", CScriptNum(vch, false).getint());
21 else
22 return HexStr(vch);
23}
24} // anon namespace
25
26using namespace std;

Callers 1

ToStringMethod · 0.85

Calls 4

HexStrFunction · 0.85
CScriptNumClass · 0.70
sizeMethod · 0.45
getintMethod · 0.45

Tested by

no test coverage detected