32 #if defined(ONIXS_CONFLATEDTCP_COMPILER_CXX_CONSTEXPR) && ONIXS_CONFLATEDTCP_COMPILER_CXX_CONSTEXPR 35 template <
typename Message>
36 struct HasEmptyCredentials
38 static constexpr
bool UseCustomValue =
true;
44 Message::blockLength(Message::Schema::Version)
46 + Message::getMinimalVariableFieldsSize(Message::Schema::Version);
51 template <
typename Message>
52 struct HasNoVariableFieldsOrGroups
54 static constexpr
bool UseCustomValue =
true;
60 Message::blockLength(Message::Schema::Version)
61 + MessageHeader::Size;
66 template <
typename Message>
struct MaxMessageSizeTraits;
70 struct MaxMessageSizeTraits<Negotiate200> : HasEmptyCredentials<Negotiate200> {};
74 struct MaxMessageSizeTraits<Terminate203> : HasNoVariableFieldsOrGroups<Terminate203> {};
#define ONIXS_CONFLATEDTCP_MESSAGING_NAMESPACE_END
#define ONIXS_CONFLATEDTCP_MESSAGING_NAMESPACE_BEGIN
constexpr MessageSize calculateMaxMessageSize(UInt8 maxGroupItems)
Calculates the buffer size for a message with the given number of repeating group items...