MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / Find

Method Find

Bcore/src/main/cpp/dex/dex_file_loader.cc:126–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124 }
125
126 DexZipEntry* Find(const char* name, std::string* error_msg) const {
127 DCHECK(name != nullptr);
128 // Resist the urge to delete the space. <: is a bigraph sequence.
129 std::unique_ptr< ::ZipEntry> zip_entry(new ::ZipEntry);
130 const int32_t error = FindEntry(handle_, ZipString(name), zip_entry.get());
131 if (error) {
132 *error_msg = std::string(ErrorCodeString(error));
133 return nullptr;
134 }
135 return new DexZipEntry(handle_, zip_entry.release(), name);
136 }
137
138 ~DexZipArchive() {
139 CloseArchive(handle_);

Callers 3

CheckOffsetToTypeMapMethod · 0.45
OpenOneDexFileFromZipMethod · 0.45

Calls 5

FindEntryFunction · 0.85
ZipStringClass · 0.85
ErrorCodeStringFunction · 0.85
getMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected