MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / GetNodesInRegion

Method GetNodesInRegion

flowgraph.cpp:314–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312
313
314vector<Ref<FlowGraphNode>> FlowGraph::GetNodesInRegion(int left, int top, int right, int bottom)
315{
316 size_t count;
317 BNFlowGraphNode** nodes = BNGetFlowGraphNodesInRegion(m_object, left, top, right, bottom, &count);
318
319 vector<Ref<FlowGraphNode>> result;
320 result.reserve(count);
321 for (size_t i = 0; i < count; i++)
322 {
323 auto node = m_cachedNodes.find(nodes[i]);
324 if (node == m_cachedNodes.end())
325 {
326 FlowGraphNode* newNode = new FlowGraphNode(BNNewFlowGraphNodeReference(nodes[i]));
327 m_cachedNodes[nodes[i]] = newNode;
328 result.push_back(newNode);
329 }
330 else
331 {
332 result.push_back(node->second);
333 }
334 }
335
336 BNFreeFlowGraphNodeList(nodes, count);
337 return result;
338}
339
340
341bool FlowGraph::IsILGraph() const

Callers

nothing calls this directly

Calls 3

findMethod · 0.80
push_backMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected