MySQL 8.4.0
Source Code Documentation
unhex.cc File Reference
#include <cstddef>
#include <cstdint>

Namespaces

namespace  anonymous_namespace{unhex.cc}
 

Functions

bool unhex (const char *first, const char *last, char *output)
 Convert hex string to byte array. More...
 

Variables

constexpr const int anonymous_namespace{unhex.cc}::lookup_unhex_high [256]
 
constexpr const int anonymous_namespace{unhex.cc}::lookup_unhex_low [256]
 

Function Documentation

◆ unhex()

bool unhex ( const char *  first,
const char *  last,
char *  output 
)

Convert hex string to byte array.

Parameters
firstPointer to first element of range to convert
lastPointer to one-after-last element of range to convert
outputBeginning of destination range.
Returns
false if conversion succeed.