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

Method GetBasicBlocks

function.cpp:307–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305
306
307vector<Ref<BasicBlock>> Function::GetBasicBlocks() const
308{
309 size_t count;
310 BNBasicBlock** blocks = BNGetFunctionBasicBlockList(m_object, &count);
311
312 vector<Ref<BasicBlock>> result;
313 result.reserve(count);
314 for (size_t i = 0; i < count; i++)
315 result.push_back(new BasicBlock(BNNewBasicBlockReference(blocks[i])));
316
317 BNFreeBasicBlockList(blocks, count);
318 return result;
319}
320
321
322Ref<BasicBlock> Function::GetBasicBlockAtAddress(Architecture* arch, uint64_t addr) const

Callers 7

AnalyzeStubFunctionFunction · 0.45
AnalyzeStandardFunctionFunction · 0.45
AdjustCallTypeMethod · 0.45
mainFunction · 0.45
FunctionInlinerFunction · 0.45
TailCallTranslationFunction · 0.45
mainFunction · 0.45

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected