dart:ffi platform-dependent struct layout #35768
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
library-ffi
On different platforms structs have different layouts.
We can reproduce the struct layout algorithm (field sizes + alignment + padding) for platforms.
So that
dart:ffi
users do not have to write the following.However, in some cases ifdefs might be used to differentiate between platforms. Either users need to be able to specify various layouts, or we need to invoke the C compiler to learn about the struct layouts.
The text was updated successfully, but these errors were encountered: