diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-03-05 16:21:30 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-03-05 16:21:30 +0200 |
commit | 5bbbe3902b4ee77ca1eb23edc0b5495812353b1f (patch) | |
tree | 16ab3b2aedec9e6b68ee8254434fbb937ecb37f3 /contrib/epee/include/hex.h | |
parent | Merge pull request #5119 (diff) | |
parent | epee: add SSL support (diff) | |
download | monero-5bbbe3902b4ee77ca1eb23edc0b5495812353b1f.tar.xz |
Merge pull request #4852
057c279c epee: add SSL support (Martijn Otto)
Diffstat (limited to '')
-rw-r--r-- | contrib/epee/include/hex.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/epee/include/hex.h b/contrib/epee/include/hex.h index 901c666a9..250432173 100644 --- a/contrib/epee/include/hex.h +++ b/contrib/epee/include/hex.h @@ -32,6 +32,7 @@ #include <cstdint> #include <iosfwd> #include <string> +#include <boost/utility/string_ref.hpp> #include "wipeable_string.h" #include "span.h" @@ -68,4 +69,10 @@ namespace epee //! Write `src` bytes as hex to `out`. `out` must be twice the length static void buffer_unchecked(char* out, const span<const std::uint8_t> src) noexcept; }; + + struct from_hex + { + //! \return An std::vector of unsigned integers from the `src` + static std::vector<uint8_t> vector(boost::string_ref src); + }; } |