Massive update:
Changed all byte pointers to vectors NetworkMessage: DecodeMessage and EncodeMessage are now static TcpClient: Fixed OnMessage function NetworkMessage: merged both private methods into 1 method
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
struct Serializer
|
||||
{
|
||||
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);
|
||||
template<typename T> static const T& from_bytes(const std::vector<byte> &bytes, T& object);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user