Default constructor
Destructor
Append data to the end of the packet.
Clear the packet.
Tell if the reading position has reached the end of the packet.
Get a slice of the data contained in the packet.
Called after the packet is received over the network.
Called before the packet is sent over the network.
Reads a primitive data type or string from the packet. The value in the packet at the current read position is set to value.
Writes a scalar data type or string to the packet.
Utility class to build blocks of data to transfer over the network.
Packets provide a safe and easy way to serialize data, in order to send it over the network using sockets (sf::TcpSocket, sf::UdpSocket).