Lines Matching refs:mapped_zip
102 : mapped_zip(map), in ZipArchive()
110 CHECK(mapped_zip.HasFd()); in ZipArchive()
111 android_fdsan_exchange_owner_tag(mapped_zip.GetFileDescriptor(), 0, GetOwnerTag(this)); in ZipArchive()
117 : mapped_zip(address, length), in ZipArchive()
125 if (close_file && mapped_zip.GetFileDescriptor() >= 0) { in ~ZipArchive()
127 android_fdsan_close_with_tag(mapped_zip.GetFileDescriptor(), GetOwnerTag(this)); in ~ZipArchive()
129 close(mapped_zip.GetFileDescriptor()); in ~ZipArchive()
165 if (!archive->mapped_zip.ReadAtOffset(reinterpret_cast<uint8_t*>((&zip64EocdLocator)), in FindCentralDirectoryInfoForZip64()
187 if (!archive->mapped_zip.ReadAtOffset(reinterpret_cast<uint8_t*>(&zip64EocdRecord), in FindCentralDirectoryInfoForZip64()
223 if (!archive->mapped_zip.ReadAtOffset(scan_buffer.data(), read_amount, search_start)) { in FindCentralDirectoryInfo()
297 off64_t file_length = archive->mapped_zip.GetFileLength(); in MapCentralDirectory()
581 if (!archive->mapped_zip.ReadAtOffset(reinterpret_cast<uint8_t*>(&lfh_start_bytes), in ParseZipArchive()
652 result.archive_size = archive->mapped_zip.GetFileLength(); in GetArchiveInfo()
665 static int32_t ValidateDataDescriptor(MappedZipFile& mapped_zip, const ZipEntry64* entry) { in ValidateDataDescriptor() argument
681 if (!mapped_zip.ReadAtOffset(ddBuf, sizeof(ddBuf), offset)) { in ValidateDataDescriptor()
790 if (!archive->mapped_zip.ReadAtOffset(lfh_buf, sizeof(lfh_buf), local_header_offset)) { in FindEntry()
824 if (!archive->mapped_zip.ReadAtOffset(name_buf.data(), name_buf.size(), name_offset)) { in FindEntry()
851 if (!archive->mapped_zip.ReadAtOffset(local_extra_field.data(), lfh_extra_field_size, in FindEntry()
1375 static int32_t InflateEntryToWriter(MappedZipFile& mapped_zip, const ZipEntry64* entry, in InflateEntryToWriter() argument
1377 const EntryReader reader(mapped_zip, entry); in InflateEntryToWriter()
1383 static int32_t CopyEntryToWriter(MappedZipFile& mapped_zip, const ZipEntry64* entry, in CopyEntryToWriter() argument
1405 if (!mapped_zip.ReadAtOffset(buf.data(), block_size, offset)) { in CopyEntryToWriter()
1436 CopyEntryToWriter(handle->mapped_zip, entry, writer, kCrcChecksEnabled ? &crc : nullptr); in extractToWriter()
1439 InflateEntryToWriter(handle->mapped_zip, entry, writer, kCrcChecksEnabled ? &crc : nullptr); in extractToWriter()
1443 return_value = ValidateDataDescriptor(handle->mapped_zip, entry); in extractToWriter()
1489 return archive->mapped_zip.GetFileDescriptor(); in GetFileDescriptor()
1493 return archive->mapped_zip.GetFileOffset(); in GetFileDescriptorOffset()
1622 if (mapped_zip.HasFd()) { in InitializeCentralDirectory()
1623 directory_map = android::base::MappedFile::FromFd(mapped_zip.GetFileDescriptor(), in InitializeCentralDirectory()
1624 mapped_zip.GetFileOffset() + cd_start_offset, in InitializeCentralDirectory()
1635 if (mapped_zip.GetBasePtr() == nullptr) { in InitializeCentralDirectory()
1640 mapped_zip.GetFileLength()) { in InitializeCentralDirectory()
1644 static_cast<int64_t>(cd_start_offset), cd_size, mapped_zip.GetFileLength()); in InitializeCentralDirectory()
1648 central_directory.Initialize(mapped_zip.GetBasePtr(), cd_start_offset, cd_size); in InitializeCentralDirectory()