24#ifndef MYSQL_STRCONV_CONV_HEX_BASIC_H
25#define MYSQL_STRCONV_CONV_HEX_BASIC_H
50template <Is_
string_target Target_t>
53 Target_t &target,
const std::string_view &sv) {
55 target.advance(2 * sv.size());
57 for (
unsigned char ch : sv) {
58 target.write_char(
format.int_to_hex(ch >> 4));
59 target.write_char(
format.int_to_hex(ch & 0xf));
95 target.write_char((hi << 4) + lo);
Object used to parse strings.
Definition: parser.h:69
void set_parse_error(const std::string_view &message)
Store a result representing that the requested object could not be parsed because the string is wrong...
Definition: parser.h:94
std::size_t remaining_size() const
Return the remaining size.
Definition: parse_position.h:153
const unsigned char * upos() const
Return the current position as an unsigned char pointer.
Definition: parse_position.h:113
Concept that holds for String_counter and String_writer.
Definition: string_target.h:111
Definition: gtid_binary_format.h:41
void decode_impl(const Gtid_binary_format &format, Parser &parser, mysql::gtids::Is_tag auto &tag)
Definition: gtid_binary_format_conv.h:63
void encode_impl(const Gtid_binary_format &format, Is_string_target auto &target, const mysql::gtids::Is_tag auto &tag)
Definition: gtid_binary_format_conv.h:48