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

Function ArrayToString

src/test/uint256_tests.cpp:55–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53const uint256 HalfL = (OneL << 255);
54const uint160 HalfS = (OneS << 159);
55std::string ArrayToString(const unsigned char A[], unsigned int width)
56{
57 std::stringstream Stream;
58 Stream << std::hex;
59 for (unsigned int i = 0; i < width; ++i)
60 {
61 Stream<<std::setw(2)<<std::setfill('0')<<(unsigned int)A[width-i-1];
62 }
63 return Stream.str();
64}
65
66BOOST_AUTO_TEST_CASE( basics ) // constructors, equality, inequality
67{

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.70

Calls 1

strMethod · 0.80

Tested by

no test coverage detected