MySQL 9.0.0
Source Code Documentation
classic_protocol::impl::StringCodec< Borrowed, T > Class Template Reference

#include <classic_protocol_codec_binary.h>

Inheritance diagram for classic_protocol::impl::StringCodec< Borrowed, T >:
[legend]

Public Types

using value_type = T
 
using base_ = impl::EncodeBase< StringCodec< Borrowed, value_type > >
 

Public Member Functions

constexpr StringCodec (value_type val, capabilities::value_type caps)
 
- Public Member Functions inherited from classic_protocol::impl::EncodeBase< StringCodec< Borrowed, T > >
constexpr EncodeBase (capabilities::value_type caps)
 
constexpr size_t size () const noexcept
 
stdx::expected< size_t, std::error_code > encode (net::mutable_buffer buffer) const
 
constexpr capabilities::value_type caps () const noexcept
 

Static Public Member Functions

static constexpr uint16_t type ()
 
static stdx::expected< std::pair< size_t, value_type >, std::error_code > decode (const net::const_buffer &buffer, capabilities::value_type caps)
 

Public Attributes

friend base_
 

Private Member Functions

template<class Accumulator >
constexpr auto accumulate_fields (Accumulator &&accu) const
 

Private Attributes

const value_type val_
 

Member Typedef Documentation

◆ base_

template<bool Borrowed, class T >
using classic_protocol::impl::StringCodec< Borrowed, T >::base_ = impl::EncodeBase<StringCodec<Borrowed, value_type> >

◆ value_type

template<bool Borrowed, class T >
using classic_protocol::impl::StringCodec< Borrowed, T >::value_type = T

Constructor & Destructor Documentation

◆ StringCodec()

template<bool Borrowed, class T >
constexpr classic_protocol::impl::StringCodec< Borrowed, T >::StringCodec ( value_type  val,
capabilities::value_type  caps 
)
inlineconstexpr

Member Function Documentation

◆ accumulate_fields()

template<bool Borrowed, class T >
template<class Accumulator >
constexpr auto classic_protocol::impl::StringCodec< Borrowed, T >::accumulate_fields ( Accumulator &&  accu) const
inlineconstexprprivate

◆ decode()

template<bool Borrowed, class T >
static stdx::expected< std::pair< size_t, value_type >, std::error_code > classic_protocol::impl::StringCodec< Borrowed, T >::decode ( const net::const_buffer buffer,
capabilities::value_type  caps 
)
inlinestatic

◆ type()

template<bool Borrowed, class T >
static constexpr uint16_t classic_protocol::impl::StringCodec< Borrowed, T >::type ( )
inlinestaticconstexpr

Member Data Documentation

◆ base_

template<bool Borrowed, class T >
friend classic_protocol::impl::StringCodec< Borrowed, T >::base_

◆ val_

template<bool Borrowed, class T >
const value_type classic_protocol::impl::StringCodec< Borrowed, T >::val_
private

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