Lines Matching refs:mapped_zip

99     : mapped_zip(map),  in ZipArchive()
107 CHECK(mapped_zip.HasFd()); in ZipArchive()
108 android_fdsan_exchange_owner_tag(mapped_zip.GetFileDescriptor(), 0, GetOwnerTag(this)); in ZipArchive()
114 : mapped_zip(address, length), in ZipArchive()
122 if (close_file && mapped_zip.GetFileDescriptor() >= 0) { in ~ZipArchive()
124 android_fdsan_close_with_tag(mapped_zip.GetFileDescriptor(), GetOwnerTag(this)); in ~ZipArchive()
126 close(mapped_zip.GetFileDescriptor()); in ~ZipArchive()
162 if (!archive->mapped_zip.ReadAtOffset(reinterpret_cast<uint8_t*>((&zip64EocdLocator)), in FindCentralDirectoryInfoForZip64()
184 if (!archive->mapped_zip.ReadAtOffset(reinterpret_cast<uint8_t*>(&zip64EocdRecord), in FindCentralDirectoryInfoForZip64()
218 if (!archive->mapped_zip.ReadAtOffset(scan_buffer.data(), read_amount, search_start)) { in FindCentralDirectoryInfo()
292 off64_t file_length = archive->mapped_zip.GetFileLength(); in MapCentralDirectory()
542 if (!archive->mapped_zip.ReadAtOffset(reinterpret_cast<uint8_t*>(&lfh_start_bytes), in ParseZipArchive()
613 result.archive_size = archive->mapped_zip.GetFileLength(); in GetArchiveInfo()
626 static int32_t ValidateDataDescriptor(MappedZipFile& mapped_zip, const ZipEntry64* entry) { in ValidateDataDescriptor() argument
640 if (!mapped_zip.ReadAtOffset(ddBuf, sizeof(ddBuf), offset)) { in ValidateDataDescriptor()
734 if (!archive->mapped_zip.ReadAtOffset(lfh_buf, sizeof(lfh_buf), local_header_offset)) { in FindEntry()
762 if (!archive->mapped_zip.ReadAtOffset(name_buf.data(), nameLen, name_offset)) { in FindEntry()
789 if (!archive->mapped_zip.ReadAtOffset(local_extra_field.data(), lfh_extra_field_size, in FindEntry()
1306 static int32_t InflateEntryToWriter(MappedZipFile& mapped_zip, const ZipEntry64* entry, in InflateEntryToWriter() argument
1308 const EntryReader reader(mapped_zip, entry); in InflateEntryToWriter()
1314 static int32_t CopyEntryToWriter(MappedZipFile& mapped_zip, const ZipEntry64* entry, in CopyEntryToWriter() argument
1331 if (!mapped_zip.ReadAtOffset(buf.data(), block_size, offset)) { in CopyEntryToWriter()
1362 CopyEntryToWriter(handle->mapped_zip, entry, writer, kCrcChecksEnabled ? &crc : nullptr); in ExtractToWriter()
1365 InflateEntryToWriter(handle->mapped_zip, entry, writer, kCrcChecksEnabled ? &crc : nullptr); in ExtractToWriter()
1369 return_value = ValidateDataDescriptor(handle->mapped_zip, entry); in ExtractToWriter()
1415 return archive->mapped_zip.GetFileDescriptor(); in GetFileDescriptor()
1419 return archive->mapped_zip.GetFileOffset(); in GetFileDescriptorOffset()
1542 if (mapped_zip.HasFd()) { in InitializeCentralDirectory()
1543 directory_map = android::base::MappedFile::FromFd(mapped_zip.GetFileDescriptor(), in InitializeCentralDirectory()
1544 mapped_zip.GetFileOffset() + cd_start_offset, in InitializeCentralDirectory()
1555 if (mapped_zip.GetBasePtr() == nullptr) { in InitializeCentralDirectory()
1560 mapped_zip.GetFileLength()) { in InitializeCentralDirectory()
1564 static_cast<int64_t>(cd_start_offset), cd_size, mapped_zip.GetFileLength()); in InitializeCentralDirectory()
1568 central_directory.Initialize(mapped_zip.GetBasePtr(), cd_start_offset, cd_size); in InitializeCentralDirectory()