Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
bio_device_adaptor.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <boost/iostreams/categories.hpp>
4namespace fc {
5
6namespace bio = boost::iostreams;
7
8template <typename STREAM, typename Category>
11
12 typedef char char_type;
13 typedef Category 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; }
16};
17
18template <typename STREAM>
22
23template <typename STREAM>
27
28template <typename STREAM>
32} // namespace fc
#define STREAM
Definition archiver.cpp:214
namespace sysio::chain
Definition authority.cpp:3
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)