| 139 | } |
| 140 | |
| 141 | static inline bool DexFileStringEquals(const DexFile* df1, dex::StringIndex sidx1, |
| 142 | const DexFile* df2, dex::StringIndex sidx2) { |
| 143 | uint32_t s1_len; // Note: utf16 length != mutf8 length. |
| 144 | const char* s1_data = df1->StringDataAndUtf16LengthByIdx(sidx1, &s1_len); |
| 145 | uint32_t s2_len; |
| 146 | const char* s2_data = df2->StringDataAndUtf16LengthByIdx(sidx2, &s2_len); |
| 147 | return (s1_len == s2_len) && (strcmp(s1_data, s2_data) == 0); |
| 148 | } |
| 149 | |
| 150 | inline bool Signature::operator==(const Signature& rhs) const { |
| 151 | if (dex_file_ == nullptr) { |
no test coverage detected