![]() |
MySQL 8.0.32
Source Code Documentation
|
codec for server-side Eof message. More...
#include <classic_protocol_codec_message.h>
Public Types | |
using | value_type = message::server::Eof |
using | __base = impl::EncodeBase< Codec< value_type > > |
Public Member Functions | |
Codec (value_type v, capabilities::value_type caps) | |
![]() | |
constexpr | EncodeBase (capabilities::value_type caps) |
constexpr size_t | size () const noexcept |
stdx::expected< size_t, std::error_code > | encode (const net::mutable_buffer &buffer) const |
constexpr capabilities::value_type | caps () const noexcept |
Static Public Member Functions | |
static constexpr uint8_t | cmd_byte () noexcept |
template<class ConstBufferSequence > | |
static stdx::expected< std::pair< size_t, value_type >, std::error_code > | decode (const ConstBufferSequence &buffers, capabilities::value_type caps) |
decode a server::Eof message from a buffer-sequence. More... | |
Public Attributes | |
friend | __base |
Private Member Functions | |
template<class Accumulator > | |
auto | accumulate_fields (Accumulator &&accu) const |
Private Attributes | |
const value_type | v_ |
codec for server-side Eof message.
Eof message is encoded differently dependending on protocol capabiltiies, but always starts with:
If capabilities has text_result_with_session_tracking, it is followed by
otherwise, if capabilities has protocol_41
otherwise
using classic_protocol::Codec< message::server::Eof >::__base = impl::EncodeBase<Codec<value_type> > |
using classic_protocol::Codec< message::server::Eof >::value_type = message::server::Eof |
|
inline |
|
inlineprivate |
|
inlinestaticconstexprnoexcept |
|
inlinestatic |
decode a server::Eof message from a buffer-sequence.
capabilities checked:
precondition:
buffers | input buffser sequence |
caps | protocol capabilities |
std::pair<size_t,message::server::Eof> | on success, with bytes processed |
codec_errc::invalid_input | if preconditions aren't met |
codec_errc::not_enough_input | not enough data to parse the whole message |
friend classic_protocol::Codec< message::server::Eof >::__base |
|
private |