You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, we do not support passing structs by value to functions yet. We are planning to add this in the future, exactly in the way that you tried to use it.
We're already tracking the feature in of #36730, I'm closing this duplicate issue.
Hello.
I have this c++ Struct

And also a c++ function with the above struct paramter.

When trying to use the dart:ffi to call this function from a flutter plugin the VM raising an error

I defined the function in this way

And the DummyStruct looks like this

The call to the function is

Is there anything I'm doing wrong?
Dart SDK Version
Flutter 1.12.16 • channel dev • [email protected]:flutter/flutter.git
Framework • revision 37f9c54 (12 days ago) • 2019-11-27 11:33:38 -0800
Engine • revision fad1b23c42
Tools • Dart 2.7.0
Using Windows
The text was updated successfully, but these errors were encountered: