MySQL 9.1.0
Source Code Documentation
|
helper structure created for partial specialization of get_max_size function of Archive_binary, specialization for defined size equal to 0. More...
#include <archive_binary_field_max_size_calculator.h>
Static Public Member Functions | |
template<typename = std::enable_if_t<is_string_type<T>() == false>> | |
static constexpr std::size_t | get_max_size () |
Calculates maximum encoded size of the variable-length integer fields. More... | |
helper structure created for partial specialization of get_max_size function of Archive_binary, specialization for defined size equal to 0.
0 means default maximum size: for std::string default maximum size is unlimited, for variable length integer - sizeof(Type)+1, for double Type it equals to sizeof(Type) For unlimited strings, get_max_size is disabled (code won't compile)
T | type of field |
|
inlinestaticconstexpr |
Calculates maximum encoded size of the variable-length integer fields.