3#include <boost/iostreams/categories.hpp>
6namespace bio = boost::iostreams;
8template <
typename STREAM,
typename Category>
14 size_t write(
const char* data,
size_t n) {
return strm.write(data, n), n; }
15 size_t read(
char* data,
size_t n) {
return strm.read(data, n), n; }
18template <
typename STREAM>
23template <
typename STREAM>
28template <
typename STREAM>
device_adaptor< STREAM, bio::sink_tag > to_sink(STREAM &strm)
device_adaptor< STREAM, bio::source_tag > to_seekable(STREAM &strm)
device_adaptor< STREAM, bio::source_tag > to_source(STREAM &strm)
size_t read(char *data, size_t n)
size_t write(const char *data, size_t n)