cereal
A C++11 library for serialization
 All Classes Files Functions Variables Typedefs Enumerations Groups
Classes | Functions
binary.hpp File Reference

Binary input and output archives. More...

#include <cereal/cereal.hpp>
#include <sstream>

Go to the source code of this file.

Classes

class  cereal::BinaryOutputArchive
 An output archive designed to save data in a compact binary representation. More...
 
class  cereal::BinaryInputArchive
 An input archive designed to load data saved using BinaryOutputArchive. More...
 

Functions

template<class T >
std::enable_if
< std::is_arithmetic< T >
::value, void >::type 
cereal::save (BinaryOutputArchive &ar, T const &t)
 Saving for POD types to binary.
 
template<class T >
std::enable_if
< std::is_arithmetic< T >
::value, void >::type 
cereal::load (BinaryInputArchive &ar, T &t)
 Loading for POD types from binary.
 
template<class Archive , class T >
 cereal::serialize (Archive &ar, NameValuePair< T > &t)
 Serializing NVP types to binary. More...
 
template<class Archive , class T >
 cereal::serialize (Archive &ar, SizeTag< T > &t)
 Serializing SizeTags to binary. More...
 
template<class T >
std::enable_if< std::is_array
< T >::value, void >::type 
cereal::save (BinaryOutputArchive &ar, T const &array)
 Saving arrays.
 
template<class T >
std::enable_if< std::is_array
< T >::value, void >::type 
cereal::load (BinaryInputArchive &ar, T &array)
 Loading arrays.
 
template<class T >
void cereal::save (BinaryOutputArchive &ar, BinaryData< T > const &bd)
 Saving binary data.
 
template<class T >
void cereal::load (BinaryInputArchive &ar, BinaryData< T > &bd)
 Loading binary data.
 
 CEREAL_REGISTER_ARCHIVE (cereal::BinaryOutputArchive)
 
 CEREAL_REGISTER_ARCHIVE (cereal::BinaryInputArchive)
 

Detailed Description

Binary input and output archives.