49 assert(header->
size() <= size);
56 size_ = header->
size();
65 throwBinaryBlockIsTooSmall(static_cast<MessageSize>(size),
sizeof(
SimpleOpenFramingHeader),
"SimpleOpenFramingHeader");
72 if ONIXS_B3_BOE_UNLIKELY(header->
size() > size)
73 throwNetPacketIsTooSmall(static_cast<MessageSize>(size), header->
size());
78 size_ = header->
size();
const void * data() const noexcept
std::string toStr(const NetworkMessage &message)
#define ONIXS_B3_BOE_MESSAGING_NAMESPACE_END
#define ONIXS_B3_BOE_NULLPTR
#define ONIXS_B3_BOE_NOTHROW
SbeMessage message() const noexcept
Retrieves the underlying SBE message.
#define ONIXS_B3_BOE_EXPORTED
NetworkMessage() noexcept
Constructs an empty instance.
UInt16 MessageSize
Message length type.
void clear() noexcept
Blank the instance.
NetworkMessage(const void *data, size_t size, SbeMessage::NoCheck) noexcept
Constructs NetworkMessage from a data block. Performs no checks.
MessageSize size() const noexcept
constexpr UInt16 B3BOESbeEncodingType
#define ONIXS_B3_BOE_MESSAGING_NAMESPACE_BEGIN
#define ONIXS_B3_BOE_LTWT_CLASS
NetworkMessage(const void *data, size_t size)
Constructs NetworkMessage from a data block.
#define ONIXS_B3_BOE_UNUSED
bool valid() const noexcept