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

Method CheckLoadProtoId

Bcore/src/main/cpp/dex/dex_file_verifier.cc:191–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191const DexFile::ProtoId* DexFileVerifier::CheckLoadProtoId(uint32_t idx, const char* err_string) {
192 if (UNLIKELY(!CheckIndex(idx, dex_file_->NumProtoIds(), err_string))) {
193 return nullptr;
194 }
195 return &dex_file_->GetProtoId(idx);
196}
197
198// Helper macro to load string and return false on error.
199#define LOAD_STRING(var, idx, error) \

Callers

nothing calls this directly

Calls 1

NumProtoIdsMethod · 0.80

Tested by

no test coverage detected