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

Method GetIndexForProtoId

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

Source from the content-addressed store, hash-verified

701 }
702
703 uint16_t GetIndexForProtoId(const ProtoId& proto_id) const {
704 CHECK_GE(&proto_id, proto_ids_) << GetLocation();
705 CHECK_LT(&proto_id, proto_ids_ + header_->proto_ids_size_) << GetLocation();
706 return &proto_id - proto_ids_;
707 }
708
709 // Looks up a proto id for a given return type and signature type list
710 const ProtoId* FindProtoId(dex::TypeIndex return_type_idx,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected