/usr/include/osl/misc/binaryIO.h is in libosl-dev 0.6.0-3.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | /* binaryIO.h
*/
#ifndef OSL_BINARYIO_H
#define OSL_BINARYIO_H
#include <boost/scoped_ptr.hpp>
#include <vector>
#include <iosfwd>
namespace osl
{
namespace misc
{
struct BinaryWriter
{
static void write(std::ostream&, const std::vector<int>& data);
static void write(std::ostream&, const std::vector<double>& data);
};
template <class T>
class BinaryReader
{
public:
explicit BinaryReader(std::istream& is);
~BinaryReader();
bool read(std::vector<T>& data);
static size_t blockSize();
private:
struct State;
boost::scoped_ptr<State> state;
};
template <class T>
class BinaryElementReader
{
public:
explicit BinaryElementReader(std::istream& is);
~BinaryElementReader();
T read();
bool hasNext() const;
bool failed() const;
private:
struct State;
boost::scoped_ptr<State> state;
};
}
}
#endif /* OSL_BINARYIO_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
|