Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:42:59

0001 //===-- ZipFile.h -----------------------------------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLDB_UTILITY_ZIPFILE_H
0010 #define LLDB_UTILITY_ZIPFILE_H
0011 
0012 #include "lldb/lldb-private.h"
0013 
0014 namespace lldb_private {
0015 
0016 /// In Android API level 23 and above, bionic dynamic linker is able to load
0017 /// .so file directly from APK or .zip file. This is a utility class to find
0018 /// .so file offset and size from zip file.
0019 /// https://android.googlesource.com/platform/bionic/+/master/
0020 /// android-changes-for-ndk-developers.md#
0021 /// opening-shared-libraries-directly-from-an-apk
0022 class ZipFile {
0023 public:
0024   static bool Find(lldb::DataBufferSP zip_data, const llvm::StringRef file_path,
0025                    lldb::offset_t &file_offset, lldb::offset_t &file_size);
0026 };
0027 
0028 } // end of namespace lldb_private
0029 
0030 #endif // LLDB_UTILITY_ZIPFILE_H