R-Type
|
Functions | |
template<typename Data > | |
std::vector< std::byte > | serializeData (Data data, std::size_t size) |
Template to serialize the data. More... | |
template<typename Data > | |
Data | deserializeData (asio::streambuf &buffer, std::size_t size) |
Template to deserialize the data. More... | |
|
inline |
Template to deserialize the data.
Retrieve the data in a list of bytes.
Data | corresponding of the type of data |
buffer | that we will retrieve the data |
size | of the data |
buffer | that we will retrieve the data |
size | of the data |
std::vector<std::byte> Serialization::serializeData | ( | Data | data, |
std::size_t | size | ||
) |
Template to serialize the data.
Data | corresponding of the type of data |
data | that need to be serialize |