#include <hex.h>
Definition at line 43 of file hex.h.
◆ array()
template<std::size_t N>
| static 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.
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()});
◆ 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.
73 write_hex(std::ostreambuf_iterator<char>{
out}, src);
◆ 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.
static void buffer(std::ostream &out, const span< const std::uint8_t > src)
Append src as hex to out.
◆ string()
- 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.0.0.4/contrib/epee/include/hex.h
- /home/abuild/rpmbuild/BUILD/electroneum-5.0.0.4/contrib/epee/src/hex.cpp