Lines Matching refs:cdr

474     auto cdr = reinterpret_cast<const CentralDirectoryRecord*>(ptr);  in ParseZipArchive()  local
475 if (cdr->record_signature != CentralDirectoryRecord::kSignature) { in ParseZipArchive()
480 const uint16_t file_name_length = cdr->file_name_length; in ParseZipArchive()
481 const uint16_t extra_length = cdr->extra_field_length; in ParseZipArchive()
482 const uint16_t comment_length = cdr->comment_length; in ParseZipArchive()
500 off64_t local_header_offset = cdr->local_file_header_offset; in ParseZipArchive()
504 extra_field, extra_length, cdr->uncompressed_size, cdr->compressed_size, in ParseZipArchive()
505 cdr->local_file_header_offset, &zip64_info); in ParseZipArchive()
688 auto cdr = reinterpret_cast<const CentralDirectoryRecord*>(ptr); in FindEntry() local
698 data->method = cdr->compression_method; in FindEntry()
699 data->mod_time = cdr->last_mod_date << 16 | cdr->last_mod_time; in FindEntry()
700 data->crc32 = cdr->crc32; in FindEntry()
701 data->compressed_length = cdr->compressed_size; in FindEntry()
702 data->uncompressed_length = cdr->uncompressed_size; in FindEntry()
707 off64_t local_header_offset = cdr->local_file_header_offset; in FindEntry()
710 if (cdr->uncompressed_size == UINT32_MAX || cdr->compressed_size == UINT32_MAX || in FindEntry()
711 cdr->local_file_header_offset == UINT32_MAX) { in FindEntry()
712 const uint8_t* extra_field = ptr + sizeof(CentralDirectoryRecord) + cdr->file_name_length; in FindEntry()
715 extra_field, cdr->extra_field_length, cdr->uncompressed_size, cdr->compressed_size, in FindEntry()
716 cdr->local_file_header_offset, &zip64_info); in FindEntry()
721 data->uncompressed_length = zip64_info.uncompressed_file_size.value_or(cdr->uncompressed_size); in FindEntry()
722 data->compressed_length = zip64_info.compressed_file_size.value_or(cdr->compressed_size); in FindEntry()
725 cdr->uncompressed_size == UINT32_MAX || cdr->compressed_size == UINT32_MAX; in FindEntry()
825 if ((lfh->gpb_flags & kGPBDDFlagMask) != (cdr->gpb_flags & kGPBDDFlagMask)) { in FindEntry()
827 cdr->gpb_flags, lfh->gpb_flags); in FindEntry()
847 data->version_made_by = cdr->version_made_by; in FindEntry()
848 data->external_file_attributes = cdr->external_file_attributes; in FindEntry()
850 data->unix_mode = (cdr->external_file_attributes >> 16) & 0xffff; in FindEntry()
860 data->is_text = (cdr->internal_file_attributes & 1); in FindEntry()