Skip to content

Instantly share code, notes, and snippets.

Created April 13, 2020 14:36
What would you like to do?
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