emp-toolkit
utils.hpp File Reference

Go to the source code of this file.

Functions

std::string hex_to_binary (std::string hex)
 
void parse_party_and_port (char **arg, int *party, int *port)
 
std::string Party (int p)
 
uint64_t timeStamp ()
 
double wallClock ()
 
template<typename t >
bool_to_int (const bool *data, size_t len)
 
uint64_t bool_to64 (const bool *data)
 
block bool_to128 (const bool *data)
 
void int64_to_bool (bool *data, uint64_t input, int length)
 

Function Documentation

§ bool_to128()

block bool_to128 ( const bool *  data)
inline

§ bool_to64()

uint64_t bool_to64 ( const bool *  data)
inline

§ bool_to_int()

template<typename t >
t bool_to_int ( const bool *  data,
size_t  len 
)

§ hex_to_binary()

std::string hex_to_binary ( std::string  hex)
inline

§ int64_to_bool()

void int64_to_bool ( bool *  data,
uint64_t  input,
int  length 
)
inline

§ parse_party_and_port()

void parse_party_and_port ( char **  arg,
int *  party,
int *  port 
)
inline

§ Party()

std::string Party ( int  p)
inline

§ timeStamp()

uint64_t timeStamp ( )
inline

§ wallClock()

double wallClock ( )
inline