24 entries =
new std::vector<ZipEntry*>();
33 if (entry == NULL)
return;
53 long dirStart =
pos();
54 for (std::vector<ZipEntry*>::iterator i=entries->begin(); i != entries->end(); i++) {
58 putUS(VERSIONEXTRACT);
80 long dirSize = (long)
pos() - dirStart;
84 putUS(entries->size());
85 putUS(entries->size());
88 putUS(comment.length());
101 #ifdef CHEPREP_NO_ZLIB
107 entries->push_back(entry);
110 entry->
method = compress ? 8 : 0;
114 struct tm *utc = gmtime( <ime );
115 entry->
date = (utc->tm_year - 80) << 9 | (utc->tm_mon + 1) << 5 | utc->tm_mday;
116 entry->
time = utc->tm_hour << 11 | utc->tm_min << 5 | utc->tm_sec >> 1;
120 putUS(VERSIONEXTRACT);
virtual ~ZipOutputStreamBuffer()
void putUI(unsigned int ui)
void putNextEntry(const std::string &name, bool compress)
void putS(const std::string s)
ZipOutputStreamBuffer(std::streambuf *buffer)
int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
void setComment(const std::string &comment)
void putUS(unsigned short us)