| 22 | |
| 23 | |
| 24 | bool CodeDataRenderer::IsValidForData( |
| 25 | BinaryView* data, uint64_t addr, Type* type, std::vector<std::pair<BinaryNinja::Type*, size_t>>& context) |
| 26 | { |
| 27 | auto sym = data->GetSymbolByAddress(addr); |
| 28 | if (!sym) |
| 29 | return false; |
| 30 | |
| 31 | auto name = sym->GetFullName(); |
| 32 | if (name.substr(0, 14) != "BN_CODE_start_") |
| 33 | return false; |
| 34 | |
| 35 | return type->GetClass() == ArrayTypeClass && type->GetElementCount() == 1; |
| 36 | } |
| 37 | |
| 38 | |
| 39 | std::vector<DisassemblyTextLine> CodeDataRenderer::GetLinesForData(BinaryView* data, uint64_t addr, Type* type, |
nothing calls this directly
no outgoing calls
no test coverage detected