BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface software
Public Member Functions | List of all members
fc::buffered_ostream Class Reference

#include <buffered_iostream.hpp>

Inheritance diagram for fc::buffered_ostream:
fc::ostream graphene::utilities::padding_ostream< BlockSize, PaddingChar >

Public Member Functions

 buffered_ostream (ostream_ptr o, size_t bufsize=4096)
 
 buffered_ostream (buffered_ostream &&m)
 
 ~buffered_ostream ()
 
buffered_ostreamoperator= (buffered_ostream &&m)
 
virtual size_t writesome (const char *buf, size_t len)
 
virtual size_t writesome (const std::shared_ptr< const char > &buf, size_t len, size_t offset)
 
virtual void close ()
 
virtual void flush ()
 
- Public Member Functions inherited from fc::ostream
virtual ~ostream ()
 
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

Definition at line 52 of file buffered_iostream.hpp.

Constructor & Destructor Documentation

fc::buffered_ostream::buffered_ostream ( ostream_ptr  o,
size_t  bufsize = 4096 
)

Definition at line 153 of file buffered_iostream.cpp.

fc::buffered_ostream::buffered_ostream ( buffered_ostream &&  m)

Definition at line 158 of file buffered_iostream.cpp.

fc::buffered_ostream::~buffered_ostream ( )

Definition at line 167 of file buffered_iostream.cpp.

Member Function Documentation

void fc::buffered_ostream::close ( )
virtual

Implements fc::ostream.

Definition at line 202 of file buffered_iostream.cpp.

void fc::buffered_ostream::flush ( )
virtual
buffered_ostream & fc::buffered_ostream::operator= ( buffered_ostream &&  m)

Definition at line 161 of file buffered_iostream.cpp.

size_t fc::buffered_ostream::writesome ( const char *  buf,
size_t  len 
)
virtual

This method will return immediately unless the buffer is full, in which case it will flush which may block.

Implements fc::ostream.

Reimplemented in graphene::utilities::padding_ostream< BlockSize, PaddingChar >.

Definition at line 169 of file buffered_iostream.cpp.

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

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