Lines Matching refs:file_entry
223 FileEntry file_entry = {}; in StartAlignedEntryWithTime() local
224 file_entry.local_file_header_offset = current_offset_; in StartAlignedEntryWithTime()
225 file_entry.path = path; in StartAlignedEntryWithTime()
227 if (file_entry.local_file_header_offset > std::numeric_limits<uint32_t>::max()) { in StartAlignedEntryWithTime()
231 if (!IsValidEntryName(reinterpret_cast<const uint8_t*>(file_entry.path.data()), in StartAlignedEntryWithTime()
232 file_entry.path.size())) { in StartAlignedEntryWithTime()
237 file_entry.compression_method = kCompressDeflated; in StartAlignedEntryWithTime()
245 file_entry.compression_method = kCompressStored; in StartAlignedEntryWithTime()
248 ExtractTimeAndDate(time, &file_entry.last_mod_time, &file_entry.last_mod_date); in StartAlignedEntryWithTime()
250 off_t offset = current_offset_ + sizeof(LocalFileHeader) + file_entry.path.size(); in StartAlignedEntryWithTime()
261 file_entry.padding_length = padding; in StartAlignedEntryWithTime()
274 CopyFromFileEntry(file_entry, true /*use_data_descriptor*/, &header); in StartAlignedEntryWithTime()
284 if (file_entry.padding_length != 0 && fwrite(zero_padding, 1, file_entry.padding_length, in StartAlignedEntryWithTime()
285 file_) != file_entry.padding_length) { in StartAlignedEntryWithTime()
289 current_file_entry_ = std::move(file_entry); in StartAlignedEntryWithTime()