1 #ifndef DEFLATEOUTPUTSTREAMBUF_H 2 #define DEFLATEOUTPUTSTREAMBUF_H 4 #include "zipios++/zipios-config.h" 6 #include "zipios++/meta-iostreams.h" 35 bool del_outbuf =
false ) ;
40 bool init(
int comp_level = 6 ) ;
55 uint32
getCount()
const {
return _overflown_bytes ; }
58 virtual int overflow(
int c = EOF ) ;
70 bool _zs_initialized ;
72 const int _invecsize ;
73 vector< char > _invec ;
74 const int _outvecsize ;
75 vector< char > _outvec ;
78 uint32 _overflown_bytes ;
DeflateOutputStreambuf(streambuf *outbuf, bool user_init=false, bool del_outbuf=false)
DeflateOutputStreambuf constructor.
bool flushOutvec()
Flushes _outvec and updates _zs.next_out and _zs.avail_out.
Header file that defines some simple data types.
Header file containing classes and functions for reading the central directory and local header field...
DeflateOutputStreambuf is an output stream filter, that deflates the data that is written to it befor...
uint32 getCount() const
Returns the number of bytes written to the streambuf, that has been processed from the input buffer b...
Header file that defines FilterOutputStreambuf.
uint32 getCrc32() const
Returns the CRC32 for the current stream.
virtual ~DeflateOutputStreambuf()
Destructor.
A FilterOutputStreambuf is a streambuf that filters the data that is written to it before it passes i...
void endDeflation()
Flushes the remaining data in the zlib buffers, after which the only possible operations are deflateE...