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

Method GetNode

flowgraph.cpp:238–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236
237
238Ref<FlowGraphNode> FlowGraph::GetNode(size_t i)
239{
240 BNFlowGraphNode* node = BNGetFlowGraphNode(m_object, i);
241 if (!node)
242 return nullptr;
243
244 auto nodeIter = m_cachedNodes.find(node);
245 if (nodeIter == m_cachedNodes.end())
246 {
247 FlowGraphNode* newNode = new FlowGraphNode(node);
248 m_cachedNodes[node] = newNode;
249 return newNode;
250 }
251 else
252 {
253 BNFreeFlowGraphNode(node);
254 return nodeIter->second;
255 }
256}
257
258
259size_t FlowGraph::GetNodeCount() const

Callers

nothing calls this directly

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected