djumbai/libs/communication/communication.c

12 lines
251 B
C
Raw Normal View History

#include "communication.h"
int serialize_message(void *msg,long msg_size, unsigned char *out) {
memcpy(out, msg, msg_size);
return 0;
}
int deserialize_message(unsigned char *in,long msg_size, void *msg) {
memcpy(msg, in, msg_size);
return 0;
}