Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::size_stream Class Reference

#include <iobuffer.hpp>

Inheritance diagram for fc::size_stream:
Collaboration diagram for fc::size_stream:

Public Member Functions

 size_stream (size_t s=0)
 
size_t size () const
 
size_t seek (size_t pos)
 
virtual size_t writesome (const char *, size_t len)
 
virtual void close ()
 
virtual void flush ()
 

Detailed Description

Records the size, but discards the data.

Definition at line 10 of file iobuffer.hpp.

Constructor & Destructor Documentation

◆ size_stream()

fc::size_stream::size_stream ( size_t s = 0)
inline

Definition at line 13 of file iobuffer.hpp.

13:_size(s){}
char * s

Member Function Documentation

◆ close()

virtual void fc::size_stream::close ( )
inlinevirtual

Definition at line 24 of file iobuffer.hpp.

24{}

◆ flush()

virtual void fc::size_stream::flush ( )
inlinevirtual

Definition at line 25 of file iobuffer.hpp.

25{}

◆ seek()

size_t fc::size_stream::seek ( size_t pos)
inline

Definition at line 16 of file iobuffer.hpp.

16{ return _size = pos; }

◆ size()

size_t fc::size_stream::size ( ) const
inline

Definition at line 15 of file iobuffer.hpp.

15{ return _size; }

◆ writesome()

virtual size_t fc::size_stream::writesome ( const char * ,
size_t len )
inlinevirtual

Definition at line 18 of file iobuffer.hpp.

19 {
20 _size += len;
21 return len;
22 }
size_t len

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