38template <
typename Message>
41 return static_cast<MessageSize>(Message::getMaxMessageSize(maxGroupItems));
45template <
typename Message, UInt8 MaxGroupItems>
46struct GetMaxMessageSize
48 static constexpr MessageSize Size = getMaxMessageSize<Message>(MaxGroupItems);
52template <
typename Message>
53constexpr UInt16 getMinMessageSize()
55 return Message::blockLength(Message::Schema::Version) + MessageHeader::Size
56 + Message::getMinimalVariableFieldsSize(Message::Schema::Version);
60template <
typename Message>
61struct GetMinMessageSize
63 static constexpr MessageSize Size = getMinMessageSize<Message>();
#define ONIXS_CMEMDH_MESSAGING_NAMESPACE_BEGIN
#define ONIXS_CMEMDH_MESSAGING_NAMESPACE_END
Messages are prefixed with message header.
constexpr MessageSize getMaxMessageSize(UInt8 maxGroupItems)
Calculates the buffer size for a message with the given number of repeating group items.
constexpr MessageSize MaxMessageSize
Maximum supported message size.
UInt16 MessageSize
Message length type.