26#ifndef MYSQL_ROUTER_CLASSIC_PROTOCOL_CODEC_CLONE_H_
27#define MYSQL_ROUTER_CLASSIC_PROTOCOL_CODEC_CLONE_H_
34namespace clone::client {
59 template <
class Accumulator>
84 auto cmd_byte_res = accu.template step<wire::FixedInt<1>>();
87 auto protocol_version_res = accu.template step<wire::FixedInt<4>>();
88 auto ddl_timeout_res = accu.template step<wire::FixedInt<4>>();
106 template <
class Accumulator>
124 template <
class ConstBufferSequence>
129 auto cmd_byte_res = accu.template step<wire::FixedInt<1>>();
142 template <
class Accumulator>
160 template <
class ConstBufferSequence>
165 auto cmd_byte_res = accu.template step<wire::FixedInt<1>>();
178 template <
class Accumulator>
196 template <
class ConstBufferSequence>
201 auto cmd_byte_res = accu.template step<wire::FixedInt<1>>();
214 template <
class Accumulator>
232 template <
class ConstBufferSequence>
237 auto cmd_byte_res = accu.template step<wire::FixedInt<1>>();
250 template <
class Accumulator>
268 template <
class ConstBufferSequence>
273 auto cmd_byte_res = accu.template step<wire::FixedInt<1>>();
316 template <
class Accumulator>
334 template <
class ConstBufferSequence>
339 auto cmd_byte_res = accu.template step<wire::FixedInt<1>>();
352 template <
class Accumulator>
370 template <
class ConstBufferSequence>
375 auto cmd_byte_res = accu.template step<wire::FixedInt<1>>();
const value_type v_
Definition: classic_protocol_codec_clone.h:244
Codec(value_type v, capabilities::value_type caps)
Definition: classic_protocol_codec_clone.h:225
constexpr auto accumulate_fields(Accumulator &&accu) const
Definition: classic_protocol_codec_clone.h:215
constexpr static uint8_t cmd_byte() noexcept
Definition: classic_protocol_codec_clone.h:228
static stdx::expected< std::pair< size_t, value_type >, std::error_code > decode(const net::const_buffer &buffer, capabilities::value_type caps)
Definition: classic_protocol_codec_clone.h:233
friend __base
Definition: classic_protocol_codec_clone.h:223
const value_type v_
Definition: classic_protocol_codec_clone.h:172
friend __base
Definition: classic_protocol_codec_clone.h:151
constexpr static uint8_t cmd_byte() noexcept
Definition: classic_protocol_codec_clone.h:156
constexpr auto accumulate_fields(Accumulator &&accu) const
Definition: classic_protocol_codec_clone.h:143
static stdx::expected< std::pair< size_t, value_type >, std::error_code > decode(const net::const_buffer &buffer, capabilities::value_type caps)
Definition: classic_protocol_codec_clone.h:161
Codec(value_type v, capabilities::value_type caps)
Definition: classic_protocol_codec_clone.h:153
constexpr static uint8_t cmd_byte() noexcept
Definition: classic_protocol_codec_clone.h:120
constexpr Codec(value_type v, capabilities::value_type caps)
Definition: classic_protocol_codec_clone.h:117
friend __base
Definition: classic_protocol_codec_clone.h:115
const value_type v_
Definition: classic_protocol_codec_clone.h:136
static stdx::expected< std::pair< size_t, value_type >, std::error_code > decode(const net::const_buffer &buffer, capabilities::value_type caps)
Definition: classic_protocol_codec_clone.h:125
constexpr auto accumulate_fields(Accumulator &&accu) const
Definition: classic_protocol_codec_clone.h:107
constexpr Codec(value_type v, capabilities::value_type caps)
Definition: classic_protocol_codec_clone.h:261
const value_type v_
Definition: classic_protocol_codec_clone.h:280
constexpr auto accumulate_fields(Accumulator &&accu) const
Definition: classic_protocol_codec_clone.h:251
static stdx::expected< std::pair< size_t, value_type >, std::error_code > decode(const net::const_buffer &buffer, capabilities::value_type caps)
Definition: classic_protocol_codec_clone.h:269
constexpr static uint8_t cmd_byte() noexcept
Definition: classic_protocol_codec_clone.h:264
friend __base
Definition: classic_protocol_codec_clone.h:259
friend __base
Definition: classic_protocol_codec_clone.h:71
static stdx::expected< std::pair< size_t, value_type >, std::error_code > decode(const net::const_buffer &buffer, capabilities::value_type caps)
Definition: classic_protocol_codec_clone.h:80
const value_type v_
Definition: classic_protocol_codec_clone.h:97
Codec(value_type v, capabilities::value_type caps)
Definition: classic_protocol_codec_clone.h:73
constexpr auto accumulate_fields(Accumulator &&accu) const
Definition: classic_protocol_codec_clone.h:60
constexpr static uint8_t cmd_byte() noexcept
Definition: classic_protocol_codec_clone.h:76
constexpr auto accumulate_fields(Accumulator &&accu) const
Definition: classic_protocol_codec_clone.h:179
Codec(value_type v, capabilities::value_type caps)
Definition: classic_protocol_codec_clone.h:189
constexpr static uint8_t cmd_byte() noexcept
Definition: classic_protocol_codec_clone.h:192
const value_type v_
Definition: classic_protocol_codec_clone.h:208
friend __base
Definition: classic_protocol_codec_clone.h:187
static stdx::expected< std::pair< size_t, value_type >, std::error_code > decode(const net::const_buffer &buffer, capabilities::value_type caps)
Definition: classic_protocol_codec_clone.h:197
friend __base
Definition: classic_protocol_codec_clone.h:325
static stdx::expected< std::pair< size_t, value_type >, std::error_code > decode(const net::const_buffer &buffer, capabilities::value_type caps)
Definition: classic_protocol_codec_clone.h:335
constexpr Codec(value_type v, capabilities::value_type caps)
Definition: classic_protocol_codec_clone.h:327
const value_type v_
Definition: classic_protocol_codec_clone.h:346
constexpr static uint8_t cmd_byte() noexcept
Definition: classic_protocol_codec_clone.h:330
constexpr auto accumulate_fields(Accumulator &&accu) const
Definition: classic_protocol_codec_clone.h:317
clone::server::Complete value_type
Definition: classic_protocol_codec_clone.h:322
clone::server::Error value_type
Definition: classic_protocol_codec_clone.h:358
const value_type v_
Definition: classic_protocol_codec_clone.h:382
static stdx::expected< std::pair< size_t, value_type >, std::error_code > decode(const net::const_buffer &buffer, capabilities::value_type caps)
Definition: classic_protocol_codec_clone.h:371
constexpr Codec(value_type v, capabilities::value_type caps)
Definition: classic_protocol_codec_clone.h:363
constexpr auto accumulate_fields(Accumulator &&accu) const
Definition: classic_protocol_codec_clone.h:353
friend __base
Definition: classic_protocol_codec_clone.h:361
constexpr static uint8_t cmd_byte() noexcept
Definition: classic_protocol_codec_clone.h:366
Codec for a type.
Definition: classic_protocol_codec_base.h:72
Definition: classic_protocol_wire.h:103
Definition: classic_protocol_clone.h:57
Definition: classic_protocol_clone.h:51
Definition: classic_protocol_clone.h:55
Definition: classic_protocol_clone.h:66
Definition: classic_protocol_clone.h:43
Definition: classic_protocol_clone.h:52
Definition: classic_protocol_clone.h:83
Definition: classic_protocol_clone.h:84
Definition: classic_protocol_clone.h:70
Generator of decoded Types of a buffer.
Definition: classic_protocol_codec_base.h:153
result_type result() const
get result of the step().
Definition: classic_protocol_codec_base.h:219
CRTP base for the Codec's encode part.
Definition: classic_protocol_codec_base.h:375
constexpr const value_type & value() const &
Definition: expected.h:688
constexpr const error_type & error() const &
Definition: expected.h:737
Definition: expected.h:944
static int Init(MYSQL_PLUGIN p)
Definition: ha_mock.cc:357
std::bitset< 32 > value_type
Definition: classic_protocol_constants.h:73
CommandByte
Definition: classic_protocol_codec_clone.h:35
CommandByte
Definition: classic_protocol_codec_clone.h:284
Definition: classic_protocol_binary.h:39
mutable_buffer buffer(void *p, size_t n) noexcept
Definition: buffer.h:420
Definition: gcs_xcom_synode.h:64
constexpr auto make_unexpected(E &&e) -> unexpected< std::decay_t< E > >
Definition: expected.h:125
struct server server
Definition: server_struct.h:59
static ORDER * clone(THD *thd, ORDER *order)
Shallow clone the list of ORDER objects using mem_root and return the cloned list.
Definition: window.cc:84