Got tcp receiving for windows done
Callbacks are done - maybe ill add a few more later - i dont know if they will work correctly yet Fixed the Serialization class Added internal tags - for now it only has CONNECT and DISCONNECT - maybe ill add more later Fixed some data type parameters in some functions
This commit is contained in:
@ -7,12 +7,10 @@
|
||||
|
||||
#include "Defs.hpp"
|
||||
|
||||
#include <array>
|
||||
|
||||
class Serializer
|
||||
struct Serializer
|
||||
{
|
||||
template<typename T> std::array<byte, sizeof(T)> to_bytes(const T& object);
|
||||
template<typename T> T& from_bytes(const std::array<byte, sizeof(T)> &bytes, T& object);
|
||||
template<typename T> static const std::vector<byte> &to_bytes(const T &object);
|
||||
template<typename T> static const T &from_bytes(byte *bytes, T &object);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user