| 29 | namespace internal { |
| 30 | |
| 31 | void print_hex(std::ostream& o, const uint8_t* p, size_t n) { |
| 32 | ios_guard restore_flags(o); |
| 33 | o << "0x" << std::hex << std::setfill('0'); |
| 34 | for (size_t i = 0; i < n; ++i) { |
| 35 | o << std::setw(2) << printable_byte(p[i]); |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | }} |
no test coverage detected