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

codec for a StmtRow from the server. More...

#include <classic_protocol_codec_message.h>

Inheritance diagram for classic_protocol::Codec< message::server::StmtRow >:
[legend]

Public Types

using value_type = message::server::StmtRow
 
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::StmtRow > >
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 size_t max_size () noexcept
 
template<class ConstBufferSequence >
static stdx::expected< std::pair< size_t, value_type >, std::error_code > decode (const ConstBufferSequence &buffers, capabilities::value_type caps, std::vector< field_type::value_type > types)
 

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 a StmtRow from the server.

StmtRow is the Row of a StmtExecute's resultset.

  • 0x00
  • NULL bitmap
  • non-NULL-values in binary encoding

both encode and decode require type information to know:

  • size the NULL bitmap
  • length of each field

Member Typedef Documentation

◆ __base

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

◆ value_type

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

Constructor & Destructor Documentation

◆ Codec()

classic_protocol::Codec< message::server::StmtRow >::Codec ( value_type  v,
capabilities::value_type  caps 
)
inline

Member Function Documentation

◆ accumulate_fields()

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

◆ decode()

template<class ConstBufferSequence >
static stdx::expected< std::pair< size_t, value_type >, std::error_code > classic_protocol::Codec< message::server::StmtRow >::decode ( const ConstBufferSequence &  buffers,
capabilities::value_type  caps,
std::vector< field_type::value_type types 
)
inlinestatic

◆ max_size()

static size_t classic_protocol::Codec< message::server::StmtRow >::max_size ( )
inlinestaticnoexcept

Member Data Documentation

◆ __base

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

◆ v_

const value_type classic_protocol::Codec< message::server::StmtRow >::v_
private

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