Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Passing/Returning Structs by value in Functions #540

Closed
mannprerak2 opened this issue Jun 18, 2020 · 3 comments
Closed

Support for Passing/Returning Structs by value in Functions #540

mannprerak2 opened this issue Jun 18, 2020 · 3 comments

Comments

@mannprerak2
Copy link
Contributor

mannprerak2 commented Jun 18, 2020

Waiting on support for Structs by value in dart:ffi
Currently, functions passing/returning Structs by value are removed from the generated bindings

@dcharkes dcharkes added the waiting-on-dart-ffi Issues which are blocked by lacking suppport in dart:ffi label Aug 11, 2020
@dcharkes
Copy link
Collaborator

dcharkes commented Jan 5, 2021

This has landed in Dart master, it would be cool if we can address this just like in dart-lang/ffigen#126 on the dart-master branch.

@jpnurmi would you be interested in making a PR for this? If not, @mannprerak2 can you look at this after dart-lang/ffigen#126 is merged?

@dcharkes dcharkes removed the waiting-on-dart-ffi Issues which are blocked by lacking suppport in dart:ffi label Jan 5, 2021
@mannprerak2
Copy link
Contributor Author

mannprerak2 commented Jan 5, 2021

I can work on this. Other than removing the checks for Struct by value we also need to take care of only allowing this for Structs which are complete.

@mannprerak2
Copy link
Contributor Author

mannprerak2 commented Jan 8, 2021

https://pub.dev/packages/ffigen/versions/2.0.0-dev.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants