23 entries =
new std::vector<ZipEntry*>();
32 if (entry == NULL)
return;
52 long dirStart =
pos();
53 for (std::vector<ZipEntry*>::iterator i=entries->begin(); i != entries->end(); i++) {
57 putUS(VERSIONEXTRACT);
79 long dirSize = (long)
pos() - dirStart;
83 putUS(entries->size());
84 putUS(entries->size());
87 putUS(comment.length());
100#ifdef CHEPREP_NO_ZLIB
106 entries->push_back(entry);
113 struct tm *utc = gmtime( <ime );
114 entry->
date = (utc->tm_year - 80) << 9 | (utc->tm_mon + 1) << 5 | utc->tm_mday;
115 entry->
time = utc->tm_hour << 11 | utc->tm_min << 5 | utc->tm_sec >> 1;
119 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)