mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-04-20 03:01:31 -04:00
25 lines
335 B
C++
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));
|
|
}
|