Option to generate pointers to fields on struct pointers #331
Labels
package:ffigen
type-enhancement
A request for a change that isn't a bug
waiting-on-dart-ffi
Issues which are blocked by lacking suppport in dart:ffi
After we address dart-lang/sdk#41237.
We can add an option to generate extension methods for
Pointer
s to fields ofPointer<MyStruct>
:If we settle on an API like this for getting the offsets:
Then we could generate extension methods such as:
Which would be handy for cases like dart-archive/ffi#117.
The text was updated successfully, but these errors were encountered: