summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorXusheng <xusheng@vector35.com>2023-08-03 10:49:32 +0800
committerXusheng <xusheng@vector35.com>2023-08-03 10:49:32 +0800
commit4431ddb07ac63b5cd8da5ff4050e335b5ab4d0ba (patch)
tree0bd3e6cd201bc27817cabc26f7f24fffe94e8aa0 /binaryninjaapi.h
parentded699dfc4d5e149c8ad4daf467adac1f94e5822 (diff)
Add an API to get structure member including inherited ones. Fix auto structure creation overwrites inherited fields. Close https://github.com/Vector35/binaryninja-api/issues/4540
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h
index e14e12b4..62177289 100644
--- a/binaryninjaapi.h
+++ b/binaryninjaapi.h
@@ -8136,6 +8136,16 @@ namespace BinaryNinja {
*/
std::vector<InheritedStructureMember> GetMembersIncludingInherited(BinaryView* view) const;
+ /*! Get a structure member (including inherited members) at a certain offset
+
+ \param view The relevant binary view
+ \param offset Offset to check
+ \param result Reference to a InheritedStructureMember to copy the result to
+ \return Whether a member was found
+ */
+ bool GetMemberIncludingInheritedAtOffset(BinaryView* view, int64_t offset,
+ InheritedStructureMember& result) const;
+
/*! Get a structure member by name
\param name Name of the member to retrieve