7 static const char characters[] =
"0123456789ABCDEF";
10 std::string ret(input.size() * 2, 0);
13 auto buf =
const_cast<char*
>(ret.data());
15 for (
const auto& oneInputByte : input) {
16 *
buf++ = characters[oneInputByte >> 4];
17 *
buf++ = characters[oneInputByte & 0x0F];