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

Method PrettyField

Bcore/src/main/cpp/dex/dex_file.cc:603–617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

601}
602
603std::string DexFile::PrettyField(uint32_t field_idx, bool with_type) const {
604 if (field_idx >= NumFieldIds()) {
605 return StringPrintf("<<invalid-field-idx-%d>>", field_idx);
606 }
607 const DexFile::FieldId& field_id = GetFieldId(field_idx);
608 std::string result;
609 if (with_type) {
610 result += GetFieldTypeDescriptor(field_id);
611 result += ' ';
612 }
613 AppendPrettyDescriptor(GetFieldDeclaringClassDescriptor(field_id), &result);
614 result += '.';
615 result += GetFieldName(field_id);
616 return result;
617}
618
619std::string DexFile::PrettyType(dex::TypeIndex type_idx) const {
620 if (type_idx.index_ >= NumTypeIds()) {

Callers 1

DumpStringMethod · 0.80

Calls 2

StringPrintfFunction · 0.85
AppendPrettyDescriptorFunction · 0.85

Tested by

no test coverage detected