/* * utils.cpp * */ #include #include #include #include //#include #include #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); } //inline void xor_big(const char* input1, const char* input2, char* output) //{ // static void XOR(block in1[], block in2[], block out[], int sliceLen){ // // #ifdef NO_VEC_OPT // for (int i=0; i