8#include "PacketReader.hpp"
9#include "PacketWriter.hpp"
26 static constexpr std::size_t
SIZE = 4;
Bounds checked reader of big-endian values over a byte buffer.
Definition PacketReader.hpp:15
Growable buffer of big-endian values, capped at MAX_PAYLOAD_SIZE.
Definition PacketWriter.hpp:16
Payload of a Pong message, 4 bytes, sent by the server in answer to a Ping.
Definition PongMessage.hpp:22
bool serialize(PacketWriter &writer) const
Writes the payload in network byte order.
Definition PongMessage.cpp:3
std::uint32_t timestamp
Value copied from the Ping.
Definition PongMessage.hpp:23
bool deserialize(PacketReader &reader)
Reads the payload from a buffer.
Definition PongMessage.cpp:7
static constexpr std::size_t SIZE
Encoded size of the payload, in bytes.
Definition PongMessage.hpp:26