MCPcopy Create free account
hub / github.com/apache/qpid-proton / print_hex

Function print_hex

cpp/src/byte_array.cpp:31–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29namespace internal {
30
31void 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}}

Callers 1

byte_arrayClass · 0.85

Calls 1

printable_byteFunction · 0.85

Tested by

no test coverage detected