Function dart_sys::Dart_SetFfiNativeResolver
source · pub unsafe extern "C" fn Dart_SetFfiNativeResolver(
library: Dart_Handle,
resolver: Dart_FfiNativeResolver
) -> Dart_Handle
Expand description
Sets the callback used to resolve FFI native functions for a library.
The resolved functions are expected to be a C function pointer of the
correct signature (as specified in the @FfiNative<NFT>()
function
annotation in Dart code).
NOTE: This is an experimental feature and might change in the future.
\param library A library. \param resolver A native function resolver.
\return A valid handle if the native resolver was set successfully.