Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::chain::detail::ostream_wrapper Struct Reference

#include <snapshot.hpp>

Public Member Functions

 ostream_wrapper (std::ostream &s)
 
 ostream_wrapper (ostream_wrapper &&)=default
 
 ostream_wrapper (const ostream_wrapper &)=default
 
auto & write (const char *d, size_t s)
 
auto & put (char c)
 
auto tellp () const
 
auto & seekp (std::ostream::pos_type p)
 

Public Attributes

std::ostream & inner
 

Detailed Description

Due to a pattern in our code of overloading operator << ( std::ostream&, ... ) to provide human-readable string forms of data, we cannot directly use ostream as those operators will be used instead of the expected operators. In otherwords: fc::raw::pack(fc::datastream...) will end up calling very different operators than fc::raw::pack(std::ostream...)

Definition at line 42 of file snapshot.hpp.

Constructor & Destructor Documentation

◆ ostream_wrapper() [1/3]

sysio::chain::detail::ostream_wrapper::ostream_wrapper ( std::ostream & s)
inlineexplicit

Definition at line 43 of file snapshot.hpp.

44 :inner(s) {
45
46 }
char * s

◆ ostream_wrapper() [2/3]

sysio::chain::detail::ostream_wrapper::ostream_wrapper ( ostream_wrapper && )
default

◆ ostream_wrapper() [3/3]

sysio::chain::detail::ostream_wrapper::ostream_wrapper ( const ostream_wrapper & )
default

Member Function Documentation

◆ put()

auto & sysio::chain::detail::ostream_wrapper::put ( char c)
inline

Definition at line 55 of file snapshot.hpp.

55 {
56 return inner.put(c);
57 }

◆ seekp()

auto & sysio::chain::detail::ostream_wrapper::seekp ( std::ostream::pos_type p)
inline

Definition at line 63 of file snapshot.hpp.

63 {
64 return inner.seekp(p);
65 }
const mie::Vuint & p
Definition bn.cpp:27

◆ tellp()

auto sysio::chain::detail::ostream_wrapper::tellp ( ) const
inline

Definition at line 59 of file snapshot.hpp.

59 {
60 return inner.tellp();
61 }

◆ write()

auto & sysio::chain::detail::ostream_wrapper::write ( const char * d,
size_t s )
inline

Definition at line 51 of file snapshot.hpp.

51 {
52 return inner.write(d, s);
53 }

Member Data Documentation

◆ inner

std::ostream& sysio::chain::detail::ostream_wrapper::inner

Definition at line 67 of file snapshot.hpp.


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