Searched refs:cdr (Results 1 – 3 of 3) sorted by relevance
569 auto cdr = reinterpret_cast<const CentralDirectoryRecord*>(ptr); in ParseZipArchive() local570 if (cdr->record_signature != CentralDirectoryRecord::kSignature) { in ParseZipArchive()575 const uint16_t file_name_length = cdr->file_name_length; in ParseZipArchive()576 const uint16_t extra_length = cdr->extra_field_length; in ParseZipArchive()577 const uint16_t comment_length = cdr->comment_length; in ParseZipArchive()597 off64_t local_header_offset = cdr->local_file_header_offset; in ParseZipArchive()601 extra_field, extra_length, cdr->uncompressed_size, cdr->compressed_size, in ParseZipArchive()602 cdr->local_file_header_offset, &zip64_info); in ParseZipArchive()638 auto cdr = reinterpret_cast<const CentralDirectoryRecord*>(ptr); in ParseZipArchive() local639 std::string_view entry_name{reinterpret_cast<const char*>(ptr + sizeof(*cdr)), in ParseZipArchive()[all …]
523 CentralDirectoryRecord cdr = {}; in Finish() local524 cdr.record_signature = CentralDirectoryRecord::kSignature; in Finish()526 cdr.gpb_flags |= kGPBDDFlagMask; in Finish()528 cdr.compression_method = file.compression_method; in Finish()529 cdr.last_mod_time = file.last_mod_time; in Finish()530 cdr.last_mod_date = file.last_mod_date; in Finish()531 cdr.crc32 = file.crc32; in Finish()532 cdr.compressed_size = file.compressed_size; in Finish()533 cdr.uncompressed_size = file.uncompressed_size; in Finish()536 cdr.file_name_length = static_cast<uint16_t>(file.path.size()); in Finish()[all …]
1064 CentralDirectoryRecord cdr = {}; in ConstructCentralDirectoryRecord() local1065 cdr.record_signature = CentralDirectoryRecord::kSignature; in ConstructCentralDirectoryRecord()1066 cdr.compressed_size = uncompressed_size; in ConstructCentralDirectoryRecord()1067 cdr.uncompressed_size = compressed_size; in ConstructCentralDirectoryRecord()1068 cdr.file_name_length = static_cast<uint16_t>(name.size()); in ConstructCentralDirectoryRecord()1069 cdr.extra_field_length = local_offset == UINT32_MAX ? 28 : 20; in ConstructCentralDirectoryRecord()1070 cdr.local_file_header_offset = local_offset; in ConstructCentralDirectoryRecord()1072 std::vector<uint8_t>(reinterpret_cast<uint8_t*>(&cdr), in ConstructCentralDirectoryRecord()1073 reinterpret_cast<uint8_t*>(&cdr) + sizeof(CentralDirectoryRecord)); in ConstructCentralDirectoryRecord()