Home
last modified time | relevance | path

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

/system/core/adb/fastdeploy/deploypatchgenerator/
Dapk_archive.cpp266 const CentralDirectoryRecord* cdr; in ParseCentralDirectoryRecord() local
267 if (size < sizeof(*cdr)) { in ParseCentralDirectoryRecord()
272 cdr = reinterpret_cast<const CentralDirectoryRecord*>(begin); in ParseCentralDirectoryRecord()
273 if (cdr->record_signature != kCDFileHeaderMagic) { in ParseCentralDirectoryRecord()
277 auto end = begin + sizeof(*cdr) + cdr->file_name_length + cdr->extra_field_length + in ParseCentralDirectoryRecord()
278 cdr->comment_length; in ParseCentralDirectoryRecord()
284 *localFileHeaderOffset = cdr->local_file_header_offset; in ParseCentralDirectoryRecord()
285 *dataSize = (cdr->compression_method == kCompressStored) ? cdr->uncompressed_size in ParseCentralDirectoryRecord()
286 : cdr->compressed_size; in ParseCentralDirectoryRecord()
/system/core/libziparchive/
Dzip_writer.cc521 CentralDirectoryRecord cdr = {}; in Finish() local
522 cdr.record_signature = CentralDirectoryRecord::kSignature; in Finish()
524 cdr.gpb_flags |= kGPBDDFlagMask; in Finish()
526 cdr.compression_method = file.compression_method; in Finish()
527 cdr.last_mod_time = file.last_mod_time; in Finish()
528 cdr.last_mod_date = file.last_mod_date; in Finish()
529 cdr.crc32 = file.crc32; in Finish()
530 cdr.compressed_size = file.compressed_size; in Finish()
531 cdr.uncompressed_size = file.uncompressed_size; in Finish()
534 cdr.file_name_length = static_cast<uint16_t>(file.path.size()); in Finish()
[all …]
Dzip_archive.cc373 const CentralDirectoryRecord* cdr = reinterpret_cast<const CentralDirectoryRecord*>(ptr); in ParseZipArchive() local
374 if (cdr->record_signature != CentralDirectoryRecord::kSignature) { in ParseZipArchive()
379 const off64_t local_header_offset = cdr->local_file_header_offset; in ParseZipArchive()
386 const uint16_t file_name_length = cdr->file_name_length; in ParseZipArchive()
387 const uint16_t extra_length = cdr->extra_field_length; in ParseZipArchive()
388 const uint16_t comment_length = cdr->comment_length; in ParseZipArchive()
554 const CentralDirectoryRecord* cdr = reinterpret_cast<const CentralDirectoryRecord*>(ptr); in FindEntry() local
564 data->method = cdr->compression_method; in FindEntry()
565 data->mod_time = cdr->last_mod_date << 16 | cdr->last_mod_time; in FindEntry()
566 data->crc32 = cdr->crc32; in FindEntry()
[all …]