retdec
Namespaces | Functions
file_io.h File Reference

Functions for file I/O. More...

#include <fstream>
#include <vector>

Go to the source code of this file.

Namespaces

 retdec
 
 retdec::utils
 

Functions

template<typename N >
bool retdec::utils::readFile (std::istream &fileStream, std::vector< N > &result, std::size_t start=0, std::size_t desiredSize=0)
 
template<typename N >
bool retdec::utils::readFile (const std::string &fileName, std::vector< N > &result, std::size_t start=0, std::size_t desiredSize=0)
 
template<typename N >
bool retdec::utils::writeFile (std::ostream &fileStream, const std::vector< N > &data, std::size_t start=0, std::size_t desiredSize=0)
 
template<typename N >
bool retdec::utils::writeFile (const std::string &fileName, const std::vector< N > &data, std::size_t start=0, std::size_t desiredSize=0)
 

Detailed Description

Functions for file I/O.