Closed
Description
Right now it isn't possible to represent nested structs using ffi, for example the following C data structure:
struct Foo {
int foo;
};
struct Bar {
struct Foo foo;
int bar;
};
In Dart:
@struct class Foo extends Pointer<Void> {
@Uint32() int foo;
}
@struct class Bar extends Pointer<Void> {
Foo foo;
@Uint32() int bar;
}
Does not compile.