Searched refs:cdr (Results 1 – 3 of 3) sorted by relevance
560 auto cdr = reinterpret_cast<const CentralDirectoryRecord*>(ptr); in ParseZipArchive() local561 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() local630 std::string_view entry_name{reinterpret_cast<const char*>(ptr + sizeof(*cdr)), in ParseZipArchive()[all …]
519 CentralDirectoryRecord cdr = {}; in Finish() local520 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 …]
1060 CentralDirectoryRecord cdr = {}; in ConstructCentralDirectoryRecord() local1061 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()