mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-15 00:18:17 -05:00
25 lines
356 B
C++
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));
|
|
}
|