![]() |
MySQL 9.3.0
Source Code Documentation
|
codec of a FixedInt. More...
#include <classic_protocol_codec_wire.h>
Public Types | |
using | value_type = borrowable::wire::FixedInt< int_size > |
Public Member Functions | |
constexpr | Codec (value_type v, capabilities::value_type) |
stdx::expected< size_t, std::error_code > | encode (net::mutable_buffer buffer) const |
encode value_type into buffer. More... | |
Static Public Member Functions | |
static constexpr size_t | size () noexcept |
size of the encoded object. More... | |
static constexpr size_t | max_size () noexcept |
maximum bytes which may scanned by the decoder. More... | |
static stdx::expected< std::pair< size_t, value_type >, std::error_code > | decode (const net::const_buffer &buffer, capabilities::value_type) |
Static Public Attributes | |
static constexpr size_t | int_size {IntSize} |
Private Attributes | |
const value_type | v_ |
codec of a FixedInt.
classic proto uses 1, 2, 3, 4, 8 for IntSize
using classic_protocol::Codec< borrowable::wire::FixedInt< IntSize > >::value_type = borrowable::wire::FixedInt<int_size> |
|
inlineconstexpr |
|
inlinestatic |
|
inline |
encode value_type into buffer.
|
inlinestaticconstexprnoexcept |
maximum bytes which may scanned by the decoder.
|
inlinestaticconstexprnoexcept |
size of the encoded object.
|
staticconstexpr |
|
private |