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

Method GetSections

binaryview.cpp:5010–5022  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5008
5009
5010vector<Ref<Section>> BinaryView::GetSections()
5011{
5012 size_t count;
5013 BNSection** sections = BNGetSections(m_object, &count);
5014
5015 vector<Ref<Section>> result;
5016 result.reserve(count);
5017 for (size_t i = 0; i < count; i++)
5018 result.push_back(new Section(BNNewSectionReference(sections[i])));
5019
5020 BNFreeSectionList(sections, count);
5021 return result;
5022}
5023
5024
5025vector<Ref<Section>> BinaryView::GetSectionsAt(uint64_t addr)

Callers 3

ProcessRTTIMethod · 0.80
SectionsWidgetMethod · 0.80
TriageViewMethod · 0.80

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected