zipios::InflateInputStreambuf Class Reference

InflateInputStreambuf is an input stream filter, that inflates the input from the attached input stream. More...

#include <inflateinputstreambuf.h>

Public Member Functions

 InflateInputStreambuf (streambuf *inbuf, int s_pos=-1, bool del_inbuf=false)
 InflateInputStreambuf constructor. More...
 
bool reset (int stream_position=-1)
 Resets the zlib stream and purges input and output buffers. More...
 
virtual ~InflateInputStreambuf ()
 
- Public Member Functions inherited from zipios::FilterInputStreambuf
 FilterInputStreambuf (streambuf *inbuf, bool del_inbuf=false)
 Constructor. More...
 
virtual ~FilterInputStreambuf ()
 Destructor. More...
 

Protected Member Functions

virtual int underflow ()
 

Detailed Description

InflateInputStreambuf is an input stream filter, that inflates the input from the attached input stream.

Deflation/Inflation is a compression/decompression method used in gzip and zip. The zlib library is used to perform the actual inflation, this class only wraps the functionality in an input stream filter.

Constructor & Destructor Documentation

◆ InflateInputStreambuf()

zipios::InflateInputStreambuf::InflateInputStreambuf ( streambuf *  inbuf,
int  s_pos = -1,
bool  del_inbuf = false 
)
explicit

InflateInputStreambuf constructor.

Parameters
inbufthe streambuf to use for input.
s_posa position to reset the inbuf to before reading. Specify -1 to read from the current position.
del_inbufif true is specified inbuf will be deleted, when the InflateInputStreambuf is destructed.

References reset().

◆ ~InflateInputStreambuf()

zipios::InflateInputStreambuf::~InflateInputStreambuf ( )
virtual

Member Function Documentation

◆ reset()

bool zipios::InflateInputStreambuf::reset ( int  stream_position = -1)

Resets the zlib stream and purges input and output buffers.

repositions the input streambuf at stream_position.

Parameters
stream_positiona position to reset the inbuf to before reading. Specify -1 to read from the current position.

Referenced by zipios::ZipInputStreambuf::getNextEntry(), InflateInputStreambuf(), and draftguitools.gui_trackers.gridTracker::set().

◆ underflow()

int zipios::InflateInputStreambuf::underflow ( )
protectedvirtual

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