MySQL 8.0.39
Source Code Documentation
|
Namespaces | |
namespace | anonymous_namespace{my_hex_tools.cc} |
Functions | |
unsigned long | unhex_string (const char *first, const char *last, char *output) |
Convert hex string to byte array. More... | |
unsigned long | hex_string (char *to, const char *from, unsigned long length) |
Convert byte array to hex string. More... | |
Variables | |
constexpr const int | anonymous_namespace{my_hex_tools.cc}::lookup_unhex_high [256] |
constexpr const int | anonymous_namespace{my_hex_tools.cc}::lookup_unhex_low [256] |
const char | anonymous_namespace{my_hex_tools.cc}::_dig_vec_upper [] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" |
unsigned long hex_string | ( | char * | to, |
const char * | from, | ||
unsigned long | length | ||
) |
Convert byte array to hex string.
[out] | to | Output buffer |
[in] | from | Input byte array |
[in] | length | Length of input |
unsigned long unhex_string | ( | const char * | first, |
const char * | last, | ||
char * | output | ||
) |
Convert hex string to byte array.
[in] | first | Pointer to first element of range to convert |
[in] | last | Pointer to one-after-last element of range to convert |
[out] | output | Beginning of destination range. |