OpenVPN 3 Core Library
Loading...
Searching...
No Matches
hexstr.hpp File Reference
#include <string>
#include <iomanip>
#include <sstream>
#include <algorithm>
#include <openvpn/common/clamp_typerange.hpp>
#include <openvpn/common/exception.hpp>
#include <openvpn/common/string.hpp>
Include dependency graph for hexstr.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  openvpn::RenderHexByte
 

Namespaces

namespace  openvpn
 

Functions

char openvpn::render_hex_char (const int c, const bool caps=false)
 
int openvpn::parse_hex_char (const int c)
 
std::string openvpn::render_hex (const unsigned char *data, size_t size, const bool caps=false)
 
std::string openvpn::render_hex (const void *data, const size_t size, const bool caps=false)
 
std::string openvpn::render_hex_sep (const unsigned char *data, size_t size, const char sep, const bool caps=false)
 
std::string openvpn::render_hex_sep (const void *data, const size_t size, const char sep, const bool caps=false)
 
template<typename V >
std::string openvpn::render_hex_generic (const V &data, const bool caps=false)
 
std::string openvpn::dump_hex (const unsigned char *data, size_t size)
 
std::string openvpn::dump_hex (void *data, size_t size)
 
std::string openvpn::dump_hex (const std::string &str)
 
template<typename V >
std::string openvpn::dump_hex (const V &data)
 
 openvpn::OPENVPN_SIMPLE_EXCEPTION (parse_hex_error)
 
template<typename V >
void openvpn::parse_hex (V &dest, const std::string &str)
 
template<typename T >
bool openvpn::parse_hex_number (const char *str, T &retval)
 
template<typename T >
bool openvpn::parse_hex_number (const std::string &str, T &retval)
 
template<typename T >
openvpn::parse_hex_number (const std::string &str)
 
template<typename T >
std::string openvpn::render_hex_number (T value, const bool caps=false)
 
std::string openvpn::render_hex_number (unsigned char uc, const bool caps=false)