20std::string encode(std::span<const uint8_t> input,
bool newlines)
24 auto len = input.size();
26 if (newlines && !ret.empty()) ret +=
'\n';
27 auto t = int(std::min<size_t>(16, len));
29 ret += encode(input[in++]);
30 if (i != (
t - 1)) ret +=
' ';