BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface software
Public Member Functions | List of all members
graphene::utilities::padding_ostream< BlockSize, PaddingChar > Class Template Reference

#include <padding_ostream.hpp>

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

Public Member Functions

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

template<size_t BlockSize = 16, char PaddingChar = ' '>
class graphene::utilities::padding_ostream< BlockSize, PaddingChar >

Definition at line 29 of file padding_ostream.hpp.

Constructor & Destructor Documentation

template<size_t BlockSize = 16, char PaddingChar = ' '>
graphene::utilities::padding_ostream< BlockSize, PaddingChar >::padding_ostream ( fc::ostream_ptr  o,
size_t  bufsize = 4096 
)
inline

Definition at line 31 of file padding_ostream.hpp.

template<size_t BlockSize = 16, char PaddingChar = ' '>
virtual graphene::utilities::padding_ostream< BlockSize, PaddingChar >::~padding_ostream ( )
inlinevirtual

Definition at line 32 of file padding_ostream.hpp.

Member Function Documentation

template<size_t BlockSize = 16, char PaddingChar = ' '>
virtual void graphene::utilities::padding_ostream< BlockSize, PaddingChar >::flush ( )
inlinevirtual

Reimplemented from fc::buffered_ostream.

Definition at line 46 of file padding_ostream.hpp.

template<size_t BlockSize = 16, char PaddingChar = ' '>
virtual size_t graphene::utilities::padding_ostream< BlockSize, PaddingChar >::writesome ( const char *  buf,
size_t  len 
)
inlinevirtual

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

Reimplemented from fc::buffered_ostream.

Definition at line 34 of file padding_ostream.hpp.

template<size_t BlockSize = 16, char PaddingChar = ' '>
virtual size_t graphene::utilities::padding_ostream< BlockSize, PaddingChar >::writesome ( const std::shared_ptr< const char > &  buf,
size_t  len,
size_t  offset 
)
inlinevirtual

Reimplemented from fc::buffered_ostream.

Definition at line 40 of file padding_ostream.hpp.


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