Files
VoidNet/include/Serializer.hpp
xX-TheDoctor-Xx 72aa8ee0c4 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
2016-07-17 19:59:22 +01:00

16 lines
290 B
C++

#ifndef SERIALIZER_HPP
#define SERIALIZER_HPP
#ifdef _MSC_VER
#pragma once
#endif
#include "Defs.hpp"
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);
};
#endif