#include <hex.h>
Definition at line 43 of file hex.h.
◆ array()
template<std::size_t N>
| std::array< char, N *2 > epee::to_hex::array |
( |
const std::array< std::uint8_t, N > & | src | ) |
|
|
inlinestaticnoexcept |
- Returns
- An array containing hex of src.
Definition at line 53 of file hex.h.
54 {
55 std::array<char, N * 2>
out{{}};
56 static_assert(N <= 128, "keep the stack size down");
57 buffer_unchecked(
out.data(), {src.data(), src.size()});
59 }
◆ buffer()
| void epee::to_hex::buffer |
( |
std::ostream & | out, |
|
|
const span< const std::uint8_t > | src ) |
|
static |
Append src as hex to out.
Definition at line 71 of file hex.cpp.
72 {
73 write_hex(std::ostreambuf_iterator<char>{
out}, src);
74 }
◆ formatted()
| void epee::to_hex::formatted |
( |
std::ostream & | out, |
|
|
const span< const std::uint8_t > | src ) |
|
static |
Append < + src + > as hex to out.
Definition at line 76 of file hex.cpp.
77 {
81 }
static void buffer(std::ostream &out, const span< const std::uint8_t > src)
Append src as hex to out.
◆ string()
| std::string epee::to_hex::string |
( |
const span< const std::uint8_t > | src | ) |
|
|
static |
- Returns
- A std::string containing hex of src.
Definition at line 68 of file hex.cpp.
68{ return convert<std::string>(src); }
◆ wipeable_string() [1/2]
◆ wipeable_string() [2/2]
Definition at line 49 of file hex.h.
static epee::wipeable_string wipeable_string(const span< const std::uint8_t > src)
The documentation for this struct was generated from the following files:
- /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/contrib/epee/include/hex.h
- /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/contrib/epee/src/hex.cpp