aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/hex.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-08-27 08:43:56 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-09-12 09:26:09 +0000
commit07ec748c8245b42de0ec9964b2f0062c0034f2f8 (patch)
tree7e7cd85956f83c779f63afc2b6ecddbefbb30fd1 /contrib/epee/include/hex.h
parentMerge pull request #4223 (diff)
downloadmonero-07ec748c8245b42de0ec9964b2f0062c0034f2f8.tar.xz
wipeable_string: add hex_to_pod function
Diffstat (limited to 'contrib/epee/include/hex.h')
-rw-r--r--contrib/epee/include/hex.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/epee/include/hex.h b/contrib/epee/include/hex.h
index 02600c320..901c666a9 100644
--- a/contrib/epee/include/hex.h
+++ b/contrib/epee/include/hex.h
@@ -44,6 +44,7 @@ namespace epee
static std::string string(const span<const std::uint8_t> src);
//! \return A epee::wipeable_string containing hex of `src`.
static epee::wipeable_string wipeable_string(const span<const std::uint8_t> src);
+ template<typename T> static epee::wipeable_string wipeable_string(const T &pod) { return wipeable_string(span<const uint8_t>((const uint8_t*)&pod, sizeof(pod))); }
//! \return An array containing hex of `src`.
template<std::size_t N>