BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Public Member Functions | List of all members
fc::ostream Class Referenceabstract

#include <iostream.hpp>

Inheritance diagram for fc::ostream:
fc::asio::ostream< AsyncWriteStream > fc::buffered_ostream fc::cerr_t fc::cout_t fc::iostream fc::ofstream graphene::utilities::padding_ostream< BlockSize, PaddingChar > fc::stringstream fc::tcp_socket graphene::net::stcp_socket

Public Member Functions

virtual ~ostream ()
virtual size_t writesome (const char *buf, size_t len)=0
virtual size_t writesome (const std::shared_ptr< const char > &buf, size_t len, size_t offset)=0
virtual void close ()=0
virtual void flush ()=0
void put (char c)
ostreamwrite (const char *buf, size_t len)
ostreamwrite (const std::shared_ptr< const char > &buf, size_t len, size_t offset=0)

Detailed Description

Provides a fc::thread friendly cooperatively multi-tasked stream that will block 'cooperatively' instead of hard blocking.

Definition at line 41 of file iostream.hpp.

Constructor & Destructor Documentation

◆ ~ostream()

virtual fc::ostream::~ostream ( )

Definition at line 44 of file iostream.hpp.

Member Function Documentation

◆ close()

virtual void fc::ostream::close ( )
pure virtual

◆ flush()

virtual void fc::ostream::flush ( )
pure virtual

◆ put()

void fc::ostream::put ( char  c)

Definition at line 50 of file iostream.hpp.

◆ write() [1/2]

ostream & fc::ostream::write ( const char *  buf,
size_t  len 

implemented in terms of writesome, guarantees len bytes are sent but not flushed.

Definition at line 290 of file iostream.cpp.

◆ write() [2/2]

ostream & fc::ostream::write ( const std::shared_ptr< const char > &  buf,
size_t  len,
size_t  offset = 0 

Definition at line 298 of file iostream.cpp.

◆ writesome() [1/2]

virtual size_t fc::ostream::writesome ( const char *  buf,
size_t  len 
pure virtual

◆ writesome() [2/2]

virtual size_t fc::ostream::writesome ( const std::shared_ptr< const char > &  buf,
size_t  len,
size_t  offset 
pure virtual

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