BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet 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

◆ buffered_ostream() [1/2]

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

Definition at line 153 of file buffered_iostream.cpp.

◆ buffered_ostream() [2/2]

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

Definition at line 158 of file buffered_iostream.cpp.

◆ ~buffered_ostream()

fc::buffered_ostream::~buffered_ostream ( )

Definition at line 167 of file buffered_iostream.cpp.

Member Function Documentation

◆ close()

void fc::buffered_ostream::close ( )
virtual

Implements fc::ostream.

Definition at line 202 of file buffered_iostream.cpp.

◆ flush()

void fc::buffered_ostream::flush ( )
virtual

◆ operator=()

buffered_ostream & fc::buffered_ostream::operator= ( buffered_ostream &&  m)

Definition at line 161 of file buffered_iostream.cpp.

◆ writesome() [1/2]

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.

◆ writesome() [2/2]

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: