NDDEM
Classes | Namespaces | Functions
portable_binary.hpp File Reference
#include "cereal/cereal.hpp"
#include <sstream>
#include <limits>

Go to the source code of this file.

Classes

class  cereal::PortableBinaryOutputArchive
 An output archive designed to save data in a compact binary representation portable over different architectures. More...
 
class  cereal::PortableBinaryOutputArchive::Options
 A class containing various advanced options for the PortableBinaryOutput archive. More...
 
class  cereal::PortableBinaryInputArchive
 An input archive designed to load data saved using PortableBinaryOutputArchive. More...
 
class  cereal::PortableBinaryInputArchive::Options
 A class containing various advanced options for the PortableBinaryInput archive. More...
 

Namespaces

 cereal
 in certain simple scenarios. They should probably not be used if maximizing performance is the main objective.
 
 cereal::portable_binary_detail
 

Functions

std::uint8_t cereal::portable_binary_detail::is_little_endian ()
 Returns true if the current machine is little endian. More...
 
template<std::size_t DataSize>
void cereal::portable_binary_detail::swap_bytes (std::uint8_t *data)
 Swaps the order of bytes for some chunk of memory. More...
 
template<class T >
std::enable_if< std::is_arithmetic< T >::value, void >::type cereal::CEREAL_SAVE_FUNCTION_NAME (PortableBinaryOutputArchive &ar, T const &t)
 Saving for POD types to portable binary. More...
 
template<class T >
std::enable_if< std::is_arithmetic< T >::value, void >::type cereal::CEREAL_LOAD_FUNCTION_NAME (PortableBinaryInputArchive &ar, T &t)
 Loading for POD types from portable binary. More...
 
template<class Archive , class T >
 cereal::CEREAL_SERIALIZE_FUNCTION_NAME (Archive &ar, NameValuePair< T > &t)
 Serializing NVP types to binary. More...
 
template<class Archive , class T >
 cereal::CEREAL_SERIALIZE_FUNCTION_NAME (Archive &ar, SizeTag< T > &t)
 Serializing SizeTags to binary. More...
 
template<class T >
void cereal::CEREAL_SAVE_FUNCTION_NAME (PortableBinaryOutputArchive &ar, BinaryData< T > const &bd)
 Saving binary data to portable binary. More...
 
template<class T >
void cereal::CEREAL_LOAD_FUNCTION_NAME (PortableBinaryInputArchive &ar, BinaryData< T > &bd)
 Loading binary data from portable binary. More...