Lines Matching refs:file_entry
212 FileEntry file_entry = {};
213 file_entry.local_file_header_offset = current_offset_;
214 file_entry.path = path;
216 if (!IsValidEntryName(reinterpret_cast<const uint8_t*>(file_entry.path.data()),
217 file_entry.path.size())) {
222 file_entry.compression_method = kCompressDeflated;
229 file_entry.compression_method = kCompressStored;
232 ExtractTimeAndDate(time, &file_entry.last_mod_time, &file_entry.last_mod_date);
234 off_t offset = current_offset_ + sizeof(LocalFileHeader) + file_entry.path.size();
239 file_entry.padding_length = padding;
247 CopyFromFileEntry(file_entry, true /*use_data_descriptor*/, &header);
253 if (fwrite(path, sizeof(*path), file_entry.path.size(), file_) != file_entry.path.size()) {
257 if (file_entry.padding_length != 0 && fwrite(zero_padding.data(), 1, file_entry.padding_length,
258 file_) != file_entry.padding_length) {
262 current_file_entry_ = std::move(file_entry);