Merge pull request #8870

eb94356 Add to_hex::buffer (Lee *!* Clagett)
This commit is contained in:
luigi1111
2023-06-27 11:45:48 -05:00
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);