27 [[nodiscard]]
const std::vector<uint8_t> &
getData()
const override;
28 [[nodiscard]]
size_t getSize()
const override;
29 [[nodiscard]] uint32_t
getFlags()
const override;
30 void setData(
const std::vector<uint8_t> &data)
override;
size_t getSize() const override
Get the size of the packet data in bytes.
const std::vector< uint8_t > & getData() const override
Get the packet data as a byte buffer.
std::vector< uint8_t > _dataCache
void setData(const std::vector< uint8_t > &data) override
Set new data for this packet.
ENetPacket * getNativePacket() const
~ENetPacketWrapper() override
ENetPacketWrapper & operator=(const ENetPacketWrapper &)=delete
ENetPacketWrapper(const ENetPacketWrapper &)=delete
uint32_t getFlags() const override
Get the flags associated with this packet.
Interface representing a network packet.