Files
MP-SPDZ/Math/Integer.cpp
2016-09-02 19:16:51 +01:00

25 lines
335 B
C++

// (C) 2016 University of Bristol. 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));
}