fromFunctionPointer static method
Creates a block from a C function pointer.
This block must be invoked by native code running on the same thread as the isolate that registered it. Invoking the block on the wrong thread will result in a crash.
Implementation
static objc.ObjCBlock<
ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer<ffi.Bool>)
>
fromFunctionPointer(
ffi.Pointer<
ffi.NativeFunction<
ffi.Void Function(
ffi.Double arg0,
CFIndex arg1,
ffi.Bool arg2,
ffi.Pointer<ffi.Bool> arg3,
)
>
>
ptr,
) =>
objc.ObjCBlock<
ffi.Void Function(ffi.Double, ffi.Long, ffi.Bool, ffi.Pointer<ffi.Bool>)
>(
objc.newPointerBlock(
_ObjCBlock_ffiVoid_ffiDouble_CFIndex_bool_bool_fnPtrCallable,
ptr.cast(),
),
retain: false,
release: true,
);