12345678910111213141516171819202122232425262728293031323334 |
- #ifndef BOOST_MYSQL_IMPL_INTERNAL_BYTE_TO_HEX_HPP
- #define BOOST_MYSQL_IMPL_INTERNAL_BYTE_TO_HEX_HPP
- #include <boost/config.hpp>
- namespace boost {
- namespace mysql {
- namespace detail {
- BOOST_INLINE_CONSTEXPR char byte_to_hex_table[16] =
- {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
- inline char* byte_to_hex(unsigned char byte, char* it)
- {
- *it++ = byte_to_hex_table[(byte & ~15) >> 4];
- *it++ = byte_to_hex_table[byte & 15];
- return it;
- }
- }
- }
- }
- #endif
|