MySQL 8.0.32
Source Code Documentation
classic_protocol::Codec< message::server::Ok > Class Reference

codec for server-side Ok message. More...

#include <classic_protocol_codec_message.h>

Inheritance diagram for classic_protocol::Codec< message::server::Ok >:

Public Types

using value_type = message::server::Ok
using __base = impl::EncodeBase< Codec< value_type > >

Public Member Functions

 Codec (value_type v, capabilities::value_type caps)
- Public Member Functions inherited from classic_protocol::impl::EncodeBase< Codec< message::server::Ok > >
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::Ok 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_

Detailed Description

codec for server-side Ok message.

Member Typedef Documentation

◆ __base

using classic_protocol::Codec< message::server::Ok >::__base = impl::EncodeBase<Codec<value_type> >

◆ value_type

using classic_protocol::Codec< message::server::Ok >::value_type = message::server::Ok

Constructor & Destructor Documentation

◆ Codec()

classic_protocol::Codec< message::server::Ok >::Codec ( value_type  v,
capabilities::value_type  caps 

Member Function Documentation

◆ accumulate_fields()

template<class Accumulator >
auto classic_protocol::Codec< message::server::Ok >::accumulate_fields ( Accumulator &&  accu) const

◆ cmd_byte()

static constexpr uint8_t classic_protocol::Codec< message::server::Ok >::cmd_byte ( )

◆ decode()

template<class ConstBufferSequence >
static stdx::expected< std::pair< size_t, value_type >, std::error_code > classic_protocol::Codec< message::server::Ok >::decode ( const ConstBufferSequence &  buffers,
capabilities::value_type  caps 

decode a server::Ok message from a buffer-sequence.


  • input starts with cmd_byte()
buffersinput buffser sequence
capsprotocol capabilities
Return values
std::pair<size_t,message::server::Ok>on success, with bytes processed
codec_errc::invalid_inputif preconditions aren't met
codec_errc::not_enough_inputnot enough data to parse the whole message

Member Data Documentation

◆ __base

friend classic_protocol::Codec< message::server::Ok >::__base

◆ v_

const value_type classic_protocol::Codec< message::server::Ok >::v_

The documentation for this class was generated from the following file: