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

Method GetIndexForMethodId

Bcore/src/main/cpp/dex/dex_file.h:597–601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595 }
596
597 uint32_t GetIndexForMethodId(const MethodId& method_id) const {
598 CHECK_GE(&method_id, method_ids_) << GetLocation();
599 CHECK_LT(&method_id, method_ids_ + header_->method_ids_size_) << GetLocation();
600 return &method_id - method_ids_;
601 }
602
603 // Looks up a method by its declaring class, name and proto_id
604 const MethodId* FindMethodId(const DexFile::TypeId& declaring_klass,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected