MCPcopy Create free account
hub / github.com/Vector35/debugger / IsValidForData

Method IsValidForData

ui/codedatarenderer.cpp:24–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23
24bool 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
39std::vector<DisassemblyTextLine> CodeDataRenderer::GetLinesForData(BinaryView* data, uint64_t addr, Type* type,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected