template <class T> | |
T Deserialize(const void* memory) { | |
T t; | |
memcpy(&t, memory, sizeof(T)); | |
return t; | |
} | |
template <class T> | |
void Serialize(const T& t, void* memory) { | |
memcpy(memory, &t, sizeof(T)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment