H A D | hnp_zip.c | 72 static int ZipAddFile(const char* file, int offset, zipFile zf)
in ZipAddFile() argument 102 err = zipOpenNewFileInZip3(zf, transPath + offset, &fileInfo, NULL, 0, NULL, 0, NULL, Z_DEFLATED,
in ZipAddFile() 119 zipWriteInFileInZip(zf, buf, len);
in ZipAddFile() 122 zipCloseFileInZip(zf);
in ZipAddFile() 149 static int ZipAddDir(const char *sourcePath, int offset, zipFile zf);
151 static int ZipHandleDir(char *fullPath, int offset, zipFile zf)
in ZipHandleDir() argument 156 if (zipOpenNewFileInZip3(zf, transPath + offset, NULL, NULL, 0, NULL, 0, NULL, Z_DEFLATED,
in ZipHandleDir() 162 zipCloseFileInZip(zf);
in ZipHandleDir() 163 ret = ZipAddDir(fullPath, offset, zf);
in ZipHandleDir() 171 // sourcePath--文件夹路径 zf 172 ZipAddDir(const char *sourcePath, int offset, zipFile zf) ZipAddDir() argument 223 ZipDir(const char *sourcePath, int offset, zipFile zf) ZipDir() argument 243 HnpZip(const char *inputDir, zipFile zf) HnpZip() argument 270 HnpAddFileToZip(zipFile zf, char *filename, char *buff, int size) HnpAddFileToZip() argument [all...] |