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

Function DexFileStringEquals

Bcore/src/main/cpp/dex/dex_file-inl.h:141–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141static 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
150inline bool Signature::operator==(const Signature& rhs) const {
151 if (dex_file_ == nullptr) {

Callers 1

operator==Method · 0.85

Calls 1

Tested by

no test coverage detected