Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
hex.h File Reference
#include <stdint.h>
#include <string>
#include <vector>
+ Include dependency graph for hex.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::string hexToText (const uint8_t *buf, size_t buf_len, bool add_colons=false, bool add_0x=false)
std::string hexToText (const std::vector< uint8_t > &vector, bool add_colons=false, bool add_0x=false)
std::vector< uint8_t > textToHex (std::string buf)

Function Documentation

std::string hexToText ( const uint8_t *  buf,
size_t  buf_len,
bool  add_colons = false,
bool  add_0x = false 
)
std::string hexToText ( const std::vector< uint8_t > &  vector,
bool  add_colons = false,
bool  add_0x = false 
)
std::vector<uint8_t> textToHex ( std::string  buf)