Files
MP-SPDZ/Math/Integer.cpp
2018-03-07 12:25:45 +00:00

25 lines
356 B
C++

// (C) 2018 University of Bristol, Bar-Ilan University. See License.txt
/*
* Integer.cpp
*
*/
#include "Integer.h"
void Integer::output(ostream& s,bool human) const
{
if (human)
s << a;
else
s.write((char*)&a, sizeof(a));
}
void Integer::input(istream& s,bool human)
{
if (human)
s >> a;
else
s.read((char*)&a, sizeof(a));
}