Files
MP-SPDZ/BMR/proto_utils.cpp
Marcel Keller 4ef6b6d873 Maintenance.
2020-05-08 21:43:05 +10:00

26 lines
359 B
C++

/*
* utils.cpp
*
*/
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
//#include <intrin.h>
#include <stdlib.h>
#include "proto_utils.h"
void fill_message_type(void* buffer, MSG_TYPE type)
{
memcpy(buffer, &type, sizeof(MSG_TYPE));
}
void fill_message_type(SendBuffer& buffer, MSG_TYPE type)
{
buffer.serialize(type);
}