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 is an output stream filter, that deflates the data that is written to it befor...
virtual ~DeflateOutputStreambuf()
Destructor.
uint32 getCrc32() const
Returns the CRC32 for the current stream.
void endDeflation()
Flushes the remaining data in the zlib buffers, after which the only possible operations are deflateE...
bool flushOutvec()
Flushes _outvec and updates _zs.next_out and _zs.avail_out.
uint32 getCount() const
Returns the number of bytes written to the streambuf, that has been processed from the input buffer b...
A FilterOutputStreambuf is a streambuf that filters the data that is written to it before it passes i...
Header file that defines FilterOutputStreambuf.
Header file containing classes and functions for reading the central directory and local header field...
Header file that defines some simple data types.