MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / GetHex

Method GetHex

src/uint256.cpp:11–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10template <unsigned int BITS>
11std::string base_blob<BITS>::GetHex() const
12{
13 uint8_t m_data_rev[WIDTH];
14 for (int i = 0; i < WIDTH; ++i) {
15 m_data_rev[i] = m_data[WIDTH - 1 - i];
16 }
17 return HexStr(m_data_rev);
18}
19
20template <unsigned int BITS>
21std::string base_blob<BITS>::ToString() const

Callers 10

rest_filter_headerFunction · 0.45
rest_getutxosFunction · 0.45
rest_blockhash_by_heightFunction · 0.45
OutputTxHashFunction · 0.45
RemoveUnbroadcastTxMethod · 0.45
SetupServerArgsFunction · 0.45
AppInitMainFunction · 0.45
TxToUnivFunction · 0.45
CalculatePrevHeightsFunction · 0.45

Calls 1

HexStrFunction · 0.50

Tested by

no test coverage detected