#include <OnixS/CME/MDH/Packet.h>
Public Types | |
| using | Header = PacketHeader |
Public Member Functions | |
| Packet () noexcept=default | |
| Packet (const void *data, PacketSize size) | |
| Packet (const void *data, PacketSize size, const NoVerify &noVerify) noexcept | |
| Packet (const Packet &other) noexcept=default | |
| ~Packet ()=default | |
| operator bool () const noexcept | |
| const void * | data () const noexcept |
| const Header * | header () const noexcept |
| PacketSize | size () const noexcept |
| SequenceNumber | seqNumber () const noexcept |
| Messaging::Timestamp | sendingTime () const noexcept |
| BinaryMessages | messages () const noexcept |
| void | reset () noexcept |
| void | reset (const void *data, PacketSize size) |
| void | reset (const void *data, PacketSize size, const NoVerify &noVerify) noexcept |
| Packet & | operator= (const Packet &other) noexcept=default |
The packet does not manage the referenced storage. The caller must keep the buffer valid and unchanged while the packet or any message view obtained from it is used.
| using Header = PacketHeader |
|
defaultnoexcept |
Constructs a null packet that does not refer to a buffer.
|
inline |
|
inlinenoexcept |
Constructs a packet view without validating the buffer.
| data | Address of the packet buffer. |
| size | Buffer size in bytes. |
| noVerify | Tag selecting the unchecked overload. |
|
defaultnoexcept |
Copies a packet view without copying the referenced buffer.
| other | Packet view to copy. |
|
default |
Destroys the view without releasing the referenced buffer.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Rebinds this view to the same buffer as another packet.
| other | Packet view to copy. |
|
inlinenoexcept |
|
inline |
Rebinds this view to a buffer and validates its minimum size.
| data | Address of the packet buffer. |
| size | Buffer size in bytes. |
|
inlinenoexcept |
Rebinds this view to a buffer without validating it.
| data | Address of the packet buffer. |
| size | Buffer size in bytes. |
| noVerify | Tag selecting the unchecked overload. |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |