MySQL 9.1.0
Source Code Documentation
mysql::serialization::Archive_binary_field_max_size_calculator< std::string, S > Struct Template Reference

helper structure created for partial specialization of get_max_size function of Archive_binary, version for std::string fields More...

#include <archive_binary_field_max_size_calculator.h>

Static Public Member Functions

static constexpr std::size_t get_max_size ()
 Calculates maximum encoded size of the bounded std::string field. More...
 

Detailed Description

template<Field_size S>
struct mysql::serialization::Archive_binary_field_max_size_calculator< std::string, S >

helper structure created for partial specialization of get_max_size function of Archive_binary, version for std::string fields

Template Parameters
SBound size for the string field

Member Function Documentation

◆ get_max_size()

template<Field_size S>
static constexpr std::size_t mysql::serialization::Archive_binary_field_max_size_calculator< std::string, S >::get_max_size ( )
inlinestaticconstexpr

Calculates maximum encoded size of the bounded std::string field.

Returns
maximum encoded byte length

The documentation for this struct was generated from the following file: