51 assert(header->
size() <= size);
58 size_ = header->
size();
67 throwBinaryBlockIsTooSmall(static_cast<MessageSize>(size),
sizeof(
SimpleOpenFramingHeader),
"SimpleOpenFramingHeader");
74 if ONIXS_ILINK3_UNLIKELY(header->
size() > size)
75 throwNetPacketIsTooSmall(static_cast<MessageSize>(size), header->
size());
80 size_ = header->
size();
#define ONIXS_ILINK3_NULLPTR
std::string toStr(const NetworkMessage &message)
NetworkMessage() noexcept
Constructs an empty instance.
constexpr UInt16 CmeSbeEncodingType
A network iLink3 message.
#define ONIXS_ILINK3_LTWT_CLASS
NetworkMessage(const void *data, size_t size, SbeMessage::NoCheck) noexcept
Constructs NetworkMessage from a data block. Performs no checks.
#define ONIXS_ILINK3_MESSAGING_NAMESPACE_END
#define ONIXS_ILINK3_EXPORTED
UInt16 MessageSize
Message length type.
bool valid() const noexcept
NetworkMessage(const void *data, size_t size)
Constructs NetworkMessage from a data block.
const void * data() const noexcept
#define ONIXS_ILINK3_MESSAGING_NAMESPACE_BEGIN
MessageSize size() const noexcept
#define ONIXS_ILINK3_UNUSED
SbeMessage message() const noexcept
Retrieves the underlying SBE message.
#define ONIXS_ILINK3_NOTHROW
void clear() noexcept
Blank the instance.