11 lines
251 B
C
11 lines
251 B
C
#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;
|
|
}
|