24#ifndef MYSQL_SERIALIZATION_ARCHIVE_BINARY_FIELD_MAX_SIZE_CALCULATOR_H
25#define MYSQL_SERIALIZATION_ARCHIVE_BINARY_FIELD_MAX_SIZE_CALCULATOR_H
43template <
class T, Field_size S>
63 template <typename = std::enable_if_t<is_string_type<T>() ==
false>>
65 return sizeof(T) + is_integral_type<T>();
72template <Field_size S>
Definition: gcs_xcom_synode.h:64
static constexpr std::size_t get_max_size()
Calculates maximum encoded size of the variable-length integer fields.
Definition: archive_binary_field_max_size_calculator.h:64
static constexpr std::size_t get_max_size()
Calculates maximum encoded size of the bounded std::string field.
Definition: archive_binary_field_max_size_calculator.h:77
helper structure created for partial specialization of get_max_size function of Archive_binary,...
Definition: archive_binary_field_max_size_calculator.h:44
static constexpr std::size_t get_max_size()
Calculates maximum encoded size of the fixed-length integer and floating point fields.
Definition: archive_binary_field_max_size_calculator.h:48