diff options
| author | Brian Potchik <brian@vector35.com> | 2025-11-25 11:28:39 -0500 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2025-11-25 11:28:39 -0500 |
| commit | 77da98d11f935d3bd5013ec9ae6d2637186e6b2c (patch) | |
| tree | 7f5e59bd4f9d6b9a267ec1b13bf9a78c1b59f50a /binaryview.cpp | |
| parent | 31d963f7eb2d3615b0d0ab6ced87d06142d83883 (diff) | |
Add SectionMap with bulk operations and batch section APIs.
Diffstat (limited to 'binaryview.cpp')
| -rw-r--r-- | binaryview.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/binaryview.cpp b/binaryview.cpp index 5effe803..ca226119 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -5269,6 +5269,12 @@ void BinaryView::AddAutoSection(const string& name, uint64_t start, uint64_t len } +void BinaryView::AddAutoSections(const vector<BNSectionInfo>& sections) +{ + BNAddAutoSections(m_object, sections.data(), sections.size()); +} + + void BinaryView::RemoveAutoSection(const string& name) { BNRemoveAutoSection(m_object, name.c_str()); @@ -5284,6 +5290,12 @@ void BinaryView::AddUserSection(const string& name, uint64_t start, uint64_t len } +void BinaryView::AddUserSections(const vector<BNSectionInfo>& sections) +{ + BNAddUserSections(m_object, sections.data(), sections.size()); +} + + void BinaryView::RemoveUserSection(const string& name) { BNRemoveUserSection(m_object, name.c_str()); |
