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

Method GetSectionsAt

binaryview.cpp:5025–5039  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5023
5024
5025vector<Ref<Section>> BinaryView::GetSectionsAt(uint64_t addr)
5026{
5027 size_t count;
5028 BNSection** sections = BNGetSectionsAt(m_object, addr, &count);
5029
5030 vector<Ref<Section>> result;
5031 result.reserve(count);
5032 for (size_t i = 0; i < count; i++)
5033 {
5034 result.push_back(new Section(BNNewSectionReference(sections[i])));
5035 }
5036
5037 BNFreeSectionList(sections, count);
5038 return result;
5039}
5040
5041
5042Ref<Section> BinaryView::GetSectionByName(const string& name)

Callers 6

ApplyRelocationMethod · 0.80
ApplyRelocationMethod · 0.80
OnViewChangeMethod · 0.80
AnalyzeFunctionFunction · 0.80
IsOffsetReadOnlyDataFunction · 0.80

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected