Monero
Static Public Member Functions | Static Private Member Functions | List of all members
epee::to_hex Struct Reference

#include <hex.h>

Static Public Member Functions

static std::string string (const span< const std::uint8_t > 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)
 
template<std::size_t N>
static std::array< char, N *2 > array (const std::array< std::uint8_t, N > &src) noexcept
 
template<typename T >
static std::array< char, sizeof(T) *2 > array (const T &src) noexcept
 
static void buffer (std::ostream &out, const span< const std::uint8_t > src)
 Append src as hex to out. More...
 
static void formatted (std::ostream &out, const span< const std::uint8_t > src)
 Append < + src + > as hex to out. More...
 

Static Private Member Functions

template<typename T >
static T convert (const span< const std::uint8_t > src)
 
static void buffer_unchecked (char *out, const span< const std::uint8_t > src) noexcept
 Write src bytes as hex to out. out must be twice the length. More...
 

Member Function Documentation

◆ array() [1/2]

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.

◆ array() [2/2]

template<typename T >
static std::array<char, sizeof(T) * 2> epee::to_hex::array ( const T src)
inlinestaticnoexcept
Returns
An array containing hex of src.

◆ buffer()

void epee::to_hex::buffer ( std::ostream &  out,
const span< const std::uint8_t src 
)
static

Append src as hex to out.

◆ buffer_unchecked()

void epee::to_hex::buffer_unchecked ( char *  out,
const span< const std::uint8_t src 
)
staticprivatenoexcept

Write src bytes as hex to out. out must be twice the length.

◆ convert()

template<typename T >
T epee::to_hex::convert ( const span< const std::uint8_t src)
staticprivate

◆ formatted()

void epee::to_hex::formatted ( std::ostream &  out,
const span< const std::uint8_t src 
)
static

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.

◆ wipeable_string() [1/2]

epee::wipeable_string epee::to_hex::wipeable_string ( const span< const std::uint8_t src)
static
Returns
A epee::wipeable_string containing hex of src.

◆ wipeable_string() [2/2]

template<typename T >
static epee::wipeable_string epee::to_hex::wipeable_string ( const T pod)
inlinestatic

The documentation for this struct was generated from the following files: