aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/hex.h
diff options
context:
space:
mode:
authorLee *!* Clagett <code@leeclagett.com>2023-05-21 13:41:27 -0400
committerLee *!* Clagett <code@leeclagett.com>2023-05-22 13:36:05 -0400
commiteb943562cba9612709e592db279d270b916c0b66 (patch)
treeffbc8c328b0186ebe2dfc219d098d1855ac55c26 /contrib/epee/include/hex.h
parentMerge pull request #8842 (diff)
downloadmonero-eb943562cba9612709e592db279d270b916c0b66.tar.xz
Add to_hex::buffer
Diffstat (limited to 'contrib/epee/include/hex.h')
-rw-r--r--contrib/epee/include/hex.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/epee/include/hex.h b/contrib/epee/include/hex.h
index d9eb93d51..d27c127c1 100644
--- a/contrib/epee/include/hex.h
+++ b/contrib/epee/include/hex.h
@@ -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);