Default constructor
Destructor
Append data to the end of the packet.
Test the validity of a packet, for reading
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 bool from the packet.
Reads a byte from the packet.
Reads a double from the packet.
Reads a dstring from the packet.
Reads a float from the packet.
Reads a int from the packet.
Reads a short from the packet.
Reads a string from the packet.
Reads a ubyte from the packet.
Reads a uint from the packet.
Reads a ushort from the packet.
Reads a wstring from the packet.
Write a bool the the end of the packet.
Write a byte the the end of the packet.
Write a double the the end of the packet.
Write a dstring the the end of the packet.
Write a float the the end of the packet.
Write a int the the end of the packet.
Write a short the the end of the packet.
Write a string the the end of the packet.
Write a ubyte the the end of the packet.
Write a uint the the end of the packet.
Write a ushort the the end of the packet.
Write a wstring the the end of 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).