summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/binaryview.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/python/binaryview.py b/python/binaryview.py
index 637868b3..2f190375 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -10054,6 +10054,16 @@ to a the type "tagRECT" found in the typelibrary "winX64common"
info_data
)
+ def add_auto_sections(self, sections: List[core.BNSectionInfo]) -> None:
+ """
+ ``add_auto_sections`` Adds analysis sections that specify semantic information about regions of the binary
+
+ :param List[core.BNSectionInfo] sections: list of sections to add
+ :rtype: None
+ """
+ section_list = (core.BNSectionInfo * len(sections))(*sections)
+ core.BNAddAutoSections(self.handle, section_list, len(sections))
+
def remove_auto_section(self, name: str) -> None:
core.BNRemoveAutoSection(self.handle, name)
@@ -10083,6 +10093,16 @@ to a the type "tagRECT" found in the typelibrary "winX64common"
info_data
)
+ def add_user_sections(self, sections: List[core.BNSectionInfo]) -> None:
+ """
+ ``add_user_sections`` Adds user-defined sections that specify semantic information about regions of the binary
+
+ :param List[core.BNSectionInfo] sections: list of sections to add
+ :rtype: None
+ """
+ section_list = (core.BNSectionInfo * len(sections))(*sections)
+ core.BNAddUserSections(self.handle, section_list, len(sections))
+
def remove_user_section(self, name: str) -> None:
core.BNRemoveUserSection(self.handle, name)