mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 14:53:37 +00:00
85a87ca7ae
We're adding these types to `dart:ffi` rather than `package:ffi` so that they can be used with `FfiNative`s. Adds `NativeType`s for the following C types: * char * unsigned char * signed char * short * unsigned short * int * unsigned int * long * unsigned long * long long * unsigned long long * uintptr_t * size_t * wchar_t Because the C standard only defines minimum sizes for many of these types, future platforms might diverge from the typical size even if all platforms currently agree on a size. To avoid having to reification later, we define all types as AbiSpecificIntegers rather than typedefs, even if all current target platforms agree on the size. Closes: https://github.com/dart-lang/sdk/issues/36140 TEST=tests/ffi/c_types_test.dart Change-Id: Ie97d253856d787386529231e8060f879069be886 Cq-Include-Trybots: luci.dart.try:dart-sdk-linux-try,dart-sdk-mac-try,dart-sdk-win-try,vm-ffi-android-debug-arm64c-try,vm-ffi-android-debug-arm-try,vm-canary-linux-debug-try,vm-fuchsia-release-x64-try,vm-kernel-gcc-linux-try,vm-kernel-asan-linux-release-x64-try,vm-kernel-linux-debug-x64-try,vm-kernel-linux-debug-ia32-try,vm-kernel-mac-debug-x64-try,vm-kernel-mac-release-arm64-try,vm-kernel-nnbd-win-release-ia32-try,vm-kernel-nnbd-win-release-x64-try,vm-precomp-ffi-qemu-linux-release-arm-try,vm-kernel-win-release-x64-try Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/228541 Reviewed-by: Martin Kustermann <kustermann@google.com> |
||
---|---|---|
.. | ||
BigIntParsePrint | ||
Calls | ||
DartCLIStartup | ||
Dynamic | ||
EventLoopLatencyJson | ||
EventLoopLatencyJson350KB | ||
EventLoopLatencyRegexp | ||
Example | ||
FfiAsTypedList | ||
FfiBoringssl | ||
FfiCall | ||
FfiMemory | ||
FfiStruct | ||
Isolate | ||
IsolateFibonacci | ||
IsolateJson | ||
IsolateSpawn | ||
IsolateSpawnMemory | ||
ListCopy | ||
MapCopy | ||
MapLookup | ||
MD5 | ||
NativeCall | ||
ObjectHash | ||
Omnibus | ||
OmnibusDeferred | ||
Richards | ||
RuntimeType | ||
SDKArtifactSizes | ||
SendPort | ||
SHA1 | ||
SHA256 | ||
SkeletalAnimation | ||
SkeletalAnimationSIMD | ||
SoundSplayTreeSieve | ||
StringPool | ||
TypedDataDuplicate | ||
Utf8Decode | ||
Utf8Encode | ||
analysis_options.yaml |