[API] Add FFI wrapper modifier to strong typedefs - #8386
Merged
Conversation
This was referenced Aug 4, 2026
bdash
requested changes
Aug 4, 2026
bdash
left a comment
Contributor
There was a problem hiding this comment.
I really like the idea, but there are a couple of changes that would help this fit better with our existing C++ <-> C API conversions.
Member
Author
|
Ah yes, the initializer change really does improve the usability, made the requested changes, thanks! |
bdash
approved these changes
Aug 5, 2026
emesare
force-pushed
the
similarity/support-ffi-wrapper
branch
from
August 5, 2026 02:58
4b509c7 to
4b0bf92
Compare
emesare
force-pushed
the
similarity/support-ffi-wrapper
branch
from
August 5, 2026 02:58
4b0bf92 to
8f99c77
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This modifier is used for wrapping and unwrapping FFI structures representing the raw value type.
In particular we are using it in the binary similarity like:
Where we want to use the strong_typedef modifiers to derive functionality for use in containers (hashable, ordered) and still preserve the relationship between the C++ and C (via FfiWrapper).
Also see https://github.com/Vector35/binaryninja/pull/1737 for unit tests.