#include <cstddef>
#include <cstdint>
#include <limits>
#include <system_error>
#include <type_traits>
#include <utility>
#include "mysql/harness/net_ts/buffer.h"
#include "mysql/harness/stdx/bit.h"
#include "mysql/harness/stdx/expected.h"
#include "mysqlrouter/classic_protocol_codec_error.h"
#include "mysqlrouter/classic_protocol_constants.h"
Go to the source code of this file.
|
constexpr size_t | classic_protocol::bytes_per_bits (size_t bits) |
|
template<class T , class DynamicBuffer > |
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. More...
|
|
template<class T > |
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. More...
|
|
template<class T , class... Args> |
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. More...
|
|