Electroneum
Namespaces | Functions
serialization Namespace Reference

Namespaces

 detail
 

Functions

template<class T >
bool parse_binary (const std::string &blob, T &v)
 
template<class T >
bool dump_binary (T &v, std::string &blob)
 
template<class T >
std::string dump_json (T &v)
 
template<class Archive >
bool check_stream_state (Archive &ar, bool noeof=false)
 
template<class Archive , class T >
bool serialize (Archive &ar, T &v)
 
template<class Archive , class T >
bool serialize_noeof (Archive &ar, T &v)
 

Function Documentation

◆ check_stream_state()

template<class Archive >
bool serialization::check_stream_state ( Archive &  ar,
bool  noeof = false 
)

◆ dump_binary()

template<class T >
bool serialization::dump_binary ( T v,
std::string &  blob 
)

dumps the data in v into the blob string

◆ dump_json()

template<class T >
std::string serialization::dump_json ( T v)

◆ parse_binary()

template<class T >
bool serialization::parse_binary ( const std::string &  blob,
T v 
)

creates a new archive with the passed blob and serializes it into v

◆ serialize()

template<class Archive , class T >
bool serialization::serialize ( Archive &  ar,
T v 
)
inline

◆ serialize_noeof()

template<class Archive , class T >
bool serialization::serialize_noeof ( Archive &  ar,
T v 
)
inline