2#include <fc/io/iostream.hpp>
8 class buffered_istream_impl;
9 class buffered_ostream_impl;
35 virtual size_t readsome(
const std::shared_ptr<char>&
buf,
size_t len,
size_t offset );
41 virtual char peek()
const;
44 std::unique_ptr<detail::buffered_istream_impl> my;
65 virtual size_t writesome(
const std::shared_ptr<const char>&
buf,
size_t len,
size_t offset );
70 std::unique_ptr<detail::buffered_ostream_impl> my;
Reads data from an unbuffered stream and enables peek functionality.
virtual ~buffered_istream()
buffered_istream(istream_ptr is)
virtual char peek() const
buffered_istream & operator=(buffered_istream &&i)
virtual std::size_t readsome(char *buf, std::size_t len)
buffered_ostream(ostream_ptr o, size_t bufsize=4096)
virtual size_t writesome(const char *buf, size_t len)
buffered_ostream & operator=(buffered_ostream &&m)
std::shared_ptr< buffered_istream > buffered_istream_ptr
std::shared_ptr< buffered_ostream > buffered_ostream_ptr