34 std::string
encodeHex(
const std::vector<uint8_t>& binary);
47 void decodeHex(
const std::string& input, std::vector<uint8_t>& result);
53 inline std::string
toHex(std::string value) {
54 std::vector<uint8_t> bin(value.begin(), value.end());
void decodeHex(const string &input, vector< uint8_t > &result)
Decode a text encoded in the base16 ('hex') format into the original data.
Defines the logger used by the top-level component of kea-dhcp-ddns.
string encodeHex(const vector< uint8_t > &binary)
Encode binary data in the base16 ('hex') format.
std::string toHex(std::string value)
Encode in hexadecimal inline.