Lines Matching refs:zip_file
19 bool AddFileContentToZip(zipFile zip_file, in AddFileContentToZip() argument
28 if (zipWriteInFileInZip(zip_file, buf, num_bytes) != ZIP_OK) { in AddFileContentToZip()
39 bool OpenNewFileEntry(zipFile zip_file, in OpenNewFileEntry() argument
50 return zip::internal::ZipOpenNewFileInZip(zip_file, str_path, last_modified); in OpenNewFileEntry()
53 bool CloseNewFileEntry(zipFile zip_file) { in CloseNewFileEntry() argument
54 return zipCloseFileInZip(zip_file) == ZIP_OK; in CloseNewFileEntry()
57 bool AddFileEntryToZip(zipFile zip_file, in AddFileEntryToZip() argument
64 if (!OpenNewFileEntry(zip_file, path, /*is_directory=*/false, in AddFileEntryToZip()
68 bool success = AddFileContentToZip(zip_file, std::move(file), path); in AddFileEntryToZip()
69 if (!CloseNewFileEntry(zip_file)) in AddFileEntryToZip()
75 bool AddDirectoryEntryToZip(zipFile zip_file, in AddDirectoryEntryToZip() argument
78 return OpenNewFileEntry(zip_file, path, /*is_directory=*/true, in AddDirectoryEntryToZip()
80 CloseNewFileEntry(zip_file); in AddDirectoryEntryToZip()
92 zipFile zip_file = in CreateWithFd() local
94 if (!zip_file) { in CreateWithFd()
99 new ZipWriter(zip_file, root_dir, file_accessor)); in CreateWithFd()
109 zipFile zip_file = internal::OpenForZipping(zip_file_path.AsUTF8Unsafe(), in Create() local
111 if (!zip_file) { in Create()
116 new ZipWriter(zip_file, root_dir, file_accessor)); in Create()
119 ZipWriter::ZipWriter(zipFile zip_file, in ZipWriter() argument
122 : zip_file_(zip_file), root_dir_(root_dir), file_accessor_(file_accessor) {} in ZipWriter()