|
| template<typename SbeMessageType, size_t MaxMessageSize, typename MessageInitializer> |
| static size_t | calculateBatchSize (MessageBatch< SbeMessageType, MaxMessageSize, MessageInitializer > &msgs) noexcept |
| template<typename SbeMessageType, size_t MaxMessageSize, typename MessageInitializer> |
| static size_t | fitSize (MessageBatch< SbeMessageType, MaxMessageSize, MessageInitializer > &msgs, size_t size=defaultMaxPacketSize()) noexcept |
| static size_t | calculateBatchSize (MessageBatchCombiner &msgs) noexcept |
| static bool | fitSize (MessageBatchCombiner &msgs, size_t size=defaultMaxPacketSize()) noexcept |
Definition at line 205 of file MessageBatch.h.
◆ calculateBatchSize() [1/2]
template<typename SbeMessageType, size_t MaxMessageSize, typename MessageInitializer>
| size_t calculateBatchSize |
( |
MessageBatch< SbeMessageType, MaxMessageSize, MessageInitializer > & | msgs | ) |
|
|
inlinestaticnoexcept |
- Returns
- The size of the message batch in bytes
Definition at line 210 of file MessageBatch.h.
212 {
213 return calculateBatchSize(msgs.netMsgs_);
214 }
◆ calculateBatchSize() [2/2]
- Returns
- The size of the message batch in bytes
Definition at line 225 of file MessageBatch.h.
226 {
227 return calculateBatchSize(msgs.netMsgs_);
228 }
◆ fitSize() [1/2]
template<typename SbeMessageType, size_t MaxMessageSize, typename MessageInitializer>
| size_t fitSize |
( |
MessageBatch< SbeMessageType, MaxMessageSize, MessageInitializer > & | msgs, |
|
|
size_t | size = defaultMaxPacketSize() ) |
|
inlinestaticnoexcept |
- Returns
- true if the batch fits the size provided
Definition at line 218 of file MessageBatch.h.
220 {
221 return calculateBatchSize(msgs) <=
size;
222 }
constexpr std::enable_if<!details::HasMemberTraits< Value >::value, size_t >::type size() noexcept
◆ fitSize() [2/2]
- Returns
- true if the batch fits the size provided
Definition at line 231 of file MessageBatch.h.
232 {
233 return calculateBatchSize(msgs) <=
size;
234 }