![]() |
MySQL 9.0.0
Source Code Documentation
|
codec for session-track's Field. More...
#include <classic_protocol_codec_session_track.h>
Public Types | |
using | value_type = borrowable::session_track::Field< Borrowed > |
using | __base = impl::EncodeBase< Codec< value_type > > |
Public Member Functions | |
constexpr | Codec (value_type v, capabilities::value_type caps) |
![]() | |
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 stdx::expected< std::pair< size_t, value_type >, std::error_code > | decode (const net::const_buffer &buffer, capabilities::value_type caps) |
decode a session_track::Field from a buffer-sequence. More... | |
Public Attributes | |
friend | __base |
Private Member Functions | |
template<class Accumulator > | |
constexpr auto | accumulate_fields (Accumulator &&accu) const |
Private Attributes | |
const value_type | v_ |
codec for session-track's Field.
sent as part of a server::Ok and server::Eof message.
data is encoded according type:
using classic_protocol::Codec< borrowable::session_track::Field< Borrowed > >::__base = impl::EncodeBase<Codec<value_type> > |
using classic_protocol::Codec< borrowable::session_track::Field< Borrowed > >::value_type = borrowable::session_track::Field<Borrowed> |
|
inlineconstexpr |
|
inlineconstexprprivate |
|
inlinestatic |
decode a session_track::Field from a buffer-sequence.
buffer | input buffer |
caps | protocol capabilities |
std::pair<size_t,session_track::Field> | on success, with bytes processed |
codec_errc::not_enough_input | not enough data to parse the whole message |
friend classic_protocol::Codec< borrowable::session_track::Field< Borrowed > >::__base |
|
private |