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

Function ArrayToString

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

Source from the content-addressed store, hash-verified

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

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.70

Calls 1

strMethod · 0.80

Tested by

no test coverage detected