BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet 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 279 of file asio.hpp.

Constructor & Destructor Documentation

◆ istream()

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

Definition at line 282 of file asio.hpp.

Member Function Documentation

◆ readsome() [1/2]

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 285 of file asio.hpp.

◆ readsome() [2/2]

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 289 of file asio.hpp.


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