Home
last modified time | relevance | path

Searched refs:cdr (Results 1 – 3 of 3) sorted by relevance

/system/libziparchive/
Dzip_archive.cc560 auto cdr = reinterpret_cast<const CentralDirectoryRecord*>(ptr); in ParseZipArchive() local
561 if (cdr->record_signature != CentralDirectoryRecord::kSignature) { in ParseZipArchive()
566 const uint16_t file_name_length = cdr->file_name_length; in ParseZipArchive()
567 const uint16_t extra_length = cdr->extra_field_length; in ParseZipArchive()
568 const uint16_t comment_length = cdr->comment_length; in ParseZipArchive()
588 off64_t local_header_offset = cdr->local_file_header_offset; in ParseZipArchive()
592 extra_field, extra_length, cdr->uncompressed_size, cdr->compressed_size, in ParseZipArchive()
593 cdr->local_file_header_offset, &zip64_info); in ParseZipArchive()
629 auto cdr = reinterpret_cast<const CentralDirectoryRecord*>(ptr); in ParseZipArchive() local
630 std::string_view entry_name{reinterpret_cast<const char*>(ptr + sizeof(*cdr)), in ParseZipArchive()
[all …]
Dzip_writer.cc519 CentralDirectoryRecord cdr = {}; in Finish() local
520 cdr.record_signature = CentralDirectoryRecord::kSignature; in Finish()
522 cdr.gpb_flags |= kGPBDDFlagMask; in Finish()
524 cdr.compression_method = file.compression_method; in Finish()
525 cdr.last_mod_time = file.last_mod_time; in Finish()
526 cdr.last_mod_date = file.last_mod_date; in Finish()
527 cdr.crc32 = file.crc32; in Finish()
528 cdr.compressed_size = file.compressed_size; in Finish()
529 cdr.uncompressed_size = file.uncompressed_size; in Finish()
532 cdr.file_name_length = static_cast<uint16_t>(file.path.size()); in Finish()
[all …]
Dzip_archive_test.cc1060 CentralDirectoryRecord cdr = {}; in ConstructCentralDirectoryRecord() local
1061 cdr.record_signature = CentralDirectoryRecord::kSignature; in ConstructCentralDirectoryRecord()
1062 cdr.compressed_size = uncompressed_size; in ConstructCentralDirectoryRecord()
1063 cdr.uncompressed_size = compressed_size; in ConstructCentralDirectoryRecord()
1064 cdr.file_name_length = static_cast<uint16_t>(name.size()); in ConstructCentralDirectoryRecord()
1065 cdr.extra_field_length = local_offset == UINT32_MAX ? 28 : 20; in ConstructCentralDirectoryRecord()
1066 cdr.local_file_header_offset = local_offset; in ConstructCentralDirectoryRecord()
1068 std::vector<uint8_t>(reinterpret_cast<uint8_t*>(&cdr), in ConstructCentralDirectoryRecord()
1069 reinterpret_cast<uint8_t*>(&cdr) + sizeof(CentralDirectoryRecord)); in ConstructCentralDirectoryRecord()