Lines Matching full:fileinfo
174 FileInfo fileInfo = {};
175 fileInfo.path = std::string(path);
176 fileInfo.local_file_header_offset = current_offset_;
178 if (!IsValidEntryName(reinterpret_cast<const uint8_t*>(fileInfo.path.data()),
179 fileInfo.path.size())) {
191 fileInfo.compression_method = kCompressDeflated;
198 fileInfo.compression_method = kCompressStored;
200 header.compression_method = fileInfo.compression_method;
202 ExtractTimeAndDate(time, &fileInfo.last_mod_time, &fileInfo.last_mod_date);
203 header.last_mod_time = fileInfo.last_mod_time;
204 header.last_mod_date = fileInfo.last_mod_date;
206 header.file_name_length = fileInfo.path.size();
208 off64_t offset = current_offset_ + sizeof(header) + fileInfo.path.size();
223 if (fwrite(path, sizeof(*path), fileInfo.path.size(), file_) != fileInfo.path.size()) {
233 files_.emplace_back(std::move(fileInfo));
268 FileInfo& currentFile = files_.back();
285 int32_t ZipWriter::StoreBytes(FileInfo* file, const void* data, size_t len) {
296 int32_t ZipWriter::CompressBytes(FileInfo* file, const void* data, size_t len) {
330 int32_t ZipWriter::FlushCompressedBytes(FileInfo* file) {
372 FileInfo& currentFile = files_.back();
405 for (FileInfo& file : files_) {