23 std::ostringstream ss;
25 for (
size_t i = 0, e =
data.size(); i != e; ++i) {
27 if (i % 8 == 0 && i != 0)
30 if (i % 64 == 0 && i != 0)
32 ss << static_cast<unsigned>(
data[i]);
38 std::ostringstream ss;
39 ss << std::hex << val;
std::string toHex() const
Convert the data to a hex string.
std::vector< uint8_t > data
std::string toHex(uint32_t val)