13 |
using std::ios ; |
using std::ios ; |
14 |
using std::cerr ; |
using std::cerr ; |
15 |
using std::endl ; |
using std::endl ; |
16 |
using std::min ; |
//using std::min ; |
17 |
|
|
18 |
ZipOutputStreambuf::ZipOutputStreambuf( streambuf *outbuf, bool del_outbuf ) |
ZipOutputStreambuf::ZipOutputStreambuf( streambuf *outbuf, bool del_outbuf ) |
19 |
: DeflateOutputStreambuf( outbuf, false, del_outbuf ), |
: DeflateOutputStreambuf( outbuf, false, del_outbuf ), |
154 |
EndOfCentralDirectory eocd, |
EndOfCentralDirectory eocd, |
155 |
ostream &os ) { |
ostream &os ) { |
156 |
int cdir_start = os.tellp() ; |
int cdir_start = os.tellp() ; |
157 |
vector< ZipCDirEntry >::const_iterator it ; |
std::vector< ZipCDirEntry >::const_iterator it ; |
158 |
int cdir_size = 0 ; |
int cdir_size = 0 ; |
159 |
|
|
160 |
for ( it = entries.begin() ; it != entries.end() ; ++it ) { |
for ( it = entries.begin() ; it != entries.end() ; ++it ) { |