MySQL 8.0.39
Source Code Documentation
classic_protocol::Codec< void > Class Reference

codec for ignorable bytes. More...

#include <classic_protocol_codec_wire.h>

Public Types

using value_type = size_t
 

Public Member Functions

 Codec (value_type val, capabilities::value_type caps)
 
size_t size () const noexcept
 
stdx::expected< size_t, std::error_code > encode (const net::mutable_buffer &buffer) const
 

Static Public Member Functions

static size_t max_size () noexcept
 
static stdx::expected< std::pair< size_t, value_type >, std::error_code > decode (const net::const_buffer &buffer, capabilities::value_type)
 

Private Attributes

const value_type v_
 
const capabilities::value_type caps_
 

Detailed Description

codec for ignorable bytes.

limited by length or buffer.size()

Member Typedef Documentation

◆ value_type

using classic_protocol::Codec< void >::value_type = size_t

Constructor & Destructor Documentation

◆ Codec()

Member Function Documentation

◆ decode()

static stdx::expected< std::pair< size_t, value_type >, std::error_code > classic_protocol::Codec< void >::decode ( const net::const_buffer buffer,
capabilities::value_type   
)
inlinestatic

◆ encode()

stdx::expected< size_t, std::error_code > classic_protocol::Codec< void >::encode ( const net::mutable_buffer buffer) const
inline

◆ max_size()

static size_t classic_protocol::Codec< void >::max_size ( )
inlinestaticnoexcept

◆ size()

size_t classic_protocol::Codec< void >::size ( ) const
inlinenoexcept

Member Data Documentation

◆ caps_

const capabilities::value_type classic_protocol::Codec< void >::caps_
private

◆ v_

const value_type classic_protocol::Codec< void >::v_
private

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