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

Method GetIndexForFieldId

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

Source from the content-addressed store, hash-verified

555 }
556
557 uint32_t GetIndexForFieldId(const FieldId& field_id) const {
558 CHECK_GE(&field_id, field_ids_) << GetLocation();
559 CHECK_LT(&field_id, field_ids_ + header_->field_ids_size_) << GetLocation();
560 return &field_id - field_ids_;
561 }
562
563 // Looks up a field by its declaring class, name and type
564 const FieldId* FindFieldId(const DexFile::TypeId& declaring_klass,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected