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);
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);
void putS(const std::string s)
void putUI(unsigned int ui)
void putUS(unsigned short us)
void setComment(const std::string &comment)
ZipOutputStreamBuffer(std::streambuf *buffer)
void putNextEntry(const std::string &name, bool compress)
virtual ~ZipOutputStreamBuffer()
int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)