| 5023 | |
| 5024 | |
| 5025 | vector<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 | |
| 5042 | Ref<Section> BinaryView::GetSectionByName(const string& name) |
no test coverage detected