Add to_hex::buffer

This commit is contained in:
Lee *!* Clagett 2023-05-21 13:41:27 -04:00
parent 94e67bf96b
commit eb943562cb
3 changed files with 27 additions and 0 deletions

View file

@ -67,6 +67,9 @@ namespace epee
return out;
}
//! Write `src` as hex to `out`. `out` must be exactly 2x in size.
static bool buffer(span<char> out, const span<const std::uint8_t> src) noexcept;
//! Append `src` as hex to `out`.
static void buffer(std::ostream& out, const span<const std::uint8_t> src);