|
ITCH 5.0 Market Data Handler 1.0.0
NASDAQ ITCH 5.0 Market Data Feed Handler
|
Compile-time validation of RequestPacket wire format size. More...
Compile-time validation of RequestPacket wire format size.
MoldUDP64 message block header
Header preceding each individual message within a MoldUDP64 packet. The header contains only the message length, allowing variable-length messages to be packed sequentially within a packet.
Wire format (2 bytes):
The actual payload follows immediately after this header. To get the total size including the header, use get_message_length() which adds sizeof(len_) to the stored value.
#include <nasdaq/moldudp64/Messages.h>
Public Member Functions | |
| MessageBlock ()=default | |
| Default constructor. | |
| MessageBlock (UInt16 len) | |
| Construct with message length. | |
| UInt16 | get_message_length () const |
| Get total message size including header. | |
| void | set_message_length (UInt16 val) |
| Set message length. | |
Default constructor.
|
inline |
Construct with message length.
| len | Message length in host byte order |
|
inline |
Get total message size including header.
Returns the complete message size including this 2-byte header. This is the size needed to iterate to the next message in a packet.
|
inline |
Set message length.
Sets the message payload length. The value is automatically adjusted to exclude the header size before storage.
| val | Total message size (including 2-byte header) in host byte order |