MySQL 8.0.39
Source Code Documentation
|
Namespaces | |
namespace | binary |
namespace | borrowable |
namespace | borrowed |
namespace | capabilities |
namespace | clone |
namespace | collation |
namespace | column_def |
namespace | cursor |
namespace | field_type |
namespace | frame |
namespace | impl |
namespace | reload_cmds |
namespace | session_track |
namespace | status |
namespace | wire |
Enumerations | |
enum class | codec_errc { invalid_input = 1 , not_enough_input , missing_nul_term , capability_not_supported , statement_id_not_found , field_type_unknown } |
enum class | CommandByte { Quit = 0x01 , InitSchema , Query , ListFields , CreateDb , DropDb , Refresh , Shutdown , Statistics , ProcessInfo , Connect , ProcessKill , Debug , Ping , Time , DelayedInsert , ChangeUser , BinlogDump , TableDump , ConnectOut , RegisterReplica , StmtPrepare , StmtExecute , StmtSendLongData , StmtClose , StmtReset , SetOption , StmtFetch , Deamon , BinlogDumpGtid , ResetConnection , Clone } |
Functions | |
constexpr size_t | bytes_per_bits (size_t bits) |
template<class T , class DynamicBuffer > | |
stdx::expected< size_t, std::error_code > | encode (const T &v, capabilities::value_type caps, DynamicBuffer &&dyn_buffer) |
encode a message into a dynamic buffer. More... | |
template<class T > | |
stdx::expected< std::pair< size_t, T >, std::error_code > | decode (const net::const_buffer &buffer, capabilities::value_type caps) |
decode a message from a buffer. More... | |
template<class T , class... Args> | |
stdx::expected< std::pair< size_t, T >, std::error_code > | decode (const net::const_buffer &buffer, capabilities::value_type caps, Args &&... args) |
decode a message from a buffer. More... | |
const std::error_category & | codec_category () noexcept |
std::error_code | make_error_code (codec_errc e) noexcept |
|
strong |
|
strong |
|
constexpr |
|
inlinenoexcept |
stdx::expected< std::pair< size_t, T >, std::error_code > classic_protocol::decode | ( | const net::const_buffer & | buffer, |
capabilities::value_type | caps | ||
) |
decode a message from a buffer.
buffer | buffer to read from |
caps | protocol capabilities |
T | the message class |
stdx::expected< std::pair< size_t, T >, std::error_code > classic_protocol::decode | ( | const net::const_buffer & | buffer, |
capabilities::value_type | caps, | ||
Args &&... | args | ||
) |
decode a message from a buffer.
buffer | buffer to read from |
caps | protocol capabilities |
args | arguments that shall be forwarded to T's decode() |
T | the message class |
Args | Types of the extra arguments to be forwarded to T's decode() function. |
stdx::expected< size_t, std::error_code > classic_protocol::encode | ( | const T & | v, |
capabilities::value_type | caps, | ||
DynamicBuffer && | dyn_buffer | ||
) |
encode a message into a dynamic buffer.
v | message to encode |
caps | protocol capabilities |
dyn_buffer | dynamic buffer to write into |
|
inlinenoexcept |