• Home
  • Raw
  • Download

Lines Matching refs:cdr

513     auto cdr = reinterpret_cast<const CentralDirectoryRecord*>(ptr);  in ParseZipArchive()  local
514 if (cdr->record_signature != CentralDirectoryRecord::kSignature) { in ParseZipArchive()
519 const uint16_t file_name_length = cdr->file_name_length; in ParseZipArchive()
520 const uint16_t extra_length = cdr->extra_field_length; in ParseZipArchive()
521 const uint16_t comment_length = cdr->comment_length; in ParseZipArchive()
539 off64_t local_header_offset = cdr->local_file_header_offset; in ParseZipArchive()
543 extra_field, extra_length, cdr->uncompressed_size, cdr->compressed_size, in ParseZipArchive()
544 cdr->local_file_header_offset, &zip64_info); in ParseZipArchive()
741 auto cdr = reinterpret_cast<const CentralDirectoryRecord*>(ptr); in FindEntry() local
751 data->method = cdr->compression_method; in FindEntry()
752 data->mod_time = cdr->last_mod_date << 16 | cdr->last_mod_time; in FindEntry()
753 data->crc32 = cdr->crc32; in FindEntry()
754 data->compressed_length = cdr->compressed_size; in FindEntry()
755 data->uncompressed_length = cdr->uncompressed_size; in FindEntry()
760 off64_t local_header_offset = cdr->local_file_header_offset; in FindEntry()
763 if (cdr->uncompressed_size == UINT32_MAX || cdr->compressed_size == UINT32_MAX || in FindEntry()
764 cdr->local_file_header_offset == UINT32_MAX) { in FindEntry()
765 const uint8_t* extra_field = ptr + sizeof(CentralDirectoryRecord) + cdr->file_name_length; in FindEntry()
768 extra_field, cdr->extra_field_length, cdr->uncompressed_size, cdr->compressed_size, in FindEntry()
769 cdr->local_file_header_offset, &zip64_info); in FindEntry()
774 data->uncompressed_length = zip64_info.uncompressed_file_size.value_or(cdr->uncompressed_size); in FindEntry()
775 data->compressed_length = zip64_info.compressed_file_size.value_or(cdr->compressed_size); in FindEntry()
778 cdr->uncompressed_size == UINT32_MAX || cdr->compressed_size == UINT32_MAX; in FindEntry()
887 if ((lfh->gpb_flags & kGPBDDFlagMask) != (cdr->gpb_flags & kGPBDDFlagMask)) { in FindEntry()
889 cdr->gpb_flags, lfh->gpb_flags); in FindEntry()
909 data->version_made_by = cdr->version_made_by; in FindEntry()
910 data->external_file_attributes = cdr->external_file_attributes; in FindEntry()
912 data->unix_mode = (cdr->external_file_attributes >> 16) & 0xffff; in FindEntry()
922 data->is_text = (cdr->internal_file_attributes & 1); in FindEntry()