MCPcopy Create free account
hub / github.com/dobin/RedEdr / write_hex_digit

Function write_hex_digit

RedEdrShared/loguru.cpp:552–557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

550 static void install_signal_handlers(const SignalOptions& signal_options);
551
552 static void write_hex_digit(std::string& out, unsigned num)
553 {
554 DCHECK_LT_F(num, 16u);
555 if (num < 10u) { out.push_back(char('0' + num)); }
556 else { out.push_back(char('A' + num - 10)); }
557 }
558
559 static void write_hex_byte(std::string& out, uint8_t n)
560 {

Callers 2

write_hex_byteFunction · 0.85
ec_to_textFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected