mirror of
https://github.com/monero-project/monero.git
synced 2025-05-20 12:10:26 -04:00
wipeable_string: add hex_to_pod function
This commit is contained in:
parent
91c7d68b2d
commit
07ec748c82
4 changed files with 28 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue