| 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_); |
no test coverage detected