![]() |
R-Type
2
Doom but in better
|
#include "GameMessage.hpp"
Go to the source code of this file.
Functions | |
void | serialize (const GameMessage &message, std::ostringstream &os) |
Serializes a GameMessage object into a binary stream. | |
GameMessage | deserialize (std::istringstream &is) |
Deserializes a GameMessage object from a binary stream. | |
GameMessage deserialize | ( | std::istringstream & | is | ) |
Deserializes a GameMessage object from a binary stream.
This function reads binary data from the provided input stream and reconstructs a GameMessage
object. The binary data should have been written using the serialize
function.
is | The input stream from which the binary data will be read. |
GameMessage
object. Definition at line 54 of file GameMessage.cpp.
void serialize | ( | const GameMessage & | message, |
std::ostringstream & | os ) |
Serializes a GameMessage object into a binary stream.
This function writes the GameMessage
object's data to the provided output stream in binary format. The serialized data can later be read using the deserialize
function.
message | The GameMessage object to serialize. |
os | The output stream to which the binary data will be written. |
Definition at line 3 of file GameMessage.cpp.