diff options
| author | Ryan Stortz <ryan@withzombies.com> | 2020-10-01 21:56:01 -0400 |
|---|---|---|
| committer | Jordan <jordan@psifertex.com> | 2020-10-01 22:51:26 -0400 |
| commit | 430bf129d943c287d61fdea6f1e110aa16fd11a4 (patch) | |
| tree | 119c46ba48f1a160ee53ee5199c58172c2503a9a /python/binaryview.py | |
| parent | 20183f5e5b5d55112f64279180bdba2dae564605 (diff) | |
Documentation fixes and an api fix
Diffstat (limited to 'python/binaryview.py')
| -rw-r--r-- | python/binaryview.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/python/binaryview.py b/python/binaryview.py index a9c8e186..55c0439a 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -1673,7 +1673,6 @@ class BinaryView(object): @property def notifications(self): - """:py:class:`FileMetadata` backing the BinaryView """ return self._notifications @notifications.setter @@ -1956,7 +1955,7 @@ class BinaryView(object): @property def sections(self): - """List of sections (read-only)""" + """Dictionary of sections (read-only)""" count = ctypes.c_ulonglong(0) section_list = core.BNGetSections(self.handle, count) result = {} @@ -2810,7 +2809,7 @@ class BinaryView(object): ``is_offset_code_semantics`` checks if an virtual address ``addr`` is semantically valid for code. :param int addr: a virtual address to be checked - :return: true if the virtual address is valid for writing, false if the virtual address is invalid or error + :return: true if the virtual address is valid for code semantics, false if the virtual address is invalid or error :rtype: bool """ return core.BNIsOffsetCodeSemantics(self.handle, addr) @@ -2820,7 +2819,7 @@ class BinaryView(object): ``is_offset_extern_semantics`` checks if an virtual address ``addr`` is semantically valid for external references. :param int addr: a virtual address to be checked - :return: true if the virtual address is valid for writing, false if the virtual address is invalid or error + :return: true if the virtual address is valid for for external references, false if the virtual address is invalid or error :rtype: bool """ return core.BNIsOffsetExternSemantics(self.handle, addr) @@ -3691,6 +3690,7 @@ class BinaryView(object): :param TagType type: The Tag Type for this Tag :param str data: Additional data for the Tag + :param bool user :return: The created Tag :rtype: Tag :Example: @@ -3833,7 +3833,7 @@ class BinaryView(object): tags = self.get_data_tags_at(addr) for tag in tags: if tag.type == type and tag.data == data: - return + return tag tag = self.create_tag(type, data, False) core.BNAddAutoDataTag(self.handle, addr, tag.handle) @@ -5118,6 +5118,7 @@ class BinaryView(object): :param int start: virtual address to start searching from. :param int constant: constant to search for + :param settings: disassembly settings """ if not isinstance(constant, numbers.Integral): raise TypeError("constant parameter is not integral type") |
