fromFunctionPointer static method
ObjCBlock<Void Function(NSObject, ObjCBlock<Void Function()> )>
fromFunctionPointer(
- Pointer<
NativeFunction< ptrVoid Function(sec_protocol_metadata_t arg0, sec_protocol_key_update_complete_t arg1)> >
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(objc.NSObject, objc.ObjCBlock<ffi.Void Function()>)
>
fromFunctionPointer(
ffi.Pointer<
ffi.NativeFunction<
ffi.Void Function(
sec_protocol_metadata_t arg0,
sec_protocol_key_update_complete_t arg1,
)
>
>
ptr,
) =>
objc.ObjCBlock<
ffi.Void Function(objc.NSObject, objc.ObjCBlock<ffi.Void Function()>)
>(
objc.newPointerBlock(
_ObjCBlock_ffiVoid_secprotocolmetadatat_secprotocolkeyupdatecompletet_fnPtrCallable,
ptr.cast(),
),
retain: false,
release: true,
);