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

Method append

python/binaryview.py:1676–1707  ·  view source on GitHub ↗

Append a section descriptor to the list. :param str name: The name of the section. :param int start: The start address of the section. :param int length: The length of the section. :param SectionSemantics semantics: The semantics of the section. :param str type: The type of the section

(self, name: str, start: int, length: int, semantics: 'SectionSemantics' = SectionSemantics.DefaultSectionSemantics,
				type: str = "", align: int = 1, entry_size: int = 0, link: str = "", info_section: str = "",
				info_data: int = 0, auto_defined: bool = True)

Source from the content-addressed store, hash-verified

1674 self.image_base = image_base
1675
1676 def append(self, name: str, start: int, length: int, semantics: 'SectionSemantics' = SectionSemantics.DefaultSectionSemantics,
1677 type: str = "", align: int = 1, entry_size: int = 0, link: str = "", info_section: str = "",
1678 info_data: int = 0, auto_defined: bool = True):
1679 """
1680 Append a section descriptor to the list.
1681
1682 :param str name: The name of the section.
1683 :param int start: The start address of the section.
1684 :param int length: The length of the section.
1685 :param SectionSemantics semantics: The semantics of the section.
1686 :param str type: The type of the section.
1687 :param int align: The alignment of the section.
1688 :param int entry_size: The size of each entry in the section.
1689 :param str link: An optional link field.
1690 :param str info_section: An optional info_section field.
1691 :param int info_data: An optional info_data field.
1692 :param bool auto_defined: Whether the section is auto-defined.
1693 """
1694 section_info = {
1695 "name": name,
1696 "start": start - self.image_base,
1697 "length": length,
1698 "semantics": semantics,
1699 "type": type,
1700 "align": align,
1701 "entry_size": entry_size,
1702 "link": link,
1703 "info_section": info_section,
1704 "info_data": info_data,
1705 "auto_defined": auto_defined
1706 }
1707 super().append(section_info)
1708
1709
1710class TagType:

Callers

nothing calls this directly

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected