1 #ifndef _library__bintohex__hpp__included__
2 #define _library__bintohex__hpp__included__
9 * Transform binary data into hex string.
11 * Parameter data: The data to transform.
12 * Parameter datalen: Number of bytes of data.
13 * Returns: Hex string.
14 * Throws std::bad_alloc: Not enough memory.
16 std::string
binary_to_hex(const uint8_t* data
, size_t datalen
) throw(std::bad_alloc
);