MCPcopy Create free account
hub / github.com/Icinga/icinga2 / HexEncode

Function HexEncode

lib/base/utility.cpp:1542–1548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1540}
1541
1542static void HexEncode(char ch, std::ostream& os)
1543{
1544 const char *hex_chars = "0123456789ABCDEF";
1545
1546 os << hex_chars[ch >> 4 & 0x0f];
1547 os << hex_chars[ch & 0x0f];
1548}
1549
1550static int HexDecode(char hc)
1551{

Callers 1

EscapeStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected