MCPcopy Create free account
hub / github.com/Bitcoin-ABC/bitcoin-abc / ArrayToString

Function ArrayToString

src/test/uint256_tests.cpp:52–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50const uint160 MaxS = uint160(std::vector<uint8_t>(MaxArray, MaxArray + 20));
51
52static std::string ArrayToString(const uint8_t A[], unsigned int width) {
53 std::stringstream Stream;
54 Stream << std::hex;
55 for (unsigned int i = 0; i < width; ++i) {
56 Stream << std::setw(2) << std::setfill('0')
57 << (unsigned int)A[width - i - 1];
58 }
59 return Stream.str();
60}
61
62// constructors, equality, inequality
63BOOST_AUTO_TEST_CASE(basics) {

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.70

Calls 1

strMethod · 0.80

Tested by

no test coverage detected