diff options
author | 2018-06-28 16:59:00 +0000 | |
---|---|---|
committer | 2018-06-28 16:59:00 +0000 | |
commit | d20a4d76c33cd6e609ad6b1b3cde09fdcbdde05c (patch) | |
tree | ccbf6e69ca17f4677186f4e148e1f9baf8bc7ae4 /libdexfile/dex/dex_file_loader.h | |
parent | b5271dd44a30f498689e503340d3c8d01bf31f07 (diff) | |
parent | b095f022a9683a9123018c01e22595cf969fd88b (diff) |
Merge "Refactor DexFile ownership"
Diffstat (limited to 'libdexfile/dex/dex_file_loader.h')
-rw-r--r-- | libdexfile/dex/dex_file_loader.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libdexfile/dex/dex_file_loader.h b/libdexfile/dex/dex_file_loader.h index 01532203eb..0bd6446b7b 100644 --- a/libdexfile/dex/dex_file_loader.h +++ b/libdexfile/dex/dex_file_loader.h @@ -161,17 +161,17 @@ class DexFileLoader { kVerifyFailed }; - static std::unique_ptr<DexFile> OpenCommon(const uint8_t* base, - size_t size, - const uint8_t* data_base, - size_t data_size, + // main_section points to the header and fixed-sized objects (ids, etc.) + // If not empty (Begin != nullptr) data_section points to the dex file's variable-sized + // objects such as strings, class_data_items, etc. + static std::unique_ptr<DexFile> OpenCommon(std::unique_ptr<DexFileContainer> main_section, + std::unique_ptr<DexFileContainer> data_section, const std::string& location, uint32_t location_checksum, const OatDexFile* oat_dex_file, bool verify, bool verify_checksum, std::string* error_msg, - std::unique_ptr<DexFileContainer> container, VerifyResult* verify_result); private: |