43#include <StormByte/buffer/fifo.hxx>
45#include <StormByte/safe/binary.hxx>
46#include <StormByte/serializable.hxx>
47#include <StormByte/type_traits/safe.hxx>
STORMBYTE_DECLARE_MAYBE_SAFE(StormByte::Buffer::Bridge)
Packet(Packet &&other) noexcept
Move constructor.
Buffer::FIFO Serialize() const noexcept
Serialize opcode followed by DoSerialize() payload.
const OpcodeType & Opcode() const noexcept
Stored opcode.
Definition packet.hxx:115
Packet(const Packet &other)
Copy constructor.
OpcodeType m_opcode
Packet opcode.
Definition packet.hxx:126
virtual ~Packet() noexcept
Destructor.
unsigned short OpcodeType
Opcode storage type.
Definition packet.hxx:78
virtual StormByte::Safe::Binary DoSerialize() const noexcept=0
Payload-only serialization (no opcode).
Network module of the StormByte suite.
Root namespace of the StormByte suite.
#define STORMBYTE_NETWORK_PUBLIC
Definition visibility.h:51