BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
#include <iostream.hpp>
Public Member Functions | |
virtual | ~istream () |
virtual size_t | readsome (char *buf, size_t len)=0 |
virtual size_t | readsome (const std::shared_ptr< char > &buf, size_t len, size_t offset)=0 |
istream & | read (char *buf, size_t len) |
istream & | read (const std::shared_ptr< char > &buf, size_t len, size_t offset=0) |
virtual char | get () |
void | get (char &c) |
Provides a fc::thread friendly cooperatively multi-tasked stream that will block 'cooperatively' instead of hard blocking.
Definition at line 11 of file iostream.hpp.
|
inlinevirtual |
Definition at line 14 of file iostream.hpp.
|
virtual |
Definition at line 267 of file iostream.cpp.
|
inline |
Definition at line 33 of file iostream.hpp.
istream & fc::istream::read | ( | char * | buf, |
size_t | len | ||
) |
read len bytes or throw, this method is implemented in terms of readsome.
fc::eof_exception | if len bytes cannot be read |
Definition at line 274 of file iostream.cpp.
istream & fc::istream::read | ( | const std::shared_ptr< char > & | buf, |
size_t | len, | ||
size_t | offset = 0 |
||
) |
Definition at line 282 of file iostream.cpp.
|
pure virtual |
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.
fc::eof | if at least 1 byte cannot be read |
Implemented in graphene::net::stcp_socket, fc::tcp_socket, fc::asio::istream< AsyncReadStream >, fc::ifstream, fc::buffered_istream, fc::cin_t, and fc::stringstream.
|
pure virtual |