24#ifndef MYSQL_STRCONV_ENCODE_ENCODE_DEBUG_H
25#define MYSQL_STRCONV_ENCODE_ENCODE_DEBUG_H
43template <
class Object_t>
73template <Is_out_str_fixed Out_str_t,
class Object_t>
98template <Is_out_str_growable Out_str_t,
class Object_t>
99[[nodiscard]]
auto encode_debug(Out_str_t out_str,
const Object_t &
object) {
100 return encode(Debug_format{}, out_str, object);
117template <
class String_t = std::
string,
class Object_t>
119 return mysql::strconv::throwing::encode<String_t>(
Debug_format{}, object);
134template <
class String_t = std::string,
class... Objects_t>
136 return mysql::strconv::throwing::concat<String_t>(
Debug_format{}, objects...);
152template <
class String_t = std::
string,
class Object_t>
153[[nodiscard]] std::optional<String_t>
encode_debug(
const Object_t &
object) {
169template <
class String_t = std::string,
class... Objects_t>
String_t concat_debug(const Objects_t &...objects)
Return an std::string object holding the concatenated string representations of the objects,...
Definition: encode_debug.h:135
String_t encode_debug(const Object_t &object)
Return an std::string object holding the string representation of the given object,...
Definition: encode_debug.h:118
Definition: gtid_binary_format.h:41
void encode(const Debug_format &format, Is_string_target auto &target, const Repeat &repeat)
Definition: debug_repeat.h:39
std::size_t compute_encoded_length_debug(const Object_t &object)
Return the string length of the object, using Debug_format.
Definition: encode_debug.h:44
std::size_t compute_encoded_length(const Is_format auto &format, const auto &object)
Return the string length of the object.
Definition: encode.h:57
auto concat_debug(const Objects_t &...objects)
Return an std::optional<std::string> object holding the concatenated string representations of the ob...
Definition: encode_debug.h:170
auto encode_debug(Out_str_t out_str, const Object_t &object)
Write the string representation of the object to the given string output wrapper, using Debug_format.
Definition: encode_debug.h:74