Searched refs:file_header (Results 1 – 1 of 1) sorted by relevance
321 ZipFileHeader file_header; in AddFile() local322 file_header.crc32 = crc32(0u, reinterpret_cast<const Bytef*>(data), size); in AddFile()323 file_header.compressed_size = size; in AddFile()324 file_header.uncompressed_size = size; in AddFile()325 file_header.filename_length = strlen(location); in AddFile()327 if (!zip_file_->WriteFully(&file_header, sizeof(file_header)) || in AddFile()328 !zip_file_->WriteFully(location, file_header.filename_length) || in AddFile()334 cdfh.crc32 = file_header.crc32; in AddFile()337 cdfh.filename_length = file_header.filename_length; in AddFile()