MySQL 8.0.39
Source Code Documentation
classic_protocol::impl::TimeCodec< T > Class Template Reference

#include <classic_protocol_codec_binary.h>

Inheritance diagram for classic_protocol::impl::TimeCodec< T >:
[legend]

Public Types

using value_type = T
 
using base_ = impl::EncodeBase< TimeCodec< value_type > >
 

Public Member Functions

constexpr TimeCodec (value_type val, capabilities::value_type caps)
 
- Public Member Functions inherited from classic_protocol::impl::EncodeBase< TimeCodec< 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_

◆ value_type

template<class T >
using classic_protocol::impl::TimeCodec< T >::value_type = T

Constructor & Destructor Documentation

◆ TimeCodec()

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

Member Function Documentation

◆ accumulate_fields()

template<class T >
template<class Accumulator >
constexpr auto classic_protocol::impl::TimeCodec< T >::accumulate_fields ( Accumulator &&  accu) const
inlineconstexprprivate

◆ decode()

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

◆ type()

template<class T >
static constexpr uint16_t classic_protocol::impl::TimeCodec< T >::type ( )
inlinestaticconstexpr

Member Data Documentation

◆ base_

template<class T >
friend classic_protocol::impl::TimeCodec< T >::base_

◆ val_

template<class T >
const value_type classic_protocol::impl::TimeCodec< T >::val_
private

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