BitShares-Core  5.0.0
BitShares blockchain implementation and command-line interface software
Public Member Functions | List of all members
fc::asio::istream< AsyncReadStream > Class Template Reference

#include <asio.hpp>

Inheritance diagram for fc::asio::istream< AsyncReadStream >:
fc::istream

Public Member Functions

 istream (std::shared_ptr< AsyncReadStream > str)
 
virtual size_t readsome (char *buf, size_t len)
 
virtual size_t readsome (const std::shared_ptr< char > &buf, size_t len, size_t offset)
 
- Public Member Functions inherited from fc::istream
virtual ~istream ()
 
istreamread (char *buf, size_t len)
 
istreamread (const std::shared_ptr< char > &buf, size_t len, size_t offset=0)
 
virtual char get ()
 
void get (char &c)
 

Detailed Description

template<typename AsyncReadStream>
class fc::asio::istream< AsyncReadStream >

Definition at line 280 of file asio.hpp.

Constructor & Destructor Documentation

template<typename AsyncReadStream >
fc::asio::istream< AsyncReadStream >::istream ( std::shared_ptr< AsyncReadStream >  str)
inline

Definition at line 283 of file asio.hpp.

Member Function Documentation

template<typename AsyncReadStream >
virtual size_t fc::asio::istream< AsyncReadStream >::readsome ( char *  buf,
size_t  len 
)
inlinevirtual

read at least 1 byte or throw, if no data is available this method should block cooperatively until data is available or fc::eof is thrown.

Exceptions
fc::eofif at least 1 byte cannot be read

Implements fc::istream.

Definition at line 286 of file asio.hpp.

template<typename AsyncReadStream >
virtual size_t fc::asio::istream< AsyncReadStream >::readsome ( const std::shared_ptr< char > &  buf,
size_t  len,
size_t  offset 
)
inlinevirtual

Implements fc::istream.

Definition at line 290 of file asio.hpp.


The documentation for this class was generated from the following file: