-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.library-ffitype-design
Description
Update 2022-01-20: This will be available in dart:ffi from Dart 2.17 (and from now on tip of tree). In the mean time this is also available in package:ffi for Dart 2.16 (dev release).
Update 2021-01-07: We will implement this by implementing #42563 and probably adding the common types to package:ffi.
Currently dart:ffi only supports:
int8_tint16_tint32_tint64_tuint8_tuint16_tuint32_tuint64_tintptr_tfloatdouble
However, many C APIs use C types such as int, long, size_t, uintptr_t, and wchar_t.
We could support these types. The question is if we support these types, then what other types should we support.
An alternative could be to not support these types but provide a way for users to specify types which differ in size per platform.
Sacchid, rootext, eug48, JsouLiang, flyingtime and 15 morebradleybauerartob, sachaarbonel and jing-pei
Metadata
Metadata
Assignees
Labels
area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.library-ffitype-design