| 5008 | |
| 5009 | |
| 5010 | vector<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 | |
| 5025 | vector<Ref<Section>> BinaryView::GetSectionsAt(uint64_t addr) |
no test coverage detected