Loading...
Searching...
No Matches
Functions
bitpit::utils::binary Namespace Reference

The namespace 'binary' contains routines for handling binary archives. More...

Functions

template<typename T , std::size_t dim, typename std::enable_if< std::is_pod< T >::value >::type * = nullptr>
void read (std::istream &stream, std::array< T, dim > &value)
 
void read (std::istream &stream, std::string &string)
 
void read (std::istream &stream, std::vector< bool > &container)
 
void read (std::istream &stream, std::vector< bool >::reference value)
 
template<typename T , typename std::enable_if< std::is_pod< T >::value >::type * = nullptr>
void read (std::istream &stream, std::vector< T > &value)
 
template<typename T , typename std::enable_if< utils::is_iterable< T >::value >::type * = nullptr>
void read (std::istream &stream, T &value)
 
template<typename T >
void read (std::istream &stream, T &value, size_t size)
 
template<typename T >
void read (std::istream &stream, T *value, size_t size)
 
template<typename T , std::size_t dim, typename std::enable_if< std::is_pod< T >::value >::type * = nullptr>
void write (std::ostream &stream, const std::array< T, dim > &value)
 
void write (std::ostream &stream, const std::string &string)
 
void write (std::ostream &stream, const std::vector< bool > &container)
 
template<typename T , typename std::enable_if< std::is_pod< T >::value >::type * = nullptr>
void write (std::ostream &stream, const std::vector< T > &value)
 
template<typename T , typename std::enable_if< utils::is_iterable< T >::value >::type * = nullptr>
void write (std::ostream &stream, const T &value)
 
template<typename T >
void write (std::ostream &stream, const T &value, size_t size)
 
template<typename T >
void write (std::ostream &stream, const T *value, size_t size)
 
template<typename T >
void write (std::ostream &stream, T *value, size_t size)
 

Detailed Description

The namespace 'binary' contains routines for handling binary archives.

--- layout: doxygen_footer ---