Home
last modified time | relevance | path

Searched refs:zf (Results 1 - 4 of 4) sorted by relevance

/base/startup/appspawn/service/hnp/base/
H A Dhnp_zip.c72 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...]
H A Dhnp_base.h264 int HnpZip(const char *inputDir, zipFile zf);
269 int HnpAddFileToZip(zipFile zf, char *filename, char *buff, int size);
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/src/
H A Ddlp_zip.cpp52 zipFile zf = zipOpen64(zipName, APPEND_STATUS_ADDINZIP); in AddBuffToZip() local
53 if (zf == nullptr) { in AddBuffToZip()
61 int32_t err = zipOpenNewFileInZip3_64(zf, nameInZip, &zi, in AddBuffToZip()
70 (void)zipClose(zf, NULL); in AddBuffToZip()
74 err = zipWriteInFileInZip (zf, buf, (unsigned)size); in AddBuffToZip()
80 if (zipCloseFileInZip(zf) != ZIP_OK) { in AddBuffToZip()
85 if (zipClose(zf, NULL) != ZIP_OK) { in AddBuffToZip()
95 zipFile zf = zipOpen64(zipName, APPEND_STATUS_ADDINZIP); in AddFileContextToZip() local
96 if (zf == nullptr) { in AddFileContextToZip()
104 int32_t err = zipOpenNewFileInZip3_64(zf, nameInZi in AddFileContextToZip()
[all...]
/base/startup/appspawn/service/hnp/pack/src/
H A Dhnp_pack.c29 static int AddHnpCfgFileToZip(zipFile zf, const char *hnpSrcPath, HnpCfgInfo *hnpCfg) in AddHnpCfgFileToZip() argument
58 ret = HnpAddFileToZip(zf, hnpCfgFile, buff, strlen(buff) + 1); in AddHnpCfgFileToZip()
86 zipFile zf = zipOpen(hnp_file_path, APPEND_STATUS_CREATE); in PackHnp() local
87 if (zf == NULL) { in PackHnp()
93 ret = HnpZip(hnpSrcPath, zf); in PackHnp()
97 zipClose(zf, NULL); in PackHnp()
103 ret = AddHnpCfgFileToZip(zf, hnpSrcPath, &hnpPack->cfgInfo); in PackHnp()
107 zipClose(zf, NULL); in PackHnp()
112 zipClose(zf, NULL); in PackHnp()

Completed in 3 milliseconds