Loading...
Searching...
No Matches
Packet.hpp
Go to the documentation of this file.
7// In no event will the authors be held liable for any damages arising from the use of this software.
Utility class to build blocks of data to transfer over the network.
Definition Packet.hpp:48
std::size_t getDataSize() const
Get the size of the data contained in the packet.
std::size_t getReadPosition() const
Get the current reading position in the packet.
bool endOfPacket() const
Tell if the reading position has reached the end of the packet.
void append(const void *data, std::size_t sizeInBytes)
Append data to the end of the packet.
virtual void onReceive(const void *data, std::size_t size)
Called after the packet is received over the network.
virtual const void * onSend(std::size_t &size)
Called before the packet is sent over the network.
Utility string class that automatically handles conversions between types and encodings.
Definition String.hpp:46
Definition AlResource.hpp:35